/* ─── Ubuntu Villas — base styles ─────────────────────────────────────── */
:root {
  /* Editorial luxe — ivory + ink default */
  --bg: #f6f3ec;
  --bg-2: #efeae0;
  --ink: #1a1814;
  --ink-2: #4a463d;
  --muted: #8a8478;
  --line: rgba(26, 24, 20, 0.14);
  --line-2: rgba(26, 24, 20, 0.08);
  --accent: #2f3a2c; /* deep jungle */
  --accent-2: #b8915e; /* warm brass */
  --paper: #fbf9f3;

  /* Typography — modern luxury sans default */
  --font-display: "Inter Tight", "Söhne", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --tracking-tight: -0.02em;
  --tracking-eyebrow: 0.18em;

  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ─── Type scale ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 10px 2px;
  opacity: 0.5;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 0.98;
  font-size: clamp(44px, 7vw, 104px);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
  font-size: clamp(34px, 4.4vw, 64px);
}
.h-card {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-size: clamp(26px, 2.4vw, 38px);
}
.lede {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
p { margin: 0 0 1em; }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 160px) 0; }
.section-tight { padding: clamp(56px, 7vw, 100px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ─── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .35s ease, color .35s ease, border .35s ease;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
  display: flex; align-items: baseline; gap: 10px;
}
.nav-logo .mark {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: currentColor;
  position: relative; top: 4px;
}
.nav-logo small {
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a { padding: 6px 0; opacity: 0.85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  transition: all .2s;
}
.nav-cta:hover { background: currentColor; }
.nav-cta:hover span { color: var(--bg); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: all .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  color: var(--paper);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arr {
  width: 16px; height: 1px; background: currentColor;
  position: relative;
}
.btn .arr::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);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--paper);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.55) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='.45'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(56px, 8vh, 100px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: clamp(54px, 8.5vw, 132px);
  max-width: 14ch;
  margin: 0;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
}
.hero-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 32px;
  gap: 32px; flex-wrap: wrap;
}
.hero-meta-text {
  font-size: 14px;
  max-width: 38ch;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.hero-bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-bottom-bar .scroll-hint { display: flex; align-items: center; gap: 8px; }
.hero-bottom-bar .scroll-hint::before {
  content: ""; width: 32px; height: 1px; background: currentColor;
}

/* ─── Index labels ───────────────────────────────────────────────────── */
.index-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.index-label .num {
  font-variant-numeric: tabular-nums;
}
.index-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
  max-width: 260px;
}

/* ─── Philosophy ─────────────────────────────────────────────────────── */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}
.philosophy-quote em {
  font-style: italic;
  color: var(--accent);
}
.philosophy-body p { color: var(--ink-2); margin-bottom: 1.2em; }
.philosophy-body p:first-child { font-size: 18px; color: var(--ink); }
@media (max-width: 800px) {
  .philosophy { grid-template-columns: 1fr; }
}

/* ─── Villa cards (home) ─────────────────────────────────────────────── */
.villas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px clamp(20px, 3vw, 40px);
  row-gap: clamp(64px, 8vw, 120px);
}
.villa-card {
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .4s ease;
}
.villa-card:hover { transform: translateY(-4px); }
.villa-card:nth-child(1) { grid-column: 1 / span 7; }
.villa-card:nth-child(2) { grid-column: 8 / span 5; margin-top: clamp(60px, 10vw, 140px); }
.villa-card:nth-child(3) { grid-column: 3 / span 7; }
@media (max-width: 900px) {
  .villa-card,
  .villa-card:nth-child(1),
  .villa-card:nth-child(2),
  .villa-card:nth-child(3) { grid-column: 1 / -1; margin-top: 0; }
}
.villa-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
}
.villa-card:nth-child(2) .villa-img { aspect-ratio: 3/4; }
.villa-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.villa-card:hover .villa-img img { transform: scale(1.04); }
.villa-img-meta {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.villa-card-body {
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.villa-card-meta {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.villa-card-meta .num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.villa-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 4px 0 0;
}
.villa-card-tag {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 38ch;
  margin-top: 4px;
}
.villa-card-link {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
}
.villa-card-link::after {
  content: ""; width: 24px; height: 1px;
  background: currentColor;
  transition: width .3s;
}
.villa-card:hover .villa-card-link::after { width: 36px; }

/* ─── Experience ─────────────────────────────────────────────────────── */
.experience {
  background: var(--paper);
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.experience-grid > * {
  padding: 32px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 200px;
  display: flex; flex-direction: column; gap: 14px;
}
.experience-grid > *:nth-child(3n) { border-right: 0; }
@media (max-width: 760px) {
  .experience-grid { grid-template-columns: 1fr; }
  .experience-grid > * { border-right: 0; }
}
.experience-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.experience-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.experience-note {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ─── Location ───────────────────────────────────────────────────────── */
.location {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .location { grid-template-columns: 1fr; }
}
.map {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #d8dfd1 0%, #c5d0c0 100%);
  position: relative;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute;
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translate(-50%, -100%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.map-pin .pin-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  margin-bottom: 6px;
}
.map-pin .pin-label {
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* ─── Gallery ────────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery-item {
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-item:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery-item:nth-child(3) { grid-column: span 4; aspect-ratio: 1/1; }
.gallery-item:nth-child(4) { grid-column: span 4; aspect-ratio: 1/1; }
.gallery-item:nth-child(5) { grid-column: span 4; aspect-ratio: 1/1; }
.gallery-item:nth-child(6) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery-item:nth-child(7) { grid-column: span 7; aspect-ratio: 4/3; }
@media (max-width: 760px) {
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ─── Footer + Contact ───────────────────────────────────────────────── */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) 0 32px;
}
.contact .h-section { color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.6);
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--paper);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(251, 249, 243, 0.3);
  padding: 10px 0;
  outline: none;
  transition: border .2s;
  font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--paper);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(251, 249, 243, 0.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23fbf9f3' stroke-width='1' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field option { color: var(--ink); }
textarea { resize: vertical; min-height: 60px; }

.btn-submit {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-submit:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.contact-aside {
  display: flex; flex-direction: column; gap: 32px;
}
.contact-aside-block {
  border-top: 1px solid rgba(251, 249, 243, 0.18);
  padding-top: 16px;
}
.contact-aside-block .label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(251, 249, 243, 0.55);
  margin-bottom: 8px;
}
.contact-aside-block .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.contact-aside-block .links {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
}
.contact-aside-block .links a:hover { color: rgba(251,249,243,0.65); }

.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(60px, 8vw, 120px);
  padding-top: 24px;
  border-top: 1px solid rgba(251, 249, 243, 0.18);
  font-size: 12px;
  color: rgba(251, 249, 243, 0.55);
  letter-spacing: 0.02em;
}

/* ─── Villa detail ───────────────────────────────────────────────────── */
.villa-hero {
  position: relative;
  height: 88vh; min-height: 600px;
  color: var(--paper);
  overflow: hidden;
}
.villa-hero .hero-img { transform: none; }
.villa-hero .hero-content {
  justify-content: flex-end;
}
.villa-spec-bar {
  display: flex; flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.villa-spec-bar .spec { display: flex; flex-direction: column; gap: 4px; }
.villa-spec-bar .spec-label { color: var(--muted); }
.villa-spec-bar .spec-value { color: var(--ink); font-size: 14px; letter-spacing: 0.04em; }

.overview {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 800px) {
  .overview { grid-template-columns: 1fr; }
}
.overview-side {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.overview p {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.overview p:first-of-type { color: var(--ink); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.4; }

/* Highlights grid */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.highlights > * {
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 160px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-display);
}
.highlights > *:nth-child(4n) { border-right: 0; }
@media (max-width: 900px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlights > *:nth-child(4n) { border-right: 1px solid var(--line); }
  .highlights > *:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px) {
  .highlights { grid-template-columns: 1fr; }
  .highlights > * { border-right: 0; }
}
.highlight-num {
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.highlight-text {
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: auto;
  line-height: 1.3;
}

/* Rooms table */
.rooms-table {
  border-top: 1px solid var(--line);
}
.rooms-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 1.4fr 1.6fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.rooms-row .num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--muted);
}
.rooms-row .name {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.rooms-row .cell-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.rooms-row .cell-value { font-size: 14px; color: var(--ink); }
.rooms-row .note { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .rooms-row { grid-template-columns: 1fr; gap: 6px; }
  .rooms-row .num { display: none; }
  .rooms-row .name { font-size: 24px; margin-bottom: 8px; }
}

/* Photo reel */
.reel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 12px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}
.reel::-webkit-scrollbar { height: 6px; }
.reel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.reel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(280px, 40vw, 560px);
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  position: relative;
}
.reel-item:nth-child(odd) { aspect-ratio: 4/3; width: clamp(320px, 50vw, 680px); }
.reel-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.reel-item:hover img { transform: scale(1.04); }
.reel-item .reel-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

/* Photo gallery (villa detail) */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.detail-gallery .gi {
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  position: relative;
}
.detail-gallery .gi img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.detail-gallery .gi:hover img { transform: scale(1.04); }

/* Other villas footer */
.other-villas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 760px) { .other-villas { grid-template-columns: 1fr; } }
.other-villa {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}
.other-villa img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.other-villa:hover img { transform: scale(1.05); }
.other-villa-content {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  color: var(--paper);
}
.other-villa-content .num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.8;
}
.other-villa-content .name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.other-villa-content .tag {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.85;
  max-width: 38ch;
}

/* ─── Lightbox ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(10, 9, 7, 0.95);
  display: flex; align-items: center; justify-content: center;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-cap {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  display: flex; gap: 16px;
  background: rgba(0,0,0,0.4); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.lightbox-cap .sep { opacity: 0.4; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* ─── Filter pills ───────────────────────────────────────────────────── */
.pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.pill {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  transition: all .2s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── Reveal on scroll ───────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ─── Utility ────────────────────────────────────────────────────────── */
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.col-gap-tight { display: flex; flex-direction: column; gap: 14px; }
.success-msg {
  padding: 16px 0;
  color: rgba(251, 249, 243, 0.85);
  font-size: 14px;
  border-top: 1px solid rgba(251, 249, 243, 0.18);
}

/* ─── Theme variants (driven by Tweaks) ──────────────────────────────── */
body[data-palette="white"] {
  --bg: #ffffff; --bg-2: #f4f4f2; --paper: #ffffff;
  --ink: #111111; --ink-2: #4a4a4a; --muted: #8e8e8e;
  --accent: #1a1a1a; --accent-2: #a88a5e;
  --line: rgba(17, 17, 17, 0.12); --line-2: rgba(17, 17, 17, 0.06);
}
body[data-palette="ivory"] {
  --bg: #f6f3ec; --bg-2: #efeae0; --paper: #fbf9f3;
  --ink: #1a1814; --ink-2: #4a463d; --muted: #8a8478;
  --accent: #2f3a2c; --accent-2: #b8915e;
  --line: rgba(26, 24, 20, 0.14); --line-2: rgba(26, 24, 20, 0.08);
}
body[data-palette="jungle"] {
  --bg: #f0eee4; --bg-2: #e3e0d3; --paper: #f7f4ea;
  --ink: #1c2418; --ink-2: #3e4a38; --muted: #7a8473;
  --accent: #4a5d3c; --accent-2: #c8a16b;
  --line: rgba(28, 36, 24, 0.16); --line-2: rgba(28, 36, 24, 0.08);
}
body[data-palette="midnight"] {
  --bg: #14140f; --bg-2: #1c1c16; --paper: #f0ece1;
  --ink: #f0ece1; --ink-2: #c5bfae; --muted: #807a6a;
  --accent: #c8a16b; --accent-2: #c8a16b;
  --line: rgba(240, 236, 225, 0.14); --line-2: rgba(240, 236, 225, 0.07);
}
body[data-palette="sand"] {
  --bg: #ede5d6; --bg-2: #ddd3bf; --paper: #f4ecd9;
  --ink: #2b2419; --ink-2: #58503f; --muted: #8a8273;
  --accent: #8c5a3a; --accent-2: #b88454;
  --line: rgba(43, 36, 25, 0.16); --line-2: rgba(43, 36, 25, 0.08);
}

/* Typography variants */
body[data-typo="sans"] {
  --font-display: "Inter Tight", "Söhne", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}
body[data-typo="serif"] {
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}
body[data-typo="classic"] {
  --font-display: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
}
body[data-typo="display"] {
  --font-display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
