:root {
  --bg: #fbf9f7;
  --ink: #1b1c1c;
  --ink-soft: #5f5e5a;
  --ink-faint: #8a8983;
  --teal: #0f6e56;
  --teal-dark: #085041;
  --teal-tint: #e1f5ee;
  --line: rgba(27, 28, 28, 0.12);
  --line-strong: rgba(27, 28, 28, 0.8);

  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-mono: "Space Mono", monospace;

  --container: 1480px;
  --pad-x: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.accent { color: var(--teal); font-style: italic; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-block { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(68px, 5vw, 84px);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-dot { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  font-family: var(--font-mono);
  font-size: 13px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-switch:hover { border-color: var(--ink); }

/* Hero */
.hero {
  min-height: clamp(560px, 88svh, 1200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(48px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 80px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--ink-faint); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 112px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14em;
}
.hero-title .accent { display: inline-block; }
.hero-sub {
  font-size: clamp(18px, 1.2vw, 21px);
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 24px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Stats */
.stats { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: clamp(40px, 4vw, 72px) 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-label { color: var(--ink-faint); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 44px);
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}

/* Sections */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Value props */
.props { padding-top: clamp(144px, 16vw, 300px); padding-bottom: clamp(144px, 16vw, 300px); }
.props .section-title { margin-bottom: 48px; }
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 72px);
}
.prop { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.prop-index { color: var(--teal); display: block; margin-bottom: 14px; }
.prop h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.prop p { color: var(--ink-soft); font-size: 15px; }

/* Villas */
.villas {
  background: var(--ink);
  color: var(--bg);
  padding-top: clamp(144px, 16vw, 300px);
  padding-bottom: clamp(144px, 16vw, 300px);
}
.villas-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.villas-note { color: var(--ink-faint); }
.villas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 56px);
}
.villa-card {
  text-decoration: none;
  display: block;
}
.villa-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2c2c2a;
}
.villa-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.villa-card:hover .villa-media img { transform: scale(1.04); }
.villa-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
}
.villa-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.villa-meta { color: var(--ink-faint); margin-top: 4px; }
.villa-link {
  font-size: 14px;
  font-weight: 500;
  color: #9fe1cb;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.villa-card:hover .villa-link { border-color: #9fe1cb; }

/* How it works */
.how { padding-top: clamp(144px, 16vw, 300px); padding-bottom: clamp(144px, 16vw, 300px); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(56px, 6vw, 120px);
}
.how-intro p { color: var(--ink-soft); margin-top: 16px; max-width: 26em; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3vw, 56px);
  list-style: none;
}
.how-step { border-left: 1px solid var(--line-strong); padding-left: 20px; }
.step-num { color: var(--teal); display: block; margin-bottom: 12px; }
.how-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-step p { color: var(--ink-soft); font-size: 15px; }

/* Contact */
.contact {
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(144px, 16vw, 300px);
  padding-bottom: clamp(144px, 16vw, 300px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 6vw, 120px);
}
.contact-intro p { color: var(--ink-soft); margin-top: 16px; max-width: 26em; }
.contact-list { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-list a:hover { color: var(--teal); }
.contact-list .mono {
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 40px;
  text-align: center;
}

.contact-form {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 22px;
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form .mono { color: var(--ink-faint); }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  border-radius: 0;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--teal);
}
.form-hint { color: var(--ink-faint); text-align: center; text-transform: none; letter-spacing: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-strong); padding: 48px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand p { color: var(--ink-soft); font-size: 14px; margin-top: 10px; max-width: 24em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--teal); }
.footer-legal { grid-column: 1 / -1; color: var(--ink-faint); margin-top: 12px; }

/* 404 */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
  padding: 60px var(--pad-x);
}
.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.04em;
}
.page-404 p { color: var(--ink-soft); max-width: 30em; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .props-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .villas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
  .stat:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .villas-head { flex-direction: column; align-items: flex-start; }
}

/* ===== Motion & hover polish ===== */

/* Hero entrance */
.hero { position: relative; overflow: visible; }
@supports not (height: 1svh) {
  .hero { min-height: clamp(560px, 86vh, 1100px); }
}
.hero > .eyebrow,
.hero > .hero-title,
.hero > .hero-sub,
.hero > .hero-cta {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero > .hero-title { animation-delay: 0.1s; }
.hero > .hero-sub { animation-delay: 0.22s; }
.hero > .hero-cta { animation-delay: 0.34s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Parallax watermark */
.hero-watermark {
  position: absolute;
  right: -0.1em;
  top: 50%;
  margin-top: -0.55em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(140px, 24vw, 320px);
  line-height: 1;
  color: var(--teal);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
  z-index: -1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }

/* Header scroll state */
.site-header { transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 1px 12px rgba(27, 28, 28, 0.07); }

/* Nav links: sliding underline */
.nav-links a,
.footer-nav a {
  position: relative;
}
.nav-links a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Buttons: lift + arrow motion */
.btn {
  transition: background-color 0.25s, color 0.25s, transform 0.15s,
              box-shadow 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(15, 110, 86, 0.28); }
.btn-ghost:hover { box-shadow: 0 6px 20px rgba(27, 28, 28, 0.14); }

/* Villa cards: photo bloom + link arrow slide */
.villa-media img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s;
  filter: saturate(0.85);
}
.villa-card:hover .villa-media img {
  transform: scale(1.045);
  filter: saturate(1.05);
}
.villa-name { transition: color 0.25s; }
.villa-card:hover .villa-name { color: #9fe1cb; }
.villa-link { transition: border-color 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.villa-card:hover .villa-link { transform: translateX(4px); }

/* How steps: left border grows */
.how-step { position: relative; }
.how-step::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--teal);
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.how-step:hover::before { height: 100%; }

/* Contact links: slide right */
.contact-list a { transition: color 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.contact-list a:hover { transform: translateX(6px); }
.contact-list .mono { transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.contact-list a:hover .mono {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Language switch: playful flip */
.lang-switch { transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.lang-switch:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Form focus: label tints */
.contact-form label:focus-within .mono { color: var(--teal); }

/* Reduced motion: kill everything decorative */
@media (prefers-reduced-motion: reduce) {
  .hero > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-watermark { transform: none !important; }
}

/* ===== Large screens (>=1800px) ===== */
@media (min-width: 1800px) {
  :root { --container: 1680px; }
  body { font-size: 17px; }
  .wordmark { font-size: 23px; }
  .nav-links a { font-size: 15px; }
  .btn { font-size: 16px; padding: 18px 34px; }
  .btn-sm { font-size: 15px; padding: 13px 24px; }
  .prop h3 { font-size: 22px; }
  .prop p, .how-step p { font-size: 17px; }
  .how-step h3 { font-size: 20px; }
  .villa-name { font-size: 28px; }
  .mono { font-size: 13px; }
  .contact-list a { font-size: 18px; }
}