/* ==========================================================================
   Eldeco Terra Grande — landing page
   Palette: pine night, deodar, moss, parchment, sun amber, ink
   Type: Marcellus (display, inscriptional serif) + Hanken Grotesk (text)
   ========================================================================== */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #12231c;
  --deodar: #23402f;
  --moss: #6e8b3d;
  --parchment: #f3edd9;
  --parchment-deep: #e9e1c6;
  --amber: #e2a62e;
  --amber-deep: #c98d17;
  --ink: #1c2721;
  --ink-soft: #4a584f;
  --line: rgba(35, 64, 47, 0.18);
  --on-dark: #f3edd9;
  --on-dark-soft: rgba(243, 237, 217, 0.74);

  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  color: var(--deodar);
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h3 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--pine);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

/* Below-the-fold sections are only laid out when they come near the viewport.
   `auto` remembers each section's real height once it has been rendered. */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.fine-print {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--pine);
}

.btn-amber:hover {
  background: #edb84a;
}

.btn-ghost {
  border-color: rgba(243, 237, 217, 0.6);
  color: var(--on-dark);
}

.btn-ghost:hover {
  background: rgba(243, 237, 217, 0.12);
  border-color: var(--on-dark);
}

.btn-line {
  border-color: var(--deodar);
  color: var(--deodar);
}

.btn-line:hover {
  background: var(--deodar);
  color: var(--parchment);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  background: linear-gradient(to bottom, rgba(18, 35, 28, 0.55), rgba(18, 35, 28, 0));
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.6s var(--ease-out);
}

.site-header.is-solid {
  background: var(--deodar);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand img {
  width: 132px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
}

.nav-list a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(120px, 14vw, 190px);
  color: var(--on-dark);
  background: var(--pine);
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-media img {
  object-fit: cover;
  object-position: 55% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(18, 35, 28, 0.9) 0%, rgba(18, 35, 28, 0.62) 42%, rgba(18, 35, 28, 0.2) 75%),
    linear-gradient(to top, rgba(18, 35, 28, 0.75), rgba(18, 35, 28, 0) 45%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - var(--header-h) - 230px);
}

.hero-copy {
  max-width: 660px;
}

.hero-place {
  margin-bottom: 22px;
  font-size: 16px;
  color: var(--on-dark-soft);
}

.hero h1 {
  color: var(--on-dark);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--parchment-deep);
}

.hero-lead {
  max-width: 520px;
  margin: 26px 0 34px;
  font-size: 18px;
  color: var(--on-dark-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(96px, 11vw, 150px);
  margin: 0;
  font-size: 12px;
  color: var(--on-dark-soft);
}


/* Ridgeline dividers: three hill silhouettes fading like valley haze */

.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 10vw, 150px);
  pointer-events: none;
}

.ridge-far {
  fill: var(--moss);
  opacity: 0.55;
}

.ridge-mid {
  fill: var(--deodar);
  opacity: 0.9;
}

.ridge-near {
  fill: var(--parchment);
}

.ridge-top {
  top: -1px;
  bottom: auto;
  transform: scaleY(-1);
}

/* ---------- Enquiry forms ---------- */

.enquiry-card {
  position: relative;
  padding: 32px 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--parchment);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.enquiry-card h2 {
  font-size: 28px;
  line-height: 1.15;
}

.enquiry-card > p {
  margin: 10px 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.field {
  position: relative;
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--deodar);
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbf8ee;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder {
  color: #8a9188;
}

.field input:focus {
  outline: none;
  border-color: var(--deodar);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(226, 166, 46, 0.45);
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #a1361f;
}

.was-validated .field input:invalid {
  border-color: #a1361f;
}

.was-validated .field input:invalid + .field-error {
  display: block;
}

.form-consent {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-consent a {
  color: var(--deodar);
}

.form-response {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #a1361f;
}

.form-response:empty {
  display: none;
}

/* ---------- Facts ---------- */

.facts {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -4vw, -24px);
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-list div {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}

.facts-list div:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts-list dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.facts-list dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  color: var(--deodar);
}

/* ---------- Life at the estate ---------- */

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.life-frame {
  border-radius: 200px 200px var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.life-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.life-item h3 {
  margin-top: 18px;
  font-size: 22px;
}

.life-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.life-item:nth-child(even) {
  margin-top: 56px;
}

/* ---------- Story ---------- */

.story {
  background: var(--parchment-deep);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--radius-lg);
}

.story-copy p {
  color: var(--ink-soft);
}

.story-copy h2 {
  margin-bottom: 26px;
}

.record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
  margin: 34px 0 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.record dt {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  color: var(--deodar);
}

.record dd {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Villas ---------- */

.villa-list {
  border-top: 1px solid var(--line);
}

.villa {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.villa-media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.villa-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.villa h3 {
  font-size: clamp(28px, 3vw, 38px);
}

.villa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-top: 14px;
}

.villa-meta dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.villa-meta dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.villa-note {
  margin-top: 22px;
}

/* ---------- Walkthrough ---------- */

.walkthrough {
  position: relative;
  background: var(--pine);
  color: var(--on-dark);
}

.walkthrough h2 {
  color: var(--on-dark);
}

.walkthrough .section-head p {
  color: var(--on-dark-soft);
}

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}

.film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  background: linear-gradient(to top, rgba(18, 35, 28, 0.55), rgba(18, 35, 28, 0.1));
  color: var(--on-dark);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.film-play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--pine);
  transition: transform 0.25s ease;
}

.film-play:hover .film-play-icon {
  transform: scale(1.06);
}

.film.is-playing .film-play {
  display: none;
}

/* ---------- Floor plans ---------- */

.plans-tabs {
  position: relative;
  display: inline-flex;
  gap: 6px;
  margin-bottom: 34px;
  padding: 6px;
  border-radius: 999px;
  background: var(--parchment-deep);
}

/* The dark pill that slides under the selected tab (positioned by JS) */
.plans-tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--deodar);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}

.plans-tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--deodar);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.4s ease;
}

.plans-tab[aria-selected="true"] {
  color: var(--parchment);
}

.no-indicator .plans-tab[aria-selected="true"] {
  background: var(--deodar);
}

.plan-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.plan-panel[hidden] {
  display: none;
}

.plan-panel.is-entering {
  animation: panel-in 0.7s var(--ease-out) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.plan-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--deodar);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.plan-chip:hover {
  border-color: var(--deodar);
}

.plan-chip[aria-pressed="true"] {
  background: var(--deodar);
  border-color: var(--deodar);
  color: var(--parchment);
}

.plan-sheet {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(18, 35, 28, 0.6);
  cursor: zoom-in;
}

.plan-sheet img {
  width: 100%;
  transition: opacity 0.35s ease, transform 0.8s var(--ease-out);
}

.plan-sheet.is-swapping img {
  opacity: 0;
}

.plan-sheet:hover img {
  transform: scale(1.025);
}

.plan-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--deodar);
  color: var(--parchment);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}

.plan-sheet:hover .plan-zoom-hint {
  transform: translateY(-3px);
  background: var(--pine);
}

.plan-copy h3 {
  font-size: clamp(30px, 3vw, 40px);
}

.plan-specs {
  margin-top: 18px;
}

.js .plan-specs[hidden] {
  display: none;
}

.plan-specs.is-entering {
  animation: panel-in 0.5s var(--ease-out) both;
}

.plan-includes {
  margin: 0 0 6px;
  color: var(--ink-soft);
}

.plan-includes strong {
  color: var(--ink);
}

.plan-specs dl {
  margin: 0;
}

.plan-specs dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.plan-specs dt {
  color: var(--ink-soft);
}

.plan-specs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.plan-specs dd span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
}

.plan-price {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 26px;
  font-size: 18px;
}

.plans-note {
  margin-top: 36px;
  max-width: 720px;
}

/* Full-size plan viewer */

.plan-viewer {
  width: min(1100px, calc(100vw - 24px));
  height: calc(100svh - 24px);
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--parchment);
  overflow: hidden;
}

.plan-viewer[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.45s var(--ease-out) both;
}

.plan-viewer::backdrop {
  background: rgba(18, 35, 28, 0.82);
  backdrop-filter: blur(4px);
}

.plan-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 24px;
  border-bottom: 1px solid var(--line);
}

.plan-viewer-bar h2 {
  font-size: 22px;
}

.plan-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-viewer-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.plan-viewer .dialog-close {
  position: static;
}

.plan-viewer-canvas {
  flex: 1;
  overflow: auto;
  background: #fff;
  overscroll-behavior: contain;
}

.plan-viewer-canvas img {
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  object-fit: contain;
  cursor: zoom-in;
}

.plan-viewer.is-zoomed .plan-viewer-canvas img {
  width: 2400px;
  height: auto;
  cursor: grab;
}

/* ---------- Amenities ---------- */

.amenities {
  background: var(--parchment-deep);
}

.club-feature {
  position: relative;
  margin: 0;
  margin-bottom: clamp(40px, 5vw, 72px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.club-feature img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 62%;
}

.club-feature figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 32px 26px;
  background: linear-gradient(to top, rgba(18, 35, 28, 0.85), rgba(18, 35, 28, 0));
  color: var(--on-dark);
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
}

.amenity-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
}

.amenity-columns h3 {
  margin-bottom: 18px;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.amenity-list img {
  width: 64px;
  height: 48px;
  flex: none;
  object-fit: cover;
  border-radius: 8px;
}

.amenity-list .leaf {
  width: 64px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(110, 139, 61, 0.16);
  color: var(--deodar);
}

/* ---------- Gallery ---------- */

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.gallery-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--deodar);
  border-radius: 50%;
  background: transparent;
  color: var(--deodar);
  cursor: pointer;
}

.gallery-btn:hover {
  background: var(--deodar);
  color: var(--parchment);
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 560px);
  gap: 20px;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.gallery-track figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Location ---------- */

.location {
  background: var(--parchment-deep);
}

.drive-table thead th:last-child {
  text-align: right;
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.drive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.drive-table caption {
  margin-bottom: 14px;
  text-align: left;
  font-family: var(--display);
  font-size: 24px;
  color: var(--deodar);
}

.drive-table th,
.drive-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.drive-table thead th {
  font-size: 14px;
  color: var(--ink-soft);
}

.drive-table td {
  text-align: right;
  white-space: nowrap;
  color: var(--ink-soft);
}

.drive-table tbody th {
  color: var(--ink);
}

.location-map img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.landmarks {
  margin: clamp(40px, 5vw, 64px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deodar);
}

.landmarks img {
  width: 100%;
}

.landmarks figcaption {
  padding: 14px 22px;
  font-size: 14px;
  color: var(--on-dark-soft);
}

.nearby {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.nearby h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.nearby p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Why buyers choose ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(32px, 4vw, 64px);
}

.reasons li {
  position: relative;
  padding: 28px 0;
}

.reasons li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.reasons h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.reasons p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--parchment-deep);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.3;
  color: var(--deodar);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--text);
  font-size: 26px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ---------- Closing call to action ---------- */

.visit {
  position: relative;
  isolation: isolate;
  padding: clamp(150px, 16vw, 220px) 0 var(--section);
  color: var(--on-dark);
  background: var(--pine);
  overflow: hidden;
}

.visit-media,
.visit-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.visit-media img {
  object-fit: cover;
  object-position: 50% 60%;
}

.visit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(18, 35, 28, 0.35), rgba(18, 35, 28, 0.82) 70%);
}

.visit .ridge-near {
  fill: var(--parchment-deep);
}

.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.visit-copy h2 {
  color: var(--on-dark);
  font-size: clamp(40px, 5.4vw, 72px);
}

.visit-copy p {
  max-width: 480px;
  margin-top: 22px;
  font-size: 18px;
  color: var(--on-dark-soft);
}

.visit-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: var(--on-dark-soft);
  font-size: 14.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(243, 237, 217, 0.14);
}

.footer-top h2 {
  margin-bottom: 14px;
  font-size: 20px;
  color: var(--on-dark);
}

.footer-top img {
  width: 150px;
  margin-bottom: 18px;
}

.footer-top a {
  text-decoration: none;
}

.footer-top a:hover {
  text-decoration: underline;
  color: var(--on-dark);
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-legal {
  padding: 36px 0 56px;
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-legal p {
  max-width: 110ch;
}

.footer-legal a {
  color: var(--amber);
}

/* ---------- Enquiry dialog ---------- */

.enquiry-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}

.enquiry-dialog::backdrop {
  background: rgba(18, 35, 28, 0.72);
  backdrop-filter: blur(4px);
}

.enquiry-dialog[open] {
  animation: dialog-in 0.45s var(--ease-out) both;
}

.enquiry-dialog .enquiry-card {
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--parchment-deep);
  color: var(--deodar);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.enquiry-dialog h2 {
  padding-right: 44px;
}

/* ---------- Mobile action bar ---------- */

.action-bar {
  display: none;
}

/* ---------- Arrival ---------- */

.arrival {
  padding-top: 0;
}

.arrival-frame {
  position: relative;
  isolation: isolate;
  margin: 0;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pine);
}

.arrival-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
  scale: 1.1;
}

.arrival-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 35, 28, 0.88) 0%, rgba(18, 35, 28, 0.5) 38%, rgba(18, 35, 28, 0) 68%),
    linear-gradient(to top, rgba(18, 35, 28, 0.55), rgba(18, 35, 28, 0) 50%);
}

.arrival-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: 540px;
  padding: clamp(28px, 4.5vw, 64px);
}

.arrival-copy h2 {
  color: var(--on-dark);
}

.arrival-copy p {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--on-dark-soft);
}

/* ==========================================================================
   Motion
   One slow, decelerating easing throughout, like mist settling in a valley.
   Hidden states only apply when JS is running (.js); reduced motion is respected.
   ========================================================================== */

/* --- Page load: the hero assembles itself --- */

.site-header {
  animation: header-in 1s 0.1s var(--ease-out) both;
}

.hero-media img {
  animation: hero-settle 2.8s var(--ease-out) both;
}

.hero-place {
  animation: fade-up 1s 0.35s var(--ease-out) both;
}

.hero h1 {
  animation: rise-in 1.4s 0.45s var(--ease-out) both;
}

.hero h1 span {
  animation: fade-up 1.1s 0.95s var(--ease-out) both;
}

.hero-lead {
  animation: fade-up 1.1s 1.1s var(--ease-out) both;
}

.hero-actions {
  animation: fade-up 1.1s 1.25s var(--ease-out) both;
}

.hero-form {
  animation: slide-in 1.3s 0.75s var(--ease-out) both;
}

.hero-note {
  animation: fade-in 1s 1.6s ease both;
}

.ridge-hero {
  animation: ridge-rise 1.6s 0.2s var(--ease-out) both;
}

@keyframes header-in {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

@keyframes hero-settle {
  from { scale: 1.12; }
  to { scale: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(56px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: none; }
}

@keyframes ridge-rise {
  from { transform: translateY(60px); }
  to { transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(16px) scale(0.98); }
}

/* --- Header hides while reading down, returns when scrolling up --- */

.site-header.is-hidden {
  transform: translateY(-100%);
}

.scroll-progress {
  display: none;
}

/* --- Scroll reveals (IntersectionObserver adds .is-in) --- */

.js [data-reveal] {
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out),
    clip-path 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}

/* Stagger order inside [data-stagger] groups */
[data-stagger] > :nth-child(2) {
  --i: 1;
}

[data-stagger] > :nth-child(3) {
  --i: 2;
}

[data-stagger] > :nth-child(4) {
  --i: 3;
}

[data-stagger] > :nth-child(5) {
  --i: 4;
}

[data-stagger] > :nth-child(6) {
  --i: 5;
}

[data-stagger] > :nth-child(7) {
  --i: 6;
}

[data-stagger] > :nth-child(8) {
  --i: 7;
}

[data-stagger] > :nth-child(9) {
  --i: 8;
}

[data-stagger] > :nth-child(10) {
  --i: 9;
}

[data-stagger] > :nth-child(11) {
  --i: 10;
}

[data-stagger] > :nth-child(12) {
  --i: 11;
}

[data-stagger] > :nth-child(13) {
  --i: 12;
}

[data-stagger] > :nth-child(14) {
  --i: 13;
}

[data-stagger] > :nth-child(15) {
  --i: 14;
}

[data-stagger] > :nth-child(16) {
  --i: 15;
}

[data-stagger] > :nth-child(17) {
  --i: 16;
}

[data-stagger] > :nth-child(18) {
  --i: 17;
}

[data-stagger] > :nth-child(19) {
  --i: 18;
}

[data-stagger] > :nth-child(20) {
  --i: 19;
}

.js .section-head p[data-reveal] {
  --d: 220ms;
}

.js [data-reveal="rise"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
}

.js [data-reveal="slide"]:not(.is-in) {
  opacity: 0;
  transform: translate3d(70px, 0, 0);
}

.js [data-reveal="zoom"]:not(.is-in) {
  opacity: 0;
  transform: scale(0.93);
}

/* Image frames uncovered by a curtain drawn aside, the image settling inside.
   (A curtain rather than clip-path: a fully clipped element never reports as visible.) */
.js [data-reveal="wipe"] {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.js [data-reveal="wipe"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--parchment-deep);
  transform-origin: right;
  transition: transform 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  pointer-events: none;
}

.js [data-reveal="wipe"].is-in::after {
  transform: scaleX(0);
}

.js [data-reveal="wipe"] img {
  transition: transform 2s var(--ease-out);
}

.js [data-reveal="wipe"]:not(.is-in) img {
  transform: scale(1.2);
}

/* The arrival frame opens like a gate, from the centre outwards */
.js [data-reveal="gate"] {
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}

.js [data-reveal="gate"]:not(.is-in) {
  clip-path: inset(10% 18% 10% 18% round var(--radius-lg));
}

.js [data-reveal="gate"] img {
  transition: transform 2.2s var(--ease-out);
}

.js [data-reveal="gate"]:not(.is-in) img {
  transform: scale(1.18);
}

/* Arched windows rising out of the ground, one after another */
.js [data-reveal="arch"] .life-frame {
  clip-path: inset(0 0 0 0 round 200px 200px var(--radius-md) var(--radius-md));
  transition: clip-path 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms);
}

.js [data-reveal="arch"]:not(.is-in) .life-frame {
  clip-path: inset(100% 0 0 0 round 200px 200px var(--radius-md) var(--radius-md));
}

.js [data-reveal="arch"] .life-frame img {
  transition: transform 2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms);
}

.js [data-reveal="arch"]:not(.is-in) .life-frame img {
  transform: scale(1.3);
}

.js [data-reveal="arch"] h3,
.js [data-reveal="arch"] p {
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 130ms + 450ms);
}

.js [data-reveal="arch"]:not(.is-in) h3,
.js [data-reveal="arch"]:not(.is-in) p {
  opacity: 0;
  transform: translateY(18px);
}

/* A hairline drawn left to right, then the text */
.js [data-reveal="line"]::before {
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js [data-reveal="line"]:not(.is-in)::before {
  transform: scaleX(0);
}

.js [data-reveal="line"] > * {
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 300ms);
}

.js [data-reveal="line"]:not(.is-in) > * {
  opacity: 0;
  transform: translateY(16px);
}

/* Headings rise word by word from behind a mask */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.split-word > span {
  display: inline-block;
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 60ms);
}

.js [data-split]:not(.is-in) .split-word > span {
  transform: translateY(112%);
}

/* --- Hover and press feedback --- */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-amber:hover {
  box-shadow: 0 14px 30px -14px rgba(226, 166, 46, 0.75);
}

/* A slow sheen across the amber buttons */
.btn-amber::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.btn-amber:hover::after {
  transform: translateX(120%);
}

.nav-list a {
  position: relative;
}

@media (min-width: 961px) {
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
  }

  .nav-list a:hover {
    text-decoration: none;
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.life-frame img,
.villa-media img,
.amenity-list img {
  transition: transform 1.2s var(--ease-out);
}

.life-item:hover .life-frame img,
.villa:hover .villa-media img {
  transform: scale(1.06);
}

.amenity-list li:hover img {
  transform: scale(1.12);
}

.gallery-track figure img {
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}

.gallery-track figure:hover img {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px -28px rgba(18, 35, 28, 0.7);
}

.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.gallery-track.is-dragging img {
  pointer-events: none;
}

/* A soft ring that breathes around the play button */
.film-play-icon {
  position: relative;
}

.film-play-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  animation: breathe 2.8s var(--ease-out) infinite;
}

@keyframes breathe {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.7); opacity: 0; }
}

.faq-answer {
  overflow: hidden;
}

/* Dialogs fade their backdrop in and lift; closing reverses it */
.enquiry-dialog[open]::backdrop,
.plan-viewer[open]::backdrop {
  animation: fade-in 0.4s ease both;
}

.enquiry-dialog.is-closing,
.plan-viewer.is-closing {
  animation: dialog-out 0.3s ease both;
}

.enquiry-dialog.is-closing::backdrop,
.plan-viewer.is-closing::backdrop {
  animation: fade-in 0.3s ease reverse both;
}

/* Gallery position */
.gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.gallery-foot .fine-print {
  margin: 0;
}

.gallery-progress {
  flex: 1;
  max-width: 320px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.gallery-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 2px;
  background: var(--deodar);
  transition: transform 0.2s linear;
}

/* --- Scroll-linked depth (browsers with scroll-driven animations only) --- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: var(--amber);
      transform-origin: left;
      animation: grow-x linear both;
      animation-timeline: scroll(root);
    }

    .hero {
      view-timeline: --hero block;
    }

    /* The photo drifts slower than the page while the copy lifts away */
    .hero-media img {
      animation: hero-settle 2.8s var(--ease-out) both, drift-down linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }

    .hero-inner {
      animation: lift-away linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 70%;
    }

    /* The ridges separate as you scroll, like layers of hills (desktop only) */
    @media (min-width: 961px) and (hover: hover) {
      .ridge-hero .ridge-far {
        animation: ridge-far linear both;
        animation-timeline: --hero;
        animation-range: exit 0% exit 100%;
      }

      .ridge-hero .ridge-mid {
        animation: ridge-mid linear both;
        animation-timeline: --hero;
        animation-range: exit 0% exit 100%;
      }
    }

    .arrival-frame,
    .club-feature,
    .story-media,
    .visit {
      view-timeline: --frame block;
    }

    .arrival-frame img,
    .club-feature img,
    .story-media img,
    .visit-media img {
      animation: drift linear both;
      animation-timeline: --frame;
      animation-range: cover 0% cover 100%;
    }

    .visit-media img {
      scale: 1.12;
    }

    .story-media img {
      scale: 1.08;
    }

    @keyframes grow-x {
      from { scale: 0 1; }
      to { scale: 1 1; }
    }

    @keyframes drift-down {
      to { translate: 0 16%; }
    }

    @keyframes lift-away {
      to { opacity: 0.15; translate: 0 -70px; }
    }

    @keyframes ridge-far {
      to { translate: 0 -46px; }
    }

    @keyframes ridge-mid {
      to { translate: 0 -20px; }
    }

    @keyframes drift {
      from { translate: 0 -5%; }
      to { translate: 0 5%; }
    }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav-list {
    gap: 20px;
  }

  .header-phone {
    display: none;
  }

  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--deodar);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(243, 237, 217, 0.14);
  }

  .header-actions {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
  }

  .hero-copy {
    padding-top: clamp(120px, 30svh, 260px);
  }

  .hero-form {
    max-width: 520px;
  }

  .hero-note {
    display: none;
  }

  .facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-list div,
  .facts-list div:first-child {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts-list div:nth-child(-n + 2) {
    border-top: 0;
  }

  .facts-list div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .facts-list div:last-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }

  .story-grid,
  .location-grid,
  .faq-grid,
  .visit-inner,
  .plan-panel {
    grid-template-columns: 1fr;
  }

  .villa {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .villa .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .nearby {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity-columns {
    grid-template-columns: 1fr;
  }

  .club-feature img {
    aspect-ratio: 16 / 10;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-legal {
    padding-bottom: 100px;
  }

  .action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--deodar);
    border-top: 1px solid rgba(243, 237, 217, 0.18);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .action-bar a,
  .action-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    border: 0;
    background: none;
    color: var(--on-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }

  .action-bar a + a,
  .action-bar a + button {
    border-left: 1px solid rgba(243, 237, 217, 0.18);
  }

  .action-bar .is-primary {
    background: var(--amber);
    color: var(--pine);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .arrival-frame {
    aspect-ratio: 4 / 5;
  }

  .arrival-frame img {
    object-position: 90% 50%;
  }

  .arrival-frame::after {
    background: linear-gradient(to top, rgba(18, 35, 28, 0.92) 10%, rgba(18, 35, 28, 0.4) 55%, rgba(18, 35, 28, 0) 80%);
  }

  .arrival-copy p {
    font-size: 16px;
  }

  .plan-viewer-bar {
    flex-wrap: wrap;
    padding: 12px 12px 12px 18px;
  }

  .plan-viewer-bar h2 {
    font-size: 18px;
  }

  .plan-chip {
    font-size: 13px;
    padding: 0 12px;
  }

  .hero {
    padding-bottom: 110px;
  }

  /* On phones the photo fills the first screen only; the form sits on pine below it */
  .hero-media,
  .hero-shade {
    bottom: auto;
    height: min(100svh, 760px);
  }

  .hero-media img {
    height: 100%;
    object-position: 50% 60%;
  }

  .hero-shade {
    background: linear-gradient(to top, var(--pine) 2%, rgba(18, 35, 28, 0.55) 45%, rgba(18, 35, 28, 0.2) 75%, rgba(18, 35, 28, 0.45));
  }

  .hero-form {
    margin-top: 8px;
  }

  .hero-copy {
    padding-top: clamp(140px, 34svh, 300px);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .enquiry-card {
    padding: 28px 22px 24px;
  }

  .life-grid {
    gap: 16px;
  }

  .life-item:nth-child(even) {
    margin-top: 36px;
  }

  .life-item h3 {
    font-size: 19px;
  }

  .life-item p {
    display: none;
  }

  .record dt {
    font-size: 32px;
  }

  .villa {
    grid-template-columns: 1fr;
  }

  .villa .btn {
    width: 100%;
  }

  .plans-tabs {
    display: flex;
  }

  .plans-tab {
    flex: 1;
    padding: 0 12px;
  }

  .gallery-controls {
    display: none;
  }

  .gallery-head {
    display: block;
  }

  .nearby,
  .reasons {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-reveal] *,
  .js [data-split] .split-word > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .js [data-reveal]::before {
    transform: none !important;
  }

  .js [data-reveal="wipe"]::after {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
