/* SEGARA 8 Villa Retreat */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #F3F5F2;
  --paper-2: #E6ECE8;
  --ink: #102326;
  --stone: #5F5A50;
  --sea: #12343B;
  --sea-2: #1A444C;
  --gold: #B98E2F;
  --gold-ink: #7E5F18;
  --pool: #8CCFCB;
  --leaf: #2F5B50;
  --line: rgba(16, 35, 38, 0.16);
  --line-light: rgba(243, 245, 242, 0.22);

  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: 1.1875rem; line-height: 1.6; }
.fine { font-size: 0.875rem; color: var(--stone); }

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

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--stone); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 500 0.9375rem/1.2 var(--body); letter-spacing: 0.01em;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #CBA142; }
.btn-ghost-light { color: var(--paper); border-color: rgba(243, 245, 242, 0.6); }
.btn-ghost-light:hover { background: rgba(243, 245, 242, 0.12); }

.link { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; font-weight: 500; }
.link:hover { color: var(--ink); }
.link-light { color: var(--pool); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link-light:hover { color: var(--paper); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.site-header.is-solid { background: rgba(243, 245, 242, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.wordmark { font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.22em; text-decoration: none; white-space: nowrap; margin: 0; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-size: 0.9375rem; text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid transparent; }
.nav ul a:hover { border-bottom-color: currentColor; }
.nav-cta { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: none; border: 0; color: inherit; font: 500 0.9375rem var(--body);
    padding: 0.75rem 0; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.2s; }
  .menu-toggle-bars::before { content: ""; position: absolute; top: 7px; }
  .menu-toggle-bars { top: -3px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 1.5rem;
    background: var(--paper); color: var(--ink); padding: 1.5rem var(--gutter) 2rem;
    box-shadow: 0 1px 0 var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0.25rem; }
  .nav ul a { font-family: var(--display); font-size: 1.5rem; display: block; }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); background: var(--sea); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 50%; animation: hero-settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 34, 0.45) 0%, rgba(10, 30, 34, 0) 26%, rgba(10, 30, 34, 0.12) 46%, rgba(10, 30, 34, 0.8) 100%); }
.hero-copy { position: relative; padding-bottom: clamp(64px, 10vh, 120px); animation: hero-copy 1.4s 0.5s ease-out both; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.5rem); line-height: 1.04; max-width: 15ch; margin-bottom: 0.45em; }
.hero-place { font-size: 1rem; letter-spacing: 0.02em; margin-bottom: 1.25rem; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note { position: absolute; right: 0; bottom: 1rem; text-align: right; font-size: 0.75rem; opacity: 0.7; margin: 0; max-width: none; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes hero-copy { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero-copy { animation: none; } }

/* Retreat */
.retreat-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--stone); font-size: 0.9375rem; }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.3; }

/* Site plan */
.plan { background: var(--sea); color: var(--paper); }
.plan-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.plan-head h2, .plan-head p { margin: 0; }
.plan-head p { color: rgba(243, 245, 242, 0.78); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.plan-figure { margin: 0; }
.siteplan { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.sp-road { fill: rgba(243, 245, 242, 0.6); font: 13px var(--body); letter-spacing: 0.08em; }
.sp-road-line { stroke: rgba(243, 245, 242, 0.35); stroke-width: 1; stroke-dasharray: 6 6; fill: none; }
.sp-plot { fill: rgba(243, 245, 242, 0.035); stroke: rgba(243, 245, 242, 0.45); stroke-width: 1.25; }
.sp-path { fill: rgba(243, 245, 242, 0.08); }
.sp-path-label { fill: rgba(243, 245, 242, 0.5); }
.sp-garden { fill: var(--leaf); }
.sp-ground { fill: rgba(243, 245, 242, 0.1); stroke: rgba(243, 245, 242, 0.25); stroke-dasharray: 3 3; }
.sp-house { fill: #DCE3DE; }
.sp-bamboo { fill: #D6BE84; }
.sp-pool { fill: var(--pool); }
.sp-hit { stroke: transparent; stroke-width: 3; }
.sp-hub .sp-hit { fill: rgba(243, 245, 242, 0.04); }
.sp-num { font: 26px var(--display); fill: var(--ink); pointer-events: none; }
.sp-small { font: 13px var(--body); fill: rgba(243, 245, 242, 0.85); pointer-events: none; }
.sp-small.sp-dark { fill: var(--ink); }
.sp-north path { fill: rgba(243, 245, 242, 0.7); }
.sp-north text { fill: rgba(243, 245, 242, 0.7); font: 12px var(--body); }
.sp-unit { cursor: pointer; outline: none; }
.sp-unit .sp-hit, .sp-unit .sp-house { transition: fill 0.2s, stroke 0.2s; }
.sp-unit:hover .sp-hit, .sp-unit:focus-visible .sp-hit { stroke: rgba(243, 245, 242, 0.75); }
.sp-unit.is-active .sp-hit { stroke: var(--gold); }
.sp-unit.is-active .sp-house { fill: var(--paper); }
.sp-unit:focus-visible .sp-hit { stroke: var(--gold); stroke-dasharray: 5 4; }

.plan-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: 0.875rem; color: rgba(243, 245, 242, 0.75); }
.key { display: inline-flex; align-items: center; gap: 0.5rem; }
.key i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.key-house { background: #DCE3DE; }
.key-pool { background: var(--pool); }
.key-garden { background: var(--leaf); }

.plan-panel { position: sticky; top: 96px; }
.plan-panel-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; background: var(--sea-2); }
.plan-panel h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 0.15em; }
.plan-panel-type { color: var(--pool); margin-bottom: 1.25rem; }
.plan-panel-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line-light); }
.plan-panel-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line-light); }
.plan-drawings { margin: 3rem 0 0; color: rgba(243, 245, 242, 0.78); max-width: none; }

/* Villas */
.villas > .wrap > h2 { max-width: 18ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.villa { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.villa + .villa { margin-top: clamp(4.5rem, 9vw, 8rem); }
.villa-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.villa-flip .villa-media { order: 2; }
.villa-hero { display: block; overflow: hidden; border-radius: var(--radius); }
.villa-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.villa-hero:hover img { transform: scale(1.02); }
.thumbs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem; }
.thumbs a { display: block; border-radius: 3px; overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0.92; transition: opacity 0.2s; }
.thumbs a:hover img { opacity: 1; }
.thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.thumbs li:nth-child(n+6) { display: none; }
.thumbs li:nth-child(5):not(:last-child) a { position: relative; }
.thumbs li:nth-child(5):not(:last-child) a::after { content: attr(data-more); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(16, 35, 38, 0.55); color: var(--paper); font-weight: 500; font-size: 0.9375rem; }
.villa-text { padding-top: 0.5rem; }
.villa-text h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.specs { margin: 1.75rem 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--stone); font-size: 0.9375rem; }
.specs dd { margin: 0; }
.plan-links { margin: 0; }

/* Shared spaces */
.shared { background: var(--paper-2); }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 0.75rem; }
.mosaic li { position: relative; overflow: hidden; border-radius: var(--radius); }
.mosaic a, .mosaic img { display: block; width: 100%; height: 100%; }
.mosaic img { object-fit: cover; transition: transform 0.6s ease; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic span { position: absolute; left: 0.9rem; bottom: 0.75rem; color: var(--paper); font-size: 0.875rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); pointer-events: none; }
.m-a { grid-column: 1 / 5; grid-row: 1 / 4; }
.m-b { grid-column: 5 / 7; grid-row: 1 / 3; }
.m-c { grid-column: 5 / 7; grid-row: 3 / 5; }
.m-d { grid-column: 1 / 3; grid-row: 4 / 6; }
.m-e { grid-column: 3 / 5; grid-row: 4 / 6; }
.m-f { grid-column: 5 / 7; grid-row: 5 / 7; }
.m-g { grid-column: 1 / 5; grid-row: 6 / 7; }

/* Materials */
.materials-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); margin-bottom: 0.9rem; }
.swatches strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.swatches span { display: block; font-size: 0.875rem; color: var(--stone); line-height: 1.45; }

/* Lombok */
.lombok { border-top: 1px solid var(--line); }
.lombok-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.journeys { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2rem 0 0.75rem; }
.journeys dt { font-family: var(--display); font-size: 2.25rem; line-height: 1.1; }
.journeys dd { margin: 0; color: var(--stone); }
.map { margin: 0; }
.map img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 42% 50%; border-radius: var(--radius); background: var(--paper-2); display: block; }
.map figcaption { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; }
.map .fine { margin: 0; }

.island { margin-top: clamp(4rem, 8vw, 6.5rem); }
.island-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); }
.island-list li { padding-top: 1.25rem; }
.island-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-bottom: 0.35rem; }
.island-list span { font-size: 0.9375rem; color: var(--stone); }

.market { margin-top: clamp(4rem, 8vw, 6.5rem); }
.market-list { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.market-list li { font-size: 0.9375rem; color: var(--stone); border-top: 1px solid var(--line); padding-top: 1.25rem; }
.market-list strong { display: block; font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 1.875rem; line-height: 1.15; margin-bottom: 0.3rem; }

/* Investors */
.investors { background: var(--sea); color: var(--paper); }
.investors .section-head p { color: rgba(243, 245, 242, 0.78); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-light); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 2.75rem; line-height: 1; color: var(--gold); margin-bottom: 1rem; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: rgba(243, 245, 242, 0.8); font-size: 0.9875rem; }
.investor-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.ticks li { padding: 0.85rem 0 0.85rem 1.75rem; border-top: 1px solid var(--line-light); position: relative; color: rgba(243, 245, 242, 0.82); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--pool); }
.ticks strong { color: var(--paper); font-weight: 600; }
.pack-cta { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--sea-2); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.pack-cta p { margin: 0; color: rgba(243, 245, 242, 0.82); }

/* Delivery */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1.25rem; }
.timeline li { position: relative; padding-top: 2rem; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: -1.25rem; height: 1px; background: var(--line); }
.timeline li:last-child::before { right: 0; }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--stone); }
.timeline li.is-done::after { background: var(--leaf); border-color: var(--leaf); }
.timeline li.is-now::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(185, 142, 47, 0.2); }
.tl-status { display: block; font-size: 0.875rem; color: var(--stone); margin-bottom: 0.5rem; }
.is-now .tl-status { color: var(--gold-ink); font-weight: 600; }
.timeline h3 { font-size: 1.25rem; }
.timeline p { font-size: 0.9375rem; color: var(--stone); }

/* Team */
.team { background: var(--paper-2); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 2.5rem; }
.person { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.role { color: var(--gold-ink); font-weight: 500; margin-bottom: 1rem; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.builder-team, .record { list-style: none; margin: 0; padding: 0; }
.builder-team li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--stone); }
.builder-team strong { display: block; color: var(--ink); font-weight: 600; }
.record { columns: 2; column-gap: 2rem; margin-bottom: 1rem; }
.record li { padding: 0.3rem 0; break-inside: avoid; }
.community { margin: clamp(3rem, 6vw, 4.5rem) 0 0; font-family: var(--display); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.35; max-width: 34ch; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-weight: 500; font-size: 1.0625rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--stone); padding-bottom: 1.25rem; margin: 0; }

/* Enquire */
.enquire { background: var(--sea); color: var(--paper); }
.enquire .fine { color: rgba(243, 245, 242, 0.7); }
.enquire .link { color: var(--pool); }
.enquire .link:hover { color: var(--paper); }
.enquire-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.optional { font-weight: 400; color: rgba(243, 245, 242, 0.65); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: 1rem/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius);
  padding: 0.8rem 0.9rem; min-height: 48px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form textarea { resize: vertical; min-height: 7rem; }
.form [aria-invalid="true"] { border-color: #E8A38C; box-shadow: 0 0 0 2px rgba(232, 163, 140, 0.35); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; color: rgba(243, 245, 242, 0.85); }
.check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--gold); }
.check input[aria-invalid="true"] { outline: 2px solid #E8A38C; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { margin: 0; font-size: 0.9375rem; }
.form-status.is-error { color: #F2B9A6; }
.form-status.is-ok { color: var(--pool); }

/* Social */
.social { padding: clamp(56px, 7vw, 88px) 0; }
.social-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.social h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.social p { margin: 0; color: var(--stone); }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.3rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.social-links a:hover { background: var(--ink); color: var(--paper); }
.social-links a.is-soon { border-color: var(--line); color: var(--stone); pointer-events: none; }
.social-links a.is-soon::after { content: "soon"; font-size: 0.8125rem; font-weight: 400; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(243, 245, 242, 0.82); padding: clamp(56px, 7vw, 88px) 0 2rem; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .wordmark { color: var(--paper); font-size: 1.5rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--paper); }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address strong { display: block; color: var(--paper); font-weight: 600; margin-bottom: 0.35rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; background: linear-gradient(var(--line-light), var(--line-light)) no-repeat center top / calc(100% - var(--gutter) * 2) 1px; font-size: 0.8125rem; color: rgba(243, 245, 242, 0.62); }
.footer-legal p { max-width: 110ch; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 24, 27, 0.96); color: var(--paper); }
.lightbox::backdrop { background: rgba(10, 24, 27, 0.8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 64px clamp(16px, 7vw, 96px) 56px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 2px; background: #fff; }
.lightbox figcaption { font-size: 0.9375rem; color: rgba(243, 245, 242, 0.8); text-align: center; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(243, 245, 242, 0.4); color: var(--paper); border-radius: 999px; font: 500 0.875rem var(--body); padding: 0.6rem 1rem; min-height: 44px; cursor: pointer; }
.lb-btn:hover { background: rgba(243, 245, 242, 0.12); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .island-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .timeline li:nth-child(3n)::before { right: 0; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section-head, .plan-head, .retreat-grid, .plan-grid, .villa, .materials-grid, .lombok-grid,
  .investor-split, .team-grid, .builder, .faq-grid, .enquire-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head, .plan-head { gap: 1rem; }
  .villa-flip .villa-media { order: 0; }
  .plan-panel { position: static; }
  .siteplan { max-width: 440px; }
  .steps, .market-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; }
  .mosaic li { grid-column: auto; grid-row: auto; }
  .mosaic .m-a, .mosaic .m-g { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .lede { font-size: 1.0625rem; }
  .steps, .market-list, .island-list, .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li::before { top: 6px; right: 0; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .record { columns: 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-note { left: 0; right: auto; text-align: left; }
  .hero-copy { padding-bottom: 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .lightbox figure { padding-bottom: 72px; }
}

/* Sub-pages: privacy notice and 404 */
.subpage .site-header { position: sticky; }
.page { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.prose { max-width: calc(46rem + var(--gutter) * 2); }
.prose h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-top: 2.25em; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose .btn { margin-top: 1.5rem; }
.page-missing { min-height: 70vh; display: flex; align-items: center; }
.subpage .site-footer { padding-top: 2.5rem; }
.subpage .footer-legal { margin-top: 0; padding-top: 0; background: none; }
@media (max-width: 600px) { .subpage .nav-cta { display: none; } }
