/* Layout concept: a private estate's printed folio — full-bleed photography alternating
   with narrow, generously leaded text columns; quiet chrome, one bougainvillea accent. */
:root {
  --limestone: #f2f1ec;      /* page ground: Jamaican white limestone, slightly cool */
  --paper: #fbfaf7;          /* raised surfaces */
  --ink: #1d2925;            /* mahogany-shade green-black */
  --ink-soft: #55625d;       /* secondary text */
  --rule: #d6d8d1;           /* hairlines */
  --bougainvillea: #8e3552;  /* the one accent */
  --seaglass: #6f968c;       /* secondary tint for placeholders and details */
  --on-photo: #fbfaf7;
  --shade: rgba(14, 22, 19, .48);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.78rem, .76rem + .1vw, .84rem);
  --step-0: clamp(1.03rem, 1rem + .2vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.7rem + 3vw, 4.4rem);
  --step-4: clamp(2.9rem, 1.8rem + 5.5vw, 6.6rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --limestone: #121a17; --paper: #18221e; --ink: #e9e7e0; --ink-soft: #a5aea8;
    --rule: #2c3833; --bougainvillea: #d27c98; --seaglass: #7fa69b;
    --shade: rgba(6, 10, 9, .55); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --limestone: #121a17; --paper: #18221e; --ink: #e9e7e0; --ink-soft: #a5aea8;
  --rule: #2c3833; --bougainvillea: #d27c98; --seaglass: #7fa69b;
  --shade: rgba(6, 10, 9, .55); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--limestone); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bougainvillea); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-size: var(--step--1); letter-spacing: .24em; text-transform: uppercase; font-weight: 450; color: var(--ink-soft); margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h2 em, h1 em { font-style: italic; }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.55; font-weight: 300; max-width: 34ch; }
.prose { max-width: 62ch; color: var(--ink-soft); display: grid; gap: 1.1em; }

.btn {
  display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.8em;
  font: 450 var(--step--1)/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.btn--solid:hover { background: var(--bougainvillea); border-color: var(--bougainvillea); color: var(--paper); }
.link { font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--bougainvillea); padding-bottom: .35em; }

/* ---------- Photo slots ----------
   Each .ph shows a real photo via --img when the file exists, and a tinted placeholder
   naming the shot needed when it doesn't. */
.ph {
  position: relative; overflow: hidden; margin: 0; max-width: 100%;
  background-color: var(--seaglass);
  background-image: var(--img, none), var(--tint);
  background-size: cover; background-position: center;
  --tint: linear-gradient(160deg, #9fbdb4 0%, #5f8a80 55%, #33554e 100%);
}
.ph--sea   { --tint: linear-gradient(180deg, #b9d3d6 0%, #6fa3ac 48%, #2f6670 100%); }
.ph--dusk  { --tint: linear-gradient(180deg, #e2b9a6 0%, #a8798a 45%, #3c3e55 100%); }
.ph--leaf  { --tint: linear-gradient(150deg, #a9bb8f 0%, #5b7a55 55%, #2a3d2c 100%); }
.ph--stone { --tint: linear-gradient(160deg, #e7e2d6 0%, #c5bca9 60%, #8e8572 100%); }
.ph--wood  { --tint: linear-gradient(160deg, #c7a587 0%, #8a5f45 55%, #3f2a20 100%); }
.ph--table { --tint: linear-gradient(160deg, #f0d6b0 0%, #c98e5c 50%, #6f3f2c 100%); }
.ph:not([style*="--img"]):not(:has(img))::after {
  content: attr(data-shot); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font: 400 11px/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.ph > img, .ph > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--limestone); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; height: var(--header-h);
  color: var(--on-photo); transition: background .4s, color .4s, box-shadow .4s;
}
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: none; }
.site-header.is-solid { background: var(--limestone); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a { font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.wordmark { text-decoration: none; text-align: center; line-height: 1; display: grid; gap: 4px; }
.wordmark b { font: 400 1.55rem/1 var(--f-display); letter-spacing: .32em; padding-left: .32em; }
.wordmark small { font-size: 9.5px; letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-cta .btn { padding: .8em 1.4em; }
.site-header:not(.is-solid) .btn:hover { background: var(--on-photo); color: #1d2925; border-color: var(--on-photo); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; font: 450 var(--step--1)/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 5px 0; }

.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--limestone); color: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 28px) var(--gutter);
  display: flex; flex-direction: column; gap: 28px; transform: translateX(100%); transition: transform .5s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav { display: grid; gap: 6px; }
.drawer nav a { font: 400 var(--step-2)/1.25 var(--f-display); text-decoration: none; }
.drawer__foot { margin-top: auto; display: grid; gap: 14px; color: var(--ink-soft); font-size: var(--step--1); }

@media (max-width: 980px) {
  .wordmark small { letter-spacing: .26em; white-space: nowrap; font-size: 8.5px; }
  .wordmark b { font-size: 1.3rem; }
  .nav, .header-cta .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .wordmark { justify-self: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 900px); display: grid; align-items: end; color: var(--on-photo); isolation: isolate; }
.hero .ph { position: absolute; inset: 0; z-index: -2; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10,16,14,.62) 0%, rgba(10,16,14,.35) 40%, rgba(10,16,14,0) 70%),
  linear-gradient(180deg, rgba(10,16,14,.45) 0%, rgba(10,16,14,0) 28%, rgba(10,16,14,.05) 50%, rgba(10,16,14,.7) 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, rgba(10,16,14,.45) 0%, rgba(10,16,14,.2) 35%, rgba(10,16,14,.78) 100%); } }
.hero .hero__inner { max-width: none; }
.hero__inner { padding-block: 0 clamp(36px, 7vw, 84px); display: grid; gap: 22px; }
.hero h1 { font-size: var(--step-4); max-width: 13ch; font-weight: 400; }
.hero__scroll { position: absolute; right: var(--gutter-r); bottom: clamp(36px, 7vw, 84px); writing-mode: vertical-rl; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; opacity: .85; }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 11vw, 150px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

/* Hero slideshow (crossfade + slow settle, progress-line dots, pause) */
.hero { min-height: 100svh; }
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero .hero__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.07); transition: opacity 1.2s cubic-bezier(.65,0,.35,1), transform 6s linear; }
.hero .hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero .hero__slide::after { top: calc(var(--header-h) + 14px); bottom: auto !important; }
.hero__controls { position: absolute; right: var(--gutter-r); bottom: clamp(36px, 7vw, 84px); display: flex; align-items: center; gap: 14px; color: var(--on-photo); }
.hero__dots { display: flex; gap: 7px; }
.hero__dots button { width: 26px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero__dots i { display: block; height: 2px; background: rgba(251,250,247,.32); position: relative; overflow: hidden; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: var(--on-photo); transform: scaleX(0); transform-origin: left; }
.hero__dots .is-done i::after { transform: scaleX(1); }
.hero__dots .is-active i::after { animation: hero-progress var(--hero-dur, 4s) linear forwards; }
.hero__controls.is-paused .hero__dots .is-active i::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__pause, .video-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(251,250,247,.5); background: rgba(10,16,14,.2); color: var(--on-photo); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.hero__pause:hover, .video-toggle:hover { background: var(--on-photo); color: #1d2925; }
.pp-icon { display: inline-block; width: 12px; height: 12px; position: relative; }
.pp-icon::before, .pp-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.pp-icon::before { left: 2px; } .pp-icon::after { right: 2px; }
.is-paused .pp-icon::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.is-paused .pp-icon::after { display: none; }
@media (max-width: 760px) {
  .hero__inner { padding-bottom: 96px; }
  .hero__controls { left: var(--gutter); right: auto; bottom: 36px; }
}

/* Scrolling banner (JS drifts it and speeds it up with scrolling) */
.marquee { background: var(--ink); color: var(--limestone); overflow: hidden; padding-block: 20px; }
.marquee__track { display: flex; gap: clamp(32px, 4vw, 52px); width: max-content; will-change: transform; }
.marquee span { white-space: nowrap; font: italic 400 clamp(1.3rem, 1rem + 1.1vw, 1.9rem)/1 var(--f-display); }
.marquee span::after { content: "\2726"; font-style: normal; font-size: .55em; margin-left: clamp(32px, 4vw, 52px); color: var(--bougainvillea); vertical-align: middle; }

/* Video + text split: clip pinned full-height on the left, text scrolls on the right */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.split__media { position: relative; }
.split__film { position: sticky; top: 0; height: 100svh; }
.split__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__film::before { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(10,16,14,.55)); z-index: 1; pointer-events: none; }
.split__film::after { top: 14px; bottom: auto !important; }
.split__caption { position: absolute; left: var(--gutter); bottom: 26px; z-index: 2; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-photo); }
.video-toggle { position: absolute; right: var(--gutter-r); bottom: 18px; z-index: 2; width: 42px; height: 42px; }
.split__text { align-self: center; max-width: 640px; display: grid; gap: 24px; padding-block: clamp(80px, 11vw, 150px); padding-left: clamp(32px, 6vw, 96px); padding-right: var(--gutter-r); }
.split__text h2 { font-size: var(--step-3); }
.split__lede { color: var(--ink-soft); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.checklist li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink-soft); font-size: .96em; }
.checklist li::before { content: "\2726"; position: absolute; left: 0; top: 18px; font-size: .7em; color: var(--bougainvillea); }
.checklist strong { color: var(--ink); font-weight: 450; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__film { position: relative; height: auto; aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }
  .split__text { max-width: none; padding-left: var(--gutter); padding-block: 64px 80px; }
}
.signature { font: italic 400 var(--step-1)/1 var(--f-display); color: var(--bougainvillea); }

/* Facts strip */
.facts { border-block: 1px solid var(--rule); padding-block: 0; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts dl > div { padding: 28px 12px; text-align: center; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--rule); }
.facts dl > div:first-child { border-left: 0; }
.facts dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); order: 2; }
.facts dd { margin: 0; font: 400 var(--step-2)/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.facts dd.facts__note { order: 3; font: italic 400 .92rem/1.2 var(--f-display); color: var(--ink-soft); }
@media (max-width: 820px) {
  .facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts dl > div:nth-child(4) { border-left: 0; }
  .facts dl > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
}

/* The Villa — split feature */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; }
.feature__media { grid-column: 1 / span 7; display: grid; grid-template-columns: 2fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.feature__media .ph:first-child { aspect-ratio: 4 / 5; grid-row: span 2; }
.feature__media .ph:not(:first-child) { aspect-ratio: 3 / 4; }
.feature__text { grid-column: 8 / span 5; display: grid; gap: 24px; align-content: center; }
.feature--rev .feature__media { grid-column: 6 / span 7; order: 2; }
.feature--rev .feature__text { grid-column: 1 / span 5; order: 1; }
/* The Table: four photos as an even 2x2 grid */
.feature__media--grid { grid-template-columns: 1fr 1fr; }
.feature__media--grid .ph:first-child, .feature__media--grid .ph:not(:first-child) { aspect-ratio: 4 / 5; grid-row: auto; }
/* The Table: a row of three landscape photos below the grid */
.table-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(10px, 1.4vw, 18px); }
.table-row .ph { aspect-ratio: 3 / 2; grid-column: span 2; }
.table-row .ph:nth-child(n+4) { grid-column: span 3; } /* three across, then two wider */
@media (max-width: 760px) { .table-row { grid-template-columns: 1fr; } .table-row .ph, .table-row .ph:nth-child(n+4) { grid-column: auto; } }
/* Garden Suite: keep both beds in frame */
/* The Villa: one wide photo, then pairs side by side (all landscape) */
.feature__media--trio { grid-template-columns: 1fr 1fr; }
.feature__media--trio .ph:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
.feature__media--trio .ph:not(:first-child) { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature__media, .feature__text, .feature--rev .feature__media, .feature--rev .feature__text { grid-column: 1; order: initial; }
}
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.feature li { padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: .95em; color: var(--ink-soft); }

/* Suites */
.suites { background: var(--paper); }
.suite-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2.4vw, 32px); }
.suite { display: grid; gap: 16px; align-content: start; grid-column: span 2; } /* three across */
.suite .ph { aspect-ratio: 4 / 5; }
.suite:nth-child(-n+2) { grid-column: span 3; } /* Ocean and Master: two equal halves */
.suite:nth-child(-n+2) .ph { aspect-ratio: 3 / 2; }
.suite h3 { font-size: var(--step-1); font-family: var(--f-display); }
.suite p { color: var(--ink-soft); font-size: .95em; }
.suite .tags { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bougainvillea); }
@media (max-width: 900px) { .suite-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .suite, .suite:nth-child(-n+2) { grid-column: auto; } }
@media (max-width: 560px) { .suite-list { grid-template-columns: 1fr; } .suite .ph:not([style]), .suite:nth-child(-n+2) .ph { aspect-ratio: 3 / 2; } }  /* tiles with their own ratio show the whole photo */

/* Household (staff) */
.household-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.person { display: grid; gap: 14px; align-content: start; }
.person .ph { aspect-ratio: 3 / 4; filter: saturate(.92); }
.person h3 { font-size: var(--step-1); }
.person .role { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bougainvillea); }
.person p { font-size: .92em; color: var(--ink-soft); }
@media (max-width: 1000px) { .household-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .household-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--gutter-r)); padding-right: var(--gutter-r); }
  .person { scroll-snap-align: start; }
}


/* Quote band */
.quote { position: relative; color: var(--on-photo); isolation: isolate; padding-block: clamp(110px, 16vw, 220px); text-align: center; }
.quote .ph { position: absolute; inset: 0; z-index: -2; }
.quote::after { content: ""; position: absolute; inset: 0; background: var(--shade); z-index: -1; }
.quote blockquote { margin: 0 auto; max-width: 26ch; font: italic 400 var(--step-3)/1.15 var(--f-display); text-wrap: balance; }
.quote cite { display: block; margin-top: 28px; font: normal 450 var(--step--1)/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; }

/* Tryall experiences */
.exp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.exp { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.exp .ph { aspect-ratio: 3 / 4; }
.exp h3 { font-size: var(--step-1); }
.exp p { font-size: .92em; color: var(--ink-soft); }
@media (max-width: 900px) { .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .exp-grid { grid-template-columns: 1fr; } .exp .ph { aspect-ratio: 4 / 3; } }

/* Gallery */
.gallery { background: var(--paper); }
.masonry { columns: 3 160px; column-gap: 14px; } /* 3 columns on computers, 2 on phones */
.gallery-more { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 40px); }
.masonry button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; cursor: zoom-in; break-inside: avoid; background: none; }
.masonry .ph { width: 100%; }
.masonry .tall { aspect-ratio: 3 / 4; } .masonry .wide { aspect-ratio: 4 / 3; } .masonry .sq { aspect-ratio: 1; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,12,11,.94); display: grid; place-items: center; padding: calc(env(safe-area-inset-top,0px) + 56px) max(16px, env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 56px) max(16px, env(safe-area-inset-left,0px)); }
.lightbox .ph { width: min(1100px, 100%); aspect-ratio: 3 / 2; max-height: 100%; background-size: contain; background-repeat: no-repeat; }
.lightbox .ph[style*="--img"] { background-color: transparent; background-image: var(--img); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 400 12px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; padding: 14px; }
.lb-close { top: calc(env(safe-area-inset-top,0px) + 8px); right: max(8px, env(safe-area-inset-right,0px)); }
.lb-prev { left: max(4px, env(safe-area-inset-left,0px)); top: 50%; transform: translateY(-50%); font-size: 30px !important; }
.lb-next { right: max(4px, env(safe-area-inset-right,0px)); top: 50%; transform: translateY(-50%); font-size: 30px !important; }
.lb-count { position: absolute; bottom: calc(env(safe-area-inset-bottom,0px) + 18px); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .24em; }

/* Stay: rates & inclusions */
.stay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.incl li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .95em; }
/* Weekly rates, copied daily from tryallclub.com by scripts/update_rates.py */
.rates { border-top: 1px solid var(--ink); }
.rates-year { border-bottom: 1px solid var(--rule); }
.rates-year summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font: 400 var(--step-1)/1.3 var(--f-display); }
.rates-year summary::-webkit-details-marker { display: none; }
.rates-year summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; color: var(--bougainvillea); transition: transform .3s; }
.rates-year[open] summary::after { transform: rotate(45deg); }
.rates-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: .95em; font-variant-numeric: tabular-nums; }
.rates-table th, .rates-table td { text-align: left; padding: 11px 12px 11px 0; border-top: 1px solid var(--rule); font-weight: 400; }
.rates-table thead th { border-top: 0; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.rates-table tbody th { color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 860px) { .stay-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .incl { grid-template-columns: 1fr; } }

/* Location */
.location .feature__media { grid-template-columns: 1fr; }
.location .feature__media .ph { aspect-ratio: 16 / 11; grid-row: auto; }
.distances { display: grid; border-top: 1px solid var(--rule); margin: 0; }
.distances div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.distances dt { color: var(--ink-soft); }
.distances dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Guest reviews */
.words-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.review { margin: 0; display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink); }
.review h3 { font: italic 400 var(--step-1)/1.3 var(--f-display); }
.review__stars { color: var(--bougainvillea); letter-spacing: .2em; font-size: .9rem; }
.review blockquote { margin: 0; color: var(--ink-soft); font-size: .95em; line-height: 1.65; }
.review figcaption { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 1000px) { .words-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .words-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 400 var(--step-1)/1.3 var(--f-display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; color: var(--bougainvillea); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; max-width: 64ch; color: var(--ink-soft); }

/* Enquire */
.enquire { background: var(--ink); color: var(--limestone); }
.enquire .eyebrow { color: color-mix(in srgb, var(--limestone) 70%, transparent); }
.enquire-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); }
.enquire .prose { color: color-mix(in srgb, var(--limestone) 78%, transparent); }
.contact-lines { display: grid; gap: 18px; margin-top: 36px; }
.contact-lines div { display: grid; gap: 4px; }
.contact-lines span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .65; }
.contact-lines a { text-decoration: none; font: 400 var(--step-1)/1.3 var(--f-display); user-select: all; }
form.inquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.phone-row { display: flex; gap: 12px; }
.phone-row select { width: auto; flex: 0 0 auto; max-width: 42%; padding-right: 20px; }
.phone-row input { flex: 1; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: inherit; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--limestone) 35%, transparent);
  padding: 10px 0; font: 400 1rem/1.4 var(--f-body); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: #1d2925; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--limestone); }
.field input[type="date"] { color-scheme: dark; }
.field .err { font-size: .8rem; color: #f3a9bf; min-height: 0; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.form-foot small { opacity: .65; max-width: 44ch; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, hidden from people */
.enquire .btn:not(.btn--solid):hover { background: var(--limestone); color: var(--ink); border-color: var(--limestone); }
.enquire .btn--solid { background: var(--limestone); color: var(--ink); border-color: var(--limestone); }
.enquire .btn--solid:hover { background: var(--bougainvillea); border-color: var(--bougainvillea); color: #fff; }
.form-done { grid-column: 1 / -1; border: 1px solid color-mix(in srgb, var(--limestone) 35%, transparent); padding: 28px; display: grid; gap: 10px; }
.form-done h3 { font-size: var(--step-2); }
@media (max-width: 900px) { .enquire-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form.inquiry { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { margin: 0 0 12px; font-family: var(--f-body); line-height: 1.4; font-weight: 450; letter-spacing: .22em; text-transform: uppercase; font-size: 10.5px; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-brand .wordmark { justify-items: start; text-align: left; color: var(--ink); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.legal { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Mobile sticky enquire bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--limestone); border-top: 1px solid var(--rule);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 10px;
    transform: translateY(110%); transition: transform .4s;
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { justify-content: center; padding: .95em .6em; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* Gentle reveal: elements are visible by default, JS adds the motion */
.js .reveal { transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pre { opacity: .001; transform: translateY(24px); }

/* Wellness retreats: a mirrored video split (film on the right) */
.retreats { background: var(--paper); }
.split--rev .split__media { order: 2; }
.split--rev .split__text { justify-self: end; padding-left: var(--gutter); padding-right: clamp(32px, 6vw, 96px); }
.retreat-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.retreat-photos__lawn { object-position: center 75%; } /* keep the circle of people in frame */
.retreat-photos .ph { aspect-ratio: 4 / 5; }
.retreat-cta { display: grid; gap: 20px; justify-items: start; padding-top: 24px; border-top: 1px solid var(--rule); }
.retreat-cta p { max-width: 52ch; font: italic 400 var(--step-1)/1.4 var(--f-display); }
@media (max-width: 860px) {
  .split--rev .split__media { order: 0; }
  .split--rev .split__text { justify-self: stretch; padding-right: var(--gutter-r); }
}

/* Master Suite: keep the four-poster bed in frame */

/* Household: team photos */
.team { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.team__main { aspect-ratio: 3 / 2; }
.team__chef { aspect-ratio: auto; min-height: 100%; }
.team__chef img { object-position: center 30%; }
.team__names { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.team__names li { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.team__names .role { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bougainvillea); }
.team__names h3 { font-size: var(--step-1); }
@media (max-width: 760px) {
  .team { grid-template-columns: 1fr; }
  .team__chef { aspect-ratio: 4 / 5; min-height: 0; }
  .team__names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
