/* =========================================================
   The Reef — prototype
   Palette: stone, clay, champagne, deep sea-ink. Quiet, low saturation.
   ========================================================= */
:root {
  --sand: #efe8dd;
  --sand-2: #e3d9c9;
  --stone: #d6cab8;
  --paper: #f8f4ee;
  --ink: #1b1815;
  --ink-2: #4a433b;
  --muted: #6a6157;
  --line: rgb(29 26 22 / 0.12);
  --coral: #9b5a3d;   /* clay, not orange */
  --coral-2: #c79a7f;
  --coral-ink: #8a4b2f; /* small clay text: >= 4.5:1 on sand/paper */
  --champagne: #e6d3b8; /* accent on dark */
  --lagoon: #1a2422;   /* deep sea-ink */
  --lagoon-2: #8fb3ab;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 18px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--paper); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 13vw, 180px); }

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em, .w--em { font-style: italic; color: var(--coral); }
.display--light { color: var(--paper); }
.display--light em, .display--light .w--em { color: var(--champagne); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 28px 0 0; line-height: 1.6; }
.lede--light { color: rgb(251 247 241 / 0.82); }
.fineprint { font-size: 12px; color: var(--muted); margin: 28px auto 0; }

/* split lines */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; will-change: transform; }
.w { display: inline-block; }
html.js:not(.is-ready) [data-split] { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); border-color: rgb(251 247 241 / 0.5); backdrop-filter: blur(6px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { --bg: var(--coral); }
  .btn--light:hover { --bg: #fff; }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--ghost-light:hover { border-color: var(--paper); background: rgb(251 247 241 / 0.12); }
}
.link-light { color: var(--paper); text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 15px; display: inline-block; margin-top: 28px; }

/* ---------- Nav (matches the client mockup: logo centred, always readable) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--gutter);
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: transform 400ms var(--ease-out), border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}
.nav.is-solid { border-color: var(--line); }
/* Over the hero: transparent, light text and logo, until the page scrolls or the menu opens */
.nav--over:not(.is-solid):not(.is-open) { background: transparent; color: var(--paper); }
.nav--over:not(.is-solid):not(.is-open) .nav__logo--dark { opacity: 0; }
.nav--over:not(.is-solid):not(.is-open) .nav__logo--light { opacity: 1; }
.nav--over:not(.is-solid):not(.is-open) .btn--dark { --bg: var(--paper); --fg: var(--ink); }
.nav--over:not(.is-solid):not(.is-open) .lang__btn.is-active { border-color: var(--champagne); }
.nav.is-hidden:not(.is-open) { transform: translateY(-100%); }
.nav__start, .nav__end { display: flex; align-items: center; gap: 28px; }
.nav__end { justify-self: end; }
.nav__start .btn span, .nav__tour span { margin-left: 2px; }
.nav__place, .nav__tour { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: inherit; opacity: 0.8; transition: opacity 200ms ease; }
.nav__brand { justify-self: center; display: grid; line-height: 0; }
.nav__logo { grid-area: 1 / 1; transition: opacity 300ms ease; }
.nav__brand img { width: 115px; height: 63px; object-fit: contain; }
.nav__logo--light { opacity: 0; }
.lang { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.lang > span { opacity: 0.45; }
.lang__btn { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; font: inherit; letter-spacing: 0.06em; color: inherit; opacity: 0.7; cursor: pointer; transition: opacity 200ms ease, border-color 200ms ease; }
.lang__btn.is-active { opacity: 1; border-color: var(--coral); }
.nav__menu { width: 28px; height: 42px; padding: 0; border: 0; background: none; color: inherit; display: flex; flex-direction: column; justify-content: center; gap: 7px; cursor: pointer; }
.nav__menu span { display: block; height: 1px; background: currentColor; transition: transform 300ms var(--ease-out); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__place:hover, .nav__tour:hover { opacity: 1; }
  .lang__btn:hover { opacity: 0.9; }
}
/* Menu: split panel (photo left, links right), slides over everything */
.menu { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 2fr 3fr; }
.menu[hidden] { display: none; }
.menu__media { position: relative; overflow: hidden; background: var(--lagoon); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__media::after { content: ""; position: absolute; inset: 0; background: rgb(18 16 14 / 0.25); }
.menu__panel { position: relative; background: var(--stone); color: var(--ink); overflow-y: auto; display: flex; }
.menu__close { position: absolute; top: 28px; right: clamp(20px, 4vw, 56px); width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; transition: transform 300ms var(--ease-out); }
.menu__close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .menu__close:hover { transform: rotate(90deg); } }
.menu__body { margin: auto; width: min(100% - 2 * var(--gutter), 760px); padding-block: 110px 56px; }
.menu__label { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.menu__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; margin-bottom: clamp(48px, 8vh, 96px); }
.menu__links a { justify-self: start; font-family: var(--sans); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat; transition: background-size 400ms var(--ease-out); }
.menu__links a[aria-current="page"], .menu__links a:focus-visible { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) { .menu__links a:hover { background-size: 100% 1px; } }
.menu__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 17px; margin-bottom: 40px; }
.menu__contact a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu__contact a:hover { background-size: 100% 1px; } }
.menu__contact span { color: var(--muted); }
.menu__small { margin: 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 899px) {
  .menu { grid-template-columns: 1fr; }
  .menu__media { display: none; }
  .menu__links { grid-template-columns: 1fr; }
  .menu__contact { flex-direction: column; align-items: flex-start; }
  .menu__contact span { display: none; }
  .menu__body { padding-top: 96px; }
}
@media (max-width: 1000px) { .nav__place, .nav__tour { display: none; } .nav__start, .nav__end { gap: 20px; } }
@media (max-width: 700px) {
  :root { --nav-h: 70px; }
  .nav__brand img { width: 92px; height: 50px; }
  .nav .btn--small { height: 34px; padding: 0 13px; font-size: 13px; }
  .nav .btn--small span { display: none; }
  .nav__end { gap: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--paper); background: var(--lagoon); }
.hero__media { position: absolute; inset: -4% 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(18 16 14 / 0.45) 0%, rgb(18 16 14 / 0) 28%),
  linear-gradient(0deg, rgb(20 14 10 / 0.72) 0%, rgb(20 14 10 / 0.2) 45%, rgb(20 14 10 / 0) 70%); }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 110px); padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 10.2vw, 128px); line-height: 0.96; letter-spacing: -0.02em; white-space: nowrap; } /* two lines, always */
.hero__title em, .hero__title .w--em { font-style: italic; color: var(--champagne); }
.hero__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.hero__scroll span { width: 1px; height: 54px; background: linear-gradient(var(--paper), transparent); transform-origin: top; animation: scrollcue 2.2s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.intro .display { max-width: 14ch; }
@media (min-width: 1000px) {
  .intro__grid { grid-template-columns: 1.4fr 1fr; column-gap: 64px; align-items: end; }
  .intro__grid   .intro .lede { margin: 0 0 12px; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 120px); padding-top: 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line); padding: 22px 16px 0 0; margin: 0; }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(56px, 7vw, 108px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: 0.4em; margin-left: 4px; color: var(--coral-ink); }
@media (max-width: 899px) { .stat:nth-child(n+3) { margin-top: 36px; } }

/* ---------- Masterplan ---------- */
.mp { position: relative; height: 560vh; background: #d8dbd2; }
.mp__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mp__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms ease; }
.mp__canvas.is-ready { opacity: 1; }
.mp__fallback, .mp__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp__loader { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--lagoon); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 500ms ease; }
.mp__loader.is-done { opacity: 0; pointer-events: none; }
.mp__loader-bar { width: 180px; height: 2px; background: rgb(26 36 34 / 0.2); overflow: hidden; border-radius: 2px; }
.mp__loader-bar i { display: block; height: 100%; background: var(--lagoon); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }

.mp::before { content: ""; position: absolute; inset: 0 0 auto; height: 100svh; z-index: 1; pointer-events: none; }
.mp__sticky::after { /* legibility scrim behind the copy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(18 22 20 / 0.62) 0%, rgb(18 22 20 / 0.25) 34%, rgb(18 22 20 / 0) 55%),
              linear-gradient(0deg, rgb(18 22 20 / 0.35), rgb(18 22 20 / 0) 30%);
}
.mp__ui { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(420px, calc(100% - 2 * var(--gutter))); color: var(--paper); }
.mp__chapters { list-style: none; margin: 0; padding: 0; display: grid; }
.mp__chapter { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), filter 500ms var(--ease-out); pointer-events: none; }
.mp__chapter.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.mp__num { font-size: 12px; letter-spacing: 0.16em; color: var(--champagne); }
.mp__chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; margin: 10px 0 14px; letter-spacing: -0.01em; }
.mp__chapter p { margin: 0; font-size: 17px; line-height: 1.55; color: rgb(251 247 241 / 0.86); max-width: 34ch; }
.mp__progress { margin-top: 34px; height: 2px; background: rgb(251 247 241 / 0.25); border-radius: 2px; overflow: hidden; }
.mp__progress i { display: block; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }
.mp__note { position: absolute; z-index: 2; right: var(--gutter); bottom: 20px; margin: 0; font-size: 11px; color: rgb(251 247 241 / 0.75); }
.mp__labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mp__label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
  background: rgb(251 247 241 / 0.92); padding: 6px 12px 6px 22px; border-radius: 999px;
  translate: -12px -50%;
  opacity: 0; scale: 0.96; transition: opacity 300ms var(--ease-out), scale 300ms var(--ease-out);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.12);
}
.mp__label::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); translate: 0 -50%; }
.mp__label.is-on { opacity: 1; scale: 1; }
@media (max-width: 760px) {
  .mp__ui { top: auto; bottom: 56px; transform: none; }
  .mp__sticky::after { background: linear-gradient(0deg, rgb(18 22 20 / 0.75) 0%, rgb(18 22 20 / 0.3) 45%, rgb(18 22 20 / 0) 65%); }
  .mp__note { left: var(--gutter); right: auto; bottom: 18px; }
}

/* ---------- Life (pinned blade slider) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.life { position: relative; height: calc(var(--n) * 100svh); background: var(--ink); }
.life__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--paper); }
.life__bg, .life__bgslide { position: absolute; inset: 0; }
.life__bgslide { overflow: hidden; }
.life__bg::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: linear-gradient(90deg, rgb(18 16 14 / 0.55), rgb(18 16 14 / 0.12) 40%, rgb(18 16 14 / 0.12) 60%, rgb(18 16 14 / 0.45)); }
.life__bgslide > img, .life__picslide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* blades: vertical strips, each holding a slice of the same image */
.blade { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.blade__in { position: absolute; inset: 0; }
.blade__in > img { position: absolute; top: 0; height: 100%; object-fit: cover; max-width: none; }

.life__side { position: absolute; z-index: 10; top: 50%; translate: 0 -50%; margin: 0; }
.life__side--l { left: var(--gutter); width: calc((100vw - var(--card-w)) / 2 - var(--gutter) * 1.6); }
.life__side--r { right: var(--gutter); font-size: 17px; letter-spacing: 0.02em; color: rgb(248 244 238 / 0.85); }
.life__heading { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.015em; }
.life__heading em { color: var(--champagne); }
.life__note { position: absolute; z-index: 10; left: var(--gutter); bottom: 18px; margin: 0; font-size: 11px; color: rgb(248 244 238 / 0.7); }

.life { --card-w: clamp(340px, 32vw, 500px); }
.life__card {
  position: absolute; z-index: 10; left: 50%; top: calc(50% + var(--nav-h) / 2); translate: -50% -50%;
  width: var(--card-w); height: min(calc(100svh - var(--nav-h) - 56px), 860px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(14px, 2.6vh, 30px); padding: clamp(20px, 3vh, 34px) clamp(20px, 2.4vw, 34px) clamp(24px, 4vh, 44px);
  background: var(--stone); color: var(--ink);
}
.life__count { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.life__count::before { content: "0"; }
.life__digit { display: inline-block; height: 1.2em; line-height: 1.2em; overflow: hidden; margin-left: -6px; }
.life__digits { display: flex; flex-direction: column; }
.life__dash { color: var(--muted); }
.life__stack { display: grid; width: 100%; }
.life__stack > * { grid-area: 1 / 1; }
.life__tag { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #6e3c27; /* 4.5:1 on stone */ margin-bottom: 8px; }
.life__title h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.7vw, 44px); line-height: 1; letter-spacing: -0.01em; }
.life__title h3 em { color: var(--coral); }
.life__pic { position: relative; width: 100%; flex: 1 1 auto; min-height: 160px; overflow: hidden; background: var(--sand-2); }
.life__picslide { position: absolute; inset: 0; overflow: hidden; }
.life__text { margin: 0 auto; max-width: 30ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.life__title:not(:first-child), .life__text:not(:first-child) { visibility: hidden; opacity: 0; }

@media (max-width: 899px) {
  .life { --card-w: calc(100vw - 2 * var(--gutter)); }
  .life__side--r { display: none; }
  .life__side--l { top: calc(var(--nav-h) + 8px); translate: none; width: auto; right: var(--gutter); }
  .life__side--l   .life__heading { font-size: 32px; }
  .life__card { top: auto; bottom: 40px; translate: -50% 0; height: auto; max-height: calc(100svh - var(--nav-h) - 140px); }
  .life__pic { flex: 0 1 auto; aspect-ratio: 4 / 3; }
  .life__text { font-size: 15px; }
  .life__note { bottom: 12px; }
}

/* ---------- Residences: four cards ---------- */
.res { background: var(--paper); }
.res__head { display: grid; gap: 28px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .res__head { grid-template-columns: auto minmax(0, 1fr); } }
.res .display { font-size: clamp(30px, 8.2vw, 104px); white-space: nowrap; } /* two lines, always */
.res__intro .lede { margin: 0 0 28px; }
.res__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 1.6vw, 24px); grid-template-columns: repeat(4, 1fr); }
.rcard h3 { margin: 18px 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; }
.rcard p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.rcard__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--sand-2); }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rcard:hover .rcard__media img { transform: scale(1.04); } }
.res .fineprint { margin: 36px 0 0; }
@media (max-width: 999px) { .res__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .res__cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .res__cards::-webkit-scrollbar { display: none; }
  .rcard { scroll-snap-align: start; }
}

/* Stock placeholders: pull them toward the warm, low-saturation palette */
.rcard__media img, .amcard__media img { filter: saturate(0.82) sepia(0.08) contrast(1.02); }

/* ---------- Club ---------- */
.club { position: relative; min-height: 120svh; display: grid; align-items: end; color: var(--paper); background: var(--paper); }
.club__media { position: absolute; inset: 0; overflow: hidden; }
.club__media img { width: 100%; height: 100%; object-fit: cover; }
.club__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(25 14 8 / 0.75), rgb(25 14 8 / 0) 60%); }
.club__content { position: relative; padding-bottom: clamp(56px, 10vh, 120px); }
.club__logo { filter: brightness(0) invert(1); width: 140px; height: auto; margin-bottom: 28px; opacity: 0.9; }
.club__facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 40px 0 0; }
.club__facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.club__facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 36px; }

/* ---------- Amenities: infinite carousel, edge to edge ---------- */
.amen__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.amen__nav { display: flex; gap: 10px; flex: none; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.arrow--prev svg { transform: scaleX(-1); }
.arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }
@media (max-width: 599px) { .arrow { width: 44px; height: 44px; } }
.marquee { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee img { -webkit-user-drag: none; pointer-events: none; }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; will-change: transform; }
.amcard { flex: 0 0 auto; width: clamp(260px, 24vw, 400px); }
.amcard__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--stone); }
.amcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.amcard h3 { margin: 18px 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.1vw, 32px); line-height: 1.05; }
.amcard p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 30ch; }
@media (hover: hover) and (pointer: fine) { .amcard:hover .amcard__media img { transform: scale(1.04); } }
.amen .fineprint { margin: 28px 0 0; }
/* No auto-motion: plain horizontal scroll with snap */
.marquee.is-static { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.marquee.is-static::-webkit-scrollbar { display: none; }
.marquee.is-static .marquee__track { padding-inline: var(--gutter); will-change: auto; }
.marquee.is-static .amcard { scroll-snap-align: start; }

/* ---------- Masterplan teaser (home) ---------- */
.mpt { position: relative; background: var(--lagoon); }
.mpt__link { position: relative; display: grid; align-items: end; min-height: 100svh; color: var(--paper); text-decoration: none; overflow: hidden; isolation: isolate; }
.mpt__media { position: absolute; inset: -6% 0; margin: 0; z-index: -2; }
.mpt__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1200ms var(--ease-out); }
.mpt__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(18 22 20 / 0.72) 0%, rgb(18 22 20 / 0.2) 50%, rgb(18 22 20 / 0) 75%); }
.mpt__content { width: 100%; padding-bottom: clamp(56px, 10vh, 120px); }
.mpt__content .lede { margin-bottom: 32px; }
@media (hover: hover) and (pointer: fine) { .mpt__link:hover .mpt__media img { scale: 1.03; } }
.mpt__link:active .btn { transform: scale(0.97); }

/* ---------- 3D page: closing block ---------- */
.next__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .next__grid { grid-template-columns: 1.4fr 1fr; } }
.next__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Location: stacked editorial, map zooms out on scroll ---------- */
.loc { background: var(--lagoon); color: var(--paper); }
.loc .display em, .loc .w--em { color: var(--champagne); }
.loc .lede { color: rgb(248 244 238 / 0.82); margin: 0; }
.loc .fineprint { color: rgb(248 244 238 / 0.7); margin: 24px 0 0; }
.loc__head { display: grid; gap: 28px 80px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .loc__head { grid-template-columns: 1.2fr 1fr; } }
.loc__map { margin: 0; width: 100%; aspect-ratio: 16 / 9; max-height: 100svh; overflow: hidden; background: #0f1513; } /* full-bleed */
.loc__map img { width: 100%; height: 100%; object-fit: cover; transform-origin: 56% 22%; }
.loc__stage { position: relative; }
@media (min-width: 700px) {
  .loc { padding-bottom: 0; }
  /* stats sit on the open sea, left of the peninsula; the panel also hides the map's baked-in legend */
  .loc__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgb(26 36 34 / 0.98) 0%, rgb(26 36 34 / 0.96) 27%, rgb(26 36 34 / 0) 44%); }
  .loc__overlay { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: min(36%, 460px); max-width: none; margin: 0;
    display: flex; flex-direction: column; justify-content: center; }
  .loc__overlay .loc__times { grid-template-columns: 1fr; gap: 0; margin: 0; }
  .loc__overlay .loc__times li { grid-template-columns: auto 1fr; align-items: baseline; gap: 20px; padding: 18px 0; }
  .loc__overlay .loc__times b { font-size: clamp(48px, 4.4vw, 72px); min-width: 1.3em; }
}
.loc__times { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.loc__times li { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid rgb(248 244 238 / 0.2); }
.loc__times b { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6vw, 96px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.loc__times span { color: rgb(248 244 238 / 0.82); font-size: 15px; }
@media (max-width: 699px) {
  .loc__map { aspect-ratio: 4 / 3; }
  .loc__times { grid-template-columns: 1fr; gap: 0; }
  .loc__times li { grid-template-columns: auto 1fr; align-items: baseline; gap: 18px; padding: 16px 0; }
  .loc__times b { font-size: 52px; min-width: 1.3em; }
}

/* ---------- Timeline ---------- */
.time__track { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.time__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.time__line { position: absolute; background: var(--line); }
.time__line i { position: absolute; inset: 0; background: var(--coral); }
.time__item { position: relative; }
.time__item::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
/* mobile: vertical rail on the left */
.time__line { left: 4px; top: 6px; bottom: 6px; width: 1px; }
.time__line i { transform-origin: top; transform: scaleY(0); }
.time__list { padding-left: 32px; }
.time__item::before { left: -32px; top: 0.5em; }
/* desktop: horizontal rail above the years */
@media (min-width: 800px) {
  .time__line { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .time__line i { transform-origin: left; transform: scaleX(0); }
  .time__list { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 0 0; }
  .time__item::before { left: 0; top: -45px; }
}
.time__year { font-family: var(--serif); font-size: clamp(56px, 6vw, 88px); line-height: 1; display: block; }
.time__item h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 500; }
.time__item p { margin: 0; color: var(--ink-2); max-width: 30ch; }
.time .fineprint { margin-left: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 1fr 1.2fr; gap: 96px; } }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: clamp(18px, 1.5vw, 21px); font-weight: 450;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after, .faq__item summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transition: transform 300ms var(--ease-out);
}
.faq__item summary::before { transform: rotate(90deg); }
.faq__item[open]:not(.is-closing) summary::before { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { margin: 0; padding: 0 44px 26px 0; color: var(--ink-2); max-width: 56ch; }

/* ---------- CTA ---------- */
.cta { position: relative; color: var(--paper); overflow: hidden; background: var(--ink); }
.cta__media { position: absolute; inset: 0; overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgb(20 14 10 / 0.62); }
.cta__inner { position: relative; display: grid; gap: 56px; padding-block: clamp(96px, 14vw, 180px); }
@media (min-width: 1000px) { .cta__inner { grid-template-columns: 1.1fr 0.9fr; gap: 96px; align-items: end; } }
.cta .display { max-width: 11ch; }

.form { background: rgb(251 247 241 / 0.1); border: 1px solid rgb(251 247 241 / 0.2); backdrop-filter: blur(18px) saturate(1.2); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(251 247 241 / 0.75); padding: 0; }
.field input:not([type="radio"]), .field textarea {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgb(251 247 241 / 0.28); background: rgb(251 247 241 / 0.06);
  color: var(--paper); font: inherit; font-size: 16px; transition: border-color 200ms ease, background-color 200ms ease;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgb(248 244 238 / 0.5); }
.field textarea:focus, .field input:not([type="radio"]):focus { outline: none; border-color: var(--paper); background: rgb(251 247 241 / 0.12); }
.field.is-invalid input { border-color: var(--coral-2); }
.field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field--chips legend { margin-bottom: 8px; width: 100%; }
.field--chips label { position: relative; }
.field--chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field--chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid rgb(251 247 241 / 0.3); font-size: 14px; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.field--chips label:active span { transform: scale(0.97); }
.field--chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.field--chips input:focus-visible + span { outline: 2px solid var(--coral-2); outline-offset: 2px; }
.form__note { margin: 0; font-size: 12px; color: rgb(251 247 241 / 0.6); }
.form.is-sent .btn { --bg: var(--coral); --fg: var(--paper); }
[data-form-label] { transition: filter 200ms ease, opacity 200ms ease; }

/* ---------- Footer ---------- */
.foot { background: var(--sand); padding-block: clamp(64px, 8vw, 112px) 28px; border-top: 1px solid var(--line); }
.foot__top { display: grid; gap: 48px 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot__top { grid-template-columns: 1.6fr 1fr 1fr auto; } }
.foot__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot__brand { grid-column: auto; } }
.foot__mark { height: 40px; width: auto; display: block; }
.foot__tag { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.1; }
.foot__tag em { color: var(--coral); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__col h2 { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot__col a { color: var(--ink); text-decoration: none; font-size: 15px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
.foot__col a span { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .foot__col a:hover { background-size: 100% 1px; } }
.foot__eoa { height: 64px; width: auto; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--line); }
.foot__bottom p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Investor enquiry: floating button + drawer ---------- */
.fab { position: fixed; z-index: 45; right: clamp(16px, 2.5vw, 32px); bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgb(27 24 21 / 0.45);
  transition: transform 300ms var(--ease-out), opacity 250ms ease, background-color 200ms ease; }
.fab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); }
.fab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .fab:hover { background: var(--coral-ink); } }
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(18 16 14 / 0.5); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--lagoon); color: var(--paper); padding: clamp(28px, 4vw, 48px) clamp(20px, 3.5vw, 44px) 40px; }
.drawer__close { position: absolute; top: 18px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; color: var(--paper); cursor: pointer; transition: transform 300ms var(--ease-out); }
.drawer__close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .drawer__close:hover { transform: rotate(90deg); } }
.drawer__title { margin: 24px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.drawer__title em { color: var(--champagne); }
.drawer__lede { margin: 0 0 28px; max-width: 44ch; color: rgb(248 244 238 / 0.75); font-size: 16px; line-height: 1.5; }
.form--drawer { background: none; border: 0; backdrop-filter: none; padding: 0; border-radius: 0; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field > span i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .mp__chapter { transform: none; filter: none; }
  .hero__scroll span { animation: none; }
}
