/* ============================================================
   XOON VILLAS — design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;1,6..12,500;1,6..12,700&display=swap');

/* ------------------------------------------------------------
   TITLE TYPEFACE — Renos Rough
   Upload the font file(s) into a root-level /fonts folder named
   RenosRough.<ext>. Any one of the formats below is enough; the
   browser picks the first it finds.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Renos Rough';
  src: url('../fonts/RenosRough.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg:         #CCCBC6;
  --color-bg-dark:    #2C2C2E;
  --color-bg-warm:    #BFBEB9;
  --color-text:       #2C2C2E;
  --color-text-light: #F2F1ED;
  --color-text-mute:  rgba(44,44,46,0.58);
  --color-white:      #FFFFFF;
  --color-accent:     #2C2C2E;
  --color-accent-deep:#A89773;
  --color-muted:      #74736E;
  --color-border:     rgba(44,44,46,0.14);
  --color-border-light: rgba(242,241,237,0.16);
  --color-icon:       rgba(244,243,239,0.94);

  --font-display: 'Renos Rough', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.25s;
  --t: 0.45s;
  --t-slow: 0.9s;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --header-h: 84px;
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s linear;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
}
.loader-sun {
  width: 96px;
  height: 96px;
  display: block;
  animation: loaderSpin 6s linear infinite, loaderPulse 2.2s var(--ease) infinite;
  transform-origin: center;
}
.loader-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-left: 0.5em; /* compensate trailing letter-spacing */
  opacity: 0.7;
  animation: loaderFade 2.2s var(--ease) infinite;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes loaderFade {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
noscript { display: none; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}
.eyebrow.no-line::before { display: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { width: 28px; }

.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.65rem, 3.1vw, 2.65rem); line-height: 1.12; letter-spacing: -0.005em; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.18; }
.lede { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7; color: var(--color-text); }
.muted { color: var(--color-muted); }
.italic { font-style: italic; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section.tight { padding: clamp(60px, 8vw, 110px) 0; }
.section.dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}
.section.dark .muted { color: rgba(245,242,236,0.55); }
.section.dark .eyebrow { color: rgba(245,242,236,0.55); }

/* On dark surfaces the accent flips from ink to cream */
.site-header,
.hero,
.section.dark,
.team-strip,
.location-section,
.interiors-section,
.site-footer,
.dropdown-menu,
.mobile-overlay,
.villa-hero,
.villa-cta-strip {
  --color-accent: #CCCBC6;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width var(--t) var(--ease); }
.btn .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 28px; }
.btn-solid { background: var(--color-text); color: var(--color-text-light); border-color: var(--color-text); }
.btn-solid:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--color-text); color: var(--color-text-light); }
.btn-on-dark { color: var(--color-text-light); border-color: var(--color-text-light); }
.btn-on-dark:hover { background: var(--color-text-light); color: var(--color-text); }
.btn-ghost { padding: 14px 0; border: none; border-bottom: 1px solid var(--color-accent); }

/* ---------- xoon logo ---------- */
.xoon-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: currentColor;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  padding: 4px 0;
}
.xoon-wordmark img {
  display: block;
  height: 30px;
  width: auto;
}

.xoon-logo-img {
  display: inline-block;
  width: auto;
  height: 220px;
  max-width: 100%;
}
.xoon-logo-img img {
  width: auto;
  height: 100%;
  display: block;
  filter: brightness(1.05);
}
.xoon-logo-img.footer-size { height: 160px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--t) var(--ease), padding var(--t) var(--ease), color var(--t) var(--ease);
  color: var(--color-text-light);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(28, 26, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  justify-content: center;
}
.header-nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: opacity var(--t) var(--ease);
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--t) var(--ease);
}
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }
.header-nav a.has-dropdown { display: inline-flex; align-items: center; gap: 6px; }
.header-nav a.has-dropdown::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  order: 2;
}

.nav-item-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border-light);
  padding: 18px 0;
  margin-top: 14px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t) var(--ease);
}
/* invisible bridge so the cursor can travel from trigger to menu without :hover breaking */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 8px 24px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { color: var(--color-accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}
.lang-switcher {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}
.lang-switcher:hover { border-color: var(--color-accent); }

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all var(--t) var(--ease);
}
.header-contact:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg-dark); }

.hamburger {
  display: none;
  width: 28px; height: 18px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: all var(--t) var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { bottom: 0; }
body.menu-open .hamburger span:nth-child(1) { top: 50%; transform: rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

/* mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
body.menu-open .mobile-overlay { opacity: 1; pointer-events: auto; }
.mobile-overlay nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.mobile-overlay .mobile-foot { margin-top: auto; display: flex; gap: 20px; align-items: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  color: var(--color-text-light);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -40px 0 -120px 0;
  background:
    linear-gradient(180deg, rgba(44,44,46,0.15) 0%, rgba(44,44,46,0.2) 50%, rgba(44,44,46,0.55) 100%),
    url('../images/hero/hero.jpg') center/cover no-repeat;
  will-change: transform;
  overflow: hidden;
}
.hero-bg::before,
.hero-bg::after { content: none; }
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,44,46,0.35) 0%, transparent 30%, transparent 60%, rgba(44,44,46,0.7) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(70px, 10vh, 120px);
  padding-top: 120px;
}
.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(30px, 5vh, 50px);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-align: center;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--color-accent); }
.hero-sub {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 28px;
  color: rgba(245,242,236,0.7);
}
.hero-divider {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}
.hero-divider .zsun {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* zapotec sun motif */
.zsun {
  display: inline-block;
  color: var(--color-accent);
}

/* ============================================================
   PROJECT SECTION
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.project-grid .left { padding-top: 60px; }
.project-image {
  aspect-ratio: 4/5;
  background: var(--color-bg-warm);
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease);
}

.project-body p + p { margin-top: 1.2em; }
.project-title { margin: 18px 0 28px; max-width: 18ch; }

.stats-row {
  margin-top: clamp(50px, 8vw, 90px);
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats-row .stat {
  padding: 36px 24px;
  border-right: 1px solid var(--color-border);
}
.stats-row .stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
}
.stat .lbl {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 12px;
}

/* team sub-section */
.team-strip {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: clamp(60px, 9vw, 110px) 0;
  margin-top: clamp(60px, 10vw, 120px);
}
.team-head { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border-light);
}
.team-card {
  padding: 40px 32px;
  border-right: 1px solid var(--color-border-light);
  position: relative;
}
.team-card:last-child { border-right: none; }
.team-card .role {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.team-card .name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  margin: 14px 0 18px;
}
.team-card .body { font-size: 14px; line-height: 1.7; color: rgba(245,242,236,0.7); }

/* ============================================================
   VILLAS GRID
   ============================================================ */
.villas-section { background: var(--color-bg); color: var(--color-text); }
.villas-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(50px, 7vw, 80px);
  flex-wrap: wrap;
}
.villas-head .h2 { max-width: 14ch; }
.villas-head .right { max-width: 360px; }

.villas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.villa-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg-warm);
  color: var(--color-text-light);
  cursor: pointer;
  display: block;
}
.villa-card .img {
  position: absolute;
  inset: 0;
  background: var(--color-bg-warm);
  transition: transform var(--t-slow) var(--ease);
  overflow: hidden;
}
.villa-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease);
}
.villa-card .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(44,44,46,0.5) 70%, rgba(44,44,46,0.92) 100%);
  z-index: 1;
}
.villa-card:hover .img { transform: scale(1.06); }

.villa-card .meta {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.villa-card .v-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.villa-card .v-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(245,242,236,0.6);
}
.villa-card .v-icon {
  color: var(--color-icon);
  width: 64px;
  height: 64px;
  opacity: 0.95;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  display: inline-block;
}
.villa-card .v-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.villa-card .v-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.villa-card .v-stats {
  display: flex;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.78);
}
.villa-card .v-stats b { font-weight: 500; color: var(--color-text-light); }
.villa-card .v-special {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245,242,236,0.78);
  font-style: italic;
  line-height: 1.4;
}
.villa-card .v-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 14px;
  border-top: 1px solid rgba(245,242,236,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t) var(--ease);
}
.villa-card .v-cta .arrow { width: 16px; height: 1px; background: currentColor; position: relative; }
.villa-card .v-cta .arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.villa-card:hover .v-cta { opacity: 1; transform: translateY(0); }

.villas-outro {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ============================================================
   MATERIALS
   ============================================================ */
.materials-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.materials-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.materials-imgs .swatch {
  position: relative;
  overflow: hidden;
}
.materials-imgs .swatch:nth-child(1) { aspect-ratio: 3/4; }
.materials-imgs .swatch:nth-child(2) { aspect-ratio: 3/4; margin-top: 40px; }
.materials-imgs .swatch:nth-child(3) { aspect-ratio: 3/4; margin-top: -40px; }
.materials-imgs .swatch:nth-child(4) { aspect-ratio: 3/4; }
.swatch .surface {
  position: absolute; inset: 0;
}
.swatch .lbl {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  background: rgba(44,44,46,0.55);
  padding: 6px 10px;
  z-index: 2;
}

.surface.wood    { background: linear-gradient(135deg, #6e4a2f, #3b2618), repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 8px); background-blend-mode: overlay; }
.surface.plaster { background: linear-gradient(135deg, #e8e0d0, #cfc4ad); }
.surface.stone   { background: linear-gradient(135deg, #3a3a36, #2C2C2E); }
.surface.textile { background: linear-gradient(135deg, #c8b89a, #8c8479), repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px); background-blend-mode: overlay; }
.swatch::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 14px);
  mix-blend-mode: multiply;
}

.materials-quote {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.materials-quote .q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  font-weight: 300;
}
.materials-quote .who {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   LOCATION
   ============================================================ */
.location-section { background: var(--color-bg-dark); color: var(--color-text-light); }
.location-head { text-align: center; margin-bottom: clamp(50px, 7vw, 80px); }
.location-head .h2 { margin-top: 18px; }
.location-head .lede { color: rgba(245,242,236,0.7); margin: 24px auto 0; max-width: 56ch; }

.location-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.map-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: #232325;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}
.map-wrap .map-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease);
}
.map-pin {
  position: absolute;
  left: 38%; top: 52%;
  transform: translate(-50%, -100%);
  z-index: 3;
}
.map-pin .dot {
  width: 14px; height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(204,203,198,0.22);
  margin: 0 auto;
  animation: pulse 2s var(--ease) infinite;
}
.map-pin .lbl {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  white-space: nowrap;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(200,184,154,0.2); }
  50%      { box-shadow: 0 0 0 16px rgba(200,184,154,0); }
}
.map-coords {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(245,242,236,0.5);
}

.distances {
  display: flex;
  flex-direction: column;
}
.distance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: 16px;
}
.distance:last-child { border-bottom: none; }
.distance .place {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}
.distance .v {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.distance .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(245,242,236,0.2);
  margin: 0 12px 6px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-head { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 16px;
}
.gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-bg-warm);
}
.gallery-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease), opacity 0.4s var(--ease);
}
.gallery-cell:hover img { transform: scale(1.05); }
/* gallery placements */
.gc-1 { grid-column: span 5; grid-row: span 5; }
.gc-2 { grid-column: span 4; grid-row: span 3; }
.gc-3 { grid-column: span 3; grid-row: span 4; }
.gc-4 { grid-column: span 4; grid-row: span 2; }
.gc-5 { grid-column: span 3; grid-row: span 3; }
.gc-6 { grid-column: span 5; grid-row: span 3; }
.gc-7 { grid-column: span 4; grid-row: span 3; }

.gallery-caption {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

/* surface variants no longer used — cleaned up */


/* ============================================================
   CURATED INTERIORS strip
   ============================================================ */
.interiors-section {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.interiors-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,184,154,0.15), transparent 60%);
}
.interiors-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
.interiors-img {
  aspect-ratio: 5/4;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-warm);
}
.interiors-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease);
}
.interiors-sub-label {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 28px;
}
.interiors-body { color: rgba(245,242,236,0.75); margin: 28px 0 36px; max-width: 50ch; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.site-footer {
  background: #232325;
  color: var(--color-text-light);
  padding: clamp(80px, 10vw, 130px) 0 30px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-border-light);
}
.footer-left .h2 { margin-top: 22px; max-width: 16ch; }
.footer-left .tagline { color: rgba(245,242,236,0.6); margin-top: 24px; max-width: 36ch; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.contact-form .full { grid-column: 1 / -1; }
.field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-light);
  padding: 8px 0 12px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--t) var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23C8B89A' d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field select option { background: var(--color-bg-dark); color: var(--color-text-light); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#form-feedback {
  font-size: 13px;
  color: var(--color-accent);
  flex: 1;
  min-width: 0;
}
#form-feedback.error { color: #d68a73; }

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(245,242,236,0.45);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-quick { display: flex; gap: 24px; }
.footer-quick a { transition: color var(--t) var(--ease); }
.footer-quick a:hover { color: var(--color-accent); }

.footer-credit {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
}
.footer-credit a {
  color: var(--color-accent);
  transition: opacity var(--t) var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer-credit a:hover {
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   VILLA INNER PAGE
   ============================================================ */
.villa-page { background: var(--color-bg); }

.villa-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  color: var(--color-text-light);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.villa-hero .bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg-warm);
}
.villa-hero .bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s var(--ease);
}
.villa-hero .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,44,46,0.25) 0%, transparent 35%, rgba(44,44,46,0.85) 100%);
}
.villa-hero .content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(50px, 7vw, 90px);
}
.breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.6);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span.sep { color: rgba(245,242,236,0.3); }
.breadcrumb span.cur { color: var(--color-accent); }

.villa-hero .v-num-big {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
}
.villa-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.villa-hero h1 .label {
  display: block;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-family: var(--font-body);
  letter-spacing: 0.4em;
  font-weight: 300;
  margin-bottom: 18px;
  color: rgba(245,242,236,0.7);
}
.villa-hero .v-special {
  margin-top: 24px;
  font-style: italic;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--color-accent);
  max-width: 36ch;
}

.villa-hero .v-icon-bg {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: clamp(280px, 36vw, 460px);
  height: clamp(280px, 36vw, 460px);
  background-color: rgba(244,243,239,0.20);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0.9;
}

.villa-stats {
  background: var(--color-bg-warm);
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}
.villa-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.villa-stats .stat {
  padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--color-border);
  text-align: center;
}
.villa-stats .stat:last-child { border-right: none; }
.villa-stats .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 300;
  line-height: 1;
}
.villa-stats .num .unit {
  font-size: 0.4em;
  letter-spacing: 0.1em;
  vertical-align: top;
  margin-left: 4px;
  color: var(--color-muted);
}
.villa-stats .lbl {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 14px;
}

.villa-section { padding: clamp(70px, 10vw, 130px) 0; }
.villa-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 60px);
  flex-wrap: wrap;
}
.villa-section .section-head .h2 { margin-top: 14px; }

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  border-top: 1px solid var(--color-border);
}
.features-list li {
  display: flex;
  align-items: start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
}
.features-list li .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  padding-top: 4px;
  min-width: 28px;
}

.floorplans {
  background: var(--color-bg-warm);
}
.fp-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.fp-tab {
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: relative;
  cursor: pointer;
  transition: color var(--t) var(--ease);
}
.fp-tab::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.fp-tab.active { color: var(--color-text); }
.fp-tab.active::after { transform: scaleX(1); }

.fp-stage {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.fp-plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  background: var(--color-bg);
}
.fp-plate.active { opacity: 1; }
.fp-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s var(--ease);
}

/* villa gallery (smaller) */
.villa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 16px;
}
.villa-gallery-grid .gallery-cell:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.villa-gallery-grid .gallery-cell:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.villa-gallery-grid .gallery-cell:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.villa-gallery-grid .gallery-cell:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.villa-gallery-grid .gallery-cell:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.villa-gallery-grid .gallery-cell:nth-child(6) { grid-column: span 6; grid-row: span 2; }

/* villa CTA strip */
.villa-cta-strip {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.villa-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,184,154,0.15), transparent 60%);
}
.villa-cta-strip .inner { position: relative; }
.villa-cta-strip .h2 { margin: 22px auto; max-width: 18ch; }

.villa-pager {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-light);
  margin-top: 80px;
  padding-top: 30px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.villa-pager a { display: inline-flex; align-items: center; gap: 12px; transition: color var(--t) var(--ease); }
.villa-pager a:hover { color: var(--color-accent); }
.villa-pager .label { color: rgba(245,242,236,0.45); }
.villa-pager .v-name-tiny { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.08em; text-transform: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 14, 11, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.open { display: flex; }
.lightbox .lb-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--color-bg-warm);
}
.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 36px; height: 36px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox .lb-close::before,
.lightbox .lb-close::after {
  content: '';
  position: absolute;
  width: 24px; height: 1px;
  background: currentColor;
}
.lightbox .lb-close::before { transform: rotate(45deg); }
.lightbox .lb-close::after  { transform: rotate(-45deg); }
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 14px 16px;
}
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   PAGE SWAP TRANSITION
   ============================================================ */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: pageFade 0.55s var(--ease);
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .villas-grid { grid-template-columns: repeat(2, 1fr); }
  .features-list { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .header-nav { display: none; }
  .header-contact { display: none; }
  .hamburger { display: block; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .project-grid,
  .materials-grid,
  .interiors-grid,
  .location-grid,
  .footer-top { grid-template-columns: 1fr; }
  .project-grid .left { padding-top: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { border-right: none; border-bottom: 1px solid var(--color-border-light); }
  .team-card:last-child { border-bottom: none; }
  .stats-row { grid-template-columns: 1fr; }
  .stats-row .stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stats-row .stat:last-child { border-bottom: none; }
  .villa-stats-grid { grid-template-columns: 1fr; }
  .villa-stats .stat { border-right: none; border-bottom: 1px solid var(--color-border); }
  .villa-stats .stat:last-child { border-bottom: none; }
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 80px;
  }
  .gc-1, .gc-2, .gc-3, .gc-4, .gc-5, .gc-6, .gc-7 {
    grid-column: span 6;
    grid-row: span 3;
  }
  .villa-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .villa-gallery-grid .gallery-cell { grid-column: span 2 !important; grid-row: span 2 !important; }
  .contact-form { grid-template-columns: 1fr; }
  .materials-imgs .swatch { margin-top: 0 !important; }
  .villas-head { flex-direction: column; align-items: start; }
}

@media (max-width: 560px) {
  .villas-grid { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero-title { font-size: 3rem; }
  .header-right .lang-switcher { padding: 6px 0; }
}

/* ---------- scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: clamp(20px, 3vw, 38px);
  bottom: clamp(20px, 3vw, 38px);
  z-index: 90;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
              visibility 0s var(--t) linear, background var(--t) var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
              background var(--t) var(--ease);
}
.scroll-top:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}
.scroll-top svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 560px) {
  .scroll-top { width: 44px; height: 44px; }
}
