/* =========================================================================
   GOLD COAST ESTATE — Sibaya
   Bodoni Moda + Jost · Pewter / Cider / Off-white
   ========================================================================= */

:root {
  --pewter:    #312F3C;
  --pewter-2:  #44414f;
  --cider:     #6C4737;
  --cider-2:   #8a5b46;
  --white:     #FFFFFF;
  --cream:     #F6F2EC;
  --cream-2:   #efeae1;
  --line:      #E8E6EC;
  --black:     #000000;
  --body:      rgba(49, 47, 60, 0.78);

  --serif: "Bodoni Moda", "Didot LT STD", "Didot", "Times New Roman", serif;
  --sans:  "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(28px, 4vw, 72px);

  --t: 320ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--pewter);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cider); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--cider-2); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--pewter);
  margin: 0 0 .4em;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 52px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
h4 { font-size: 14px; font-family: var(--sans); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
p  { margin: 0 0 1em; color: var(--body); }
em, i { font-style: italic; }

/* italic accent on its own line, much smaller — luxury display contrast */
h1 em, h2 em, h3 em {
  display: block;
  font-size: calc(0.44em + 9px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.005em;
  line-height: 1.4;
  margin-top: 0.32em;
  color: var(--cider);
}
/* opt-out: inline em (used in hero, stats, etc.) */
h1 em.inline, h2 em.inline, h3 em.inline,
.stat__num em, .priceTag em {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  color: inherit;
}
section.dark h1 em, section.dark h2 em, section.dark h3 em,
.feature h2 em { color: var(--white); }
.hero h1 em { color: inherit; font-weight: 500; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pewter); color: var(--white);
  padding: 12px 18px; z-index: 9999;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- page loader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: #312F3C;
  display: grid; place-items: center;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), visibility .7s cubic-bezier(.2,.7,.2,1);
}
.loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 44px;
}
.loader__inner img {
  width: 220px; height: auto;
  opacity: 0;
  animation: loaderLogoIn 1.1s cubic-bezier(.2,.7,.2,1) .15s forwards;
}
.loader__mark {
  display: flex; gap: 14px; align-items: center;
  opacity: 0;
  animation: loaderLogoIn 1.1s cubic-bezier(.2,.7,.2,1) .45s forwards;
}
.loader__mark span {
  display: block;
  width: 1px; height: 36px;
  background: rgba(255,255,255,.95);
  transform-origin: center;
  transform: scaleY(0.25);
  opacity: .35;
  animation: loaderBreathe 1.6s cubic-bezier(.45,.05,.55,.95) infinite;
}
.loader__mark span:nth-child(1) { animation-delay: 0s; }
.loader__mark span:nth-child(2) { animation-delay: .2s; }
.loader__mark span:nth-child(3) { animation-delay: .4s; }
@keyframes loaderLogoIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loaderBreathe {
  0%, 100% { transform: scaleY(0.25); opacity: .25; }
  50%      { transform: scaleY(1);    opacity: 1; }
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .loader { display: none; } /* JS off: never show the loader overlay */
html.loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .loader__inner img,
  .loader__mark { animation: none; opacity: 1; }
  .loader__mark span { animation: none; transform: scaleY(1); opacity: 1; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cider);
  margin-bottom: 8px;
}
section.dark .eyebrow { color: var(--white); }
.feature .eyebrow { color: var(--white); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.42;
  color: var(--body);
  max-width: 720px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  line-height: 1;
}
.btn--solid { background: var(--cider); color: var(--white) !important; }
.btn--solid:hover { background: var(--pewter); color: var(--white) !important; }
.btn--ghost { background: transparent; color: var(--pewter); border-color: var(--pewter); }
.btn--ghost:hover { background: var(--pewter); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--pewter) !important; border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background-color var(--t), box-shadow var(--t);
  background-color: rgba(49, 47, 60, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transform: translateZ(0);
  will-change: background-color;
}
.site-header[data-transparent="true"] {
  background: rgba(49, 47, 60, 0.55);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: rgba(255,255,255,.10);
}
.site-header__logo-dark  { display: none; }
.site-header__logo-light { display: block; }
.site-header.scrolled {
  background: rgba(49, 47, 60, 0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

/* shrink the header on scroll — animated */
.site-header__logo img,
.site-header__inner,
.site-header__inner--split,
.site-nav__list a,
.site-nav__list a.site-header__cta {
  transition: padding var(--t), font-size var(--t), width var(--t), height var(--t);
}
.site-header.scrolled .site-header__inner,
.site-header.scrolled .site-header__inner--split {
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-header.scrolled .site-header__logo img { width: 106px; } /* ~30% smaller than 152px */
.site-header.scrolled .site-nav__list a { font-size: 10.5px; }
.site-header.scrolled .site-nav__list a.site-header__cta {
  padding-top: 10px; padding-bottom: 10px;
  padding-left: 22px; padding-right: 22px;
  font-size: 11px;
}

.site-header__inner {
  max-width: none;
  margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  gap: 20px;
}
.site-header__inner--split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 14px 40px;
}
.site-header__inner--split .site-nav--left  { justify-content: flex-end;   margin-left: 0; padding-right: 30px; }
.site-header__inner--split .site-nav--right { justify-content: flex-start; margin-left: 0; padding-left: 30px; }
.site-header__inner--split .site-header__logo { justify-self: center; }

.site-header__logo img { width: 152px; height: auto; }

.site-nav { margin-left: auto; display: flex; }
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 27px; align-items: center;
}
.site-nav__list a {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
  position: relative; padding: 8px 0;
  white-space: nowrap;
  transition: color var(--t);
}
.site-nav__list a:hover { color: #e7c8ae; }
.site-nav__list a[aria-current="page"] { color: #e7c8ae; }
.site-nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #e7c8ae;
}

.site-nav__list a.site-header__cta {
  margin-left: 8px;
  padding: 13px 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  background: var(--cider);
  color: var(--white);
  border: 1px solid var(--cider);
  line-height: 1;
}
.site-nav__list a.site-header__cta:hover {
  background: var(--white);
  color: var(--pewter);
  border-color: var(--white);
}
.site-nav__list a.site-header__cta[aria-current="page"]::after { display: none; }
.site-nav__list li:has(.site-header__cta) { margin-left: 6px; }
.site-header__cta:hover {
  background: transparent !important;
  color: var(--white) !important;
  border-color: var(--white);
}
.site-header__toggle span { background: var(--white); }

.site-header__toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 38px; height: 30px;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  padding: 0;
}
.site-header__toggle span {
  display: block; height: 1.5px; width: 26px;
  background: var(--white); transition: var(--t);
}
.site-header__toggle[aria-expanded="true"] span { background: var(--white); }
.site-header__toggle span:nth-child(2) { width: 20px; }
.site-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 26px; }

.mobile-nav {
  position: fixed; inset: 0; top: 0;
  background: var(--pewter); z-index: 80;
  transform: translateY(-100%);
  visibility: hidden; /* keeps links unfocusable while aria-hidden (a11y) */
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), visibility 0s 420ms;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.mobile-nav__list {
  list-style: none; padding: 0; margin: 0; text-align: center;
  display: flex; flex-direction: column; gap: 22px;
}
.mobile-nav__list a {
  color: var(--white);
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  letter-spacing: .005em;
}
.mobile-nav__cta {
  margin-top: 14px;
  font-family: var(--sans) !important; font-size: 12px !important;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cider-2) !important;
}

@media (max-width: 1100px) {
  .site-nav, .site-header__cta { display: none; }
  .site-header__toggle { display: flex; }
  .site-header__inner,
  .site-header__inner--split {
    display: flex;
    grid-template-columns: none;
    justify-content: space-between;
    padding: 14px 24px;
  }
  .site-header__inner--split .site-header__logo { justify-self: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* small-viewport height: full hero under mobile browser chrome */
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 140px var(--pad) 120px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.35) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 980px; margin: 0 auto; width: 100%;
}
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__inner .eyebrow,
.hero--center .hero__inner h1,
.hero--center .hero__inner p { margin-left: auto; margin-right: auto; }
.hero--center .btn-row { justify-content: center; }

.hero h1 {
  color: var(--white);
  max-width: 22ch;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 em { font-weight: 500; }

/* ---------- inner-page hero variant (no video, looping zoom image, smaller, left-aligned) ---------- */
.hero--inner {
  min-height: 90vh;
  padding-top: 120px;
  padding-bottom: 96px;
  padding-left: clamp(20px, 7vw, 100px);
  padding-right: var(--pad);
}
/* override the centered layout (kept on markup for reveal selectors) */
.hero--inner.hero--center .hero__inner,
.hero--inner .hero__inner {
  margin-left: 0;
  margin-right: 0;
  max-width: 720px;
  text-align: left;
}
.hero--inner.hero--center .hero__inner .eyebrow,
.hero--inner.hero--center .hero__inner h1,
.hero--inner.hero--center .hero__inner p,
.hero--inner .hero__inner .eyebrow,
.hero--inner .hero__inner h1,
.hero--inner .hero__inner p {
  margin-left: 0;
  margin-right: 0;
}
.hero--inner .btn-row { justify-content: flex-start; }

/* inner-page hero — faster fade, no staggered delays */
.hero--inner .hero__inner > .eyebrow,
.hero--inner .hero__inner > h1,
.hero--inner .hero__inner > p,
.hero--inner .hero__inner > .btn-row {
  transition: opacity 0.8s cubic-bezier(.4,0,.6,1), transform 0.8s cubic-bezier(.22,.61,.36,1) !important;
  transition-delay: 0ms !important;
}
.hero--inner .hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
  animation: heroSlowZoom 20s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
.hero--inner .hero__overlay {
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.70) 0%,
      rgba(0,0,0,0.55) 25%,
      rgba(0,0,0,0.20) 50%,
      rgba(0,0,0,0)    72%
    );
}
@keyframes heroSlowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--inner .hero__bg img { animation: none; }
}
.hero--inner h1 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
  max-width: 26ch;
}
.hero--inner p {
  font-size: clamp(14px, 1.05vw, 16px);
}
.hero .eyebrow {
  color: #e7c8ae;
  font-size: 14px;
  letter-spacing: 0.32em;
  margin-bottom: 26px;
}
.hero p {
  color: rgba(255,255,255,.92);
  max-width: 60ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
}
.hero .btn-row { margin-top: 40px; }

/* hero choreographed reveal — content hidden until body.is-revealed.
   Hidden states are gated on html.js (set inline in head.php) so nothing
   stays invisible when JavaScript is disabled. */
html.js .hero--center .hero__inner > .eyebrow,
html.js .hero--center .hero__inner > h1,
html.js .hero--center .hero__inner > p,
html.js .hero--center .hero__inner > .btn-row {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(.4,0,.6,1), transform 1.6s cubic-bezier(.22,.61,.36,1);
}
body.is-revealed .hero--center .hero__inner > .eyebrow { opacity: 1; transform: none; transition-delay: 0ms; }
body.is-revealed .hero--center .hero__inner > h1       { opacity: 1; transform: none; transition-delay: 900ms; }
body.is-revealed .hero--center .hero__inner > p        { opacity: 1; transform: none; transition-delay: 1800ms; }
body.is-revealed .hero--center .hero__inner > .btn-row { opacity: 1; transform: none; transition-delay: 2700ms; }

/* hero pricebar — fades in one item at a time after buttons (buttons end ≈ 4100ms) */
html.js .hero__pricebar-inner span {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.4,0,.6,1);
}
body.is-revealed .hero__pricebar-inner span:nth-child(1) { opacity: 1; transition-delay: 4100ms; }
body.is-revealed .hero__pricebar-inner span:nth-child(2) { opacity: 1; transition-delay: 4350ms; }
body.is-revealed .hero__pricebar-inner span:nth-child(3) { opacity: 1; transition-delay: 4600ms; }
body.is-revealed .hero__pricebar-inner span:nth-child(4) { opacity: 1; transition-delay: 4850ms; }
body.is-revealed .hero__pricebar-inner span:nth-child(5) { opacity: 1; transition-delay: 5100ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero__pricebar-inner span { opacity: 1; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero--center .hero__inner > .eyebrow,
  html.js .hero--center .hero__inner > h1,
  html.js .hero--center .hero__inner > p,
  html.js .hero--center .hero__inner > .btn-row {
    opacity: 1; transform: none; transition: none;
  }
}

.hero__pricebar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(20, 18, 28, 0.42);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}
.hero__pricebar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 20px var(--pad);
  display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255,255,255,.96);
}
.hero__pricebar-inner span { white-space: nowrap; }
.hero__pricebar-inner span + span::before {
  content: ""; display: inline-block; width: 1px; height: 12px;
  background: rgba(255,255,255,.45); margin-right: 34px; vertical-align: -1px;
}

/* page hero (inner) */
.page-hero {
  padding: 180px var(--pad) 100px;
  background: var(--cream);
  position: relative;
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 2; }
.page-hero h1 { max-width: 18ch; margin-bottom: 24px; }
.page-hero p { max-width: 60ch; font-size: clamp(16px, 1.3vw, 19px); }

/* Featured-image variant — used by insight articles */
.page-hero--media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: calc(56vh + 200px);
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 56px;
}
.page-hero--media .page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}
.page-hero--media .eyebrow { color: #d9b89d; }
.page-hero--media h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  max-width: 28ch;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .page-hero--media { min-height: calc(48vh + 200px); padding-top: 100px; padding-bottom: 40px; }
  .page-hero--media h1 { font-size: clamp(1.3rem, 5.5vw, 1.7rem) !important; }
}

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 130px) 0; }
section.cream { background: var(--cream); }
section.white { background: var(--white); }
section.dark {
  background: var(--pewter);
  color: rgba(255,255,255,.85);
  position: relative; overflow: hidden;
}
section.dark::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(110deg, rgba(255,255,255,.5) 0 1px, transparent 1px 38px);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.dark p { color: rgba(255,255,255,.78); }
section.dark .lead { color: rgba(255,255,255,.85); }

/* pure black variant */
section.dark.dark--black { background: #000000; }
section.dark.dark--black::before { display: none; }

/* slow-zoom image variant: section has a child .dark__bg with the image, animation scales it */
section.dark .dark__bg {
  position: absolute !important;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0 !important;
  transform: scale(1);
  will-change: transform;
  pointer-events: none;
}
section.dark.dark--parallax.is-in .dark__bg {
  animation: slowZoom 28s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .dark--parallax.is-in .dark__bg { animation: none; }
}

/* parallax variant — uses CSS background-attachment: fixed */
section.dark.dark--parallax {
  background-color: var(--pewter);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
section.dark.dark--parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}
section.dark.dark--parallax::before { display: none; }
section.dark.dark--parallax > *:not(.dark__bg) { position: relative; z-index: 1; }
/* iOS / mobile fallback — background-attachment: fixed performs poorly */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  section.dark.dark--parallax { background-attachment: scroll; }
}

.section-head {
  max-width: 760px; margin: 0 auto 60px; text-align: center;
}
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- intro ---------- */
.intro__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap); align-items: center;
}
.intro__copy h2 { margin-bottom: .5em; }
.intro__img { overflow: hidden; position: relative; }
.intro__img img {
  width: 100%; aspect-ratio: 8/9; object-fit: cover;
  transform: scale(1.2);
  will-change: transform;
}
@media (max-width: 860px) { .intro__grid { grid-template-columns: 1fr; } }

/* ---------- exclusive release feature ---------- */
.feature {
  position: relative;
  padding: clamp(72px, 9vw, 130px) 0;
  color: var(--white);
  overflow: hidden;
}
.feature__bg { position: absolute; inset: 0; z-index: 0; }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.70) 0%,
    rgba(0,0,0,.65) 40%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,0)   80%
  );
}
.feature__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad);
  max-width: calc(var(--container));
}
.feature h2 {color: var(--white);max-width: 18ch;}
.feature p { color: rgba(255,255,255,.85); max-width: 64ch; font-size: 17px; line-height: 1.45; font-weight: 400; }
.feature .eyebrow { color: #d9b89d; }

/* ---------- stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.stats-grid { border-top: 0; border-bottom: 0; }
.stat {
  position: relative;
  padding: 44px 32px;
  border-right: 0;
  text-align: left;
}
/* longer brighter hairline separator between blocks */
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 110px;
  background: rgba(255,255,255,.55);
  transform: translateY(-50%);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 33px);
  color: var(--white);
  line-height: 1; margin-bottom: 18px;
  font-weight: 400;
}
.stat__num em { font-style: italic; color: var(--white); }
.stat__body {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.4;
  color: rgba(255,255,255,.74);
  max-width: 36ch;
}
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,.16);
  }
  .stat:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.16);
  }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-top: 1px solid rgba(255,255,255,.16); }
  .stat:first-child { border-top: 0; }
}

/* ---------- cards (facilities, faq, residences) ---------- */
.cards {
  display: grid; gap: 28px;
}
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) {
  .cards--5 { grid-template-columns: 1fr 1fr 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards--5, .cards--4, .cards--3, .cards--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t);
}
section.cream .card { background: var(--white); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px -18px rgba(49,47,60,.25); }
.card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.42; margin: 0; }
.card__mark {
  width: 28px; height: 1.5px; background: var(--cider); margin-bottom: 22px;
}

.card--image { padding: 0; overflow: hidden; }
.card--image .card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card--image .card__body { padding: 24px 26px 28px; }

/* image-background card (used on facilities feature grid)
   Two stacked sections per card:
     1. .card__image — full image, equal height across all cards
     2. .card__body  — same image duplicated as blurred backdrop, with dark overlay + text */
.cards--feature { gap: 14px; align-items: stretch; }
.card.card--bg {
  position: relative;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card.card--bg .card__image {
  aspect-ratio: 16 / 10;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card.card--bg .card__body {
  position: relative;
  flex: 1;
  padding: 10px 22px 12px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
/* duplicated image, blurred, as the body's background */
.card.card--bg .card__body::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(140%);
  z-index: 0;
}
/* dark wash for legibility */
.card.card--bg .card__body::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1;
}
.card.card--bg .card__body > * { position: relative; z-index: 2; }
.card.card--bg .card__mark { display: none; }
.card.card--bg h3 {
  color: var(--white);
  font-size: clamp(17px, 1.3vw, 21px);
  margin: 0 0 6px;
  line-height: 1.2;
}
.card.card--bg p {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.card.card--bg:hover { transform: translateY(-4px); box-shadow: 0 16px 44px -20px rgba(0,0,0,.55); }
/* sports section: larger, taller cards so the block has more presence in the layout column */
.cards--sports .card.card--bg .card__image { aspect-ratio: 3 / 4; }
.cards--sports .card.card--bg h3 { font-size: clamp(19px, 1.5vw, 24px); }
.cards--sports .card.card--bg p { font-size: 14px; }
@media (max-width: 1100px) {
  .card.card--bg .card__image { aspect-ratio: 5 / 4; }
}
@media (max-width: 640px) {
  .card.card--bg .card__image { aspect-ratio: 16 / 10; }
}

/* split (image + copy) */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap); align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__img { overflow: hidden; position: relative; }
.split__img img {
  width: 100%; aspect-ratio: 8/9; object-fit: cover;
  transform: scale(1.2); /* default — JS overrides with translate while scrolling */
  will-change: transform;
}
.split__copy h2 { margin-bottom: .4em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* pills */
.pills {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 22px;
  row-gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--pewter);
}
.pills--centered { justify-content: center; }
.pills--stacked { flex-direction: column; align-items: flex-start; row-gap: 10px; }
.pills--stacked .pill + .pill::before { margin: 0 12px 0 0; }
.pills--stacked .pill:first-child::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pewter);
  margin: 0 12px 0 0;
  flex-shrink: 0;
}
.pill + .pill::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pewter);
  margin: 0 8px 0 24px; /* close to its item (right) — air from previous (left) */
  flex-shrink: 0;
}
/* leading dot on the first pill — only in single-line variants for symmetry */
.pills--single-line .pill:first-child::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pewter);
  margin: 0 8px 0 0;
  flex-shrink: 0;
}
section.dark .pills--single-line .pill:first-child::before,
.feature .pills--single-line .pill:first-child::before { background: rgba(255,255,255,.85); }
section.dark .pill, .feature .pill { color: var(--white); border: 0; }

/* LOCATION — overlay variant: tall section, content centred at top, image anchored bottom */
.location-overlay {
  min-height: calc(95vh - 90px);
  padding-top: 20px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
.location-overlay .feature__bg img {
  object-position: center bottom;
}
.location-overlay .feature__bg::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.40) 0%,
    rgba(0,0,0,.20) 30%,
    rgba(0,0,0,0)   55%
  );
}
.location-overlay .feature__inner {
  text-align: left;
  width: 100%;
}
.location-overlay__grid {
  display: grid;
  grid-template-columns: 30% 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.location-overlay__title { grid-column: 2; }
.location-overlay__copy  { grid-column: 3; }
.location-overlay__row {
  margin-top: 28px;
  padding-left: 30%;
}
.location-overlay__row + .location-overlay__row { margin-top: 18px; }
.location-overlay__copy p { margin: 0; max-width: none; }
@media (max-width: 900px) {
  .location-overlay__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .location-overlay__title,
  .location-overlay__copy { grid-column: auto; }
  .location-overlay__row { padding-left: 0; }
}
.pills--single-line {
  flex-wrap: nowrap;
  overflow-x: visible;
  row-gap: 8px;
}
.pills--single-line .pill { white-space: nowrap; }
@media (max-width: 900px) {
  .pills--single-line { flex-wrap: wrap; }
}

/* LOCATION — stacked: centred text block then full-bleed image at natural ratio */
.location-stack__copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.location-stack__copy .pills--single-line {
  max-width: 1080px;
  width: max-content;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
  position: relative;
}
.location-stack__copy .pills,
.location-stack__copy .btn-row {
  justify-content: center;
}
.location-stack__copy .pills { display: flex; }
.location-stack__copy .btn-row { display: flex; }
.location-block { position: relative; }
.location-stack {
  position: relative;
  overflow: hidden;
  padding-top: calc(clamp(72px, 9vw, 130px) - 50px);
  padding-bottom: 100px;
}
.location-stack > .container { position: relative; z-index: 1; }
.location-stack__reeds {
  position: absolute;
  right: -25px;
  bottom: -32px;
  width: 210px;
  height: auto;
  transform: scaleX(-1) rotate(24deg);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 860px) {
  .location-stack__reeds { width: 90%; right: -8%; bottom: -10%; opacity: 0.18; }
}
.location-map {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- Sports & Wellness — bullet list + offset image collage ---------- */
.sports-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.sports-layout__copy .eyebrow { margin-bottom: 14px; }
.sports-layout__copy h2 { margin-bottom: 32px; }
.sports-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
.sports-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans); font-size: 17px;
  color: var(--pewter);
  line-height: 1.5;
}
.sports-list li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cider);
}
.sports-collage {
  position: relative;
  aspect-ratio: 1 / 1.05;
}
.sports-collage > div { overflow: hidden; position: absolute; box-shadow: 0 22px 50px -16px rgba(49,47,60,.25); }
.sports-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sports-collage__a { top: 0; left: 0; width: 62%; height: 64%; z-index: 2; }
.sports-collage__b { top: 18%; right: 0; width: 46%; height: 38%; z-index: 3; }
.sports-collage__c { bottom: 0; left: 18%; width: 60%; height: 42%; z-index: 1; }
@media (max-width: 900px) {
  .sports-layout { grid-template-columns: 1fr; }
  .sports-collage { aspect-ratio: 1 / 0.8; }
}

/* Reversed layout — image on left, copy on right */
.sports-layout--reverse { grid-template-columns: 1.1fr 1fr; }
.sports-layout--reverse > .sports-collage { order: 1; }
.sports-layout--reverse > .sports-layout__copy { order: 2; }
@media (max-width: 900px) {
  .sports-layout--reverse { grid-template-columns: 1fr; }
  .sports-layout--reverse > .sports-collage { order: 2; }
  .sports-layout--reverse > .sports-layout__copy { order: 1; }
}

/* 4-image collage variant — tighter overlap between frames */
.sports-collage--four .sports-collage__a { top: 0; left: 0; width: 62%; height: 56%; z-index: 2; }
.sports-collage--four .sports-collage__b { top: 4%; right: 0; width: 48%; height: 44%; z-index: 3; }
.sports-collage--four .sports-collage__c { bottom: 0; left: 4%; width: 54%; height: 48%; z-index: 1; }
.sports-collage--four .sports-collage__d { bottom: 4%; right: 2%; width: 50%; height: 46%; z-index: 4; }
.sports-collage--four .sports-collage__d { overflow: hidden; position: absolute; box-shadow: 0 22px 50px -16px rgba(49,47,60,.25); }

/* Estate essentials — title-only on dark parallax, ~10% taller */
.estate-essentials {
  padding-top: calc(clamp(72px, 9vw, 130px) + 28px);
  padding-bottom: calc(clamp(72px, 9vw, 130px) + 28px);
}

.essentials-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
}
.essentials-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--white);
  line-height: 1.3;
}
.essentials-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cider);
}
@media (max-width: 860px) {
  .essentials-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .essentials-list { grid-template-columns: 1fr; }
}

/* ---------- Numbered list — minimalist editorial 2-col grid ---------- */
.numbered-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 4vw, 56px);
}
.numbered-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.numbered-list__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1;
  color: var(--cider);
  font-weight: 400;
}
.numbered-list__body h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  margin: 0 0 6px;
}
.numbered-list__body p {
  font-size: 15px; line-height: 1.5; margin: 0;
  color: var(--body);
}
@media (max-width: 700px) {
  .numbered-list { grid-template-columns: 1fr; }
}

/* Turnkey release section — reeds anchored bottom-left */
.turnkey-release { position: relative; overflow: hidden; }
.turnkey-release > .container { position: relative; z-index: 1; }
.turnkey-release__reeds {
  position: absolute;
  left: -20px;
  bottom: -50px;
  width: 220px;
  height: auto;
  transform: rotate(24deg);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 860px) {
  .turnkey-release__reeds { width: 90%; left: -8%; bottom: -10%; opacity: 0.18; }
}

/* This is living section — reduce top padding ~40% */
.living-section { padding-top: calc(clamp(72px, 9vw, 130px) * 0.6); }

/* Precinct gallery — 5-image organic layout with slight overlap and offsets */
.precinct-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b c"
    "e e f";
  gap: 8px;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  position: relative;
}
.precinct-gallery__item {
  overflow: hidden;
  box-shadow: 0 22px 50px -16px rgba(49,47,60,.18);
  position: relative;
  border: 3px solid var(--cream);
}
.precinct-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}
.precinct-gallery__item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,14,20,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 60px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__inner {
  position: relative;
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto; height: auto;
  object-fit: contain; display: block;
  opacity: 0;
  transition: opacity 280ms ease;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__counter {
  color: rgba(255,255,255,.72);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-top: 18px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 26px; line-height: 1;
  border-radius: 50%;
  transition: background 220ms, border-color 220ms, transform 220ms;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.lightbox__close { top: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); font-size: 22px; }
.lightbox__nav--prev { left: clamp(16px, 3vw, 40px); top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: clamp(16px, 3vw, 40px); top: 50%; margin-top: -26px; }
html.lb-open { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 22px; margin-top: -22px; }
  .lightbox__img { max-height: calc(100vh - 110px); }
}
.precinct-gallery__item--a { grid-area: a; }
.precinct-gallery__item--b { grid-area: b; }
.precinct-gallery__item--c { grid-area: c; }
.precinct-gallery__item--e { grid-area: e; }
.precinct-gallery__item--f { grid-area: f; }
.precinct-gallery__item--e img { aspect-ratio: 16/9; }

/* organic offsets and overlaps — frames break the perfect grid */
.precinct-gallery__item { --px: 0px; --py: 0px; }
.precinct-gallery__item--a { transform: translate(var(--px), calc(18px + var(--py))); z-index: 2; }
.precinct-gallery__item--b { transform: translate(calc(-12px + var(--px)), calc(-8px + var(--py))) scale(1.2); transform-origin: center; z-index: 5; }
.precinct-gallery__item--c { transform: translate(var(--px), calc(24px + var(--py))); z-index: 2; }
.precinct-gallery__item--e { transform: translate(calc(32px + var(--px)), calc(-32px + var(--py))) scale(0.9); transform-origin: top right; z-index: 4; }
.precinct-gallery__item--f { transform: translate(calc(-20px + var(--px)), calc(-6px + var(--py))); z-index: 6; }

@media (max-width: 760px) {
  .precinct-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "c e"
      "f f";
    gap: 6px;
  }
  .precinct-gallery__item--e img { aspect-ratio: 4/3; }
  .precinct-gallery__item { transform: none !important; }
}

/* Estate FAQ section — reeds anchored bottom-left like the home visit-cta */
.estate-faq { position: relative; overflow: hidden; }
.estate-faq > .container { position: relative; z-index: 1; }
.estate-faq__reeds {
  position: absolute;
  left: -20px;
  bottom: -50px;
  width: 264px;
  height: auto;
  transform: rotate(24deg);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 860px) {
  .estate-faq__reeds { width: 90%; left: -8%; bottom: -10%; opacity: 0.18; }
}
/* Explore Sibaya button — load as solid pewter, hover to ghost (states swapped) */
.location-stack .btn--ghost {
  background: var(--pewter);
  color: var(--white);
  border-color: var(--pewter);
}
.location-stack .btn--ghost:hover {
  background: transparent;
  color: var(--pewter);
  border-color: var(--pewter);
}

/* VISIT CTA — split: copy left, form right (both on cream) */
.visit-cta { position: relative; overflow: hidden; }
.visit-cta__reeds {
  position: absolute;
  left: -20px;
  bottom: -50px;
  width: 220px;
  height: auto;
  transform: rotate(24deg);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.visit-cta > .container { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .visit-cta__reeds { width: 90%; left: -8%; bottom: -10%; opacity: 0.18; }
}
.visit-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit-cta__copy {
  padding-top: 4px;
  align-self: center;
  max-width: 520px;
}
.visit-cta__copy p + p { margin-top: 14px; }
.contact-info__list { list-style: none; padding: 0; margin: 28px 0 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.contact-info__list li { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--body); padding-top: 16px; }
.contact-info__list .label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pewter); margin-bottom: 8px; }
.contact-info__list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(31,42,53,.18); transition: border-color .2s; }
.contact-info__list a:hover { border-color: var(--cider); }
.contact-info__sub { font-size: 12.5px; color: var(--pewter); margin-top: 4px; }
.social-icons { display: inline-flex; align-items: center; gap: 18px; margin-top: 4px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(31, 42, 53, 0.22);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.social-icons a:hover {
  background: var(--cider);
  border-color: var(--cider);
  color: var(--white);
  transform: translateY(-2px);
}
.social-icons a svg { display: block; }
@media (max-width: 720px) { .contact-info__list { grid-template-columns: 1fr; gap: 18px; } }
.visit-cta__form .form-grid { grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.visit-cta__form .form-field--full { grid-column: 1 / -1; }
.visit-cta__form .btn--solid { align-self: start; justify-self: start; }

/* white box-style inputs (only on the home visit-cta form) */
.visit-cta__form .form-field input,
.visit-cta__form .form-field select,
.visit-cta__form .form-field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 0;
  font-size: 15px;
}
.visit-cta__form .form-field textarea { padding: 14px 16px; min-height: 120px; }
.visit-cta__form .form-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f2a35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}
.visit-cta__form .form-field select::-ms-expand { display: none; }
.visit-cta__form .form-field input::placeholder,
.visit-cta__form .form-field textarea::placeholder {
  color: rgba(31, 42, 53, 0.45);
}
.visit-cta__form .form-field input:focus,
.visit-cta__form .form-field select:focus,
.visit-cta__form .form-field textarea:focus {
  border-color: var(--cider);
  outline: none;
}

/* visually hide labels — keep them in DOM for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .visit-cta__grid { grid-template-columns: 1fr; gap: 36px; }
}
.location-stack__img {
  margin-top: 0;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.location-stack__img img {
  width: 100%;
  aspect-ratio: 3000 / 1596; /* full map shown so location pins align 1:1 */
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 700px) {
  .location-stack__img { margin-top: 36px; }
}
section.dark .pill + .pill::before,
.feature .pill + .pill::before { background: rgba(255,255,255,.85); }

/* ---------- residence cards (purchase opportunities) ---------- */
.residence {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--gap); align-items: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.residence:nth-child(even) > :first-child { order: 2; }
.residence__img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.residence__copy h2 { margin-bottom: .3em; }
.residence__price {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cider); margin: 6px 0 18px;
  font-weight: 500;
}
@media (max-width: 900px) { .residence { grid-template-columns: 1fr; } .residence:nth-child(even) > :first-child { order: 0; } }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400; color: var(--pewter);
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 22px; font-weight: 300;
  color: var(--cider); line-height: 1;
  display: inline-block;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq__content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 380ms cubic-bezier(.2,.7,.2,1),
              opacity 280ms ease;
}
.faq details p {
  margin: 14px 0 8px; max-width: 70ch;
  color: var(--body); font-size: 16px;
}

/* ---------- insights ---------- */
.insight-card {
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.insight-card__img {
  width: 100%; aspect-ratio: 4/3; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cider); font-family: var(--serif); font-size: 38px; font-style: italic;
  position: relative; overflow: hidden;
}
.insight-card__img::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(110deg, rgba(108,71,55,.06) 0 1px, transparent 1px 22px);
}
.insight-card__body { padding: 22px 24px 26px; }
.insight-card__label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cider); margin-bottom: 12px;
}
.insight-card h3,
.insight-card h2 { font-size: 22px; margin-bottom: 6px; color: var(--pewter); opacity: .55; }
.insight-card .coming-soon {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--body); margin-top: 18px; display: inline-block;
  border-top: 1px solid var(--line); padding-top: 14px; width: 100%;
}

/* media (real image) variant */
.insight-card--media {
  padding: 0; overflow: hidden;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1),
              border-color 500ms cubic-bezier(.2,.7,.2,1),
              box-shadow 500ms cubic-bezier(.2,.7,.2,1);
}
.insight-card--media:hover {
  transform: translateY(-6px);
  border-color: var(--cider);
  box-shadow: 0 22px 50px rgba(49,47,60,.14);
}
.insight-card__link {
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none;
}
.insight-card__link:hover { color: inherit; }
.insight-card__media {
  width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2);
}
.insight-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.insight-card--media:hover .insight-card__media img { transform: scale(1.07); }
.insight-card--media h3 {
  font-size: 22px; line-height: 1.2; margin-bottom: 10px;
  color: var(--pewter); opacity: 1;
  transition: color var(--t);
}
.insight-card--media:hover h3 { color: var(--cider); }
.insight-card__excerpt {
  font-size: 15px; line-height: 1.55; color: var(--body); margin: 0 0 16px;
}
.insight-card__more {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cider); display: inline-flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 14px; width: 100%;
}
.insight-card__arrow {
  display: inline-block;
  transition: transform 380ms cubic-bezier(.2,.7,.2,1);
}
.insight-card--media:hover .insight-card__arrow {
  transform: translateX(8px);
}

/* ---------- article (insights detail) ---------- */
.container--narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }
.article-hero {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 2px; margin-bottom: clamp(36px, 5vw, 64px);
  background: var(--cream-2);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 720px; margin: 0 auto; color: var(--pewter); }
.article-body p {
  font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 1.2em;
}
.article-body h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25; margin: 1.8em 0 .5em; color: var(--pewter);
}
.article-body h3 {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3; margin: 1.6em 0 .4em; color: var(--pewter);
}
.article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body ul, .article-body ol {
  padding-left: 22px; margin: 0 0 1.4em; color: var(--body);
}
.article-body li { font-size: 17px; line-height: 1.65; margin-bottom: 8px; }
.article-body a { color: var(--cider); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--cider-2); }
.article-body blockquote {
  margin: 1.6em 0; padding: 8px 0 8px 24px;
  border-left: 3px solid var(--cider);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55;
  color: var(--pewter);
}
.article-body blockquote p { font-family: var(--serif); font-style: italic; color: var(--pewter); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
  width: 100%; height: auto; margin: 1.6em 0; border-radius: 2px;
}
.article-body strong { color: var(--pewter); }

.article-footer {
  max-width: 720px; margin: clamp(48px, 6vw, 80px) auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
}

/* ---------- gallery ---------- */
.gallery-grid {
  position: relative;
  width: 100%;
  min-height: 600px;
}
.gallery-grid:not(.is-laid-out):not(.is-mobile) figure { visibility: hidden; }
.gallery-grid figure.is-hidden { display: none !important; }
.gallery-loadmore { display: flex; justify-content: center; margin-top: 28px; }
.gallery-loadmore.is-done { display: none; }
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  display: block;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}
.gallery-grid figure:hover img { transform: scale(1.04); }
/* ---------- scenic image captions (overlaid, bottom of image) ---------- */
.img-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 4; pointer-events: none;
  margin: 0; padding: 40px 16px 13px;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(20,18,24,.74), rgba(20,18,24,.30) 52%, rgba(20,18,24,0));
}
.gallery-grid figcaption.img-cap { display: block; }
/* mobile: simple stacked column — JS keeps grid relative but on phones we let CSS take over */
@media (max-width: 560px) {
  .gallery-grid.is-mobile { display: flex; flex-direction: column; gap: 10px; }
  .gallery-grid.is-mobile figure { position: relative !important; width: 100% !important; height: auto !important; left: auto !important; top: auto !important; aspect-ratio: 4/3; }
}

/* ---------- contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--gap);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info .label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cider); margin-bottom: 4px; display: block;
}
.contact-info a { color: var(--pewter); }
.contact-info a:hover { color: var(--cider); }

.form-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cider); margin-bottom: 10px; font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--pewter);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--pewter);
  padding: 10px 0; outline: none;
  border-radius: 0;
}
.form-field textarea { min-height: 110px; resize: vertical; border: 1px solid var(--line); padding: 14px 16px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--cider);
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- location pills (home) ---------- */
.location-pills .pills { justify-content: flex-start; }

/* ---------- visit cta block ---------- */
.cta-block {
  background: var(--cream);
  padding: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap);
  align-items: center;
  border: 1px solid var(--line);
}
.cta-block__card {
  background: var(--white); border: 1px solid var(--line);
  padding: 32px 30px;
}
.cta-block__card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
@media (max-width: 900px) { .cta-block { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--pewter);
  color: rgba(255,255,255,.78);
  padding: clamp(60px, 7vw, 100px) 0 0;
  font-family: var(--sans);
}
.site-footer__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--gap);
}
.site-footer__brand img { width: 170px; height: auto; margin-bottom: 22px; }
.site-footer__tag { color: rgba(255,255,255,.78); font-size: 13px; max-width: 36ch; }
.site-footer__phone {
  display: inline-block; margin-top: 14px;
  color: var(--white); font-family: var(--serif);
  font-size: 22px; letter-spacing: .01em;
}
.site-footer__phone:hover { color: #d9b89d; }
.site-footer h3 { color: var(--white); margin-bottom: 18px; font-size: 13px; letter-spacing: 0.16em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; font-size: 12px; }
.site-footer a { color: rgba(255,255,255,.78); display: inline-block; padding: 4px 0; } /* ≥24px touch target */
.site-footer a:hover { color: var(--white); }
.site-footer__email { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__email img { filter: invert(1) brightness(2); opacity: .75; flex-shrink: 0; }
.site-footer__email:hover img { opacity: 1; }
.site-footer__social {
  display: inline-flex;
  gap: 12px;
  margin-top: 14px;
}
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.site-footer__social a:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
  transform: translateY(-2px);
}
.site-footer__social img {
  width: 18px; height: 18px;
  filter: invert(1) brightness(2);
  opacity: .85;
}
.site-footer__social a:hover img { opacity: 1; }
.site-footer__base {
  margin-top: 60px; padding: 24px var(--pad);
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center; color: rgba(255,255,255,.6); font-size: 12px;
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- reveal anim ---------- */
/* hidden state gated on html.js so content shows with JS disabled */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* section-wide subtle fade-up on scroll (auto-applied via JS to <section>) */
section.section-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.4,0,.6,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
section.section-fade.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  section.section-fade { opacity: 1; transform: none; transition: none; }
}

/* sports list */
.sports-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.sports-grid .item {
  background: var(--white); border: 1px solid var(--line);
  padding: 28px 26px;
  font-family: var(--serif); font-size: 22px;
  display: flex; align-items: center; gap: 16px;
}
.sports-grid .item::before {
  content: ""; width: 22px; height: 1.5px; background: var(--cider); display: inline-block;
}
@media (max-width: 860px) { .sports-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sports-grid { grid-template-columns: 1fr; } }

/* essentials band (dark 4-up) */
.essentials {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.essentials .item {
  padding: 44px 28px;
  border-right: 1px solid rgba(255,255,255,.16);
  font-family: var(--serif); font-size: clamp(22px, 2vw, 28px);
  color: var(--white);
}
.essentials .item:last-child { border-right: 0; }
@media (max-width: 900px) { .essentials { grid-template-columns: 1fr 1fr; }
  .essentials .item { border-bottom: 1px solid rgba(255,255,255,.16); }
  .essentials .item:nth-child(even) { border-right: 0; }
  .essentials .item:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 540px) { .essentials { grid-template-columns: 1fr; } .essentials .item { border-right: 0 !important; } }

/* pullquote */
.pullquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.22;
  color: var(--pewter); max-width: 22ch; margin: 60px auto; text-align: center;
}
section.dark .pullquote { color: var(--white); }
.pullquote::before, .pullquote::after { display: none; }

/* ---------- release price accent (purchase opportunities) ---------- */
.release-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--cider);
  margin: 6px 0 22px;
}
.section-head .release-price { margin-left: auto; margin-right: auto; max-width: 30ch; }

/* ---------- The Residences: sticky scroll storytelling (ported from Capri) ----------
   Text panel locks on the left, image frames scroll past on the right.
   Each frame swaps the active text slide via IntersectionObserver. */
.homes-scroll-section { padding-top: clamp(8rem, 18vw, 14rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.homes-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 880px) {
  .homes-scroll {
    grid-template-columns: .85fr 1.25fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}

/* Sticky text column */
.homes-scroll-text { position: relative; }
@media (min-width: 880px) {
  .homes-scroll-text {
    position: sticky;
    top: 34vh;
    align-self: start;
  }
}
.homes-scroll-text__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.homes-scroll-text__header { margin-bottom: 6rem; }
.homes-scroll-text__header h2 { margin: 0; }

.homes-scroll-text__slide-wrap {
  position: relative;
  min-height: 320px;
}
.homes-scroll-text__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.homes-scroll-text__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.homes-scroll-text__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 1rem;
  color: var(--pewter);
}
.homes-scroll-text__body {
  font-family: var(--sans);
  font-size: clamp(.875rem, .95vw, .95rem);
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 1.25rem;
  max-width: 42ch;
}

/* Image stack column — each frame ~108vh so the scroll has reach */
.homes-scroll-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .homes-scroll-stack { gap: 1.5rem; }
}
.homes-scroll-frame {
  position: relative;
  background: transparent;
  aspect-ratio: 4/3;
  opacity: 1;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, opacity;
}
@media (min-width: 880px) {
  .homes-scroll-frame {
    min-height: 108vh;
    aspect-ratio: auto;
  }
  /* last frame matches the sticky container plus ~100px so the text stays held a touch longer */
  .homes-scroll-frame:last-child { min-height: 75vh; }
}
.homes-scroll-section { padding-bottom: 0; }
.homes-scroll-frame__media {
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-shadow: 18px 22px 40px -12px rgba(49,47,60,.25);
}
.homes-scroll-frame__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.homes-scroll-frame__body { display: none; }
.homes-scroll-frame.is-active { opacity: 1; transform: scale(1); }

/* Mobile fallback — text inline under each image, no sticky behaviour */
@media (max-width: 880px) {
  .homes-scroll-text { display: none; }
  .homes-scroll-frame {
    opacity: 1;
    transform: none;
    min-height: 0;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
  }
  .homes-scroll-frame__media { aspect-ratio: 4/3; }
  .homes-scroll-frame__body {
    display: block;
    padding: 1.25rem 0 0;
  }
  .homes-scroll-frame__body h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.012em;
    margin: 0 0 .35rem;
    color: var(--pewter);
  }
  .homes-scroll-frame__body p {
    font-family: var(--sans);
    font-size: .9rem;
    line-height: 1.6;
    color: var(--body);
    margin: 0 0 1rem;
  }
}

/* ============================================================
   MOBILE POLISH PASS — comprehensive responsive tuning
   ============================================================ */

/* Prevent horizontal overflow site-wide — but ONLY on mobile, because
   overflow-x:hidden on html breaks position:sticky descendants on desktop. */
img, video { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  body { overflow-x: hidden; max-width: 100%; }
}

/* Mobile: skip reveal animations entirely so nothing depends on scroll position */
@media (max-width: 768px) {
  .reveal,
  .reveal:not(.in),
  section.section-fade,
  section.section-fade:not(.is-in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Kill the blue tap-highlight overlay on touch devices */
* { -webkit-tap-highlight-color: transparent; }
a, button, .mobile-nav__list a, .mobile-nav__cta, .site-header__toggle {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cider); outline-offset: 2px; }

@media (max-width: 1024px) {
  :root { --pad: 28px; --gap: 36px; }
  .container { padding-left: var(--pad); padding-right: var(--pad); }
}

@media (max-width: 768px) {
  :root { --pad: 20px; --gap: 28px; }

  /* Sections — tighter vertical rhythm */
  section { padding-top: 64px; padding-bottom: 64px; }
  .hero { min-height: 70vh; min-height: 70svh; padding: 88px 20px 56px; align-items: flex-start; }
  .hero__inner { padding-top: 24px; }
  /* Inner-page heroes: pin text to ~50px from the bottom */
  .hero--inner { align-items: flex-end !important; padding-bottom: 50px !important; }
  .hero--inner .hero__inner { padding-top: 0 !important; padding-bottom: 0; }

  /* Typography — scale headings down */
  h1, .h1 { font-size: clamp(2rem, 8vw, 2.6rem) !important; line-height: 1.08 !important; }
  h2, .h2 { font-size: clamp(1.6rem, 6vw, 2.1rem) !important; line-height: 1.12 !important; }
  h3 { font-size: 1.25rem !important; }
  .pullquote, blockquote.pullquote { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; line-height: 1.18 !important; }
  .lead { font-size: 1rem; }
  .eyebrow { font-size: 10px; letter-spacing: 0.2em; }

  /* Hero text */
  .hero p { font-size: 1rem; }

  /* Grids → single column */
  .visit-cta__grid,
  .split,
  .contact-grid,
  .cta-block,
  .intro__grid,
  .sports-collage,
  .feature__inner { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Forms */
  .visit-cta__form .form-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  /* 16px floor so iOS Safari doesn't zoom on focus (must out-rank .visit-cta__form's 15px) */
  .form-field input, .form-field select, .form-field textarea,
  .visit-cta__form .form-field input, .visit-cta__form .form-field select, .visit-cta__form .form-field textarea { font-size: 16px; }
  .btn, .btn--solid { width: 100%; text-align: center; justify-content: center; }

  /* Pills — stacked + centered everywhere on mobile */
  .pills,
  .pills--single-line,
  .pills--centered,
  .pills--stacked {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    row-gap: 10px !important;
  }
  /* Leading dot on EVERY pill when stacked on mobile (override the between-pills + leading-dot rules) */
  .pills .pill::before,
  .pills .pill + .pill::before,
  .pills--single-line .pill::before,
  .pills--single-line .pill + .pill::before,
  .pills--single-line .pill:first-child::before,
  .pills--centered .pill::before,
  .pills--centered .pill + .pill::before {
    content: "" !important;
    display: inline-block !important;
    width: 7px !important; height: 7px !important;
    border-radius: 50% !important;
    background: var(--pewter) !important;
    margin: 0 10px 0 0 !important;
    flex-shrink: 0;
    vertical-align: middle;
  }
  /* dark sections / feature panels — white dot for contrast */
  section.dark .pills .pill::before,
  section.dark .pills .pill + .pill::before,
  .feature .pills .pill::before,
  .feature .pills .pill + .pill::before { background: rgba(255,255,255,.85) !important; }
  .pills .pill { padding: 4px 0; text-align: center; display: inline-flex; align-items: center; }

  /* Buttons row */
  .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-row .btn { width: 100%; }

  /* Precinct gallery — disable parallax-feeling offsets on mobile */
  .precinct-gallery { grid-template-columns: 1fr !important; grid-template-areas: none !important; gap: 12px; }
  .precinct-gallery__item { transform: none !important; grid-area: auto !important; }
  .precinct-gallery__item img { aspect-ratio: 4/3 !important; }

  /* Feature/hero overlay panel */
  .feature__inner { padding: 32px 24px; }

  /* Footer */
  .site-footer__grid { grid-template-columns: 1fr !important; gap: 28px; text-align: left; }
  .site-footer { padding: 48px 0 32px; }

  /* Lightbox controls — already touch-friendly */
  .lightbox__close, .lightbox__nav { width: 44px; height: 44px; }

  /* Reeds decorative — soften */
  .visit-cta__reeds,
  .turnkey-release__reeds,
  .location-stack__reeds,
  .estate-faq__reeds { opacity: 0.14; width: 110%; }

  /* Tables and cards */
  table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  section { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding: 100px 16px 64px; min-height: 80vh; min-height: 80svh; }
  h1, .h1 { font-size: clamp(1.7rem, 8.5vw, 2.3rem) !important; }
  h2, .h2 { font-size: clamp(1.4rem, 6.5vw, 1.9rem) !important; }

  /* Gallery 1 col on phones already handled */
  .gallery-grid { column-gap: 10px; }
  .gallery-grid figure { margin-bottom: 10px; }

  /* Stacked pills tighter */
  .pills--stacked { row-gap: 8px; }
}

/* Touch device — disable hover-only effects */
@media (hover: none) and (pointer: coarse) {
  .gallery-grid figure:hover img,
  .precinct-gallery__item:hover img { transform: none; }
}

/* ===== Additional mobile tweaks (per user feedback) ===== */
@media (max-width: 1100px) {
  /* Force solid header on mobile so the sliding dropdown can't show through a transparent bar */
  .site-header,
  .site-header[data-transparent="true"] {
    background-color: rgba(49, 47, 60, 1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Logo ~40% smaller on mobile */
  .site-header__logo img { width: 92px !important; height: auto !important; }
  /* On scroll only shrink ~5px */
  .site-header.scrolled .site-header__logo img { width: 86px !important; }

  /* Hamburger sits above the dropdown panel so the X stays visible */
  .site-header__toggle { position: relative; z-index: 95; }

  /* Mobile dropdown — slides down from below the header, full viewport height */
  .mobile-nav {
    inset: auto 0 auto 0;
    top: 64px;
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--pewter);
    z-index: 85;
    align-items: stretch;
    justify-content: flex-start;
    padding: 64px 24px 36px;
  }
  .mobile-nav__list {
    width: 100%;
    gap: 18px;
    text-align: center;
    align-items: center;
  }
  .mobile-nav__list li { width: 100%; }
  .mobile-nav__list a {
    font-size: 18px;
    line-height: 1.3;
    display: inline-block;
  }
  .mobile-nav__cta {
    display: block;
    margin-top: 24px;
    width: 100%;
    background: var(--white) !important;
    color: var(--pewter) !important;
    padding: 16px 20px;
    font-size: 13px !important;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Hide the hero pricebar on mobile (Exclusive Release / Four Residences / etc.) */
  .hero__pricebar { display: none; }

  /* Home visit-cta: shrink reeds 50% and contain overflow */
  .visit-cta { overflow: hidden; }
  .visit-cta__reeds { width: 55% !important; left: -4% !important; bottom: -4% !important; opacity: 0.12 !important; }
  .visit-cta > .container { padding-left: var(--pad); padding-right: var(--pad); }
  .visit-cta__form { max-width: 100%; }
  .visit-cta__form form,
  .visit-cta__form .form-grid,
  .visit-cta__form .form-field,
  .visit-cta__form input,
  .visit-cta__form select,
  .visit-cta__form textarea,
  .visit-cta__form .btn { max-width: 100%; box-sizing: border-box; }

  /* Footer — centered + tightened spacing */
  .site-footer { padding-top: 48px; padding-bottom: 0; }
  .site-footer__inner { text-align: center; padding: 0 var(--pad); }
  .site-footer__brand,
  .site-footer__col { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .site-footer__brand img { margin-left: auto; margin-right: auto; }
  .site-footer__tag { max-width: 32ch; margin-left: auto; margin-right: auto; }
  .site-footer ul { width: 100%; }
  .site-footer li { text-align: center; padding: 2px 0; }     /* tighter between items */
  .site-footer h3 { margin-bottom: 8px; }                       /* tighter under section title */
  .site-footer__base {
    margin-top: 20px;     /* gap above the thin line */
    padding-top: 20px;    /* gap below the line, before copyright */
    padding-bottom: 40px; /* extra padding at the very bottom */
  }

  /* Home location section — stacked centered pills on mobile, no gap above the map image */
  .location-stack__copy .pills--single-line,
  .location-stack__copy .pills {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .location-stack__copy .pills .pill + .pill::before { display: none; }
  .location-stack__copy .pills .pill { padding: 4px 0; }
  .location-stack { padding-bottom: 36px; }                   /* less padding below copy */
  .location-stack__img { margin-top: 0 !important; }          /* remove white gap */
  .location-stack__img img { aspect-ratio: 3000 / 1596; }     /* full map on mobile too */

  /* Insights — tighten gap between section heading and first card */
  .section-head { margin-bottom: 24px; }

  /* Hero overlay — flat opacity across the whole banner on inner pages so text reads anywhere */
  .hero--inner .hero__overlay {
    background: rgba(0, 0, 0, 0.5) !important;
  }

  /* Facilities — center the Sports & Wellness / Work & Leisure copy + list on mobile */
  .sports-layout__copy { text-align: center; }
  .sports-layout__copy .sports-list { display: inline-block; text-align: center; margin: 0 auto 40px; padding-left: 0; list-style: none; }
  .sports-layout--reverse .sports-layout__copy .sports-list { margin: 28px auto 0; }
  .sports-layout__copy .sports-list li { text-align: center; padding-left: 0; }
  .sports-layout__copy .sports-list li::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pewter);
    margin: 0 10px 3px 0;
    vertical-align: middle;
    position: static !important;
  }

  /* Sibaya Precinct — Precinct Masterplan feature panel: flat bg, centered text, tight line spacing */
  .feature { background-color: var(--pewter); }
  .feature__bg::after { background: rgba(31, 30, 38, 0.55) !important; }
  .feature__inner { text-align: center; }
  .feature h2 {
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15 !important;
  }
  .feature h2 em { line-height: 1.15 !important; display: inline-block; }
  .feature p { max-width: none !important; margin-left: auto; margin-right: auto; }

  /* Sibaya Precinct gallery — hide the first image on mobile */
  .precinct-gallery__item--a { display: none !important; }

  /* Purchase Opportunities — homes-scroll mobile spacing */
  .homes-scroll-section { padding-top: 32px !important; padding-bottom: 32px !important; }
  .homes-scroll-stack { display: flex; flex-direction: column; gap: 72px !important; }
  .homes-scroll-frame { padding-bottom: 0; }
  .homes-scroll-frame:last-child { padding-bottom: 24px; }
  .homes-scroll-frame__body { padding: 16px 0 0 !important; }

  /* Let hero h1 text reflow naturally — no forced line breaks on mobile */
  .hero h1 br { display: none; }

  /* ===== Uniform section heads across the entire site on mobile ===== */
  .eyebrow {
    font-size: 11px !important;
    letter-spacing: 0.22em !important;
    margin-bottom: 6px !important;       /* tighter gap to the heading below */
    display: inline-block;
  }
  .section-head h2,
  .section-head h1,
  .visit-cta__copy h2,
  .intro__copy h2,
  .split__copy h2,
  .location-stack__copy h2,
  .feature__inner h2 {
    font-size: clamp(1.7rem, 6vw, 2.1rem) !important;
    line-height: 1.12 !important;
    margin-top: 0 !important;            /* kill default user-agent top margin */
    margin-bottom: 14px !important;
  }
  .section-head,
  .visit-cta__copy,
  .intro__copy,
  .split__copy,
  .location-stack__copy,
  .feature__inner { text-align: center; }
  .section-head .eyebrow,
  .visit-cta__copy .eyebrow,
  .intro__copy .eyebrow,
  .split__copy .eyebrow,
  .location-stack__copy .eyebrow,
  .feature__inner .eyebrow { margin-bottom: 6px !important; }
}

/* ===== Location map pins (bubble + attached tail, moves with parallax) ===== */
.location-stack__img { position: relative; }
.location-pins { position: absolute; inset: 0; z-index: 5; pointer-events: none; transform-origin: center; }
.map-pin { position: absolute; }
.map-pin__label {
  position: absolute;
  background: #fff; color: #1f1e26;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  padding: 6px 11px; border-radius: 999px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.map-pin__label::after { content: ""; position: absolute; width: 0; height: 0; }

/* down — bubble above, tail points down to the spot */
.map-pin--down .map-pin__label { left: 50%; bottom: 0; transform: translate(-50%, -9px); }
.map-pin--down .map-pin__label::after {
  left: 50%; bottom: -8px; margin-left: -7px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 9px solid #fff;
}
/* left — bubble to the right, tail points left */
.map-pin--left .map-pin__label { top: 50%; left: 0; transform: translate(9px, -50%); }
.map-pin--left .map-pin__label::after {
  top: 50%; left: -6px; margin-top: -7px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-right: 9px solid #fff;
}
/* right — bubble to the left, tail points right */
.map-pin--right .map-pin__label { top: 50%; right: 0; transform: translate(-9px, -50%); }
.map-pin--right .map-pin__label::after {
  top: 50%; right: -6px; margin-top: -7px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 9px solid #fff;
}
@media (max-width: 700px) {
  .map-pin__label { font-size: 9px; padding: 4px 8px; letter-spacing: .05em; }
}

/* ===== Sports list with icons (Facilities) ===== */
.sports-list--icons { gap: 16px; }
.sports-list--icons li { padding-left: 0; display: flex; align-items: center; gap: 13px; }
.sports-list--icons li::before { display: none; }
.sports-list__icon { width: 24px; height: 24px; flex: none; color: var(--cider); }
@media (max-width: 900px) {
  .sports-layout__copy .sports-list--icons li { justify-content: center; padding-left: 0; }
  .sports-layout__copy .sports-list--icons li::before { display: none; }
}

/* ===== Floating WhatsApp button ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 30px -6px rgba(0, 0, 0, .45); }
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .5); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ---------- reduced motion: element reveals show immediately ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- legal pages (privacy / terms) ---------- */
.legal-page { padding: 160px var(--pad) 96px; background: var(--white); }
.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); margin: 0 0 24px; }
.legal h2 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--body); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--cider); }

/* ---------- form consent + honeypot ---------- */
.form-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); cursor: pointer; text-transform: none; letter-spacing: normal; }
.form-consent input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; accent-color: var(--cider); }
.form-consent a { color: inherit; text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
