/* ==========================================================================
   Godrej Bandra Bay — landing page styles
   Mobile-first. Breakpoints: 768px (tablet), 1024px (laptop), 1440px (large).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ivory: #f6f2ea;
  --warm-white: #fbf9f5;
  --sand: #ece5d8;
  --charcoal: #1d1e20;
  --ink: #2b2c2f;
  --muted: #6a6862;
  --navy: #0e1b2c;
  --navy-2: #15263b;
  --navy-3: #1f3550;
  --gold: #b8975a;
  --gold-light: #d6bf8e;
  --gold-dark: #8c6f3b;
  --line: rgba(29, 30, 32, 0.14);
  --line-light: rgba(246, 242, 234, 0.2);
  --error: #a33a2c;
  --error-light: #f0a99c;
  --success: #3f6b4f;

  /* One plain, highly legible family for everything. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-sans);

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-title: clamp(1.3rem, 1.15rem + 0.6vw, 1.75rem);
  --fs-display: clamp(1.9rem, 1.45rem + 1.9vw, 3.2rem);
  --fs-hero: clamp(2rem, 1.35rem + 2.6vw, 3.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  /* Tighter vertical rhythm: ~48px on phones up to ~88px on large screens. */
  --section-y: clamp(3rem, 2.25rem + 3vw, 5.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --container: 1320px;
  --header-h: 72px;

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

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold-light); color: var(--navy); }

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

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy); color: var(--ivory);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.1em; height: 1.1em;
  flex: none;
  vertical-align: middle;
}

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

.section { padding-block: var(--section-y); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
}
.eyebrow .icon { width: 1rem; height: 1rem; }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--gold { color: var(--gold); }

.display {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}
.display em, .hero__title em { font-style: normal; color: var(--gold-dark); }
em { font-style: normal; }
.display--light { color: var(--ivory); }
.display--light em { color: var(--gold-light); }

.title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-title);
  line-height: 1.15;
  color: var(--charcoal);
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  max-width: 38rem;
}
.lead--light { color: rgba(246, 242, 234, 0.82); }

.fine-print {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--gold);
}
.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--charcoal);
  --btn-border: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--btn-border);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.25rem; font-size: 0.72rem; }
.btn--block { width: 100%; }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-border: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-light); --btn-border: var(--gold-light); }

.btn--dark { --btn-bg: var(--navy); --btn-fg: var(--ivory); --btn-border: var(--navy); }
.btn--dark:hover { --btn-bg: var(--navy-3); --btn-border: var(--navy-3); }

.btn--ghost-light { --btn-fg: var(--ivory); --btn-border: rgba(246, 242, 234, 0.55); }
.btn--ghost-light:hover { --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-border: var(--ivory); }

.btn--outline-light { --btn-fg: var(--ivory); --btn-border: var(--gold); }
.btn--outline-light:hover { --btn-bg: var(--gold); --btn-fg: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--ivory);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header.is-scrolled,
.site-header.is-solid,
.menu-open .site-header {
  background: rgba(251, 249, 245, 0.94);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.menu-open .site-header { background: var(--warm-white); }

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
  line-height: 1.1;
  min-width: 0;
}
.brand__logo {
  width: 44px; height: 44px;
  flex: none;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand__place {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.3rem;
}
.is-scrolled .brand__place, .is-solid .brand__place, .menu-open .brand__place { color: var(--gold-dark); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: clamp(1rem, 0.2rem + 1.4vw, 2.1rem); }
.primary-nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  opacity: 0.88;
  transition: opacity 0.3s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.15rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }

.header-phone {
  display: none;
  align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--gold); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.5rem;
  border: 0; background: transparent;
  cursor: pointer;
}
.menu-toggle .icon { width: 1.6rem; height: 1.6rem; grid-area: 1 / 1; }
.menu-toggle .icon--close { display: none; }
.menu-open .menu-toggle .icon--open { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
  background: var(--warm-white);
  overflow-y: auto;
  animation: menu-in 0.4s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.3rem + 2vw, 2.2rem);
  line-height: 1.2;
  text-decoration: none;
  color: var(--charcoal);
}
.mobile-menu__num { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0.15em; color: var(--gold-dark); }
.mobile-menu__foot { display: grid; gap: 0.75rem; }
.mobile-menu__contact {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
}
.mobile-menu__contact .icon { color: var(--gold-dark); }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory);
  background: var(--navy);
  isolation: isolate;
  overflow: hidden;
}
.hero__media, .hero__veil { position: absolute; inset: 0; z-index: -1; }
.hero__media-fill { display: none; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.06);
  animation: hero-zoom 2.4s var(--ease-out) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__veil {
  background:
    linear-gradient(180deg, rgba(14, 27, 44, 0.72) 0%, rgba(14, 27, 44, 0.15) 22%, rgba(14, 27, 44, 0.25) 45%, rgba(14, 27, 44, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 27, 44, 0.55) 0%, rgba(14, 27, 44, 0) 70%);
}
.hero__content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: var(--space-3);
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: min(var(--fs-hero), 7vh);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 15ch;
  text-wrap: balance;
  margin-bottom: var(--space-3);
}
.hero__title em {
  color: var(--gold-light);
  display: block;
  white-space: nowrap; /* "An Exceptional Way of Living." always stays on one line */
  font-size: min(1em, 5.8cqi); /* shrinks to the text column's width so the line always fits */
  width: max-content; max-width: 100cqi; /* may run past the title's 15ch cap, never past the column */
}
.hero__text { container-type: inline-size; }
.hero__project {
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}
.hero__lede {
  max-width: 36rem;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(246, 242, 234, 0.88);
  margin-bottom: var(--space-4);
}
.hero__actions { display: flex; flex-direction: column; gap: 0.75rem; }

.hero__footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3);
  padding-bottom: var(--space-4);
}
.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-light);
  width: 100%;
}
.hero__facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.62);
  margin-bottom: 0.3rem;
}
.hero__facts dd { font-family: var(--font-heading); font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); line-height: 1.2; }

.scroll-cue {
  display: none;
  flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(246, 242, 234, 0.8);
}
.scroll-cue__line {
  position: relative;
  width: 1px; height: 3.5rem;
  background: rgba(246, 242, 234, 0.25);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-light);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.img-note {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 0.75rem);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.6);
}

/* ---------- Overview ---------- */
.overview { background: var(--ivory); }
.overview__grid { display: grid; gap: var(--space-4); align-items: center; }
.overview__intro .lead { margin-block: var(--space-2) var(--space-3); max-width: none; }

figure figcaption, .residence__media figcaption {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}
/* Cropped landscape so the image height matches the text column (no dead space beside the copy). */
.overview__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 60%; }

.highlights {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.highlight {
  padding: var(--space-3) var(--space-2) var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.highlight:nth-child(odd) { border-right: 1px solid var(--line); }
.highlight:nth-child(even) { padding-left: var(--space-2); }
.highlight__num { font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--gold-dark); }
.highlight__value {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin-block: 0.75rem 0.5rem;
}
.highlight__value span { font-size: 0.55em; color: var(--gold-dark); }
.highlight__text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* ---------- Section heads ---------- */
/* Section heads are centred over their content. */
.section-head { max-width: 46rem; margin: 0 auto var(--space-4); text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-2); }
.section-head__copy { margin: var(--space-2) auto 0; color: var(--muted); max-width: 34rem; }
.section-head--row { display: block; }

/* ---------- Residences ---------- */
.residences { background: var(--warm-white); }
.residence-list { display: grid; gap: var(--space-4); max-width: 30rem; margin-inline: auto; }
.residence { display: flex; flex-direction: column; min-width: 0; }
.residence__media { position: relative; overflow: hidden; }
.residence__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.residence:hover .residence__media img { transform: scale(1.04); }
.residence__media figcaption {
  position: absolute; left: 1rem; bottom: 0.9rem; margin: 0;
  color: rgba(246, 242, 234, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.residence__index {
  position: absolute; top: 0.5rem; right: 1rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(246, 242, 234, 0.92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.residence__body {
  display: flex; flex-direction: column; flex: 1;
  padding-top: var(--space-2);
}
.residence__name {
  font-family: var(--font-heading);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: var(--space-2);
}
.residence__specs { flex: 1; margin-bottom: var(--space-3); }
.residence__specs div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.residence__specs div:first-child { border-top: 1px solid var(--line); }
.residence__specs dt { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.residence__specs dd { font-weight: 500; color: var(--charcoal); text-align: right; white-space: nowrap; }
.residence__area { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.residence__price { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; line-height: 1; color: var(--gold-dark) !important; }

.jodi {
  position: relative;
  display: grid; gap: var(--space-3);
  margin-top: var(--space-5);
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}
.jodi::before {
  content: "";
  position: absolute; inset: 0.75rem;
  border: 1px solid rgba(184, 151, 90, 0.4);
  pointer-events: none;
}
.jodi__title {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}
.jodi__intro p:last-child { color: rgba(246, 242, 234, 0.78); max-width: 26rem; }
.jodi__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); }
.jodi__size {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: var(--space-3) var(--space-2);
  background: var(--navy);
  text-decoration: none;
  transition: background-color 0.35s var(--ease);
}
.jodi__size:hover { background: var(--navy-2); }
.jodi__num { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1; color: var(--gold-light); }
.jodi__unit { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 242, 234, 0.7); }
.jodi__cta { position: relative; z-index: 1; }

.residences .fine-print { margin: var(--space-3) auto 0; max-width: 52rem; text-align: center; }

/* ---------- Waterfront ---------- */
.waterfront {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex; align-items: flex-end;
  padding-block: var(--section-y);
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.waterfront__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.waterfront__media img { width: 100%; height: 100%; object-fit: cover; }
.waterfront__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 44, 0.25) 0%, rgba(14, 27, 44, 0.35) 40%, rgba(14, 27, 44, 0.9) 100%);
}
/* Copy on the left, "Enquire Now" on the right (stacked on phones). */
.waterfront__content { display: grid; gap: var(--space-3); align-items: center; }
.waterfront__content .display { max-width: 15ch; margin-bottom: var(--space-2); }
/* Tablet and up: the heading stays on one line, sized to the width of its column. */
@media (min-width: 768px) {
  .waterfront__text { container-type: inline-size; }
  .waterfront__content .display { max-width: none; white-space: nowrap; font-size: min(var(--fs-display), 3.5cqi); }
}
.waterfront__cta { justify-self: start; }
.waterfront .img-note { top: auto; bottom: 1rem; }

.split { background: var(--warm-white); }
.split__grid { display: grid; gap: var(--space-4); align-items: center; }
.split__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__text { display: grid; gap: var(--space-3); justify-items: start; }
.split__text .eyebrow { margin-bottom: 0; }
.split__text > p:not(.eyebrow):not(.fine-print) { color: var(--muted); max-width: 32rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--sand); }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.gallery__item { min-width: 0; }
.gallery__item:nth-child(3n + 1) { grid-column: span 2; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: var(--navy);
  cursor: zoom-in;
  overflow: hidden;
}
.gallery__btn img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease);
}
.gallery__item:nth-child(3n + 1) .gallery__btn img { aspect-ratio: 16 / 9; }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.04); opacity: 0.86; }
.gallery__btn:focus-visible { outline-offset: -4px; }
.gallery__caption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(14, 27, 44, 0.75));
  color: var(--ivory);
  font-size: var(--fs-sm);
  text-align: left;
  line-height: 1.4;
}
.gallery__caption span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gallery__caption .icon { width: 1rem; height: 1rem; opacity: 0.8; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-rows: auto 1fr; place-items: center;
  background: rgba(10, 18, 30, 0.97);
  color: var(--ivory);
  animation: fade-in 0.3s var(--ease);
  touch-action: pan-y;
}
@keyframes fade-in { from { opacity: 0; } }
.lightbox__bar {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem var(--gutter);
}
.lightbox__count { font-size: var(--fs-xs); letter-spacing: 0.2em; color: rgba(246, 242, 234, 0.7); }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  width: 100%; max-width: 1400px;
  padding: 0 var(--gutter) 5rem;
}
.lightbox__figure img {
  max-height: calc(100vh - 11rem);
  max-height: calc(100svh - 11rem);
  width: auto;
  object-fit: contain;
  animation: fade-in 0.4s var(--ease);
}
.lightbox__figure figcaption {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ivory);
  text-align: center;
}
.lightbox__note { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); align-self: center; }
.lightbox__btn {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox__btn:hover { background: rgba(246, 242, 234, 0.08); border-color: var(--gold); }
.lightbox__btn .icon { width: 1.4rem; height: 1.4rem; }
.lightbox__nav { position: absolute; bottom: 1.25rem; }
.lightbox__nav--prev { left: calc(50% - 3.5rem); }
.lightbox__nav--next { right: calc(50% - 3.5rem); }

/* ---------- Location ---------- */
.location { background: var(--ivory); }
.location__grid { display: grid; gap: var(--space-4); align-items: center; }
.location__text .lead { margin-block: var(--space-2) var(--space-3); }
.location__pillars { display: grid; gap: 0; margin-bottom: var(--space-3); border-top: 1px solid var(--line); }
.location__pillars li {
  display: grid; gap: 0.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.location__label { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--charcoal); line-height: 1.2; }
.location__pillars p { font-size: var(--fs-sm); color: var(--muted); }
.location__text .fine-print { margin-bottom: var(--space-3); }
.location__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Enquiry ---------- */
.enquire {
  position: relative;
  background: var(--navy);
  color: var(--ivory);
  overflow: hidden;
}
.enquire::before {
  content: "";
  position: absolute; top: 0; right: -20%;
  width: 70%; height: 100%;
  background: radial-gradient(closest-side, rgba(184, 151, 90, 0.12), transparent);
  pointer-events: none;
}
.enquire__grid { position: relative; display: grid; gap: var(--space-4); align-items: start; }
.enquire__intro .lead { margin-block: var(--space-2) var(--space-3); }
.enquire__direct { display: grid; gap: 0.25rem; margin-bottom: var(--space-3); }
.enquire__direct a {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--ivory);
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
.enquire__direct a:hover { color: var(--gold-light); }
.enquire__direct .icon { color: var(--gold); }
.enquire__assure { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: rgba(246, 242, 234, 0.68); max-width: 26rem; }
.enquire__assure .icon { color: var(--gold); margin-top: 0.2rem; }

.enquire__panel {
  background: var(--warm-white);
  color: var(--ink);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
}

.enquiry-form { display: grid; gap: 1.1rem; }
.form-head { display: grid; gap: 0.25rem; }
.field { display: grid; gap: 0.3rem; min-width: 0; align-content: start; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.req { color: var(--gold-dark); }
.opt { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 30, 32, 0.35);
  border-radius: 0;
  background: transparent;
  font-size: 1rem; /* >=16px avoids iOS zoom */
  color: var(--charcoal);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: none; min-height: 5.5rem; line-height: 1.6; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--charcoal);
  -webkit-box-shadow: 0 0 0 1000px var(--warm-white) inset;
  transition: background-color 9999s ease-out;
}
.field input::placeholder, .field textarea::placeholder { color: #9b988f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error { font-size: var(--fs-xs); color: var(--error); line-height: 1.5; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 2rem; cursor: pointer; }
.select-wrap__icon {
  position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
  color: var(--gold-dark);
}
.field select:invalid { color: #8a877f; }
.field select option { color: var(--charcoal); }

/* Round consent checkbox; the tick is centred inside the circle. */
.field--check,
.enquiry-form .field.field--check {
  grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0; align-items: start;
}
.field--check input,
.enquiry-form .field.field--check input {
  width: 1.25rem; height: 1.25rem; min-height: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  flex: none;
  border: 1.5px solid rgba(29, 30, 32, 0.45);
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.field--check input::before {
  content: "";
  width: 0.36rem; height: 0.62rem;
  margin-top: -0.12rem; /* optical centring of the rotated tick */
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease);
}
.enquiry-form .field.field--check input:hover { border-color: var(--gold-dark); }
.enquiry-form .field.field--check input:checked { background: var(--navy); border-color: var(--navy); }
.field--check input:checked::before { transform: rotate(45deg) scale(1); }
.field--check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: none; }
.enquiry-form .field.field--check input[aria-invalid="true"] { border-color: var(--error); box-shadow: none; }
.field--check label {
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.field--check label a { color: var(--charcoal); }
.consent { min-width: 0; }
.consent label { display: block; }
/* First line of consent text is centred on the 1.25rem circle, in every form size. */
.field--check .consent label { padding-top: max(0px, calc((1.25rem - 1.55em) / 2)); }
.enquiry-form .field--check .consent label { line-height: 1.55; }
/* Collapsed: consent text on one line, "Read more" shows the rest. */
.consent label.is-collapsed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.consent .read-more { margin-top: 0.1rem; padding: 0; font-size: 0.68rem; }
.read-more--dark { color: var(--gold-dark); }
.read-more--dark:hover { color: var(--charcoal); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--error);
  background: rgba(163, 58, 44, 0.06);
  font-size: var(--fs-sm);
  color: var(--error);
}
.form-alert .icon { margin-top: 0.2rem; }

.btn--submit { margin-top: 0.5rem; }
.btn__spinner {
  display: none;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(14, 27, 44, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.form-success { display: grid; gap: 1rem; justify-items: start; padding-block: var(--space-3); outline: none; }
.form-success__icon {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-dark);
}
.form-success__icon .icon { width: 1.5rem; height: 1.5rem; }
.form-success p { color: var(--muted); }
.form-success .fine-print a { color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1420;
  color: rgba(246, 242, 234, 0.78);
  padding-top: var(--space-5);
  padding-bottom: calc(var(--space-4) + 4.5rem); /* room for the mobile action bar */
  font-size: var(--fs-sm);
}
.site-footer .brand__name { font-size: 1.3rem; color: var(--ivory); }
.site-footer__top { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line-light); }
.site-footer__brand { display: grid; gap: var(--space-2); justify-items: start; }
.site-footer__tag { max-width: 26rem; }
.site-footer__label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.contact-list { display: grid; gap: 0.25rem; }
.contact-list a {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--ivory);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
.contact-list a:hover { color: var(--gold-light); }
.contact-list .icon { color: var(--gold); }

.disclaimer { padding-block: var(--space-3); border-bottom: 1px solid var(--line-light); }
.disclaimer .site-footer__label { margin-bottom: 0.5rem; }
/* Full container width, justified edge to edge. */
.disclaimer p {
  width: 100%;
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: rgba(246, 242, 234, 0.6);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.disclaimer p + p { margin-top: 0.75rem; }
.disclaimer strong { color: rgba(246, 242, 234, 0.85); font-weight: 600; }
/* Collapsed: first paragraph only, clamped to a single line. */
.disclaimer__body.is-collapsed p:not(:first-child) { display: none; }
.disclaimer__body.is-collapsed p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read-more {
  margin-top: 0.4rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--gold-light);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.read-more:hover { color: var(--ivory); }

.site-footer__bottom {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  padding-top: var(--space-3);
  font-size: var(--fs-xs);
  color: rgba(246, 242, 234, 0.55);
}
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: rgba(246, 242, 234, 0.8); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--gold-light); }
.site-credit a { color: rgba(246, 242, 234, 0.8); text-underline-offset: 3px; }
.site-credit a:hover { color: var(--gold-light); }

/* ---------- Mobile action bar & WhatsApp ---------- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.action-bar__call { color: var(--ivory); border-right: 1px solid var(--line-light); }
.action-bar__call .icon { color: var(--gold); }
.action-bar__cta { background: var(--gold); color: var(--navy); }

.whatsapp {
  position: fixed; right: 1rem; bottom: calc(4.5rem + env(safe-area-inset-bottom)); z-index: 89;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), bottom 0.45s var(--ease-out);
}
.whatsapp:hover { transform: translateY(-2px); }
.whatsapp .icon { width: 1.6rem; height: 1.6rem; }
.whatsapp.is-low { bottom: calc(1rem + env(safe-area-inset-bottom)); }
/* Mobile: hide the floating button over the hero, forms and footer (each has its own WhatsApp link)
   so it never covers form controls; it returns with the sticky action bar. */
/* Phones: the whole hero photo is shown (not cropped) behind the text; a blurred copy of the
   same photo fills the space above and below it. The 8th gallery image is desktop/tablet only
   (on two columns it would sit alone at half width). */
@media (max-width: 767px) {
  .hero__media { background: var(--navy); overflow: hidden; }
  .hero__media-fill {
    display: block; position: absolute; inset: -40px;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    filter: blur(22px) brightness(0.7);
  }
  .hero__media img {
    position: relative; object-fit: contain; object-position: 50% 9.5rem; transform: none; animation: none;
    /* soft top and bottom edges so the photo melts into the blurred fill */
    -webkit-mask-image: linear-gradient(transparent 9.5rem, #000 calc(9.5rem + 14vw), #000 calc(9.5rem + 43vw), transparent calc(9.5rem + 57vw));
    mask-image: linear-gradient(transparent 9.5rem, #000 calc(9.5rem + 14vw), #000 calc(9.5rem + 43vw), transparent calc(9.5rem + 57vw));
  }
  .gallery__item--8 { display: none; }
}

@media (max-width: 1023px) {
  .whatsapp.is-low { opacity: 0; transform: scale(0.6); pointer-events: none; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s; }
}

/* ---------- Hero form (saved to CSV) ---------- */
.hero__content { display: grid; gap: var(--space-4); }
.hero-form {
  background: rgba(251, 249, 245, 0.97);
  color: var(--ink);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.55);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.hero-form__title { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--charcoal); }
.hero-form__sub { font-size: var(--fs-sm); color: var(--muted); }
.field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field--check label { white-space: normal; overflow: visible; }
/* Tight, compact forms: small gaps between fields and short inputs. */
.enquiry-form--compact { gap: 0.6rem; }
.enquiry-form--compact .form-head { margin-bottom: 0.15rem; }
.enquiry-form--compact .field { gap: 0.1rem; }
.enquiry-form--compact .field input,
.enquiry-form--compact .field select { min-height: 2.1rem; padding-block: 0.25rem; }
.enquiry-form--compact .field--check { margin-top: 0.15rem; }
.enquiry-form--compact .field--check label { font-size: 0.7rem; line-height: 1.55; }
.enquiry-form--compact .field textarea { min-height: 2.6rem; padding-block: 0.3rem; }
.enquiry-form--compact .btn--submit { margin-top: 0.15rem; min-height: 2.75rem; }
.hero-form .form-success { padding-block: var(--space-2); }
.hero-form .field--message textarea { min-height: 4rem; }

/* ---------- Enquiry popup ---------- */
.modal {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-top: 3px solid var(--gold);
  background: var(--warm-white);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal[open] { animation: modal-in 0.35s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } }
.modal::backdrop { background: rgba(10, 18, 30, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__inner { position: relative; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.modal__head { padding-right: 2.5rem; }
.modal__head .eyebrow { margin-bottom: 0.5rem; }
.modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.modal__close:hover { background: var(--sand); border-color: var(--gold); }
.modal__close .icon { width: 1.2rem; height: 1.2rem; }

/* ---------- WhatsApp ---------- */
:root { --wa-green: #25d366; --wa-green-dark: #128c4b; }
.btn--whatsapp { --btn-bg: var(--wa-green-dark); --btn-fg: #fff; --btn-border: var(--wa-green-dark); }
.btn--whatsapp:hover { --btn-bg: #0f7a41; --btn-border: #0f7a41; }
.btn--whatsapp:hover .icon { transform: none; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  background: var(--wa-green-dark);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s var(--ease);
}
.btn-whatsapp:hover { background: #0f7a41; }
.btn-whatsapp .icon { width: 1.2rem; height: 1.2rem; }
.mobile-menu__contact .icon { color: var(--wa-green-dark); }

/* ---------- Footer logo ---------- */
.site-footer__logo { display: flex; align-items: center; gap: 0.9rem; }
.site-footer__logo img { width: 56px; height: 56px; padding: 4px; background: #fff; border-radius: 8px; object-fit: contain; }
.site-footer__partner { font-size: var(--fs-xs); color: rgba(246, 242, 234, 0.6); margin-top: 0.2rem; }

@media (min-width: 1024px) {
  /* Text column: grouped rhythm (eyebrow / headline + project label / lede / action), centred
     against the form. The form card stretches to the row height; its message box absorbs any slack. */
  .hero__content { grid-template-columns: minmax(0, 1fr) minmax(380px, 430px); align-items: stretch; gap: clamp(2.5rem, 5vw, 5.5rem); }
  .hero__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .hero__text > .eyebrow { margin-bottom: 1.75rem; }
  .hero__title { margin-bottom: 1.1rem; }
  .hero__project { margin-bottom: 2rem; }
  .hero__lede { margin-bottom: 2.5rem; }

  .hero-form { display: flex; flex-direction: column; padding: 1.5rem 1.75rem 1.75rem; }
  .hero-form .field--check label { font-size: 0.66rem; line-height: 1.55; }
  /* Explicit layout: Mobile + Email share a row; the message row takes the spare height.
     Spacing comes from margins (row-gap 0) so hidden rows such as alerts add no space. */
  .hero-form .enquiry-form:not([hidden]) {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr auto auto auto;
    grid-template-areas: "alert alert" "head head" "name name" "mobile email" "msg msg" "consent consent" "err err" "submit submit";
    column-gap: 1.25rem; row-gap: 0;
  }
  .hero-form .form-alert { grid-area: alert; margin-bottom: 0.75rem; }
  .hero-form .form-head { grid-area: head; margin-bottom: 0.9rem; }
  .hero-form .field:has(> input[name="full_name"]) { grid-area: name; margin-bottom: 0.75rem; }
  .hero-form .field:has(> input[name="mobile"]) { grid-area: mobile; margin-bottom: 0.75rem; }
  .hero-form .field:has(> input[name="email"]) { grid-area: email; margin-bottom: 0.75rem; }
  .hero-form .field--message { grid-area: msg; grid-template-rows: auto 1fr; margin-bottom: 1rem; }
  .hero-form .field--message textarea { height: 100%; min-height: 2.4rem; }
  .hero-form .field--check { grid-area: consent; }
  .hero-form .enquiry-form > [data-error-for="consent"] { grid-area: err; margin-top: 0.25rem; }
  .hero-form .btn--submit { grid-area: submit; margin-top: 1rem; }
}

/* ---------- Reveal animations (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js .reveal-img[data-reveal] { transform: none; clip-path: inset(8% 0 0 0); transition: opacity 1s var(--ease-out), clip-path 1.4s var(--ease-out); }
.js .reveal-img[data-reveal].is-revealed { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .hero__media img { transform: none; }
}

/* ---------- Simple content pages (privacy) ---------- */
.page { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--section-y); background: var(--warm-white); }
.prose { max-width: 46rem; }
.thank-you .form-success__icon { margin-bottom: var(--space-3); }
.thank-you .lead { color: var(--charcoal); margin-bottom: var(--space-2); }
.thank-you .btn-whatsapp { color: #fff; text-decoration: none; }
.thank-you__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: var(--space-4); }
.prose h1 { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-display); line-height: 1.05; color: var(--charcoal); margin-bottom: var(--space-3); }
.prose h2 { font-family: var(--font-heading); font-weight: 500; font-size: 1.6rem; color: var(--charcoal); margin: var(--space-4) 0 var(--space-1); }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--gold-dark); }

/* ==========================================================================
   Tablet ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root { --header-h: 84px; }

  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__facts { width: auto; gap: var(--space-5); }
  .scroll-cue { display: flex; }

  .highlights { grid-template-columns: repeat(4, 1fr); }
  .highlight, .highlight:nth-child(even) { padding: var(--space-4) var(--space-3); border-right: 1px solid var(--line); }
  .highlight:first-child { padding-left: 0; }
  .highlight:last-child { border-right: 0; padding-right: 0; }

  /* Two equal cards per row; an odd last card sits centred under them at the same width. */
  .residence-list { grid-template-columns: repeat(4, 1fr); gap: var(--space-4) var(--space-3); max-width: none; }
  .residence { grid-column: span 2; }
  .residence:last-child:nth-child(odd) { grid-column: 2 / span 2; }

  .jodi { grid-template-columns: 1fr 1fr; align-items: center; }
  .jodi__cta { grid-column: 1 / -1; justify-self: center; }


  /* Text left, Enquire Now button right, vertically centred against the text. */
  /* Button sits under the text so the one-line heading gets the full width. */
  .waterfront__content { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .waterfront__cta { justify-self: start; }
  .waterfront__text > :last-child { margin-bottom: 0; }

  .gallery__grid { grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
  .gallery__item, .gallery__item:nth-child(3n + 1) { grid-column: span 3; }
  .gallery__item:nth-child(3n + 1) .gallery__btn img { aspect-ratio: 4 / 3; }
  .gallery__item--1 { grid-column: span 6 !important; }
  .gallery__item--1 .gallery__btn img { aspect-ratio: 21 / 9 !important; }
  .gallery__item--4, .gallery__item--5, .gallery__item--6 { grid-column: span 2 !important; }
  .gallery__item--4 .gallery__btn img, .gallery__item--5 .gallery__btn img, .gallery__item--6 .gallery__btn img { aspect-ratio: 3 / 4; }

  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox__figure { padding: 0 calc(var(--gutter) + 4rem) 2rem; }
  .lightbox__figure img { max-height: calc(100vh - 9rem); max-height: calc(100svh - 9rem); }

  /* Brand on the left, consultation button on the right */
  .site-footer__brand { grid-template-columns: 1fr auto; column-gap: var(--space-4); align-items: center; }
  .site-footer__brand > :not(.btn) { grid-column: 1; }
  .site-footer__brand > .btn { grid-column: 2; grid-row: 1 / span 2; }
}

/* ==========================================================================
   Laptop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .action-bar, .action-bar.is-visible { display: none; }
  .whatsapp, .whatsapp.is-low { bottom: 1.5rem; right: 1.5rem; }
  .site-footer { padding-bottom: var(--space-4); }

  .hero__content { padding-bottom: var(--space-4); }
  .hero__title { max-width: 20ch; }

  .overview__grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 4vw, 4.5rem); }

  /* Three equal cards on one baseline (no staggered middle card). */
  .residence-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .residence, .residence:last-child:nth-child(odd) { grid-column: auto; }
  .residence__media img { aspect-ratio: 1 / 1; }

  .jodi { grid-template-columns: 1.1fr 1.3fr auto; gap: var(--space-4); align-items: center; }
  .jodi__cta { grid-column: auto; }

  .split__grid { grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 4vw, 4.5rem); }

  .gallery__grid { grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 1rem; }
  .gallery__item--1 { grid-column: span 8 !important; grid-row: span 2; }
  .gallery__item--2 { grid-column: span 4 !important; }
  .gallery__item--3 { grid-column: span 4 !important; }
  .gallery__item--4 { grid-column: span 4 !important; }
  .gallery__item--5 { grid-column: span 4 !important; }
  .gallery__item--6 { grid-column: span 4 !important; }
  .gallery__item--7 { grid-column: span 7 !important; }
  .gallery__item--8 { grid-column: span 5 !important; }
  .gallery__item .gallery__btn img { aspect-ratio: auto !important; height: 100%; min-height: 15rem; }
  .gallery__item--1 .gallery__btn img { min-height: 32rem; }
  .gallery__item--7 .gallery__btn img, .gallery__item--8 .gallery__btn img { min-height: 24rem; }

  .location__grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 4vw, 4.5rem); }
  .location__figure { order: -1; }

  /* Fields stack one per line, so the panel sizes to its own content; the intro sits centred beside it. */
  /* Both columns start on one line: the eyebrow sits level with the form heading inside the card. */
  .enquire__grid { grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 4vw, 4.5rem); align-items: start; }
  .enquire__intro { padding-top: 2rem; }
  .enquire__intro .enquire__assure { margin-bottom: 0; }
  .enquire__panel { padding: 2rem clamp(1.75rem, 1rem + 1.4vw, 2.5rem); }

  /* Images beside text: cropped to exactly the height of the copy next to them (top and bottom edges
     line up), caption laid over the image so it adds no height. */
  .overview__grid, .split__grid, .location__grid { align-items: stretch; }
  /* Block-level eyebrow: no inline line-box gap above it, so the copy's first line sits on the top edge. */
  .hero__text > .eyebrow, .enquire__intro > .eyebrow, .overview__intro > .eyebrow, .location__text > .eyebrow {
    display: flex; width: fit-content;
  }
  .overview__figure, .split__figure, .location__figure { position: relative; min-height: 18rem; }
  .overview__figure picture { display: contents; }
  .overview__figure img, .split__figure img, .location__figure img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .overview__figure figcaption, .split__figure figcaption, .location__figure figcaption {
    position: absolute; left: 1rem; bottom: 0.9rem; margin: 0;
    color: rgba(246, 242, 234, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  }
}

/* Desktop nav needs a little more room than the laptop breakpoint. */
@media (min-width: 1200px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Large ≥ 1440px
   ========================================================================== */
@media (min-width: 1440px) {
  :root { --header-h: 92px; }
  .hero__title { max-width: 20ch; }
}

/* Very small phones (320px) */
@media (max-width: 359px) {
  .brand__name { font-size: 1.05rem; }
  .brand__place { letter-spacing: 0.24em; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts div:last-child { grid-column: span 2; }
  .btn { padding-inline: 1.1rem; letter-spacing: 0.14em; }
  .residence__specs div { flex-wrap: wrap; }
  .jodi__sizes { grid-template-columns: 1fr; }
}
