* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background-color: #0d0d0d;
  color: #f2efe9;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Above page content that sets its own z-index (e.g. the connectivity
     map's filter chips at 500), below the lightbox / FAB / chat widget. */
  z-index: 1000;
  padding: 28px 48px;
  display: flex;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

/* Scrolled state collapses into a thin strip — the logo shrinks to match
   (see .navbar--scrolled .navbar__logo) so nothing spills out of it. */
.navbar--scrolled {
  padding: 18px 48px;
  background-color: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* About page: scrolled state gets a light/white overlay instead of the
   default dark one, so the link + toggle colors flip to dark too. */
.navbar--white-scrolled.navbar--scrolled {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar--white-scrolled.navbar--scrolled .navbar__link {
  color: #1a1a1a;
}

.navbar--white-scrolled.navbar--scrolled .navbar__toggle-bar {
  background-color: #1a1a1a;
}

.navbar__logo-link {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo {
  height: 72px;
  width: auto;
  border-radius: 6px;
  display: block;
  transition: height 0.3s ease;
}

/* Once scrolled, the navbar collapses into a thin strip — shrink the logo
   to fit inside it instead of spilling out above/below the bar. */
.navbar--scrolled .navbar__logo {
  height: 48px;
}

.navbar__logo-divider {
  width: 1px;
  height: 42px;
  background-color: rgba(242, 239, 233, 0.35);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.navbar__logo--secondary {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.3s ease;
}

.navbar--scrolled .navbar__logo-divider {
  height: 32px;
  opacity: 1;
  transform: scaleY(1);
}

.navbar--scrolled .navbar__logo--secondary {
  max-width: 90px;
  opacity: 1;
}

.navbar__links {
  display: flex;
  gap: 40px;
}

.navbar__link {
  color: #f2efe9;
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.navbar__link:hover {
  opacity: 1;
}

/* On pages whose top section is light-colored (no dark Hero behind the navbar),
   use dark text until the blurred/scrolled state kicks in. */
.navbar--on-light:not(.navbar--scrolled) .navbar__link {
  color: #1a1a1a;
}

/* Header phone number — pinned top-right, mirroring the logo on the left */
.navbar__phone {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2efe9;
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.navbar__phone:hover {
  opacity: 1;
}

.navbar__phone-icon {
  flex-shrink: 0;
}

.navbar--on-light:not(.navbar--scrolled) .navbar__phone,
.navbar--white-scrolled.navbar--scrolled .navbar__phone {
  color: #1a1a1a;
}

/* Hero */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%),
    url('../images/hero-bg.jpg?v=4');
  /* Lighter WebP where supported (JPEG above is the fallback) */
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%),
    image-set(url('../images/hero-bg.webp') type('image/webp'), url('../images/hero-bg.jpg?v=4') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero content column: title → tagline → facts pill → CTA, stepped to the
   right like a road. Positioned so main.js can draw the route line using
   offsetTop/offsetLeft (unaffected by the fade-in transforms). */
.hero__content {
  position: relative;
  padding: 0 48px 64px;
}

/* Dotted route line connecting tagline → facts pill → CTA. */
.hero__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  animation: heroFade 1s ease forwards;
  animation-delay: 1.6s;
}

.hero__route-path {
  fill: none;
  stroke: #cba967;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0 8;
  opacity: 0.9;
}

.hero__route-start,
.hero__route-end {
  fill: #cba967;
}

.hero__route-start {
  filter: drop-shadow(0 0 6px rgba(203, 169, 103, 0.8));
}

.hero__route-dot {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

@keyframes heroFade {
  to {
    opacity: 1;
  }
}

/* Short rule + italic tagline under the title. */
.hero__sub {
  position: relative;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.95s;
}

.hero__rule {
  display: block;
  width: 64px;
  height: 1px;
  background-color: #cba967;
}

.hero__tagline {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: 3px;
  color: #e3c98f;
}

/* Facts pill — four key facts split by dotted dividers. */
.hero__facts {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 34px 0 0 72px;
  padding: 22px 14px;
  list-style: none;
  border-radius: 999px;
  background-color: rgba(18, 12, 22, 0.72);
  border: 1px solid rgba(203, 169, 103, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.15s;
}

.hero__fact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
  text-align: center;
}

.hero__fact + .hero__fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: radial-gradient(circle, rgba(203, 169, 103, 0.7) 1px, transparent 1.5px) 0 0 / 2px 6px repeat-y;
}

.hero__fact-icon {
  color: #cba967;
  margin-bottom: 8px;
}

.hero__fact-value {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f2efe9;
  white-space: nowrap;
}

.hero__fact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.65);
}

/* Mobile-only dotted connectors between the stacked blocks. */
.hero__link {
  display: none;
}

/* CTA + BMRDA seal row at the end of the route. Not positioned, so the
   CTA's offsetLeft/offsetTop stay relative to .hero__content for main.js. */
.hero__finish {
  display: flex;
  align-items: center;
  gap: 72px;
  margin: 36px 0 0 380px;
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 18px 34px;
  border-radius: 999px;
  background-color: #752a5d;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(117, 42, 93, 0.45);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.35s;
  transition: background-color 0.3s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background-color: #5e2249;
}

.hero__cta:focus-visible {
  outline: 2px solid #cba967;
  outline-offset: 4px;
}

.hero__cta-arrow {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(6px);
}

@media (max-width: 1100px) {
  .hero__fact {
    padding: 0 20px;
  }

  .hero__finish {
    margin-left: 300px;
    gap: 48px;
  }

  .bmrda-seal--hero {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .hero__finish {
    margin-left: 160px;
  }
}

/* Desktop / tablet / landscape phones. The hero is one screen tall with its
   content pinned to the bottom, but the title scaled with width only, so on
   wide-but-short windows (laptops at 125-150% scaling, landscape phones) the
   stack grew past the top and slid under the fixed logo. Scale the title by
   height too, and reserve the navbar's height so it can never overlap: if the
   content still doesn't fit, the hero grows taller instead. */
@media (min-width: 769px) {
  .hero {
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    padding-top: 112px;
  }

  .hero__word {
    font-size: clamp(40px, min(6.5vw, 10vh), 96px);
  }
}

/* Short desktop windows: tighten the vertical spacing of the stack. */
@media (min-width: 769px) and (max-height: 760px) {
  .hero__content {
    padding-bottom: clamp(20px, 5vh, 64px);
  }

  .hero__sub {
    margin-top: clamp(8px, 2vh, 18px);
  }

  .hero__tagline {
    margin-top: clamp(8px, 1.6vh, 14px);
  }

  .hero__facts {
    margin-top: clamp(14px, 3.5vh, 34px);
    padding-top: clamp(12px, 2.4vh, 22px);
    padding-bottom: clamp(12px, 2.4vh, 22px);
  }

  .hero__fact-icon {
    margin-bottom: clamp(2px, 0.8vh, 8px);
  }

  .hero__finish {
    margin-top: clamp(14px, 3.5vh, 36px);
  }

  .hero__cta {
    padding-top: clamp(12px, 2.2vh, 18px);
    padding-bottom: clamp(12px, 2.2vh, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__route-dot {
    display: none;
  }

  .bmrda-seal__ring {
    animation: none;
  }
}

/* BMRDA Approved seal — dark disc, gold dotted ring that slowly turns,
   echoing the hero's dotted route line. Used in the hero. */
.bmrda-seal {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(18, 12, 22, 0.72);
  border: 1px solid rgba(203, 169, 103, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #f2efe9;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  line-height: 1;
}

.bmrda-seal__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px dotted #cba967;
  opacity: 0.85;
  animation: bmrdaSpin 40s linear infinite;
}

.bmrda-seal__icon {
  color: #cba967;
  margin-bottom: 5px;
}

.bmrda-seal__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  padding-left: 2px;
}

.bmrda-seal__sub {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  padding-left: 2.5px;
  text-transform: uppercase;
  color: #e3c98f;
}

/* LVT logo variant: the purple square logo cropped to a circle inside the
   dotted ring. Inset is a percentage so it scales with the disc on phones. */
.bmrda-seal__logo {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes bmrdaSpin {
  to {
    transform: rotate(360deg);
  }
}

.bmrda-seal--hero {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.5s;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #cba967;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
}

.hero__kicker::before {
  content: '';
  width: 50px;
  height: 1px;
  background-color: #cba967;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__line {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.hero__word {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(100%);
  animation: popUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__line--1 .hero__word:nth-child(1) {
  animation-delay: 0.2s;
}

.hero__line--1 .hero__word:nth-child(2) {
  animation-delay: 0.35s;
}

.hero__line--2 .hero__word {
  animation-delay: 0.7s;
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrolling strip (used by the amenity strips) — slim auto-scrolling marquee.
   The stat list is rendered twice; the track slides left by exactly one
   copy (-50%) and loops, so the scroll is seamless. */
.stats {
  background-color: #0d0d0d;
  border-top: 1px solid rgba(203, 169, 103, 0.25);
  border-bottom: 1px solid rgba(203, 169, 103, 0.25);
  padding: 16px 0;
}

.stats__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.stats__track {
  display: flex;
  width: max-content;
  animation: statsScroll 30s linear infinite;
}

.stats__marquee:hover .stats__track {
  animation-play-state: paused;
}

@keyframes statsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats__group {
  list-style: none;
  display: flex;
  flex-shrink: 0;
}

.stats__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  padding: 0 28px;
}

/* Small gold diamond separating each stat */
.stats__item::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 46px;
  align-self: center;
  background-color: #cba967;
  transform: rotate(45deg);
  opacity: 0.7;
}


.stats__label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.75);
}

@media (max-width: 480px) {
  .stats {
    padding: 12px 0;
  }

  .stats__track {
    animation-duration: 22s;
  }

  .stats__item {
    padding: 0 18px;
  }

  .stats__item::after {
    margin-left: 26px;
  }


  .stats__label {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats__track {
    animation: none;
  }

  .stats__marquee {
    overflow-x: auto;
  }
}

/* Amenity strip (above the gallery) — compact serif text
   marquee, all names in one upright style, diamond separators.
   Site black + vivid orchid accent.
   Colours come from these variables. */
.stats--amenities {
  --strip-bg: #0d0d0d;
  --strip-text: #fbf8f3;
  --strip-accent: #e86cc4;
  --strip-border: rgba(232, 108, 196, 0.45);
  background: var(--strip-bg);
  border-top: 1px solid var(--strip-border);
  border-bottom: 1px solid var(--strip-border);
  padding: 4px 0;
}

/* The marquee clips overflow, so give descenders (y, g, p) room */
.stats--amenities .stats__marquee {
  padding: 1px 0 3px;
}

.stats--amenities .stats__track {
  animation-duration: 60s;
}

.stats--amenities .stats__item {
  align-items: center;
  padding: 0 28px;
}

.stats--amenities .stats__item::after {
  width: 6px;
  height: 6px;
  margin-left: 40px;
  background-color: var(--strip-accent);
  opacity: 1;
}

.stats--amenities .stats__label {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--strip-text);
}

@media (max-width: 480px) {
  .stats--amenities {
    padding: 3px 0;
  }

  .stats--amenities .stats__track {
    animation-duration: 42s;
  }

  .stats--amenities .stats__item {
    padding: 0 20px;
  }

  .stats--amenities .stats__item::after {
    width: 6px;
    height: 6px;
    margin-left: 26px;
  }

  .stats--amenities .stats__label {
    font-size: 16px;
  }
}

/* Highlights strip (between image showcase and about) — cream band with gold
   line icons, spaced uppercase labels and small gold diamond separators.
   Two identical groups; the track slides by -50% for a seamless loop. */
.usp {
  background-color: #f4f1eb;
  border-bottom: 1px solid rgba(160, 120, 60, 0.18);
  box-shadow: inset 0 -10px 18px -14px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
}

.usp__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.usp__track {
  display: flex;
  width: max-content;
  /* Text strips all move right → left (normal direction). */
  animation: statsScroll 50s linear infinite;
}

.usp__marquee:hover .usp__track {
  animation-play-state: paused;
}

.usp__group {
  list-style: none;
  display: flex;
  flex-shrink: 0;
}

.usp__item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 0 34px;
}

.usp__item::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 52px;
  background-color: #b08a4a;
  transform: rotate(45deg);
  opacity: 0.85;
}

.usp__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #a07a3c;
}

.usp__label {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2b2620;
}

@media (max-width: 480px) {
  .usp {
    padding: 7px 0;
  }

  .usp__track {
    animation-duration: 38s;
  }

  .usp__item {
    gap: 10px;
    padding: 0 18px;
  }

  .usp__item::after {
    margin-left: 30px;
  }

  .usp__icon {
    width: 16px;
    height: 16px;
  }

  .usp__label {
    font-size: 10.5px;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .usp__track {
    animation: none;
  }

  .usp__marquee {
    overflow-x: auto;
  }
}

/* Scrolling strip of project photos (between hero and image showcase). Each frame
   carries its own right-hand spacing so the -50% loop stays seamless. */
.film {
  background-color: #0d0d0d;
  border-top: 1px solid rgba(203, 169, 103, 0.25);
  border-bottom: 1px solid rgba(203, 169, 103, 0.25);
  padding: 8px 0;
}

.film__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.film__track {
  display: flex;
  width: max-content;
  /* Photo strip moves left → right, opposite to the text strips. */
  /* 345s = 115s per set of 9 photos (each group holds 3 sets). Scaled with
     frame width so the on-screen speed stays the same. */
  animation: statsScroll 345s linear infinite reverse;
}

.film__marquee:hover .film__track {
  animation-play-state: paused;
}

.film__group {
  list-style: none;
  display: flex;
  flex-shrink: 0;
}

.film__frame {
  margin-right: 14px;
}

.film__frame img {
  display: block;
  width: 320px;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(203, 169, 103, 0.35);
  border-radius: 10px;
  transition: border-color 0.3s ease, filter 0.3s ease;
}

.film__frame:hover img {
  border-color: rgba(203, 169, 103, 0.8);
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  .film {
    padding: 6px 0;
  }

  .film__frame {
    margin-right: 10px;
  }

  .film__frame img {
    width: 224px;
    height: 126px;
  }

  .film__track {
    animation-duration: 240s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film__track {
    animation: none;
  }

  .film__marquee {
    overflow-x: auto;
  }
}

/* Amenity photo reel (above the amenities text strip) — auto-scrolling cards,
   one representative photo per amenity with its name as a caption.
   Two identical groups; the track slides by -50% for a seamless loop. */
.amenity-reel {
  background-color: #0d0d0d;
  border-top: 1px solid rgba(203, 169, 103, 0.25);
  padding: 8px 0;
}

.amenity-reel__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.amenity-reel__track {
  display: flex;
  width: max-content;
  /* Moves left → right, opposite to the amenities text strip below. */
  animation: statsScroll 48s linear infinite reverse;
}

.amenity-reel__marquee:hover .amenity-reel__track {
  animation-play-state: paused;
}

.amenity-reel__group {
  list-style: none;
  display: flex;
  flex-shrink: 0;
}

.amenity-reel__card {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 126px;
  margin-right: 14px;
  overflow: hidden;
  border: 1px solid rgba(203, 169, 103, 0.35);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.amenity-reel__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.amenity-reel__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.15) 45%, transparent 70%);
  pointer-events: none;
}

.amenity-reel__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 1;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: #fbf8f3;
}

.amenity-reel__card:hover {
  border-color: rgba(203, 169, 103, 0.8);
}

.amenity-reel__card:hover img {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .amenity-reel {
    padding: 6px 0;
  }

  .amenity-reel__card {
    width: 180px;
    height: 94px;
    margin-right: 10px;
  }

  .amenity-reel__caption {
    left: 8px;
    bottom: 6px;
    font-size: 15px;
  }

  .amenity-reel__track {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amenity-reel__track {
    animation: none;
  }

  .amenity-reel__marquee {
    overflow-x: auto;
  }
}

/* Full-width image showcase (between photo strip and highlights strip).
   Static — no transitions. Edge to edge, with a very light dark overlay. */
.showcase {
  background-color: #f2dec0;
  line-height: 0;
}

.showcase__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.showcase__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.showcase__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text elements over the image. Sizes are in vw so they scale with the
   image (which is always full width). Positions follow the artwork: stats
   column in the open sky on the right, brand mark on the lawn bottom-left. */
.showcase {
  position: relative;
}

.showcase__stats {
  position: absolute;
  top: 50%;
  right: 12.2%;
  transform: translateY(-46%);
  width: 15vw;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
  z-index: 1;
}

.showcase__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.6vw 0;
}

.showcase__stat + .showcase__stat {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(176, 138, 74, 0.75), transparent) 1;
}

.showcase__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 6.2vw;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  background: linear-gradient(180deg, #d9ab5c 0%, #b07f35 45%, #7d5420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(60, 40, 10, 0.18));
}

.showcase__num--bhk {
  font-size: 4.5vw;
  white-space: nowrap;
}

.showcase__num--bhk span {
  font-size: 0.82em;
}

.showcase__label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25vw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2b2620;
  margin-top: 0.55vw;
  white-space: nowrap;
}

.showcase__label--top {
  font-size: 0.95vw;
  margin: 0 0 0.35vw;
}

.showcase__brand {
  position: absolute;
  left: 11.2%;
  bottom: 4.5%;
  display: block;
  width: 9vw;
  line-height: 0;
  z-index: 1;
}

.showcase__brand-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* BMRDA seal in the top-right corner of the showcase, in the open sky above
   the stats column. Sized in vw so it scales with the image. */
.bmrda-seal--showcase {
  position: absolute;
  top: 5%;
  right: 5.5%;
  width: 5.8vw;
  height: 5.8vw;
  z-index: 1;
}

.bmrda-seal--showcase .bmrda-seal__ring {
  inset: 0.35vw;
}

.bmrda-seal--showcase .bmrda-seal__icon {
  width: 0.95vw;
  height: 0.95vw;
  margin-bottom: 0.3vw;
}

.bmrda-seal--showcase .bmrda-seal__name {
  font-size: 0.82vw;
  letter-spacing: 0.12vw;
}

.bmrda-seal--showcase .bmrda-seal__sub {
  margin-top: 0.25vw;
  font-size: 0.5vw;
  letter-spacing: 0.14vw;
}

/* Phones/tablets: the image is short, so text gets a little larger
   relative to it to stay legible. */
@media (max-width: 900px) {
  /* Tucked tighter into the corner here so it clears the taller stats
     column, which reaches closer to the top on short images. */
  .bmrda-seal--showcase {
    top: 3%;
    right: 2%;
    width: 7.5vw;
    height: 7.5vw;
  }

  .bmrda-seal--showcase .bmrda-seal__ring {
    inset: 0.5vw;
  }

  .bmrda-seal--showcase .bmrda-seal__icon {
    width: 1.5vw;
    height: 1.5vw;
    margin-bottom: 0.4vw;
  }

  .bmrda-seal--showcase .bmrda-seal__name {
    font-size: 1.25vw;
  }

  /* "Approved" would be unreadably small at this size. */
  .bmrda-seal--showcase .bmrda-seal__sub {
    display: none;
  }

  .showcase__stats {
    right: 7%;
    width: 22vw;
  }

  .showcase__stat {
    padding: 1.4vw 0;
  }

  .showcase__num {
    font-size: 7.2vw;
  }

  .showcase__num--bhk {
    font-size: 5.4vw;
  }

  .showcase__label {
    font-size: 1.9vw;
    letter-spacing: 0.16em;
  }

  .showcase__label--top {
    font-size: 1.6vw;
  }

  .showcase__brand {
    width: 13vw;
  }
}

/* Desktop/laptop: no gap above the image — it starts right under the
   photo strip. Its height is one screen minus the fixed (scrolled) navbar
   (~76px), so the whole image fits on screen below the navbar. Fills edge
   to edge with no side strips (object-fit: cover, centred — at most a thin
   sliver of plain sky / lawn is trimmed top and bottom). */
@media (min-width: 901px) {
  .showcase {
    height: calc(100vh - 76px);
    height: calc(100svh - 76px);
  }

  .showcase__img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Connectivity (after Floor Plan): scrollable list of places on the left,
   live MapLibre map + feature bar on the right. Pins are built in
   main.js from the data-lat/data-lng attributes on each .connect__place. */
/* Sized to one viewport on desktop: top padding clears the fixed navbar,
   and the two columns take the rest of the screen height. */
.connect {
  background-color: #f5f1ea;
  color: #1a1a1a;
  padding: 92px 64px 36px;
}

.connect__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 2fr);
  gap: 24px;
  height: clamp(540px, calc(100vh - 128px), 820px);
}

.connect__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.connect__intro,
.connect__card,
.connect__bar {
  background-color: #fbf9f5;
  border: 1px solid rgba(203, 169, 103, 0.2);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.04);
}

.connect__intro {
  padding: 22px 26px;
}

.connect__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b6935c;
  margin-bottom: 14px;
}

.connect__heading::after {
  content: '';
  width: 28px;
  height: 1px;
  background-color: #b6935c;
}

.connect__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
}

.connect__title-accent {
  display: block;
  color: #b6935c;
}

.connect__description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #4a4438;
}

/* Scrollable list of category cards */
.connect__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 147, 92, 0.5) transparent;
}

.connect__card {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 18px;
  padding: 22px 24px;
}

.connect__card[hidden] {
  display: none;
}

.connect__card-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #efe6d6;
  color: #9a7a45;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect__card-icon svg {
  width: 20px;
  height: 20px;
}

.connect__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.connect__places {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connect__place {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  font-size: 14px;
  color: #3a352c;
  transition: background-color 0.2s ease;
}

.connect__place[data-lat] {
  cursor: pointer;
}

.connect__place[data-lat]:hover,
.connect__place.is-active {
  background-color: #efe6d6;
}

.connect__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #9a7a45;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Places without a map pin get an outlined number instead */
.connect__place:not([data-lat]) .connect__num {
  background-color: transparent;
  border: 1px solid #b6935c;
  color: #9a7a45;
}

.connect__time {
  white-space: nowrap;
  color: #1a1a1a;
}

/* Map column */
.connect__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.connect__map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(203, 169, 103, 0.25);
  background-color: #ece6da;
}

/* Higher specificity than MapLibre's own ".maplibregl-map { position: relative }",
   which loads after this file and would otherwise collapse the map to 0px tall. */
.connect__map-wrap .connect__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.connect__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.connect__chips {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 36px);
  padding: 6px;
  border-radius: 999px;
  background-color: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.08);
}

.connect__chip {
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.connect__chip:hover {
  background-color: #efe6d6;
}

.connect__chip.is-active {
  background-color: #1a1a1a;
  color: #ffffff;
}

.connect__recenter {
  position: absolute;
  right: 20px;
  bottom: 28px;
  z-index: 500;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background-color: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* MapLibre overrides */
.connect__map .maplibregl-ctrl-bottom-left .maplibregl-ctrl-group {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.12);
  margin: 0 0 28px 20px;
}

.connect__map .maplibregl-ctrl-group button {
  width: 44px;
  height: 44px;
}

.connect__pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #1a1a1a;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Grow via size (not transform) — MapLibre positions markers with transform */
.connect__pin.is-active {
  z-index: 6;
  width: 36px;
  height: 36px;
  background-color: #b6935c;
}

/* Keep the LaVille marker + label above the numbered pins */
.connect__home-wrap {
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.connect__home-label {
  background-color: #1a1a1a;
  color: #f5f1ea;
  border: 1px solid rgba(203, 169, 103, 0.6);
  border-radius: 10px;
  padding: 6px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.connect__home {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background-color: #1a1a1a;
  border: 2px solid #cba967;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect__home svg {
  transform: rotate(45deg);
  width: 22px;
  height: 22px;
  color: #cba967;
}

.connect__tip .maplibregl-popup-content {
  background-color: #1a1a1a;
  color: #f5f1ea;
  border: 1px solid rgba(203, 169, 103, 0.6);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.connect__tip .maplibregl-popup-tip {
  display: none;
}

/* Feature bar under the map */
.connect__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 36px;
}

.connect__features {
  list-style: none;
  display: flex;
  align-items: center;
}

.connect__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-size: 14px;
  line-height: 1.35;
  color: #1a1a1a;
}

.connect__feature:first-child {
  padding-left: 0;
}

.connect__feature + .connect__feature {
  border-left: 1px solid rgba(26, 26, 26, 0.12);
}

.connect__feature svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .connect__layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .connect__main {
    order: -1;
  }

  .connect__map-wrap {
    flex: none;
    height: 480px;
  }

  .connect__list {
    overflow: visible;
    padding-right: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (max-width: 768px) {
  .connect {
    padding: 64px 20px;
  }

  .connect__map-wrap {
    height: 400px;
    border-radius: 18px;
  }

  .connect__chips {
    top: 12px;
    left: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: calc(100% - 24px);
    scrollbar-width: none;
  }

  .connect__chip {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .connect__list {
    grid-template-columns: 1fr;
  }

  .connect__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .connect__features {
    justify-content: space-between;
  }

  .connect__feature {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 13px;
  }

}

/* About */
.about {
  background-color: #f5f1ea;
  color: #1a1a1a;
  padding: 100px 64px;
}

/* Row: text content beside the collage */
.about__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.about__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8a7a5c;
  margin-bottom: 24px;
}

/* Collage of three images, beside the text — layered/overlapping cards */
.about__collage {
  position: relative;
  width: 100%;
  aspect-ratio: 842 / 830;
}

.about__collage-item {
  position: absolute;
  background: linear-gradient(135deg, #d8cdb8 0%, #c3b393 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.about__collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__collage-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
  pointer-events: none;
}

.about__collage-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.about__collage-item--1 {
  left: 0;
  top: 6%;
  width: 64%;
  height: 76%;
  z-index: 1;
}

.about__collage-item--2 {
  left: 61%;
  top: 0;
  width: 39%;
  height: 27%;
  z-index: 3;
}

.about__collage-item--3 {
  left: 39%;
  top: 50%;
  width: 50%;
  height: 46%;
  z-index: 2;
}

/* 21st Castle Constructions (developer) — right after About. Full screen on
   desktop: section label, two-tone headline, description and CTA on the
   left; photo on the right with the 21st Castle logo badge over its top-right
   corner and an "Established 2013" badge over its bottom-left. Stacks on
   phones/tablets. Type follows About (Cormorant headline, Poppins body). */
.developer {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 64px 72px;
  background-color: #f1ebdd;
  color: #1a1a1a;
}

.developer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.developer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #8a7a5c;
  margin-bottom: 22px;
}

.developer__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #b6935c;
}

.developer__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #1f1b16;
  margin-bottom: 32px;
}

.developer__title-accent {
  display: block;
  color: #b6935c;
  font-style: italic;
}

.developer__description {
  max-width: 600px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: #4a4438;
}

.developer__description strong {
  font-weight: 600;
  color: #1a1a1a;
}

.developer__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 999px;
  background-color: #1f1b16;
  color: #f5f1ea;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.developer__cta svg {
  transition: transform 0.25s ease;
}

.developer__cta:hover,
.developer__cta:focus-visible {
  background-color: #b6935c;
  color: #1f1b16;
}

.developer__cta:hover svg,
.developer__cta:focus-visible svg {
  transform: translateX(4px);
}

/* Photo + corner badges */
.developer__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  max-height: calc(100svh - 200px);
  width: 100%;
}

.developer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(40, 30, 15, 0.22);
}

.developer__badge {
  position: absolute;
  background: linear-gradient(135deg, #fbf8f2 0%, #e9e2d3 100%);
  box-shadow: 0 14px 30px rgba(40, 30, 15, 0.2);
}

.developer__badge--logo {
  top: 0;
  right: 0;
  width: 28%;
  padding: 3.5% 4%;
  border-radius: 0 6px 0 6px;
}

.developer__badge--logo img {
  display: block;
  width: 100%;
  height: auto;
}

.developer__badge--year {
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 36px 20px;
  border-radius: 0 6px 0 6px;
  line-height: 1;
}

.developer__year {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 3.4vw, 56px);
  font-weight: 500;
  color: #1f1b16;
}

.developer__year-label {
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #8a7a5c;
}

@media (prefers-reduced-motion: reduce) {
  .developer__cta,
  .developer__cta svg {
    transition: none;
  }
}

/* Phones/tablets: stack text over photo; no forced full-screen height. */
@media (max-width: 900px) {
  .developer {
    display: block;
    min-height: 0;
    padding: 64px 20px;
  }

  .developer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .developer__title {
    margin-bottom: 22px;
  }

  .developer__description {
    font-size: 15px;
  }

  .developer__cta {
    padding: 15px 28px;
    font-size: 13px;
  }

  .developer__media {
    max-height: none;
  }

  .developer__badge--logo {
    width: 32%;
  }

  .developer__badge--year {
    padding: 14px 22px 12px;
  }

  .developer__year-label {
    font-size: 9px;
    letter-spacing: 3px;
  }
}

/* Title + description */
.about__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.about__title-accent {
  display: block;
  color: #b6935c;
  font-style: italic;
}

.about__description {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: #4a4438;
}

.about__description + .about__description {
  margin-top: 10px;
}

/* Feature list — plain bullets, no boxes */
.about__features {
  list-style: none;
  margin-top: 20px;
}

.about__feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #e2d9c8;
}

.about__feature:last-child {
  border-bottom: 1px solid #e2d9c8;
}

.about__feature-title {
  position: relative;
  padding-left: 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
}

.about__feature-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #b6935c;
}

.about__feature-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding-left: 22px;
  color: #6b6353;
}

/* Four tiles — dark feature strip, single horizontal row */
.about__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background-color: #0d0d0d;
  background-image: radial-gradient(circle at 12% 0%, rgba(182, 147, 92, 0.16), transparent 55%);
  border-radius: 16px;
  padding: 48px 32px;
}

.about__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.about__tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(182, 147, 92, 0.14);
  color: #c9a464;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__tile-icon svg {
  width: 26px;
  height: 26px;
}

.about__tile-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #f5f1ea;
}

.about__tile-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245, 241, 234, 0.55);
  max-width: 230px;
}

/* Shared placeholder label styling */
.about__placeholder-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(26, 26, 26, 0.45);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* About — "one frame" on laptop/desktop: the whole section (text, collage
   and the dark tile strip) fits inside a single viewport. Features go into
   a 3-up row, tiles become compact icon-beside-text cards, and the collage
   is sized from the viewport height. Tablet/mobile keep their stacked
   layout from the media queries further down. */
@media (min-width: 1101px) {
  .about {
    display: flex;
    flex-direction: column;
    padding: 48px 64px 40px;
  }

  .about__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px;
    align-items: center;
    margin-bottom: 28px;
  }

  .about__heading {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .about__title {
    font-size: clamp(28px, 2.4vw, 38px);
    margin-bottom: 12px;
  }

  .about__description {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .about__description + .about__description {
    margin-top: 8px;
  }

  .about__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 18px;
  }

  .about__feature,
  .about__feature:last-child {
    border-bottom: none;
    padding: 12px 0 0;
  }

  .about__feature-title {
    font-size: 15px;
  }

  .about__feature-title::before {
    top: 7px;
    width: 8px;
    height: 8px;
  }

  .about__feature-desc {
    font-size: 13px;
    line-height: 1.5;
  }

.about__collage {
    width: min(440px, 30vw, calc(100vh - 360px));
  }

  .about__tiles {
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
  }

  /* Icon on the left spanning both rows, title + description stacked */
  .about__tile {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-content: center;
    column-gap: 14px;
    row-gap: 4px;
    text-align: left;
    padding: 16px;
  }

  .about__tile-icon {
    grid-row: span 2;
    align-self: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .about__tile-icon svg {
    width: 22px;
    height: 22px;
  }

  .about__tile-title {
    font-size: 15px;
    align-self: end;
  }

  .about__tile-desc {
    font-size: 12.5px;
    line-height: 1.5;
    max-width: none;
  }
}

/* Gallery — intro column on the left, 3-row photo mosaic on the right
   (2 / 3 / 2 tiles on a 12-column grid: narrow+wide, thirds, wide+narrow). */
.gallery {
  background-color: #0d0d0d;
  padding: 100px 64px;
  display: grid;
  grid-template-columns: minmax(320px, 30%) 1fr;
  gap: 56px;
  align-items: center;
}

/* Desktop/laptop: the whole section fits in one screen. Top padding clears
   the fixed navbar; the mosaic stretches to fill the remaining height and
   its 3 rows share it equally. */
@media (min-width: 901px) {
  .gallery {
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 108px 64px 44px;
    grid-template-rows: minmax(0, 1fr);
  }

  .gallery .gallery__grid {
    height: 100%;
    align-self: stretch;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
}

.gallery__intro {
  max-width: 480px;
}

.gallery__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a464;
}

.gallery__heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background-color: #c9a464;
}

.gallery__title {
  margin-top: 44px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 4.4vw, 80px);
  font-weight: 500;
  line-height: 1.08;
  color: #f5f1ea;
}

.gallery__title-line {
  display: block;
}

.gallery__title-line--accent {
  color: #c9a464;
}

.gallery__desc {
  margin-top: 32px;
  max-width: 420px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242, 239, 233, 0.75);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, clamp(170px, 14vw, 260px));
  gap: 10px;
}

.gallery__tile {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* Row 1: narrow + wide */
.gallery__tile--1 { grid-column: span 5; }
.gallery__tile--2 { grid-column: span 7; }
/* Row 2: three equal */
.gallery__tile--3,
.gallery__tile--4,
.gallery__tile--5 { grid-column: span 4; }
/* Row 3: wide + narrow */
.gallery__tile--6 { grid-column: span 7; }
.gallery__tile--7 { grid-column: span 5; }

.gallery__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.75s ease, transform 0.5s ease;
}

.gallery__tile:hover img {
  transform: scale(1.05);
}

/* Hover design element: dotted gold corner frame. One dotted border is
   masked down to its four corners; on hover it slides inward and the
   corner arms lengthen. A light scrim keeps the dots visible on bright
   photos. */
@property --corner {
  syntax: '<length>';
  inherits: false;
  initial-value: 14px;
}

.gallery__tile::before,
.gallery__tile::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.gallery__tile::before {
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 13, 13, 0.35), rgba(13, 13, 13, 0.1));
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gallery__tile::after {
  inset: 2px;
  border: 3px dotted #cba967;
  opacity: 0;
  --corner: 14px;
  -webkit-mask:
    linear-gradient(#000 0 0) top left / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) top right / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) bottom left / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) bottom right / var(--corner) var(--corner) no-repeat;
  mask:
    linear-gradient(#000 0 0) top left / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) top right / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) bottom left / var(--corner) var(--corner) no-repeat,
    linear-gradient(#000 0 0) bottom right / var(--corner) var(--corner) no-repeat;
  transition: inset 0.5s cubic-bezier(0.22, 1, 0.36, 1), --corner 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.gallery__tile:hover::before {
  opacity: 1;
}

.gallery__tile:hover::after {
  inset: 14px;
  opacity: 1;
  --corner: 44px;
}

.gallery__tile img.is-fading {
  opacity: 0;
}

/* Below 900px the intro sits above the mosaic (above that it stays
   side-by-side so the section can fit in one screen). */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery__intro {
    max-width: 560px;
  }

  .gallery__title {
    margin-top: 32px;
  }

  .gallery__desc {
    margin-top: 20px;
  }
}

/* Layout & Floor Plans — one combined section.
   Desktop: header row, then 3 columns — master plan | floor plan viewer |
   type & floor pickers with area details — sized to fit one screen.
   Phones / short screens: stacked in natural flow. */
.plans {
  background-color: #0d0d0d;
  padding: 100px 64px;
  color: #f5f1ea;
}

.plans__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  max-width: 1320px;
  margin: 0 auto 40px;
}

.plans__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a464;
}

.plans__kicker::before {
  content: '';
  width: 40px;
  height: 2px;
  background-color: #c9a464;
}

.plans__title {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  color: #f5f1ea;
}

.plans__title-accent {
  font-style: italic;
  color: #c9a464;
}

.plans__lead {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 241, 234, 0.7);
}

.plans__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(280px, 0.9fr);
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
}

.plans__site,
.plans__unit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  margin: 0;
}

/* Image frames (both open the lightbox on click) */
.plans__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.plans__frame--site {
  border: 2px dotted rgba(201, 164, 100, 0.55);
  background-color: rgba(245, 241, 234, 0.03);
}

.plans__frame--unit {
  border: 1px solid #d8cdb8;
  background-color: #ffffff;
}

.plans__frame:hover,
.plans__frame:focus-visible {
  border-color: #c9a464;
  box-shadow: 0 0 0 3px rgba(201, 164, 100, 0.25);
  outline: none;
}

.plans__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.plans__img.is-swapping {
  opacity: 0;
}

.plans__tag {
  position: absolute;
  left: 22px;
  top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5f1ea;
  pointer-events: none;
}

.plans__tag--light {
  background-color: rgba(201, 164, 100, 0.95);
  color: #0d0d0d;
}

.plans__zoom {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(13, 13, 13, 0.78);
  color: #f5f1ea;
  pointer-events: none;
}

/* Quick facts under the master plan */
.plans__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201, 164, 100, 0.25);
  border-bottom: 1px solid rgba(201, 164, 100, 0.25);
}

.plans__fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  text-align: center;
}

.plans__fact + .plans__fact {
  border-left: 1px solid rgba(201, 164, 100, 0.18);
}

.plans__fact strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: #c9a464;
}

.plans__fact span {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(245, 241, 234, 0.65);
}

/* Right-hand panel */
.plans__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.plans__label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.55);
}

.plans__types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.plans__type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 10px;
  background-color: #161616;
  color: #f5f1ea;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.plans__type:hover {
  border-color: rgba(201, 164, 100, 0.6);
}

.plans__type.is-active {
  border-color: #c9a464;
  background-color: rgba(201, 164, 100, 0.12);
}

.plans__type-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
}

.plans__type.is-active .plans__type-name {
  color: #c9a464;
}

.plans__type-area {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: rgba(245, 241, 234, 0.6);
}

.plans__floors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid rgba(245, 241, 234, 0.14);
  border-radius: 999px;
}

.plans__floor {
  padding: 9px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 241, 234, 0.75);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.plans__floor:hover {
  color: #f5f1ea;
}

.plans__floor.is-active {
  background-color: #c9a464;
  color: #0d0d0d;
}

.plans__specs {
  margin: 0;
}

.plans__spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(245, 241, 234, 0.22);
}

.plans__spec:first-child {
  border-top: 1px dotted rgba(245, 241, 234, 0.22);
}

.plans__spec dt {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 241, 234, 0.7);
}

.plans__spec dd {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c9a464;
  text-align: right;
}

.plans__spec small {
  font-weight: 400;
  color: rgba(245, 241, 234, 0.55);
}

.plans__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background-color: #752a5d;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.plans__cta:hover {
  background-color: #5e2249;
}

/* Desktop / landscape tablet: whole section fits one screen. Images are
   sized by the remaining height; the header and pickers keep their size. */
@media (min-width: 901px) and (min-height: 620px) {
  .plans {
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    padding: 96px 64px 32px;
    display: flex;
    flex-direction: column;
  }

  .plans__header {
    width: 100%;
    margin-bottom: 24px;
    flex-shrink: 0;
  }

  .plans__body {
    width: 100%;
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .plans__frame {
    flex: 1;
    min-height: 0;
  }

  .plans__img {
    width: auto;
    max-width: 100%;
    height: 100%;
  }

  .plans__panel {
    justify-content: center;
    gap: 20px;
  }
}

/* Short desktop screens: tighten the panel so it still fits */
@media (min-width: 901px) and (min-height: 620px) and (max-height: 800px) {
  .plans__lead {
    font-size: 14px;
    line-height: 1.6;
  }

  .plans__panel {
    gap: 14px;
  }

  .plans__type {
    padding: 8px 14px;
  }

  .plans__spec {
    padding: 8px 0;
  }
}

/* Small laptops / landscape tablets: slightly tighter columns */
@media (max-width: 1100px) and (min-width: 901px) {
  .plans {
    padding-left: 40px;
    padding-right: 40px;
  }

  .plans__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 0.9fr);
    gap: 24px;
  }

  .plans__fact strong {
    font-size: 18px;
  }
}

/* Phones / portrait tablets: stacked — master plan, pickers, then plan */
@media (max-width: 900px) {
  .plans {
    padding: 64px 24px;
  }

  .plans__header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .plans__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .plans__site {
    order: 0;
  }

  .plans__panel {
    order: 1;
  }

  .plans__unit {
    order: 2;
  }

  .plans__img--unit {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .plans__fact strong {
    font-size: 18px;
  }

  .plans__fact span {
    font-size: 10px;
  }

  .plans__type-name {
    font-size: 16px;
  }

  .plans__tag {
    left: 16px;
    top: 16px;
    font-size: 10px;
  }
}

/* Contact form section */
.contact-form {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 100px 64px;
}

.contact-form--standalone {
  padding-top: 176px;
}

.contact-form__layout {
  display: flex;
  align-items: stretch;
  gap: 56px;
}

.contact-form__info {
  flex: 1;
  min-width: 0;
}

.contact-form__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b6935c;
  margin-bottom: 16px;
}

.contact-form__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.contact-form__title-accent {
  display: block;
  color: #cba967;
}

.contact-form__description {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #4a4438;
  max-width: 480px;
  margin-bottom: 32px;
}

.contact-form__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background-color: #f4f2ee;
  border-radius: 10px;
}

.contact-form__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: #752a5d;
  color: #f5f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form__detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form__detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-form__detail-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a7a5c;
}

.contact-form__detail-value {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.contact-form__panel {
  flex: 1;
  min-width: 0;
  background-color: #f4f2ee;
  border-radius: 16px;
  padding: 40px;
}

.contact-form__panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.contact-form__panel-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6b6353;
  margin-bottom: 28px;
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: flex;
  gap: 16px;
}

.contact-form__input {
  width: 100%;
  padding: 16px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #ffffff;
  border: 1px solid #e2d9c8;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form__input::placeholder {
  color: #9a9284;
}

.contact-form__input:focus {
  border-color: #cba967;
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6353' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  color: #1a1a1a;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 110px;
  font-family: 'Poppins', sans-serif;
}

.contact-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f5f1ea;
  background-color: #752a5d;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form__submit svg {
  width: 16px;
  height: 16px;
}

.contact-form__submit:hover {
  background-color: #5e2249;
}

.contact-form__submit--whatsapp {
  background-color: #2fce6b;
  color: #ffffff;
}

.contact-form__submit--whatsapp:hover {
  background-color: #26a857;
}

.contact-form__submit--email:hover {
  background-color: #5e2249;
}

@media (max-width: 480px) {
  .contact-form__actions {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  background-color: #0d0d0d;
  color: #f5f1ea;
  padding: 80px 64px 24px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 48px;
}

.footer__brand {
  flex: 1.4;
  min-width: 260px;
}

.footer__logo {
  margin-bottom: 16px;
}

.footer__logo-image {
  height: 64px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 241, 234, 0.6);
  max-width: 320px;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #161616;
  border: 1px solid rgba(245, 241, 234, 0.1);
  color: #f5f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__social:hover {
  background-color: #cba967;
  color: #1a1a1a;
}

.footer__column-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cba967;
  margin-bottom: 20px;
}

.footer__column-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__column-list a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 241, 234, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__column-list a:hover {
  color: #cba967;
}

/* Office address column (between the brand block and Quick Links). */
.footer__column--address {
  max-width: 260px;
}

.footer__address {
  font-style: normal;
}

.footer__address a {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 241, 234, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__address a:hover {
  color: #cba967;
}

/* Phones: full-width card so Quick Links / Villa Types stay paired below. */
@media (max-width: 768px) {
  .footer__column--address {
    grid-column: 1 / -1;
    flex: 1 1 100%;
    max-width: none;
  }

  .footer__address a {
    font-size: 13.5px;
    line-height: 1.6;
  }
}

.footer__divider {
  border-top: 1px solid rgba(245, 241, 234, 0.1);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer__copyright {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 241, 234, 0.5);
}


/* Floating contact widget: expands into WhatsApp / Call / Book a Visit on click,
   collapses again when the cursor moves away. Pinned bottom-left, hidden over
   the Hero and fading in from About onward, staying through the Footer. */
.fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.fab__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.fab.is-open .fab__actions {
  max-height: 300px;
  margin-bottom: 14px;
}

.fab__action {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fab.is-open .fab__action {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab.is-open .fab__actions .fab__action:nth-child(3) { transition-delay: 0s; }
.fab.is-open .fab__actions .fab__action:nth-child(2) { transition-delay: 0.06s; }
.fab.is-open .fab__actions .fab__action:nth-child(1) { transition-delay: 0.12s; }

.fab__action svg {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex-shrink: 0;
}

.fab__action--whatsapp {
  background-color: #2fce6b;
  color: #ffffff;
}

.fab__action--call {
  background-color: #cba967;
  color: #1a1a1a;
}

.fab__action--visit {
  background-color: #0d0d0d;
  color: #ffffff;
}

.fab__toggle {
  position: relative;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background-color: #752a5d;
  border: none;
  color: #f5f1ea;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.fab__toggle:hover {
  background-color: #5e2249;
}

.fab.is-open .fab__toggle {
  background-color: #0d0d0d;
  color: #f5f1ea;
}

.fab__toggle-arrow {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.fab__toggle-phone {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

.fab.is-open .fab__toggle-arrow {
  transform: rotate(180deg);
}

/* Lightbox: click-to-expand for Gallery and Floor Plan images */
.gallery__tile {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background-color: rgba(13, 13, 13, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(245, 241, 234, 0.1);
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: #f5f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background-color: rgba(245, 241, 234, 0.2);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(245, 241, 234, 0.1);
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: #f5f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Real pointer devices only — on touchscreens, tapping leaves :hover
   "stuck" until the next tap elsewhere, which would otherwise make the
   button flip to this lighter shade right after you use it. */
@media (hover: hover) {
  .lightbox__nav:hover {
    background-color: rgba(245, 241, 234, 0.2);
  }
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

/* ===================================================================
   Mobile responsive
   =================================================================== */

/* Hamburger button — hidden on desktop, shown via the 900px media query */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 20;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #f2efe9;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}

.navbar--on-light:not(.navbar--scrolled) .navbar__toggle-bar {
  background-color: #1a1a1a;
}

.navbar__toggle.is-open .navbar__toggle-bar {
  background-color: #f5f1ea;
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav collapses into a hamburger + full-screen dropdown below 900px */
@media (max-width: 900px) {
  .navbar {
    justify-content: space-between;
    padding: 16px 20px;
  }

  .navbar__logo-link {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .navbar__logo {
    height: 46px;
  }

  /* Phones: slightly smaller scrolled logos so both fit beside the
     phone number and hamburger */
  .navbar--scrolled .navbar__logo {
    height: 40px;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__phone {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 16px;
    font-size: 13px;
    letter-spacing: 0.3px;
  }

  .navbar__phone-icon {
    width: 14px;
    height: 14px;
  }

  #navLinks {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background-color: rgba(13, 13, 13, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  #navLinks.is-open {
    transform: translateX(0);
  }

  #navLinks .navbar__link {
    color: #f5f1ea;
    font-size: 20px;
    opacity: 1;
  }
}

/* Section-by-section reflow for phones/small tablets */
@media (max-width: 768px) {
  /* Hero — centered vertically instead of pinned to the bottom edge, so the
     text sits higher up rather than leaving a huge empty gap above it on
     tall phone screens (desktop's bottom-pinned layout is untouched). */
  .hero {
    height: auto;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
  }

  .hero__text {
    align-items: center;
    text-align: center;
  }

  /* Phones: everything stacks centered; the drawn route is replaced by
     short vertical dotted connectors between the blocks. */
  .hero__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 48px;
  }

  .hero__route {
    display: none;
  }

  .hero__sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__tagline {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .hero__link {
    display: block;
    width: 4px;
    height: 34px;
    margin: 10px 0;
    background: radial-gradient(circle, #cba967 1.3px, transparent 1.8px) 0 0 / 4px 8px repeat-y;
    opacity: 0;
    animation: heroFade 0.8s ease forwards;
    animation-delay: 1.2s;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 6px;
    border-radius: 28px;
  }

  .hero__fact {
    padding: 16px 8px;
  }

  /* 2×2 grid: dotted divider between columns, dotted rule between rows. */
  .hero__fact + .hero__fact::before {
    display: none;
  }

  .hero__fact:nth-child(even)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: radial-gradient(circle, rgba(203, 169, 103, 0.7) 1px, transparent 1.5px) 0 0 / 2px 6px repeat-y;
  }

  .hero__fact:nth-child(n + 3) {
    background: radial-gradient(circle, rgba(203, 169, 103, 0.7) 1px, transparent 1.5px) 0 0 / 6px 2px repeat-x;
  }

  .hero__fact-value {
    font-size: 13px;
    white-space: normal;
  }

  .hero__fact-label {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .hero__finish {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .bmrda-seal--hero {
    width: 88px;
    height: 88px;
  }

  .hero__cta {
    margin: 0;
    padding: 16px 28px;
    font-size: 13px;
    letter-spacing: 2.5px;
  }

  .hero__kicker::after {
    content: '';
    width: 42px;
    height: 1px;
    background-color: #cba967;
  }

  .hero__line {
    justify-content: center;
  }

  .hero__word {
    font-size: clamp(40px, 11vw, 72px);
  }

  /* "LaVille" stays together on one line, "Township" on the next —
     same two-line layout as desktop, just resized for a narrow screen. */
  .hero__line--1 {
    gap: 14px;
  }

  /* About (homepage teaser) */
  .about {
    padding: 64px 24px;
  }

  .about__row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__collage {
    max-width: 460px;
    margin: 0 auto;
  }

  .about__tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 32px 20px;
  }

  /* Gallery — 2-column mosaic: first photo full width, the rest in pairs */
  .gallery {
    padding: 64px 24px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 8px;
  }

  .gallery__tile--1,
  .gallery__tile--2,
  .gallery__tile--3,
  .gallery__tile--4,
  .gallery__tile--5,
  .gallery__tile--6,
  .gallery__tile--7 {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery__tile--1 {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  /* Get In Touch / Schedule a Visit */
  .contact-form {
    padding: 64px 24px;
  }

  .contact-form--standalone {
    padding-top: 120px;
  }

  .contact-form__layout {
    flex-direction: column;
    gap: 32px;
  }

  .contact-form__row {
    flex-direction: column;
  }

  .contact-form__panel {
    padding: 28px 20px;
  }

  /* Footer — extra bottom clearance so the fixed floating contact button
     doesn't sit on top of the last column's text at the end of the page */
  .footer {
    padding: 56px 24px 110px;
  }

  .footer__top {
    flex-direction: column;
    gap: 36px;
  }

  .footer__brand {
    min-width: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Small-phone fine-tuning */
@media (max-width: 480px) {
  .fab__toggle {
    width: 50px;
    height: 50px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox__close {
    top: 12px;
    right: 12px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    background-color: rgba(13, 13, 13, 0.85);
    border-color: rgba(245, 241, 234, 0.5);
  }

  .lightbox__nav svg {
    width: 18px;
    height: 18px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}

/* Custom cursor — see main.js for why mix-blend-mode: difference gives
   black-on-light / white-on-dark automatically. Native cursor is hidden
   everywhere except text fields, which keep the I-beam for usability. */
html.lvt-custom-cursor,
html.lvt-custom-cursor * {
  cursor: none;
}

html.lvt-custom-cursor input,
html.lvt-custom-cursor textarea {
  cursor: text;
}

.lvt-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: transparent;
  border: 1.5px solid #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
  will-change: transform;
}

/* ==========================================================================
   Contact section (homepage #contact) — hero with curved photo, plum info strip,
   and a three-card row: Get In Touch / Find Us Here / Schedule a Visit.
   Scoped to .cpage-* so the homepage contact section is unaffected.
   ========================================================================== */
.page-contact {
  background-color: #f7f0e6;
}

.cpage {
  --cp-plum: #752a5d;
  --cp-plum-deep: #4a1838;
  --cp-gold: #b8915a;
  --cp-gold-light: #d8b67c;
  --cp-ink: #1f1a17;
  --cp-muted: #4a4438;
  --cp-cream: #f7f0e6;
  --cp-card: #fdf9f3;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
    var(--cp-cream);
  color: var(--cp-ink);
  padding: 104px 0 96px;
  overflow: hidden;
}

/* Eyebrow + small gold rule under it */
.cpage-eyebrow,
.cpage-card__title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #6b4a1f;
}

.cpage-eyebrow {
  font-size: 18px;
}

.cpage-eyebrow::after,
.cpage-card__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 14px;
  background-color: var(--cp-gold);
}

/* ---------- Hero ---------- */
.cpage-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.cpage-hero__text {
  position: relative;
  z-index: 2;
  width: 22vw;
  min-width: 300px;
  padding: 24px 0 56px 6.25vw;
  box-sizing: content-box;
}

.cpage-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 0.98;
  color: var(--cp-ink);
  margin: 22px 0 22px;
}

.cpage-hero__title-accent {
  display: block;
  color: var(--cp-plum);
}

.cpage-hero__desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--cp-muted);
  max-width: 380px;
}

.cpage-hero__rule {
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 24px;
  background-color: var(--cp-gold);
}

/* Photo on the right with a sweeping curved left edge, outlined by a
   thin gold line and a plum band. Each layer uses the same ellipse clip,
   shifted left a few px, so the bands follow the curve exactly. */
.cpage-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  /* Start just past the text column so copy never runs under the curve */
  left: calc(6.25vw + max(22vw, 300px) + 24px);
}

.cpage-hero__band,
.cpage-hero__media picture {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  clip-path: ellipse(100% 210% at 100% 100%);
}

.cpage-hero__band--gold {
  left: -22px;
  background: linear-gradient(180deg, var(--cp-gold-light), var(--cp-gold));
}

.cpage-hero__band--plum {
  left: -19px;
  background: linear-gradient(180deg, #8a3570, var(--cp-plum-deep));
}

.cpage-hero__media picture {
  left: 0;
  display: block;
}

.cpage-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* ---------- Info strip ---------- */
.cpage-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin: -24px 7vw 0;
  padding: 6px 18px;
  background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
  border: 1px solid rgba(216, 182, 124, 0.45);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #f7efe3;
}

.cpage-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 14px;
  color: inherit;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.cpage-strip__item + .cpage-strip__item {
  border-left: 1px solid rgba(216, 182, 124, 0.3);
}

.cpage-strip__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--cp-gold-light);
}

.cpage-strip__phone {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

a.cpage-strip__item:hover .cpage-strip__phone {
  color: var(--cp-gold-light);
}

.cpage-strip__item--note em {
  font-style: italic;
  font-size: 13px;
}

/* ---------- Cards row ---------- */
.cpage-cards {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1.22fr;
  gap: 26px;
  margin: 24px 4.5vw 0;
}

.cpage-card {
  background-color: var(--cp-card);
  border-radius: 20px;
  padding: 28px 32px 30px;
  box-shadow: 0 10px 30px rgba(90, 60, 30, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  min-width: 0;
}

.cpage-card__title {
  margin-bottom: 22px;
}

/* Get In Touch */
.cpage-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cpage-details li + li {
  border-top: 1px solid #e7dccb;
}

.cpage-detail {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.cpage-detail__icon {
  flex-shrink: 0;
  width: 50px;
  height: 46px;
  border-radius: 8px;
  background-color: #eadfcf;
  color: var(--cp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cpage-detail__icon svg {
  width: 22px;
  height: 22px;
}

a.cpage-detail:hover .cpage-detail__icon {
  background-color: var(--cp-plum);
  color: #f7efe3;
}

.cpage-detail__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cpage-detail__label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b4a1f;
}

.cpage-detail__value {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cp-ink);
  overflow-wrap: anywhere;
}

/* Find Us Here */
.cpage-card--map {
  display: flex;
  flex-direction: column;
}

.cpage-map {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #ece6dc;
}

.cpage-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cpage-map__open {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
}

.cpage-map__open svg {
  width: 16px;
  height: 16px;
}

.cpage-map__open:hover {
  background-color: #f3f7fe;
}

/* Schedule a Visit */
.cpage-card__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--cp-muted);
  margin: -8px 0 16px;
}

.cpage-form {
  gap: 12px;
}

.cpage-form .contact-form__row {
  gap: 16px;
}

.cpage-form .contact-form__input {
  padding: 10px 14px;
  font-size: 14px;
  background-color: #fbf6ee;
  border: 1px solid #e2d6c3;
  border-radius: 6px;
}

.cpage-form .contact-form__input::placeholder {
  color: #5a5248;
}

.cpage-form .contact-form__input:focus {
  border-color: var(--cp-gold);
  background-color: #ffffff;
}

.cpage-form .contact-form__select {
  font-weight: 500;
  background-position: right 14px center;
}

.cpage-form .contact-form__select:invalid {
  color: var(--cp-ink);
}

.cpage-form .contact-form__textarea {
  min-height: 66px;
}

.cpage-form .contact-form__actions {
  gap: 16px;
  margin-top: 4px;
}

.cpage-form .contact-form__submit {
  padding: 13px;
  font-size: 15px;
}

.cpage-form .contact-form__submit--whatsapp {
  background-color: #1fbf5a;
}

.cpage-form .contact-form__submit--whatsapp:hover {
  background-color: #19a24c;
}

.cpage-form .contact-form__submit--email {
  background-color: #5c1f48;
}

.cpage-form .contact-form__submit--email:hover {
  background-color: #461637;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cpage-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4px;
    border-radius: 24px;
    padding: 8px 16px;
  }

  .cpage-strip__item + .cpage-strip__item {
    border-left: none;
  }

  .cpage-strip__item:nth-child(even) {
    border-left: 1px solid rgba(216, 182, 124, 0.3);
  }

  .cpage-cards {
    grid-template-columns: 1fr 1fr;
  }

  .cpage-card--form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .cpage {
    padding: 96px 0 72px;
  }

  .cpage-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .cpage-hero__text {
    width: auto;
    max-width: none;
    padding: 16px 24px 32px;
  }

  .cpage-hero__media {
    position: relative;
    left: auto;
    width: auto;
    height: 300px;
    margin-left: 24px;
  }

  .cpage-hero__band,
  .cpage-hero__media picture {
    clip-path: ellipse(100% 260% at 100% 100%);
  }

  .cpage-strip {
    margin: -20px 16px 0;
  }

  .cpage-cards {
    grid-template-columns: 1fr;
    margin: 20px 16px 0;
  }
}

@media (max-width: 600px) {
  .cpage-hero__media {
    height: 220px;
  }

  .cpage-strip {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 6px 16px;
  }

  .cpage-strip__item {
    justify-content: flex-start;
    padding: 8px 4px;
  }

  .cpage-strip__item:nth-child(even) {
    border-left: none;
  }

  .cpage-strip__item + .cpage-strip__item {
    border-top: 1px solid rgba(216, 182, 124, 0.35);
  }

  .cpage-strip__item--note {
    justify-content: center;
  }

  .cpage-strip__icon {
    width: 20px;
    height: 20px;
  }

  .cpage-strip__phone {
    font-size: 15px;
  }

  .cpage-card {
    padding: 24px 20px;
  }

  .cpage-form .contact-form__row {
    flex-direction: column;
    gap: 12px;
  }

  .cpage-form .contact-form__actions {
    flex-direction: column;
  }
}

/* Homepage variant of the contact block — no fixed navbar to clear */
.cpage--home {
  padding-top: 72px;
}

@media (max-width: 900px) {
  .cpage--home {
    padding-top: 56px;
  }
}

/* Sections after the Gallery (Floor Plan, Connectivity, Contact) use the
   same text sizes as the About section. Below 1101px the base rules above
   already match About; on wider screens About steps down slightly, so
   these follow it. */
@media (min-width: 1101px) {
  .plans__title,
  .connect__title,
  .cpage-hero__title {
    font-size: clamp(28px, 2.4vw, 38px);
  }

  .plans__kicker,
  .connect__heading,
  .cpage-eyebrow {
    font-size: 14px;
  }

  .plans__lead,
  .connect__description,
  .cpage-hero__desc,
  .cpage-detail__value {
    font-size: 14.5px;
  }

  .cpage-strip__item--note em {
    font-size: 13px;
  }

  .plans__type-name,
  .connect__card-title {
    font-size: 15px;
  }

  .cpage-strip__phone {
    font-size: 14px;
  }

  .connect__place,
  .connect__chip,
  .connect__feature,
  .plans__spec dd,
  .cpage-card__subtitle {
    font-size: 13px;
  }
}

/* ==========================================================================
   MOBILE CONSISTENCY PASS (≤768px)
   One type scale and one set of gutters for every section, so headings,
   kickers and body copy match from section to section on phones.
   Desktop/tablet styles above are untouched.
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --m-gutter: 20px;
    --m-section-y: 64px;
  }

  /* Section gutters + vertical rhythm */
  .about,
  .gallery,
  .plans,
  .connect {
    padding: var(--m-section-y) var(--m-gutter);
  }

  /* Kickers / eyebrows */
  .about__heading,
  .gallery__heading,
  .plans__kicker,
  .connect__heading,
  .cpage-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .gallery__heading::after,
  .cpage-eyebrow::after {
    width: 36px;
    margin-top: 12px;
  }

  .plans__kicker::before {
    width: 28px;
  }

  /* Section titles */
  .about__title,
  .gallery__title,
  .plans__title,
  .connect__title,
  .cpage-hero__title {
    font-size: 34px;
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .gallery__title {
    margin-top: 4px;
  }

  /* Body copy — compact on phones: slightly smaller type and tighter
     leading so paragraphs don't stretch into tall columns */
  .about__description,
  .gallery__desc,
  .plans__lead,
  .connect__description,
  .contact-form__description,
  .cpage-hero__desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
  }

  .about__description + .about__description {
    margin-top: 8px;
  }

  .gallery__desc {
    margin-top: 20px;
  }

  .contact-form__description {
    margin-bottom: 24px;
  }

  /* Secondary text */
  .about__feature-desc,
  .about__tile-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .about__feature {
    gap: 2px;
    padding: 10px 0;
  }

  .cpage-detail__value {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Section headings a touch smaller and tighter */
  .about__title,
  .connect__title,
  .plans__title,
  .cpage-hero__title {
    font-size: 26px;
    line-height: 1.1;
  }

  .contact-form__title {
    font-size: 28px;
    line-height: 1.1;
  }

  .gallery__title {
    font-size: 38px;
  }

  /* Highlights marquee labels were too small to read */
  .usp__label {
    font-size: 12px;
  }

  /* About — feature tiles (mobile only): borderless 2×2 grid split by a
     dotted gold cross, instead of four stacked full-width cards */
  .about__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px;
    border-radius: 16px;
  }

  .about__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 10px;
    background: none;
    border: 0;
    border-radius: 0;
  }

  /* Dotted cross: vertical line right of the left column, horizontal
     line under the top row */
  .about__tile:nth-child(odd) {
    border-right: 1.5px dotted rgba(201, 164, 100, 0.45);
  }

  .about__tile:nth-child(-n + 2) {
    border-bottom: 1.5px dotted rgba(201, 164, 100, 0.45);
  }

  .about__tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-bottom: 2px;
  }

  .about__tile-icon svg {
    width: 18px;
    height: 18px;
  }

  .about__tile-title {
    font-size: 14px;
    line-height: 1.25;
  }

  .about__tile-desc {
    font-size: 11.5px;
    line-height: 1.4;
    max-width: none;
  }

  /* Connectivity — heading card first, then the map, then the lists
     (previously the map came before the section heading) */
  .connect__side {
    display: contents;
  }

  .connect__intro {
    order: -2;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .connect__main {
    order: -1;
  }

  .connect__layout {
    gap: 16px;
  }
}

/* ==========================================================================
   CONTACT — mobile "stacking cards"
   The gate photo becomes a pinned backdrop. While it is pinned, the three
   cards (Get In Touch → Find Us Here → Schedule a Visit) slide up one after
   another and stack on top of each other. When the last card has arrived
   the whole block scrolls away to the footer. Pure CSS (position: sticky).
   ========================================================================== */
@media (max-width: 900px) {
  /* `hidden` on html/body turns body into a scroll container, which stops
     position: sticky from working. `clip` hides sideways overflow the same
     way without that side effect. */
  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .cpage {
    --cp-top: 88px;        /* clears the fixed mobile navbar */
    --cp-step: 12px;       /* each stacked card sits a little lower */
    --cp-tail: 16px;       /* space under a card at the bottom of the screen */
    overflow: visible;
    overflow-x: clip;
    padding-bottom: 0;
  }

  /* The photo now lives behind the cards, so drop the separate hero image */
  .cpage-hero__media {
    display: none;
  }

  .cpage-hero__text {
    padding: 0 var(--m-gutter, 20px) 28px;
  }

  .cpage-strip {
    margin: 0 var(--m-gutter, 20px);
  }

  .cpage-cards {
    position: relative;
    display: block;
    margin: 32px 0 0;
    /* bottom padding (not a card margin, which would collapse out of the
       container) keeps the last card's gap inside the pinned area */
    padding: 0 16px var(--cp-tail);
  }

  /* Pinned backdrop: one screen tall, sticks while the cards pass over it */
  .cpage-cards::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    height: 100svh;
    margin: 0 -16px;
    background:
      linear-gradient(180deg, rgba(58, 16, 44, 0.45) 0%, rgba(40, 10, 30, 0.78) 100%),
      url('../images/contact-hero.jpg') center 40% / cover no-repeat;
  }

  .cpage-card {
    position: sticky;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(20, 6, 15, 0.28), 0 10px 30px rgba(20, 6, 15, 0.18);
    border: 1px solid rgba(184, 145, 90, 0.35);
  }

  .cpage-card:nth-child(1) {
    top: var(--cp-top);
    z-index: 1;
    /* pull the first card up onto the backdrop */
    margin-top: calc(-100svh + var(--cp-top));
    min-height: calc(100svh - var(--cp-top) - var(--cp-tail));
  }

  .cpage-card:nth-child(2) {
    top: calc(var(--cp-top) + var(--cp-step));
    z-index: 2;
    margin-top: 40px;
    min-height: calc(100svh - var(--cp-top) - var(--cp-step) - var(--cp-tail));
  }

  .cpage-card:nth-child(3) {
    top: calc(var(--cp-top) + var(--cp-step) * 2);
    z-index: 3;
    margin-top: 40px;
    min-height: calc(100svh - var(--cp-top) - var(--cp-step) * 2 - var(--cp-tail));
  }

  /* Fill each card's height sensibly */
  .cpage-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cpage-detail {
    padding: 16px 0;
  }

  .cpage-map {
    flex: 1;
    min-height: 260px;
  }

  .cpage-form {
    flex: 1;
  }

  /* Keep the form card within one screen so it settles like the others */
  .cpage-form .contact-form__textarea {
    min-height: 72px;
    height: 72px;
  }

  .cpage-form .contact-form__actions {
    margin-top: auto;
    padding-top: 4px;
  }
}

/* Older browsers without svh: fall back to vh for the card maths */
@supports not (height: 100svh) {
  @media (max-width: 900px) {
    .cpage-card:nth-child(1) {
      margin-top: calc(-100vh + var(--cp-top));
      min-height: calc(100vh - var(--cp-top) - var(--cp-tail));
    }

    .cpage-card:nth-child(2) {
      min-height: calc(100vh - var(--cp-top) - var(--cp-step) - var(--cp-tail));
    }

    .cpage-card:nth-child(3) {
      min-height: calc(100vh - var(--cp-top) - var(--cp-step) * 2 - var(--cp-tail));
    }
  }
}

/* ==========================================================================
   Hero — phones: fit the whole first screen (title → facts → CTA → BMRDA seal)
   inside the visible viewport. Spacing and sizes scale with screen height
   (svh = height with the browser toolbars showing), so short phones get a
   tighter layout instead of pushing the CTA below the fold.
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }

  .hero__content {
    /* top: clears the fixed navbar (78px) */
    padding: clamp(80px, 12svh, 100px) 20px clamp(12px, 2.5svh, 32px);
  }

  .hero__word {
    font-size: min(11vw, 7svh, 72px);
  }

  .hero__sub {
    margin-top: clamp(8px, 1.8svh, 18px);
  }

  .hero__tagline {
    margin-top: clamp(8px, 1.4svh, 14px);
    font-size: min(20px, 3svh);
  }

  .hero__link {
    height: clamp(10px, 2.6svh, 34px);
    margin: clamp(3px, 0.9svh, 10px) 0;
  }

  .hero__fact {
    padding: clamp(8px, 1.7svh, 16px) 8px;
    gap: 2px;
  }

  .hero__fact-icon {
    width: clamp(20px, 3.6svh, 30px);
    height: clamp(20px, 3.6svh, 30px);
    margin-bottom: clamp(2px, 0.8svh, 8px);
  }

  .hero__cta {
    padding: clamp(12px, 1.9svh, 16px) 28px;
  }

  .bmrda-seal--hero {
    width: clamp(66px, 10svh, 88px);
    height: clamp(66px, 10svh, 88px);
  }

  /* Seal text shrinks with the disc so it stays inside the dotted ring. */
  .bmrda-seal--hero .bmrda-seal__ring {
    inset: clamp(4px, 0.7svh, 6px);
  }

  .bmrda-seal--hero .bmrda-seal__icon {
    width: clamp(11px, 1.8svh, 16px);
    height: clamp(11px, 1.8svh, 16px);
    margin-bottom: clamp(2px, 0.5svh, 5px);
  }

  .bmrda-seal--hero .bmrda-seal__name {
    font-size: clamp(10.5px, 1.6svh, 14px);
    letter-spacing: 1.5px;
  }

  .bmrda-seal--hero .bmrda-seal__sub {
    margin-top: 3px;
    font-size: clamp(6.5px, 1svh, 8.5px);
    letter-spacing: 1.8px;
  }
}

/* Very short screens (landscape-ish / small Android with toolbars): drop
   the seal here to keep the CTA in view. */
@media (max-width: 768px) and (max-height: 600px) {
  .hero__finish .hero__link,
  .bmrda-seal--hero {
    display: none;
  }
}

@supports not (height: 100svh) {
  @media (max-width: 768px) {
    .hero__content { padding: clamp(80px, 12vh, 100px) 20px clamp(12px, 2.5vh, 32px); }
    .hero__word { font-size: min(11vw, 7vh, 72px); }
    .hero__link { height: clamp(10px, 2.6vh, 34px); margin: clamp(3px, 0.9vh, 10px) 0; }
    .hero__fact { padding: clamp(8px, 1.7vh, 16px) 8px; }
    .bmrda-seal--hero { width: clamp(60px, 10vh, 88px); height: clamp(60px, 10vh, 88px); }
  }
}

/* Gallery — phones: the whole section fits in one screen (like desktop).
   Compact intro on top; the mosaic fills the remaining height in 4 equal
   rows (1 full-width photo, then 3 pairs). Top padding clears the fixed
   mobile navbar. Desktop/tablet (>768px) is untouched. */
@media (max-width: 768px) {
  .gallery {
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 2.4svh, 24px);
    padding: clamp(84px, 11svh, 96px) var(--m-gutter, 20px) clamp(16px, 3svh, 28px);
  }

  .gallery__intro {
    flex: 0 0 auto;
    max-width: none;
  }

  .gallery__heading {
    margin-bottom: clamp(6px, 1.2svh, 14px);
  }

  .gallery__heading::after {
    margin-top: clamp(6px, 1.2svh, 12px);
  }

  .gallery__title {
    margin: 0;
    font-size: clamp(26px, 4.4svh, 38px);
    line-height: 1.08;
  }

  .gallery__desc {
    margin-top: clamp(6px, 1.4svh, 14px);
    font-size: clamp(12.5px, 1.8svh, 14px);
    line-height: 1.45;
  }

  .gallery__grid {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .gallery__tile--1,
  .gallery__tile--2,
  .gallery__tile--3,
  .gallery__tile--4,
  .gallery__tile--5,
  .gallery__tile--6,
  .gallery__tile--7 {
    grid-column: auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .gallery__tile--1 {
    grid-column: 1 / -1;
  }
}

/* Very short phone screens: drop the description so the photos keep room. */
@media (max-width: 768px) and (max-height: 640px) {
  .gallery__desc {
    display: none;
  }
}

/* ==========================================================================
   Phones — compact rhythm. Less empty space between and inside sections so
   the page reads as one continuous flow, and tighter text blocks.
   Wording is unchanged; only spacing / line-height are tightened.
   ========================================================================== */
@media (max-width: 768px) {
  /* Section padding: 64px → 40px (two neighbours used to stack to ~130px) */
  .about,
  .gallery,
  .plans,
  .connect {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cpage {
    padding-top: 40px;
  }

  .footer {
    padding-top: 40px;
    padding-bottom: 88px; /* still clears the floating call/chat buttons */
  }

  /* Headings + descriptions */
  .about__heading,
  .gallery__heading,
  .connect__heading {
    margin-bottom: 10px;
  }

  .gallery__heading::after {
    margin-top: 12px;
  }

  .about__title,
  .plans__title,
  .connect__title,
  .cpage-hero__title {
    margin-bottom: 10px;
  }

  .gallery__title {
    margin-top: 16px;
  }

  .gallery__desc {
    margin-top: 10px;
  }

  .about__description,
  .gallery__desc,
  .plans__lead,
  .connect__description,
  .cpage-hero__desc,
  .footer__tagline {
    line-height: 1.55;
  }

  .about__description + .about__description {
    margin-top: 10px;
  }

  .about__tile-desc,
  .about__feature-desc {
    line-height: 1.45;
  }

  /* About */
  .about__row {
    gap: 28px;
    margin-bottom: 28px;
  }

  .about__features {
    margin-top: 14px;
  }

  .about__tile {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Gallery */
  .gallery {
    gap: 24px;
  }

  /* Layout & floor plans */
  .plans__header {
    margin-bottom: 20px;
  }

  .plans__body {
    gap: 20px;
  }

  .plans__panel {
    gap: 18px;
  }

  /* Connectivity */
  .connect__card {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .connect__card-title {
    margin-bottom: 6px;
  }

  .connect__layout {
    gap: 12px;
  }

  /* Contact: keeps the pinned "stacking cards" from the CONTACT block
     above (photo locked, cards slide up over it one by one, then the
     section scrolls on to the footer) — only the spacing is tightened. */
  .cpage-hero__text {
    padding-bottom: 20px;
  }

  .cpage-cards {
    margin-top: 20px;
  }

  .cpage-card {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cpage-card__title {
    margin-bottom: 14px;
  }

  .cpage-detail {
    padding: 10px 0;
  }

  /* Footer: links side by side instead of one long column */
  .footer__top {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 16px;
    margin-bottom: 28px;
  }

  .footer__brand,
  .footer__column:last-child {
    flex: 1 1 100%;
  }

  .footer__column {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .footer__column-title {
    margin-bottom: 12px;
  }

  .footer__divider {
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   Layout & Floor Plans — phones: whole section in at most 2 screens.
   Screen 1: heading + master plan + 4 facts in one row.
   Screen 2: villa type chips + floor tabs, floor plan image filling the
   middle, 3 specs in one row, full-width Enquire button.
   .plans__body / .plans__panel become display:contents so every block is
   one grid row of .plans; the two image rows share the leftover height, so
   the section never grows past 200svh. Desktop/tablet (>768px) untouched.
   ========================================================================== */
@media (max-width: 768px) {
  .plans {
    box-sizing: border-box;
    height: 200vh;
    height: 200svh;
    min-height: 1080px;
    max-height: 1700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      auto                /* header */
      minmax(0, 1fr)      /* master plan + facts */
      auto                /* villa type */
      auto                /* floor */
      minmax(0, 1fr)      /* floor plan image */
      auto                /* specs */
      auto;               /* enquire */
    row-gap: 14px;
    padding: 80px var(--m-gutter, 20px) 28px;
  }

  .plans__body,
  .plans__panel {
    display: contents;
  }

  .plans__header {
    order: 1;
    margin: 0;
    gap: 8px;
  }

  .plans__lead {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .plans__site    { order: 2; }
  .plans__group:nth-child(1) { order: 3; }
  .plans__group:nth-child(2) { order: 4; }
  .plans__unit    { order: 5; }
  .plans__specs   { order: 6; }
  .plans__cta     { order: 7; }

  /* Images shrink to the space their row gets */
  .plans__site,
  .plans__unit {
    min-height: 0;
    gap: 10px;
  }

  .plans__frame {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px;
  }

  .plans__img,
  .plans__img--unit {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: none;
  }

  .plans__tag {
    left: 14px;
    top: 14px;
  }

  .plans__zoom {
    right: 14px;
    bottom: 14px;
  }

  /* Facts: one compact row */
  .plans__fact {
    padding: 8px 2px;
  }

  /* Screen 2 starts here — a little breathing room above the chips */
  .plans__group:nth-child(1) {
    padding-top: 22px;
    border-top: 1px dotted rgba(201, 164, 100, 0.35);
  }

  .plans__label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  /* Villa type: 4 chips in a row, name only (area shows in the specs) */
  .plans__types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .plans__type {
    align-items: center;
    padding: 10px 4px;
    text-align: center;
  }

  .plans__type-name {
    font-size: 16px;
  }

  .plans__type-area {
    display: none;
  }

  .plans__floor {
    padding: 8px 4px;
  }

  /* Specs: 3 columns, label above value */
  .plans__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px dotted rgba(245, 241, 234, 0.22);
    border-bottom: 1px dotted rgba(245, 241, 234, 0.22);
  }

  .plans__spec,
  .plans__spec:first-child {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px 4px;
    border: 0;
    text-align: center;
  }

  .plans__spec + .plans__spec {
    border-left: 1px dotted rgba(245, 241, 234, 0.22);
  }

  .plans__spec dt {
    font-size: 11px;
    line-height: 1.3;
  }

  .plans__spec dd {
    font-size: 13px;
    text-align: center;
  }

  .plans__spec small {
    display: none;
  }

  .plans__cta {
    align-self: stretch;
    justify-content: center;
    padding: 13px 20px;
  }
}

/* ==========================================================================
   Connectivity — phones only: fits the section in ~2 screens.
   Shorter map, slim dotted feature strip, and the four category lists
   become a one-open-at-a-time accordion (toggled in main.js) with
   dotted-leader rows: "Name ········ 15 Mins".
   ========================================================================== */
@media (max-width: 768px) {
  .connect__layout {
    gap: 12px;
  }

  .connect__map-wrap {
    height: 260px;
    border-radius: 16px;
  }

  .connect__chips {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px;
  }

  .connect__chip {
    font-size: 12px;
    padding: 6px 11px;
  }

  .connect__recenter {
    right: 10px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  .connect__map .maplibregl-ctrl-bottom-left .maplibregl-ctrl-group {
    margin: 0 0 12px 10px;
  }

  .connect__map .maplibregl-ctrl-group button {
    width: 34px;
    height: 34px;
  }

  /* Slim dotted feature strip */
  .connect__bar {
    padding: 10px 6px;
    border-radius: 14px;
  }

  .connect__features {
    justify-content: space-around;
  }

  .connect__feature,
  .connect__feature:first-child {
    flex-direction: row;
    gap: 6px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
  }

  .connect__feature + .connect__feature {
    border-left: 1.5px dotted rgba(182, 147, 92, 0.6);
  }

  .connect__feature svg {
    width: 20px;
    height: 20px;
  }

  /* Accordion: one panel, categories split by dotted lines */
  .connect__list {
    display: block;
    overflow: hidden; /* clips the first visible category's dotted top line */
    padding: 0 16px;
    background-color: #fbf9f5;
    border: 1px solid rgba(203, 169, 103, 0.2);
    border-radius: 16px;
  }

  .connect__card {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 12px 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
  }

  .connect__card[hidden] {
    display: none;
  }

  /* Every category gets a dotted top line, pulled up 2px so the panel
     clips it on whichever category is first visible (filters hide some) */
  .connect__card {
    margin-top: -2px;
    border-top: 1.5px dotted rgba(182, 147, 92, 0.55);
  }

  .connect__card-icon {
    grid-row: auto;
    width: 30px;
    height: 30px;
  }

  .connect__card-icon svg {
    width: 15px;
    height: 15px;
  }

  .connect__card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    font-size: 17px;
  }

  /* Chevron */
  .connect__card-title::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-right: 1.5px solid #9a7a45;
    border-bottom: 1.5px solid #9a7a45;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
  }

  .connect__card.is-open .connect__card-title::after {
    transform: rotate(-135deg) translateY(-2px);
  }

  .connect__places {
    display: none;
    grid-column: 1 / -1;
    gap: 0;
    margin-top: 8px;
    cursor: default;
  }

  .connect__card.is-open .connect__places {
    display: flex;
  }

  /* Dotted-leader rows */
  .connect__place {
    grid-template-columns: 20px 1fr auto;
    gap: 8px;
    padding: 4px 6px;
    margin: 0 -6px;
    font-size: 13px;
    line-height: 1.3;
  }

  .connect__num {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .connect__name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }

  .connect__name::after {
    content: '';
    flex: 1;
    min-width: 12px;
    border-bottom: 1.5px dotted rgba(154, 122, 69, 0.55);
    transform: translateY(-3px);
  }

  .connect__time {
    font-size: 12px;
    font-weight: 500;
    color: #9a7a45;
  }
}

/* ==========================================================================
   Contact stacking cards — phones only: compact version.
   All three cards share one shorter height that ends above the floating
   call / chat buttons (bottom-left / bottom-right, ~80px tall), so a
   covered card never peeks out below the next one. Each next card starts
   just below the screen and rises over the pinned photo; a scroll-linked
   fade/scale makes the arrival smooth where supported.
   ========================================================================== */
@media (max-width: 768px) {
  .cpage {
    --cp-top: 84px;     /* clears the fixed navbar */
    --cp-step: 10px;    /* each stacked card sits a little lower */
    --cp-tail: 96px;    /* keeps cards clear of the floating buttons */
    --cp-card-h: min(500px, calc(100svh - var(--cp-top) - var(--cp-tail) - var(--cp-step) * 2));
  }

  .cpage-card,
  .cpage-card:nth-child(1),
  .cpage-card:nth-child(2),
  .cpage-card:nth-child(3) {
    /* min-height (not a fixed height + inner scroll): an inner scroll area
       swallowed the swipe and the page stopped moving */
    height: auto;
    min-height: var(--cp-card-h);
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  /* The bottom gap now lives inside the pinned photo (a padding-bottom sat
     outside it and showed as a cream band above the footer). flow-root
     keeps the last card's margin inside the container. */
  .cpage-cards {
    display: flow-root;
    padding-bottom: 0;
  }

  .cpage-card:last-child {
    margin-bottom: 16px;
  }

  /* Swiping over the embedded Google map panned the map instead of the
     page. On phones the map is a static preview; "Open in Maps" stays
     tappable for directions. */
  .cpage-map__frame,
  .cpage-map iframe {
    pointer-events: none;
  }

  /* Next card begins just below the screen, then slides up */
  .cpage-card:nth-child(2),
  .cpage-card:nth-child(3) {
    margin-top: calc(100svh - var(--cp-top) - var(--cp-card-h));
  }

  .cpage-card__title {
    font-size: 12.5px;
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .cpage-card__title::after {
    margin-top: 10px;
  }

  /* Get In Touch */
  .cpage-detail {
    gap: 14px;
    padding: 9px 0;
  }

  .cpage-detail__icon {
    width: 40px;
    height: 40px;
  }

  /* Map */
  .cpage-map {
    flex: 1;
    min-height: 0;
  }

  /* Form */
  .cpage-card__subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin: -2px 0 12px;
  }

  .cpage-form,
  .cpage-form .contact-form__row {
    gap: 8px;
  }

  .cpage-form .contact-form__input {
    padding: 9px 12px;
  }

  .cpage-form .contact-form__textarea {
    min-height: 54px;
    height: 54px;
    resize: none;
  }

  .cpage-form .contact-form__actions {
    flex-direction: row;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
  }

  .cpage-form .contact-form__submit {
    padding: 11px 8px;
    font-size: 14px;
  }
}

/* Older browsers without svh */
@supports not (height: 100svh) {
  @media (max-width: 768px) {
    .cpage {
      --cp-card-h: min(500px, calc(100vh - var(--cp-top) - var(--cp-tail) - var(--cp-step) * 2));
    }

    .cpage-card:nth-child(2),
    .cpage-card:nth-child(3) {
      margin-top: calc(100vh - var(--cp-top) - var(--cp-card-h));
    }
  }
}

/* Smooth arrival: each card fades/scales in as it rises into place */
@supports (animation-timeline: view()) {
  @media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .cpage-card:nth-child(2),
    .cpage-card:nth-child(3) {
      animation: cpage-card-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

@keyframes cpage-card-rise {
  from {
    opacity: 0.55;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Footer — phones: card-style blocks.
   Brand band (logo | tagline + socials) on top, then Quick Links and
   Villa Types as two dotted-gold cards side by side, Contact as a
   full-width card with phone / mail icons, copyright centred below.
   Desktop/tablet (>768px) untouched.
   ========================================================================== */
@media (max-width: 768px) {
  .footer {
    padding: 28px var(--m-gutter, 20px) 88px; /* bottom clears the floating buttons */
  }

  .footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }

  /* Brand band */
  .footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo tag"
      "logo soc";
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
  }

  .footer__logo {
    grid-area: logo;
    margin: 0;
    padding-right: 16px;
    border-right: 1px solid rgba(203, 169, 103, 0.25);
  }

  .footer__logo-image {
    height: 56px;
  }

  .footer__tagline {
    grid-area: tag;
    margin: 0;
    max-width: none;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .footer__socials {
    grid-area: soc;
    gap: 8px;
  }

  .footer__social {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .footer__social svg {
    width: 14px;
    height: 14px;
  }

  /* Cards */
  .footer__column,
  .footer__column:last-child {
    flex: none;
    min-width: 0;
    padding: 14px 16px;
    border: 1px dashed rgba(203, 169, 103, 0.4);
    border-radius: 12px;
    background-color: #141414;
  }

  .footer__column:last-child {
    grid-column: 1 / -1;
  }

  .footer__column-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(203, 169, 103, 0.3);
    font-size: 11.5px;
    letter-spacing: 1.5px;
  }

  .footer__column-list {
    gap: 8px;
  }

  .footer__column-list a {
    font-size: 13.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  /* Contact card: icon before phone and email */
  .footer__column:last-child .footer__column-list a {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer__column:last-child .footer__column-list a::before {
    content: '';
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(203, 169, 103, 0.14);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .footer__column:last-child .footer__column-list a[href^="tel:"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cba967' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  }

  .footer__column:last-child .footer__column-list a[href^="mailto:"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cba967' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  }

  /* Copyright */
  .footer__divider {
    margin-bottom: 12px;
  }

  .footer__bottom {
    align-items: center;
    text-align: center;
  }

  .footer__copyright {
    width: 100%;
    font-size: 11px;
    line-height: 1.5;
  }
}

/* Phones: tighter hand-off from Gallery into Layout & Floor Plans.
   Less padding on both sides of the seam; scroll-margin keeps the
   "Layout" menu link landing below the fixed navbar (78px). */
@media (max-width: 768px) {
  .gallery {
    padding-bottom: 24px;
  }

  .plans {
    padding-top: 32px;
    scroll-margin-top: 56px;
  }
}

/* ==========================================================================
   Hero — phones: winding route. The facts card becomes four "stops" that
   alternate left / right; main.js (drawPhone) draws a dotted road through
   each stop's icon, from under the tagline down to the CTA, with the
   travelling dot. Desktop/tablet (>768px) untouched.
   ========================================================================== */
@media (max-width: 768px) {
  .hero__route {
    display: block;
  }

  .hero__route-path {
    stroke-width: 3;
    stroke-dasharray: 0 9;
    opacity: 0.95;
  }

  .hero__route-start {
    fill: none;
    stroke: #cba967;
    stroke-width: 2;
    r: 5px;
    filter: none;
  }

  .hero__route-end {
    r: 0;
  }

  /* Dotted rule under the title, matching the road */
  .hero__rule {
    height: 2px;
    background: radial-gradient(circle, #cba967 1px, transparent 1.6px) 0 0 / 6px 2px repeat-x;
  }

  /* The old short connectors are replaced by the road */
  .hero__link {
    display: none;
  }

  /* Facts: no card — a column of stops */
  .hero__facts {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3.2svh, 32px);
    width: 100%;
    max-width: 380px;
    margin-top: clamp(26px, 5svh, 48px);
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__fact,
  .hero__fact:nth-child(n + 3) {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 0;
    text-align: left;
    background: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  }

  .hero__fact:nth-child(even)::after {
    content: none;
  }

  .hero__fact-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    box-sizing: border-box;
    width: clamp(40px, 5.6svh, 48px);
    height: clamp(40px, 5.6svh, 48px);
    padding: clamp(9px, 1.3svh, 12px);
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(203, 169, 103, 0.55);
    background-color: rgba(18, 12, 22, 0.78);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  .hero__fact-value {
    grid-column: 2;
    align-self: end;
  }

  .hero__fact-label {
    grid-column: 2;
    align-self: start;
    color: rgba(242, 239, 233, 0.78);
  }

  /* Even stops sit on the right */
  .hero__fact:nth-child(even) {
    grid-template-columns: 1fr auto;
    text-align: right;
  }

  .hero__fact:nth-child(even) .hero__fact-icon {
    grid-column: 2;
  }

  .hero__fact:nth-child(even) .hero__fact-value,
  .hero__fact:nth-child(even) .hero__fact-label {
    grid-column: 1;
  }

  .hero__finish {
    margin-top: clamp(26px, 5svh, 48px);
  }

  .bmrda-seal--hero {
    margin-top: clamp(10px, 2svh, 20px);
  }
}

/* ==========================================================================
   Performance — smooth scrolling everywhere.
   ========================================================================== */
/* Menu / anchor links glide to their section instead of jumping */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Phones: live background blur is re-computed on every scroll frame and is
   the main cause of scroll jank on mid-range phones. Every blurred element
   already has a near-opaque background, so dropping the blur looks almost
   identical; the navbar just gets a slightly more solid fill. */
@media (max-width: 768px) {
  *,
  *::before,
  *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .navbar--scrolled {
    background-color: rgba(13, 13, 13, 0.92);
  }

  .navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
  }

  /* Smaller WebP photos made for portrait phone screens */
  .hero {
    background-image:
      linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%),
      image-set(url('../images/hero-bg-mobile.webp') type('image/webp'), url('../images/hero-bg.jpg?v=4') type('image/jpeg'));
  }

  .cpage-cards::before {
    background-image:
      linear-gradient(180deg, rgba(58, 16, 44, 0.45) 0%, rgba(40, 10, 30, 0.78) 100%),
      image-set(url('../images/contact-hero-mobile.webp') type('image/webp'), url('../images/contact-hero.jpg') type('image/jpeg'));
  }
}

/* Continuous marquees: keep each on its own GPU layer */
.stats__track,
.usp__track,
.film__track,
.amenity-reel__track {
  will-change: transform;
}

/* Text for screen readers and search engines, hidden visually */
.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;
}
