/* =====================================================================
   Xanadu Luxury Villas & Retreat — "Quiet luxury meets tropical immersion"
   Creative direction & digital design: Burel Agency
   ===================================================================== */

/* ---------- Fonts (SIL Open Font License) ---------- */
@font-face { font-family: 'Instrument Serif'; src: url(../fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../fonts/instrument-sans.woff2) format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ivory: #F7F5EF;
  --white: #FCFBF8;
  --sand: #D8C6AA;
  --stone: #B7A48C;
  --espresso: #332820;
  --olive: #777B60;
  --ocean: #244B59;

  --ink: var(--espresso);
  --ink-2: rgba(51, 40, 32, .76);
  --ink-3: rgba(51, 40, 32, .58);
  --olive-ink: #5b5f47;           /* olive darkened for small text (AA on ivory) */
  --line: rgba(51, 40, 32, .14);
  --line-strong: rgba(51, 40, 32, .28);
  --ocean-deep: #1b3a45;
  --on-dark: #F7F5EF;
  --on-dark-2: rgba(247, 245, 239, .78);
  --line-dark: rgba(247, 245, 239, .22);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 76px);
  --max: 1560px;
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-soft: cubic-bezier(.33, .1, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ivory) var(--grain);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--ocean); color: var(--ivory); }
:focus-visible { outline: 1.5px solid var(--ocean); outline-offset: 4px; border-radius: 2px; }
.dark :focus-visible, .on-photo :focus-visible { outline-color: var(--ivory); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--ocean); color: var(--ivory); text-decoration: none; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 13vw, 200px); }
.section--tight { padding-block: clamp(72px, 9vw, 136px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.dark { background: var(--ocean); color: var(--on-dark); }
.dark .eyebrow { color: rgba(247, 245, 239, .72); }
.sand { background: #EFE8DB var(--grain); }
.white { background: var(--white); }

/* ---------- Type ---------- */
.eyebrow { font: 500 11.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--olive-ink); margin: 0 0 1.6rem; display: flex; align-items: center; gap: 14px; }
.eyebrow .n { font-variant-numeric: tabular-nums; letter-spacing: .12em; opacity: .85; }
.eyebrow .rule { width: 36px; height: 1px; background: currentColor; opacity: .55; }
.display-xl, .display-l, .display-m, .display-s, .statement { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
.display-xl { font-size: clamp(3.4rem, 10.6vw, 11.4rem); line-height: .88; }
.display-l { font-size: clamp(2.7rem, 6.4vw, 6.6rem); line-height: .94; }
.display-m { font-size: clamp(2.1rem, 3.9vw, 3.9rem); line-height: 1; }
.display-s { font-size: clamp(1.6rem, 2.3vw, 2.25rem); line-height: 1.08; }
.statement { font-size: clamp(1.75rem, 3.15vw, 3.15rem); line-height: 1.12; letter-spacing: -.008em; }
.display-xl em, .display-l em, .display-m em, .display-s em, .statement em { font-style: italic; }
.accent { color: var(--ocean); }
.dark .accent { color: var(--sand); }
.lede { font-size: clamp(1.06rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.dark .lede { color: var(--on-dark-2); }
.small { font-size: 14px; line-height: 1.6; }
.muted { color: var(--ink-3); }
.caption { font-size: 12.5px; letter-spacing: .02em; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--ocean); --fg: var(--ivory);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ocean-deep); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::after { transform: none; }
.btn--light { --bg: var(--ivory); --fg: var(--espresso); }
.btn--light::after { background: var(--white); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost::after { background: currentColor; opacity: .1; }
.btn .arrow { width: 16px; height: 10px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 11.5px; }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-block: 10px; position: relative; }
.link-arrow::before { content: ''; position: absolute; left: 0; right: 28px; bottom: 2px; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.link-arrow:hover::before { transform: scaleX(.35); }
.link-arrow .arrow { width: 16px; height: 10px; transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--gutter); color: var(--ink);
  transition: transform .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease);
}
.header.is-over-photo { color: var(--ivory); }
.header.is-solid { --header-h: 70px; background: rgba(247, 245, 239, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(12px)) { .header.is-solid { background: rgba(247, 245, 239, .78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); } }
.header.is-hidden { transform: translateY(-102%); }
.header__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; }
.header__brand svg { width: 46px; height: 46px; transition: width .5s var(--ease), height .5s var(--ease); }
.header.is-solid .header__brand svg { width: 40px; height: 40px; }
.header__brand .wordmark { font: 400 25px/1 var(--serif); letter-spacing: .04em; }
.header__brand .wordmark small { display: block; font: 500 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; opacity: .8; }
.header__nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.header__nav a { position: relative; text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 10px 0; }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.header__nav a:hover::after, .header__nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header .btn--book { --bg: transparent; --fg: currentColor; border-color: currentColor; min-height: 42px; padding: 0 20px; font-size: 11.5px; }
.header .btn--book::after { background: currentColor; opacity: .12; }
.header.is-solid .btn--book { --bg: var(--ocean); --fg: var(--ivory); border-color: var(--ocean); }
.header.is-solid .btn--book::after { background: var(--ocean-deep); opacity: 1; }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 4px 0 12px; background: none; border: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu-toggle .bars { position: relative; width: 26px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease); }
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { bottom: 0; width: 70%; left: auto; }
.menu-toggle:hover .bars::after { width: 100%; }
@media (max-width: 1099px) { .header__nav { display: none; } .header { grid-template-columns: 1fr auto; } }
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .header__brand .wordmark { display: none; }
  .header__brand svg { width: 42px; height: 42px; }
  .menu-toggle .label { display: none; }
  .header .btn--book { padding: 0 16px; }
}

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: var(--ivory) var(--grain); color: var(--ink);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__inner { display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 4vh) var(--gutter) 40px; overflow-y: auto; }
.menu__close { position: absolute; top: 20px; right: var(--gutter); z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: none; border: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu__close svg { width: 18px; height: 18px; }
.menu__list { counter-reset: m; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; font: 400 clamp(2.2rem, 5.2vw, 4.6rem)/1.06 var(--serif); padding: .06em 0; transform: translateY(105%); transition: transform 1s var(--ease), color .4s; }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .06s; } .menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .14s; } .menu.is-open .menu__list li:nth-child(5) a { transition-delay: .18s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .22s; } .menu.is-open .menu__list li:nth-child(7) a { transition-delay: .26s; }
.menu.is-open .menu__list li:nth-child(8) a { transition-delay: .3s; } .menu.is-open .menu__list li:nth-child(9) a { transition-delay: .34s; }
.menu__list a::before { counter-increment: m; content: counter(m, decimal-leading-zero); font: 500 11px/1 var(--sans); letter-spacing: .12em; color: var(--olive-ink); transform: translateY(-1.4em); }
.menu__list a:hover, .menu__list a[aria-current='page'] { font-style: italic; color: var(--ocean); }
.menu__foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.menu__foot a { text-decoration: none; } .menu__foot a:hover { text-decoration: underline; }
.menu__foot strong { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); margin-bottom: 10px; }
.menu__media { position: relative; overflow: hidden; background: var(--sand); }
.menu__media picture { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.menu__media picture.is-active { opacity: 1; transform: none; }
@media (max-width: 900px) { .menu { grid-template-columns: 1fr; } .menu__media { display: none; } }

/* ---------- Booking dialog ---------- */
.booking-dialog { width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--ivory) var(--grain); color: var(--ink); box-shadow: -30px 0 80px rgba(20, 16, 12, .18); }
.booking-dialog[open] { animation: drawer-in .8s var(--ease) both; }
.booking-dialog::backdrop { background: rgba(28, 22, 17, .42); backdrop-filter: blur(3px); animation: fade-in .6s var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.booking-dialog__inner { display: flex; flex-direction: column; min-height: 100%; padding: 28px clamp(24px, 4vw, 48px) 40px; overflow-y: auto; }
.booking-dialog__close { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.booking-dialog__close svg { width: 16px; height: 16px; }
.booking-dialog h2 { margin: 28px 0 10px; }
.booking-dialog .lede { margin-bottom: 30px; }
.booking-dialog__alt { margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }
.booking-dialog__alt a { text-decoration: none; } .booking-dialog__alt a:hover { text-decoration: underline; }

/* ---------- Booking form ---------- */
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.booking-form .field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 0 14px; border-bottom: 1px solid var(--line-strong); min-height: 76px; }
.booking-form .field:nth-child(odd) { padding-right: 18px; }
.booking-form .field:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.booking-form .field--wide { grid-column: 1 / -1; padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; }
.booking-form label { font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.booking-form input, .booking-form select {
  width: 100%; min-height: 34px; padding: 0; border: 0; background: transparent; color: inherit;
  font: 400 1.45rem/1.2 var(--serif); letter-spacing: .005em; -webkit-appearance: none; appearance: none; border-radius: 0;
}
.booking-form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23332820' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right center no-repeat; padding-right: 22px; cursor: pointer; }
.booking-form input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.booking-form input:focus-visible, .booking-form select:focus-visible { outline: none; }
.booking-form .field:focus-within { border-bottom-color: var(--ocean); }
.booking-form .field:focus-within label { color: var(--ocean); }
.booking-form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.booking-form__submit .btn { flex: 1 1 auto; }
.booking-form__note { flex: 1 1 100%; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.booking-form__error { grid-column: 1 / -1; margin: 12px 0 0; font-size: 13.5px; color: #8a3b1f; min-height: 0; }
.dark .booking-form, .on-photo .booking-form { border-top-color: var(--line-dark); }
.dark .booking-form .field, .on-photo .booking-form .field { border-color: var(--line-dark); }
.dark .booking-form label { color: rgba(247, 245, 239, .7); }

/* ---------- Reveal & motion ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='fade'] { transform: none; }
/* the observed element stays unclipped (IntersectionObserver ignores fully clipped targets): the picture inside is masked */
.js [data-reveal='mask'] { opacity: 1; transform: none; }
.js [data-reveal='mask'] picture { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io); transition-delay: var(--d, 0s); }
.js [data-reveal='mask'].is-in picture { clip-path: inset(0 0 0 0); }
.js [data-reveal='mask'] img { transform: scale(1.12); transition: transform 2.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal='mask'].is-in img { transform: none; }
.js .split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .split-line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }
.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .12em 0; margin: 0 -.1em -.12em 0; }
.js [data-split] .sw > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.25s var(--ease); transition-delay: var(--d, 0s); }
.js [data-split].is-in .sw > span { transform: none; }
[data-parallax] { will-change: transform; }
.slh-dark { filter: brightness(0); opacity: .82; }
.media-frame { position: relative; overflow: hidden; background: #E9E1D2; }
.media-frame > picture, .media-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-frame--hover img { transition: transform 1.6s var(--ease); }
.media-frame--hover:hover img, a:hover .media-frame--hover img { transform: scale(1.035); }

/* ---------- Bird ---------- */
.bird-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; contain: layout paint; }
.flycatcher { position: absolute; top: 0; left: 0; pointer-events: none; will-change: transform; transform: translate3d(-9999px, 0, 0); }
.bird-still { position: absolute; pointer-events: none; z-index: 2; }

/* ---------- Branch (perch) ---------- */
.branch { position: absolute; z-index: 1; pointer-events: none; }
.branch svg { width: 100%; height: auto; overflow: visible; }
.branch [data-sway] { transform-box: view-box; transform-origin: 640px 137px; }
.branch .wood { fill: #3a2d22; }
.branch .leaf { fill: var(--olive); }
.branch .leaf.d { fill: #5f6249; }
.branch .leaf.l { fill: #8d9075; }
.branch .vein { stroke: rgba(247, 245, 239, .38); stroke-width: 1.1; fill: none; stroke-linecap: round; }
.branch--silhouette .wood, .branch--silhouette .leaf { fill: #17120d; }
.branch--silhouette .leaf.l { fill: #221a13; }
.branch--silhouette .vein { stroke: rgba(255, 200, 150, .08); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--ivory); background: #2c3a2c; }
.hero__media { position: absolute; inset: -6% 0 0; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img { animation: hero-in 2.6s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.08); filter: brightness(.9); } to { transform: none; filter: none; } }
.hero__veil { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(20, 30, 32, .26) 0%, rgba(20, 30, 32, 0) 22%, rgba(20, 22, 16, 0) 44%, rgba(22, 20, 14, .5) 78%, rgba(22, 18, 12, .72) 100%); }
.hero__content { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero__title { max-width: 11ch; margin-bottom: clamp(18px, 3vh, 34px); text-shadow: 0 2px 40px rgba(0, 0, 0, .18); }
.hero .eyebrow { color: rgba(247, 245, 239, .86); }
.hero__sub { max-width: 34em; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.6; color: rgba(247, 245, 239, .9); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero__marks { display: grid; gap: 18px; justify-items: end; text-align: right; font: 500 10.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 245, 239, .82); }
.hero__marks li { display: flex; align-items: center; gap: 12px; }
.hero__marks img { height: 38px; width: auto; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; display: grid; justify-items: center; gap: 10px; transform: translateX(-50%); color: rgba(247, 245, 239, .78); text-decoration: none; font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(rgba(247, 245, 239, .9), rgba(247, 245, 239, 0)); transform-origin: top; animation: scroll-cue 2.8s var(--ease-io) infinite; }
@keyframes scroll-cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__marks { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 22px; }
  .hero__marks img { height: 30px; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) { .hero__sub { font-size: 15.5px; } .hero__title { max-width: 9ch; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: #2e3328; }
.page-hero__media { position: absolute; inset: -5% 0 0; }
.page-hero__media picture { position: absolute; inset: 0; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 22, .28) 0%, rgba(20, 24, 22, 0) 28%, rgba(22, 18, 12, .1) 52%, rgba(22, 18, 12, .62) 100%); }
.page-hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(44px, 8vh, 96px); max-width: var(--max); margin-inline: auto; }
.page-hero .eyebrow { color: rgba(247, 245, 239, .85); }
.page-hero h1 { max-width: 14ch; }
.page-hero__sub { max-width: 36em; margin-top: 22px; color: rgba(247, 245, 239, .9); font-size: clamp(1rem, 1.15vw, 1.12rem); }
.page-hero--short { min-height: 70vh; min-height: 70svh; }

/* ---------- Intro / manifesto ---------- */
.chapter { position: relative; }
.intro { position: relative; padding-block: clamp(110px, 15vw, 230px) clamp(80px, 10vw, 150px); }
.intro__grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.intro__head { grid-column: 1 / span 8; }
.intro__statement { margin-bottom: clamp(40px, 5vw, 70px); }
.intro__body { grid-column: 2 / span 5; }
.intro__sig { grid-column: 8 / span 4; align-self: end; display: grid; justify-items: start; gap: 8px; margin-top: 40px; }
.intro__sig picture img { width: clamp(180px, 18vw, 260px); height: auto; mix-blend-mode: multiply; opacity: .9; }
.intro__sig span { font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts .num { font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1; }
.facts span:last-child { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 18em; }
.branch--intro { right: -2vw; top: clamp(70px, 9vw, 150px); width: clamp(320px, 38vw, 640px); }
@media (max-width: 1100px) { .intro__head { grid-column: 1 / -1; } .intro__body { grid-column: 1 / span 8; } .intro__sig { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .branch--intro { width: min(84vw, 460px); top: 34px; right: -8vw; }
  .intro--branch { padding-top: 240px; }
  .intro__body { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
}

/* ---------- Villas head + panorama ---------- */
.villas-head { position: relative; z-index: 3; padding-block: clamp(40px, 6vw, 90px) clamp(48px, 6vw, 90px); }
.villas-head .grid > * { grid-column: 1 / -1; }
.villas-head h2 { grid-column: 1 / span 9; }
.villas-head .lede { grid-column: 8 / span 5; margin-top: 30px; }
.villas-head .villas-head__cta { grid-column: 8 / span 5; margin-top: 18px; }
@media (max-width: 900px) { .villas-head h2, .villas-head .lede, .villas-head .villas-head__cta { grid-column: 1 / -1; } }

.panorama { position: relative; }
.panorama__sticky { position: relative; }
.panorama__track { display: flex; gap: clamp(14px, 1.6vw, 26px); padding-inline: var(--gutter); }
.vcard { position: relative; flex: 0 0 auto; width: min(74vw, 1180px); height: min(80vh, 860px); min-height: 520px; color: var(--ivory); overflow: hidden; background: #2e3328; text-decoration: none; display: block; }
.vcard__media { position: absolute; inset: 0; }
.vcard__media picture { position: absolute; inset: 0; }
.vcard__media img { transition: transform 1.8s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.03); }
.vcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 16, 12, .18) 0%, rgba(18, 16, 12, 0) 26%, rgba(18, 16, 12, .06) 50%, rgba(18, 16, 12, .66) 100%); pointer-events: none; }
.vcard__index { position: absolute; z-index: 2; top: clamp(20px, 3vw, 36px); left: clamp(22px, 3vw, 40px); font: 500 11px/1 var(--sans); letter-spacing: .2em; }
.vcard__kind { position: absolute; z-index: 2; top: clamp(20px, 3vw, 36px); right: clamp(22px, 3vw, 40px); font: 500 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: right; max-width: 20em; }
.vcard__body { position: absolute; z-index: 2; left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); bottom: clamp(22px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.vcard__name { font: 400 clamp(3.4rem, 8.6vw, 9.2rem)/.86 var(--serif); letter-spacing: -.015em; }
.vcard__meaning { display: block; font: italic 400 clamp(1.15rem, 1.6vw, 1.6rem)/1.2 var(--serif); margin-top: 12px; opacity: .9; }
.vcard__meta { display: grid; gap: 7px; justify-items: end; text-align: right; font-size: 14px; line-height: 1.4; }
.vcard__meta li { display: flex; gap: 10px; align-items: baseline; }
.vcard__meta b { font: 400 1.5rem/1 var(--serif); }
.vcard__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(247, 245, 239, .3); }
.vcard__links p { flex: 1 1 22em; margin: 0; font-size: 15px; color: rgba(247, 245, 239, .88); max-width: 38em; }
.vcard--outro { width: min(52vw, 760px); background: var(--ocean); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); }
.vcard--outro::after { display: none; }
.vcard--outro h3 { font: 400 clamp(2.4rem, 4.6vw, 4.6rem)/.98 var(--serif); }
/* The villas travel sideways, by themselves: swipe, trackpad, drag with the mouse, arrows or keyboard.
   Vertical scrolling is never hijacked. */
.panorama__track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.panorama__track::-webkit-scrollbar { display: none; }
.panorama__track:focus-visible { outline: none; }
.panorama__track:focus-visible .vcard:first-child { outline: 1.5px solid var(--ocean); outline-offset: 4px; }
.vcard { scroll-snap-align: start; }
.vcard img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .panorama__track { cursor: grab; } }
.panorama__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.panorama__track.is-dragging .vcard { pointer-events: none; }
.panorama__bar { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(22px, 2.6vw, 34px) var(--gutter) 0; }
.panorama__count { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 5.5em; }
.panorama__progress { position: relative; flex: 1; height: 1px; background: var(--line); }
.panorama__progress span { position: absolute; inset: 0; background: var(--espresso); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s var(--ease); }
.panorama__nav { display: flex; gap: 10px; }
.panorama__nav button { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .4s; }
.panorama__nav button:hover:not(:disabled) { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.panorama__nav button:disabled { opacity: .3; cursor: default; }
.panorama__nav .arrow { width: 18px; height: 11px; }
@media (max-width: 900px) { .panorama__nav { display: none; } }
@media (max-width: 900px) {
  .vcard { width: 86vw; height: 72svh; min-height: 480px; }
  .vcard__body { grid-template-columns: 1fr; }
  .vcard__meta { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 18px; font-size: 13px; }
  .vcard__meta b { font-size: 1.25rem; }
  .vcard__links p { display: none; }
  .vcard__kind { display: none; }
  .vcard--outro { width: 80vw; }
}

/* ---------- Dining (editorial) ---------- */
.dining-feature { position: relative; }
.dining-feature__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.dining-feature__media { grid-column: 1 / span 7; aspect-ratio: 4 / 5; }
.dining-feature__text { grid-column: 9 / span 4; position: sticky; top: 140px; padding-top: 4vw; }
.dining-feature__text h2 { margin-bottom: 30px; }
.dining-feature__facts { margin: 34px 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dining-feature__facts li { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.dining-feature__facts li b { font: 500 10.5px/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.textures { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(70px, 9vw, 140px); align-items: start; }
.textures figure:nth-child(1) { grid-column: 1 / span 3; margin-top: 12vw; }
.textures figure:nth-child(2) { grid-column: 4 / span 4; }
.textures figure:nth-child(3) { grid-column: 8 / span 2; margin-top: 18vw; }
.textures figure:nth-child(4) { grid-column: 10 / span 3; margin-top: 6vw; }
.textures .media-frame { aspect-ratio: 4 / 5; }
.textures figure:nth-child(2) .media-frame { aspect-ratio: 5 / 6; }
.textures figure:nth-child(3) .media-frame { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .dining-feature__media, .dining-feature__text { grid-column: 1 / -1; }
  .dining-feature__text { position: static; padding-top: 40px; }
  .textures { grid-template-columns: 1fr 1fr; gap: 16px; }
  .textures figure { grid-column: auto !important; margin-top: 0 !important; }
  .textures figure:nth-child(even) { margin-top: 40px !important; }
}

/* ---------- Spa (expanding picture) ---------- */
.expand { position: relative; height: 230vh; background: var(--ivory); }
.expand__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.expand__frame { position: absolute; inset: 0; clip-path: inset(var(--iy, 22%) var(--ix, 30%) round var(--r, 2px)); will-change: clip-path; }
.expand__frame picture { position: absolute; inset: 0; }
.expand__frame img { transform: scale(var(--s, 1.14)); will-change: transform; }
.expand__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 20, 18, .78) 0%, rgba(16, 20, 18, .5) 38%, rgba(16, 20, 18, .08) 66%, rgba(16, 20, 18, 0) 80%), linear-gradient(0deg, rgba(16, 20, 18, .45), rgba(16, 20, 18, 0) 45%); opacity: var(--t, 0); }
.expand__label { position: absolute; z-index: 2; top: calc(var(--iy, 22%) * .5); left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; color: var(--ink); opacity: calc(1 - var(--t, 0) * 3); }
.expand__label .display-l { white-space: nowrap; }
.expand__text { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(40px, 9vh, 110px); width: min(560px, calc(100% - 2 * var(--gutter))); color: var(--ivory); opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 30px)); }
.expand__text .eyebrow { color: rgba(247, 245, 239, .82); }
.expand__text p { color: rgba(247, 245, 239, .9); }
.treatments-mini { margin: 28px 0 30px; border-top: 1px solid rgba(247, 245, 239, .28); }
.treatments-mini li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(247, 245, 239, .28); font-size: 14.5px; }
.treatments-mini li span:first-child { font: 400 1.3rem/1.2 var(--serif); }
.treatments-mini li span:nth-child(2) { color: rgba(247, 245, 239, .72); font-size: 13px; }
.no-expand .expand { height: auto; }
.no-expand .expand__sticky { position: relative; height: auto; min-height: 92svh; }
.no-expand .expand__frame { clip-path: none; }
.no-expand .expand__frame img { transform: none; }
.no-expand .expand__frame::after { opacity: 1; background: linear-gradient(180deg, rgba(18, 22, 20, .1), rgba(18, 22, 20, .66) 70%); }
.no-expand .expand__text { opacity: 1; transform: none; position: relative; left: auto; bottom: auto; align-self: end; padding: 40vh var(--gutter) 56px; width: 100%; max-width: 640px; justify-self: start; }
.no-expand .expand__label { display: none; }

/* ---------- Experiences ---------- */
.experiences { position: relative; overflow: hidden; }
.experiences__head { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-bottom: clamp(60px, 7vw, 110px); }
.experiences__head .titles { grid-column: 1 / span 8; }
.experiences__head .lede { grid-column: 9 / span 4; align-self: end; }
.xp-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(50px, 7vw, 110px); }
.xp { text-decoration: none; display: block; }
.xp .media-frame { aspect-ratio: 4 / 5; }
.xp h3 { font: 400 clamp(1.6rem, 2.3vw, 2.3rem)/1.05 var(--serif); margin: 20px 0 10px; }
.xp p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 30em; }
.xp .tag { display: block; margin-top: 18px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.xp-grid .xp:nth-child(1) { grid-column: 1 / span 5; }
.xp-grid .xp:nth-child(1) .media-frame { aspect-ratio: 4 / 5; }
.xp-grid .xp:nth-child(2) { grid-column: 7 / span 4; margin-top: 18vw; }
.xp-grid .xp:nth-child(3) { grid-column: 2 / span 4; }
.xp-grid .xp:nth-child(4) { grid-column: 7 / span 6; margin-top: -8vw; }
.xp-grid .xp:nth-child(4) .media-frame { aspect-ratio: 3 / 2; }
.xp-grid .xp:nth-child(5) { grid-column: 1 / span 4; }
.xp-grid .xp:nth-child(6) { grid-column: 6 / span 3; margin-top: 10vw; }
.xp-grid .xp:nth-child(7) { grid-column: 10 / span 3; margin-top: 3vw; }
@media (max-width: 900px) {
  .experiences__head .titles, .experiences__head .lede { grid-column: 1 / -1; }
  .experiences__head .lede { margin-top: 26px; }
  .xp-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 46px; }
  .xp-grid .xp { grid-column: auto !important; margin-top: 0 !important; }
  .xp-grid .xp:nth-child(1), .xp-grid .xp:nth-child(4) { grid-column: 1 / -1 !important; }
  .xp-grid .xp:nth-child(odd):not(:first-child) { margin-top: 0 !important; }
  .xp h3 { font-size: 1.45rem; }
  .xp p { font-size: 14px; }
}

/* ---------- Gallery collage ---------- */
.collage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 7vw; gap: clamp(12px, 1.4vw, 22px); }
.collage .media-frame { height: 100%; }
.collage figure:nth-child(1) { grid-column: 1 / span 5; grid-row: 1 / span 6; }
.collage figure:nth-child(2) { grid-column: 6 / span 4; grid-row: 2 / span 4; }
.collage figure:nth-child(3) { grid-column: 10 / span 3; grid-row: 1 / span 4; }
.collage figure:nth-child(4) { grid-column: 6 / span 3; grid-row: 6 / span 5; }
.collage figure:nth-child(5) { grid-column: 9 / span 4; grid-row: 5 / span 4; }
.collage figure:nth-child(6) { grid-column: 2 / span 4; grid-row: 7 / span 4; }
.collage figure:nth-child(7) { grid-column: 9 / span 3; grid-row: 9 / span 3; }
@media (max-width: 900px) {
  .collage { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vw; }
  .collage figure:nth-child(1) { grid-column: 1 / span 4; grid-row: 1 / span 4; }
  .collage figure:nth-child(2) { grid-column: 5 / span 2; grid-row: 2 / span 3; }
  .collage figure:nth-child(3) { grid-column: 2 / span 3; grid-row: 5 / span 3; }
  .collage figure:nth-child(4) { grid-column: 5 / span 2; grid-row: 5 / span 4; }
  .collage figure:nth-child(5) { grid-column: 1 / span 3; grid-row: 8 / span 3; }
  .collage figure:nth-child(6) { grid-column: 4 / span 3; grid-row: 9 / span 3; }
  .collage figure:nth-child(7) { display: none; }
}

/* ---------- Recognition & voices ---------- */
.recognition__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.recognition__awards { grid-column: 1 / span 4; display: grid; gap: 34px; }
.award { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; }
.award img, .award svg { width: 64px; height: auto; }
.award b { display: block; font: 400 1.5rem/1.15 var(--serif); }
.award span { font-size: 13.5px; color: var(--ink-2); }
.recognition__press { grid-column: 6 / span 7; }
.press-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--line); }
.press-list li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.press-list li span:first-child { font: 400 1.2rem/1.25 var(--serif); }
.press-list li span:last-child { color: var(--ink-3); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); margin-top: clamp(80px, 10vw, 150px); }
.voice blockquote { margin: 0; font: italic 400 clamp(1.35rem, 1.9vw, 1.9rem)/1.22 var(--serif); }
.voice blockquote::before { content: '“'; display: block; font: 400 4rem/.6 var(--serif); color: var(--stone); margin-bottom: 8px; }
.voice figcaption { margin-top: 20px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
@media (max-width: 900px) {
  .recognition__awards, .recognition__press { grid-column: 1 / -1; }
  .recognition__press { margin-top: 56px; }
  .press-list { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
}

/* ---------- Finale (booking invitation) ---------- */
.finale { position: relative; min-height: 112vh; min-height: 112svh; display: grid; align-items: center; color: var(--ivory); overflow: hidden; background: #3b2c22; }
.finale__media { position: absolute; inset: -8% 0 -4%; }
.finale__media picture { position: absolute; inset: 0; }
.finale::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25, 16, 10, .06) 0%, rgba(25, 16, 10, .1) 45%, rgba(25, 16, 10, .55) 100%), linear-gradient(180deg, rgba(25, 16, 10, .35), rgba(25, 16, 10, 0) 30%, rgba(25, 16, 10, 0) 70%, rgba(25, 16, 10, .45)); }
.finale .branch--silhouette { left: -3vw; top: 16%; width: clamp(340px, 44vw, 720px); transform: scaleX(-1); }
.finale__card { position: relative; z-index: 3; justify-self: end; width: min(560px, calc(100% - 2 * var(--gutter))); margin: 120px var(--gutter); padding: clamp(28px, 3.4vw, 48px); background: rgba(247, 245, 239, .94); color: var(--ink); box-shadow: 0 40px 100px -40px rgba(20, 12, 6, .55); }
@supports (backdrop-filter: blur(10px)) { .finale__card { background: rgba(247, 245, 239, .86); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); } }
.finale__card h2 { margin-bottom: 28px; }
.finale__contact { margin: 26px 0 0; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.finale__contact a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
@media (max-width: 900px) {
  .finale { align-items: end; min-height: auto; padding-top: 58vh; }
  .finale__card { justify-self: stretch; margin: 0 var(--gutter) var(--gutter); width: auto; }
  .finale .branch--silhouette { width: 88vw; top: 8vh; left: -14vw; }
}

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ocean) var(--grain); color: var(--on-dark); padding: clamp(80px, 10vw, 150px) 0 34px; overflow: hidden; }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; padding-bottom: clamp(60px, 7vw, 100px); border-bottom: 1px solid var(--line-dark); }
.footer__big { grid-column: 1 / span 8; font: 400 clamp(3rem, 8.4vw, 9rem)/.9 var(--serif); letter-spacing: -.015em; }
.footer__big em { color: var(--sand); }
.footer__sig { grid-column: 10 / span 3; justify-self: end; }
.footer__sig img { width: 220px; height: auto; filter: invert(1) brightness(1.6); opacity: .82; }
.footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; padding-block: clamp(50px, 6vw, 80px); font-size: 14.5px; line-height: 1.75; color: var(--on-dark-2); }
.footer__cols h3 { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 245, 239, .6); margin-bottom: 18px; }
.footer__col { grid-column: span 3; }
.footer__col--brand { grid-column: span 3; }
.footer__col--brand svg { width: 86px; height: 86px; margin-bottom: 20px; color: var(--ivory); }
.footer__marks { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.footer__marks img { height: 54px; width: auto; }
.footer__marks .slh { height: 46px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: rgba(247, 245, 239, .6); }
.footer__credit a { color: var(--on-dark); }
@media (max-width: 1100px) { .footer__col, .footer__col--brand { grid-column: span 6; } }
@media (max-width: 640px) { .footer__col, .footer__col--brand { grid-column: 1 / -1; } .footer__big, .footer__sig { grid-column: 1 / -1; justify-self: start; } .footer__sig { margin-top: 24px; } }

/* ---------- Mobile booking bar ---------- */
.book-bar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; background: rgba(247, 245, 239, .92); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 18px 40px -20px rgba(20, 16, 12, .45); transform: translateY(140%); transition: transform .7s var(--ease); }
@supports (backdrop-filter: blur(10px)) { .book-bar { background: rgba(247, 245, 239, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.book-bar.is-visible { transform: none; }
.book-bar span { font: 400 1.15rem/1.1 var(--serif); }
.book-bar span small { display: block; font: 500 9.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olive-ink); }
@media (max-width: 900px) { .book-bar { display: flex; } }

/* ---------- Chapter index (home) ---------- */
.chapters { position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; opacity: 0; transition: opacity .6s var(--ease); }
.chapters.is-visible { opacity: 1; }
.chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-decoration: none; font: 500 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.chapters a span { opacity: 0; transform: translateX(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.chapters a i { width: 14px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.chapters a.is-current { color: var(--ink); }
.chapters a.is-current i { width: 30px; }
.chapters:hover a span, .chapters a.is-current span, .chapters a:focus-visible span { opacity: 1; transform: none; }
.chapters.on-dark a { color: rgba(247, 245, 239, .62); } .chapters.on-dark a.is-current { color: var(--ivory); }
@media (max-width: 1100px) { .chapters { display: none; } }

/* ---------- Villas page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip { min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed='true'] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.chip .c { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.villa-list { display: grid; gap: clamp(90px, 11vw, 170px); margin-top: clamp(60px, 7vw, 110px); }
.villa-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.villa-row[hidden] { display: none; }
.villa-row__media { grid-column: 1 / span 7; aspect-ratio: 7 / 5; }
.villa-row__text { grid-column: 9 / span 4; }
.villa-row:nth-child(even) .villa-row__media { grid-column: 6 / span 7; order: 2; }
.villa-row:nth-child(even) .villa-row__text { grid-column: 1 / span 4; order: 1; }
.villa-row__name { font: 400 clamp(3rem, 6vw, 6.2rem)/.9 var(--serif); }
.villa-row__name em { display: block; font-size: .32em; margin-top: 14px; color: var(--ink-2); }
.spec { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0; border-top: 1px solid var(--line); }
.spec li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.spec li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.spec b { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.spec span { font: 400 1.3rem/1.2 var(--serif); }
.villa-row__actions { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
@media (max-width: 900px) {
  .villa-row__media, .villa-row__text, .villa-row:nth-child(even) .villa-row__media, .villa-row:nth-child(even) .villa-row__text { grid-column: 1 / -1; order: 0; }
  .villa-row__text { margin-top: 30px; }
}

/* Villa map */
.villa-map { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.villa-map__art { position: relative; aspect-ratio: 1920 / 1355; }
.villa-map__art > picture img { object-fit: contain; }
.villa-map__pin { position: absolute; display: block; text-decoration: none; transition: transform .6s var(--ease), filter .4s; transform-origin: 50% 80%; }
.villa-map__pin img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(36, 75, 89, .18)); }
.villa-map__pin span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ocean); background: rgba(247, 245, 239, .9); padding: 6px 9px; border-radius: 999px; }
.villa-map__pin:hover, .villa-map__pin:focus-visible, .villa-map__pin.is-active { transform: translateY(-6px) scale(1.06); z-index: 2; }
.villa-map__legend { display: flex; justify-content: space-between; gap: 20px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.villa-map__card { position: absolute; z-index: 5; width: 300px; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(20, 16, 12, .5); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.villa-map__card.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.villa-map__card .media-frame { aspect-ratio: 3 / 2; }
.villa-map__card div { padding: 16px 18px 18px; }
.villa-map__card b { font: 400 1.7rem/1 var(--serif); display: block; }
.villa-map__card span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .villa-map__pin span { display: none; } .villa-map__card { display: none; } }

/* ---------- Villa detail ---------- */
.villa-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; color: var(--ivory); overflow: hidden; background: #2b3127; }
.villa-hero__media { position: absolute; inset: -6% 0 0; }
.villa-hero__media picture { position: absolute; inset: 0; }
.villa-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 14, .3) 0%, rgba(18, 18, 14, 0) 26%, rgba(18, 18, 14, .04) 56%, rgba(18, 18, 14, .62) 100%); }
.villa-hero__content { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 7vh, 90px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
.villa-hero__name { font: 400 clamp(4.4rem, 15vw, 15rem)/.82 var(--serif); letter-spacing: -.02em; }
.villa-hero__meaning { font: italic 400 clamp(1.3rem, 2.2vw, 2.2rem)/1.1 var(--serif); margin-top: 14px; }
.villa-hero .eyebrow { color: rgba(247, 245, 239, .85); }
.villa-hero__nav { display: flex; gap: 10px; }
.villa-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.villa-body__story { grid-column: 1 / span 7; }
.villa-body__story .statement { margin-bottom: 44px; }
.villa-body__story p:not(.statement) { font-size: clamp(1.02rem, 1.15vw, 1.12rem); color: var(--ink-2); max-width: 38em; }
.villa-body__aside { grid-column: 9 / span 4; }
.booking-card { position: sticky; top: 100px; padding: clamp(24px, 2.6vw, 36px); background: var(--white); box-shadow: 0 1px 0 var(--line), 0 30px 80px -50px rgba(20, 16, 12, .45); }
.booking-card h2 { font: 400 1.9rem/1.05 var(--serif); margin-bottom: 6px; }
.booking-card .booking-form { margin-top: 22px; }
.villa-specs { margin-top: clamp(70px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.villa-specs > div { grid-column: span 4; }
.villa-specs h3 { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--olive-ink); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.villa-specs li { padding: 7px 0; font-size: 15px; line-height: 1.5; display: flex; gap: 12px; }
.villa-specs li::before { content: ''; flex: 0 0 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--stone); }
.villa-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 26px); row-gap: clamp(40px, 6vw, 90px); }
.villa-gallery figure { grid-column: span 6; }
.villa-gallery figure .media-frame { aspect-ratio: 3 / 2; }
.villa-gallery figure:nth-child(3n + 1) { grid-column: 1 / span 8; }
.villa-gallery figure:nth-child(3n + 2) { grid-column: 9 / span 4; margin-top: 14vw; }
.villa-gallery figure:nth-child(3n + 2) .media-frame { aspect-ratio: 4 / 5; }
.villa-gallery figure:nth-child(3n + 3) { grid-column: 3 / span 6; }
.villa-gallery figure:nth-child(3n + 3) .media-frame { aspect-ratio: 16 / 10; }
.gallery-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.pair-note { margin-top: 40px; padding: 26px 28px; background: #EFE8DB; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.pair-note .media-frame { width: 120px; aspect-ratio: 1; }
.pair-note p { margin: 0 0 8px; font-size: 15px; }
.villa-next { display: grid; grid-template-columns: 1fr 1fr; }
.villa-next a { position: relative; display: block; min-height: 52vh; color: var(--ivory); text-decoration: none; overflow: hidden; }
.villa-next a::after { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 12, .38); transition: background .6s var(--ease); }
.villa-next a:hover::after { background: rgba(20, 16, 12, .22); }
.villa-next .media-frame { position: absolute; inset: 0; }
.villa-next span { position: absolute; z-index: 2; left: var(--gutter); bottom: 34px; display: grid; gap: 10px; }
.villa-next span small { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.villa-next span b { font: 400 clamp(2.4rem, 5vw, 5rem)/.9 var(--serif); }
@media (max-width: 1000px) {
  .villa-body__story, .villa-body__aside { grid-column: 1 / -1; }
  .villa-body__aside { margin-top: 50px; }
  .booking-card { position: static; }
  .villa-specs > div { grid-column: span 6; }
}
@media (max-width: 700px) {
  .villa-hero__content { grid-template-columns: 1fr; }
  .villa-specs > div { grid-column: 1 / -1; }
  .villa-gallery { grid-template-columns: 1fr; }
  .villa-gallery figure { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .villa-next { grid-template-columns: 1fr; }
  .villa-next a { min-height: 36vh; }
}

/* ---------- Generic editorial blocks ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.split__media { grid-column: 1 / span 6; aspect-ratio: 4 / 5; }
.split__text { grid-column: 8 / span 5; }
.split--rev .split__media { grid-column: 7 / span 6; order: 2; }
.split--rev .split__text { grid-column: 1 / span 5; order: 1; }
.split__text h2 { margin-bottom: 28px; }
.split__text p { color: var(--ink-2); }
@media (max-width: 900px) { .split__media, .split__text, .split--rev .split__media, .split--rev .split__text { grid-column: 1 / -1; order: 0; } .split__text { margin-top: 40px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(30px, 3vw, 46px) clamp(18px, 2vw, 30px); }
.card .media-frame { aspect-ratio: 4 / 5; }
.card h3 { font: 400 clamp(1.5rem, 2vw, 2rem)/1.08 var(--serif); margin: 20px 0 10px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.card .tag { display: block; margin-top: 16px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }

.price-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 4vw, 60px); }
.price-list h3 { font: 400 1.9rem/1.1 var(--serif); margin-bottom: 18px; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list li span:first-child { font-size: 15.5px; }
.price-list li span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--ink-3); }
.price-list li span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 1.25rem/1 var(--serif); }
@media (max-width: 1000px) { .price-list { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; }
.timeline li { scroll-snap-align: start; }
.timeline .media-frame { aspect-ratio: 3 / 4; }
.timeline .when { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.timeline .when::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.timeline h3 { font: 400 1.6rem/1.08 var(--serif); margin-bottom: 8px; }
.timeline p { font-size: 14.5px; color: var(--ink-2); }

.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 24ch; font: italic 400 clamp(2rem, 4.4vw, 4.4rem)/1.08 var(--serif); }
.quote-band cite { display: block; margin-top: 30px; font: 500 10.5px/1 var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--olive-ink); }
.dark .quote-band cite { color: rgba(247, 245, 239, .7); }

.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); }
.person .media-frame { aspect-ratio: 3 / 4; }
.person b { display: block; font: 400 1.6rem/1.1 var(--serif); margin-top: 16px; }
.person span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }

.check-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.check-list li::before { content: ''; flex: 0 0 18px; height: 1px; margin-top: .9em; background: var(--olive); }
.dark .check-list li { border-color: var(--line-dark); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 400 1.45rem/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 1.6rem/1 var(--sans); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 46em; padding-bottom: 20px; }

.masonry { columns: 3 320px; column-gap: clamp(12px, 1.4vw, 22px); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 22px); }
.masonry figure[hidden] { display: none; }
.masonry .media-frame { position: relative; }
.masonry .media-frame > picture { position: static; }
.masonry .media-frame img { position: static; height: auto; }

.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #222; cursor: pointer; overflow: hidden; color: var(--ivory); }
.video-facade picture { position: absolute; inset: 0; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: rgba(20, 16, 12, .25); transition: background .4s; }
.video-facade:hover::after { background: rgba(20, 16, 12, .12); }
.video-facade .play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(247, 245, 239, .8); display: grid; place-items: center; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 50px; }
.contact-grid .info { grid-column: 1 / span 5; }
.contact-grid form { grid-column: 7 / span 6; }
.contact-lines { display: grid; gap: 26px; margin-top: 36px; }
.contact-lines div b { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); margin-bottom: 8px; }
.contact-lines div a, .contact-lines div span { font: 400 1.5rem/1.3 var(--serif); text-decoration: none; }
.contact-lines div a:hover { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.form-grid .f { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.form-grid .f--wide { grid-column: 1 / -1; }
.form-grid label { font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive-ink); }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 0; background: transparent; font: 400 1.2rem/1.4 var(--serif); color: inherit; padding: 4px 0; resize: vertical; border-radius: 0; }
.form-grid input:focus-visible, .form-grid textarea:focus-visible { outline: none; }
.form-grid .f:focus-within { border-bottom-color: var(--ocean); }
@media (max-width: 900px) { .contact-grid .info, .contact-grid form { grid-column: 1 / -1; } .form-grid { grid-template-columns: 1fr; } }

/* lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(20, 17, 13, .96); color: var(--ivory); }
.lightbox::backdrop { background: rgba(20, 17, 13, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade-in .5s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lightbox__bar button, .lightbox__nav button { background: none; border: 1px solid rgba(247, 245, 239, .4); color: inherit; border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 16px; font: inherit; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage picture { width: 100%; height: 100%; }
.lightbox__stage img { object-fit: contain; }
.lightbox__nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px var(--gutter) 22px; font-size: 14px; color: rgba(247, 245, 239, .8); }

/* cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Concept tag */
.concept-tag { position: fixed; z-index: 45; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(247, 245, 239, .86); color: var(--ink-2); font: 500 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 6px 20px -12px rgba(20, 16, 12, .5); }
@media (max-width: 900px) { .concept-tag { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal='mask'] picture, .js .split-line > span, .js [data-split] .sw > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal='mask'] img { transform: none !important; }
  [data-parallax] { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Additions ---------- */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #222; overflow: hidden; }
.video-wrap .video-facade { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.villa-map__art > picture { position: absolute; inset: 0; }
.villa-map__art > picture img { width: 100%; height: 100%; object-fit: contain; }
.dark .booking-form .btn { --bg: var(--ivory); --fg: var(--espresso); }
.dark .booking-form .btn::after { background: var(--white); }
.dark .booking-form input { color-scheme: dark; }
.dark .booking-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F7F5EF' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
.dark .booking-form option { color: var(--espresso); }
.dark .booking-form__note { color: rgba(247, 245, 239, .66); }
.dark .booking-form__error { color: #f3c9a4; }
.dark a { color: inherit; }
.stay-band .grid > div { min-width: 0; }
@media (max-width: 900px) { .stay-band .grid > div { grid-column: 1 / -1 !important; } }
.todo { font: 500 11px/1.5 var(--sans); letter-spacing: .03em; padding: 2px 7px; border: 1px dashed #b07a45; border-radius: 4px; color: #8a5a2b; background: rgba(216, 198, 170, .28); white-space: normal; }
.dark .todo { color: #f0cfa7; border-color: #f0cfa7; background: rgba(240, 207, 167, .1); }
.split__media.media-frame > picture { position: absolute; inset: 0; }
.grid > [style*="grid-column"] { min-width: 0; }
@media (max-width: 900px) { .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; text-align: left !important; } }
html { overflow-x: clip; }
.chapter, .intro, .experiences { overflow-x: clip; }
@media (max-width: 640px) {
  .hero__marks { gap: 16px; }
  .hero__marks li { font-size: 9px; letter-spacing: .16em; gap: 8px; line-height: 1.45; }
  .hero__marks img { height: 26px; }
  .header .btn--book .long { display: none; }
  .on-photo .eyebrow { letter-spacing: .18em; }
}
@media (min-width: 641px) { .header .btn--book .short { display: none; } }
.on-photo .eyebrow, .villa-hero .eyebrow, .page-hero .eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.villa-hero::after { background: linear-gradient(180deg, rgba(18, 18, 14, .32) 0%, rgba(18, 18, 14, 0) 24%, rgba(18, 18, 14, .08) 46%, rgba(18, 18, 14, .72) 100%); }
.booking-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.booking-form input, .booking-form select { min-width: 0; max-width: 100%; }
.finale { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .booking-form input, .booking-form select { font-size: 1.18rem; }
  .booking-form .field:nth-child(odd) { padding-right: 12px; }
  .booking-form .field:nth-child(even) { padding-left: 12px; }
  .finale__card { padding: 26px 22px; }
}
.menu__list a { font-size: clamp(2rem, min(4.4vw, 6.6vh), 3.9rem); line-height: 1.04; }
.menu__inner { padding-top: calc(var(--header-h) + 2vh); }
.branch--silhouette .leaf, .branch--silhouette .leaf.d { fill: #17120d; }
.branch--silhouette .leaf.l { fill: #241b13; }
/* the closed menu must not render (otherwise its preview photos download on every page) */
.menu[hidden] { display: none !important; }
.menu__media picture { display: none; }
.menu__media picture.was-active, .menu__media picture.is-active { display: block; }

/* ---------- Finale without the bird: card on the left, the sun beside it, the dhow free on the right ---------- */
.finale__media img { object-position: center 60%; }
.finale--open { min-height: 100vh; min-height: 100svh; }
.finale--open::before { background: linear-gradient(90deg, rgba(25, 16, 10, .42) 0%, rgba(25, 16, 10, .14) 42%, rgba(25, 16, 10, 0) 70%), linear-gradient(180deg, rgba(25, 16, 10, .3), rgba(25, 16, 10, 0) 28%, rgba(25, 16, 10, 0) 72%, rgba(25, 16, 10, .4)); }
.finale--open .finale__media img { object-position: 15% 60%; }
.finale--open .finale__card { justify-self: start; width: min(460px, calc(100% - 2 * var(--gutter))); }
@media (max-width: 900px) {
  .finale--open { min-height: auto; }
  .finale--open .finale__media img { object-position: 30% 50%; }
  .finale--open .finale__card { justify-self: stretch; width: auto; }
}
.finale--open .finale__media img { object-position: 20% 60%; }
@media (min-width: 901px) { .finale--open .finale__card { margin-block: 90px; } }
