/* ==========================================================================
   Experion Emerelle Reserve — site styles
   Brand: taken from the Emerelle concept deck (forest, ivory, antique gold,
   sage; Bodoni + Raleway). Layout patterns: The Trillion reference site.
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-italic.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #183a2a;
  --forest-2: #24503b;
  --forest-deep: #10291d;
  --ivory: #fbfaf6;
  --sage: #eef2ea;
  --sage-2: #dfe8da;
  --gold: #8a6a23;
  --gold-light: #c8b07a;
  --ink: #1f2a24;
  --muted: #5d6b62;
  --line: #d9cfb7;
  --danger: #a3352b;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "lnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
[hidden]:not(.lightbox-nav) { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--forest-deep); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--forest); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.center { text-align: center; }

/* ---------- Type ---------- */
.display, .display-sm, .hero-title, .final-title, .answer-title, .chapter-title, .plan-title, .modal-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display { font-size: clamp(2rem, 1.5rem + 2.3vw, 3.4rem); }
.display-sm { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); }
.display-italic { display: block; font-style: italic; font-weight: 400; color: var(--gold); font-size: .58em; line-height: 1.3; margin-top: .45em; }
.kicker-italic { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); color: var(--forest); margin-bottom: 1.4rem; max-width: 32ch; }
.body-lg { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); color: var(--muted); max-width: 62ch; margin-top: 1.25rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 1.25rem; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .body-lg { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.6rem;
  border: 1px solid var(--b); border-radius: 0;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.3;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-sm { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .72rem; }
.btn-solid { background: var(--forest); color: #fff; }
.btn-solid:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-gold { --b: var(--gold-light); background: var(--gold-light); color: var(--forest-deep); }
.btn-gold:hover { background: #d8c493; border-color: #d8c493; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 250, 246, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(24, 58, 42, .5); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: auto; height: 46px; }
@media (min-width: 1024px) { .brand img { height: 58px; } }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: clamp(1rem, 1.6vw, 1.75rem); }
.main-nav a {
  position: relative; display: block; padding: .4rem 0;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { display: none; }
.header-phone { display: none; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--forest); }
.header-phone svg, .mobile-bar svg { width: 1rem; height: 1rem; fill: currentColor; }
.menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 1.5px; background: var(--forest); transition: transform .3s var(--ease), opacity .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--ivory); border-top: 1px solid var(--line); padding: 1rem var(--gutter) 2rem; max-height: calc(100svh - var(--header-h)); overflow-y: auto; box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .25); }
.mobile-menu li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; color: var(--forest); text-decoration: none; }
.mobile-menu-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .header-actions .btn { display: inline-flex; } }
@media (min-width: 1180px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1400px) { .header-phone { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { background: var(--ivory); }
.hero-grid { display: grid; }
.hero-media { position: relative; order: -1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-media figcaption, .promise-media figcaption { position: absolute; right: .75rem; bottom: .6rem; font-size: .66rem; letter-spacing: .08em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.hero-copy { padding: 2.5rem var(--gutter) 3rem; }
.hero-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: var(--forest); line-height: 1.2; }
.hero-title { font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.1rem); font-weight: 600; line-height: 1.02; margin-top: .2em; }
.hero-lead { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.55; color: var(--gold); max-width: 30ch; margin-top: 1.5rem; }
.hero-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; max-width: 520px; }
.hero-box { border: 1px solid var(--gold-light); padding: .9rem 1rem .8rem; text-align: center; background: #fff; }
.hero-box dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero-box dd { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); color: var(--forest); font-weight: 600; line-height: 1.2; margin-top: .2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-ctas .btn { flex: 1 1 200px; }
.hero-rera { margin-top: 1.75rem; font-size: .72rem; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.hero-bar { display: none; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); height: calc(100svh - var(--header-h) - 116px); min-height: 600px; max-height: 860px; }
  .hero-media { order: 0; aspect-ratio: auto; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem clamp(2rem, 4vw, 4.5rem) 2.5rem max(var(--gutter), calc((100vw - var(--container)) / 2)); }
  .hero-lead { font-size: 1.2rem; margin-top: 1.1rem; }
  .hero-boxes { margin-top: 1.5rem; }
  .hero-ctas { margin-top: 1.5rem; }
  .hero-rera { margin-top: 1.25rem; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-bar { display: block; background: var(--forest); color: #fff; padding: 1.25rem 0; }
  .hero-bar .container { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
  .hero-bar-title { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--gold-light); white-space: nowrap; }
}

/* ---------- Overview ---------- */
.overview-grid { display: grid; gap: 3rem; align-items: center; }
.overview-media { aspect-ratio: 4 / 5; overflow: hidden; }
.overview-media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-family: var(--serif); font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.8rem); color: var(--forest); line-height: 1.1; }
.stats dt { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .overview-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- Promise (dark) ---------- */
.promise { background: var(--forest); color: #e9efe9; }
.promise-top { padding-top: var(--section-y); padding-bottom: clamp(3rem, 6vw, 5rem); max-width: 880px; }
.promise-kicker { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: #fff; }
.promise-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); color: var(--gold-light); line-height: 1.2; margin-top: .3rem; }
.promise-body { margin-top: 1.75rem; color: rgba(233, 239, 233, .8); max-width: 60ch; }
.promise-turn { margin-top: 1.25rem; font-weight: 700; color: #fff; }
.promise-answer { background: var(--ivory); color: var(--ink); padding: var(--section-y) 0; }
.promise-grid { display: grid; gap: 3rem; align-items: center; }
.answer-title { font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.8rem); font-style: italic; font-weight: 600; }
.answer-sub, .at-label { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 1.25rem; }
.pairs { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
.pairs li { border-left: 2px solid var(--gold-light); padding-left: 1.25rem; }
.pair-head { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); color: var(--forest); line-height: 1.3; }
.pair-head em { color: var(--gold); }
.pair-detail { color: var(--muted); margin-top: .35rem; max-width: 52ch; }
.promise-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.promise-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .promise-grid { grid-template-columns: 1fr .85fr; gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- Film ---------- */
.film { background: var(--sage); }
.video-frame { max-width: 1100px; margin: 0 auto; background: var(--forest-deep); box-shadow: 0 40px 80px -50px rgba(16, 41, 29, .7); }
.film-cta, .center-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------- Floor plans ---------- */
.plan-tabs { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tabs [role="tab"] {
  flex: 1 0 auto; min-width: 9.5rem; padding: 1rem 1.25rem 1.1rem; text-align: left;
  background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
.plan-tabs [role="tab"]:hover { color: var(--forest); }
.plan-tabs [role="tab"][aria-selected="true"] { color: var(--forest); border-bottom-color: var(--gold); background: #fff; }
.tab-label { display: block; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.25; }
.tab-meta { display: block; font-size: .75rem; letter-spacing: .06em; margin-top: .2rem; }
.plan-panel { display: grid; gap: 2.5rem; align-items: center; animation: fade .5s var(--ease); }
.plan-image { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; overflow: hidden; }
.plan-image img { width: 100%; transition: transform .6s var(--ease); }
.plan-image:hover img { transform: scale(1.02); }
.zoom-hint { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; background: var(--forest); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.zoom-hint svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.plan-title { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.plan-specs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-specs div { padding: 1rem 0; }
.plan-specs div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.plan-specs dt { font-size: .78rem; color: var(--muted); }
.plan-specs dd { font-family: var(--serif); font-size: 1.4rem; color: var(--forest); }
.ticks { margin-top: 1.25rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: .55rem; border: 1px solid var(--gold); transform: rotate(45deg); }
.plan-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (min-width: 1024px) { .plan-panel { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- A day at Emerelle ---------- */
.life { background: #fff; }
.chapter { display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.chapter-num { font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.chapter-title { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.5rem); font-weight: 500; margin-top: .4rem; }
.chapter-title em { font-weight: 400; }
.note-box { margin-top: 1.5rem; background: var(--sage); padding: 1.1rem 1.4rem; font-family: var(--serif); font-size: 1.1rem; color: var(--forest); line-height: 1.6; max-width: 46ch; }
.chapter-media { overflow: hidden; }
.chapter-media img { width: 100%; }
.chapter:not(.chapter--wide) .chapter-media { aspect-ratio: 5 / 4; }
.chapter:not(.chapter--wide) .chapter-media img { height: 100%; object-fit: cover; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.groups dt { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.groups dd { font-size: .9rem; color: var(--muted); }
@media (min-width: 1024px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .chapter--flip .chapter-copy { order: 2; }
  .chapter--wide { grid-template-columns: 1fr; }
  .chapter--wide .chapter-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .chapter--wide .chapter-copy > :is(.chapter-num, .chapter-title, .note-box) { grid-column: 1; }
  .chapter--wide .chapter-copy > :is(.at-label, .ticks) { grid-column: 2; }
  .chapter--wide .chapter-copy > .at-label { grid-row: 1; margin-top: 0; }
  .chapter--wide .chapter-copy > .ticks { grid-row: 2 / span 3; margin-top: .5rem; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--sage); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery-grid button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sage-2); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-grid button:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, rgba(16, 41, 29, .75)); color: #fff; font-family: var(--serif); font-size: 1.05rem; text-align: left; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 3rem; align-items: center; }
.location-map { border: 1px solid var(--line); }
.connect { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.connect li { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.connect strong { font-family: var(--serif); font-weight: 600; color: var(--forest); white-space: nowrap; }
.location .btn { margin-top: 1.75rem; }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- Pricing ---------- */
.pricing { background: var(--ivory); border-top: 1px solid var(--line); }
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 1.1rem 1rem 1.1rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--forest); }
.price-table tbody th { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--forest); }
.price-table td:last-child { text-align: right; padding-right: 0; }
.plans-row { display: grid; gap: 1rem; margin-top: 3rem; }
.pay-plan { background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
.pay-name { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); }
.tag { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .15rem .5rem; background: var(--sage); font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.pay-plan ul { margin-top: 1rem; display: grid; gap: .6rem; }
.pay-plan li { display: grid; grid-template-columns: 3.25rem 1fr; gap: .75rem; font-size: .92rem; color: var(--muted); }
.pay-plan strong { color: var(--forest); }
@media (min-width: 900px) { .plans-row { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- Developer ---------- */
.developer { background: var(--sage); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.developer-grid { display: grid; gap: 1.5rem; }
.developer .body-lg { margin-top: 0; }
.dev-projects { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.dev-projects li { border: 1px solid var(--line); background: #fff; padding: .35rem .8rem; font-size: .82rem; color: var(--forest); }
@media (min-width: 1024px) { .developer-grid { grid-template-columns: 1fr 2fr; gap: 4rem; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--forest); line-height: 1.35; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .7rem; height: .7rem; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); max-width: 65ch; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 5rem; } }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--forest); color: #e9efe9; padding: var(--section-y) 0; }
.final-grid { display: grid; gap: 3rem; align-items: center; }
.final-logo { width: 220px; margin-bottom: 2rem; }
.final-title { color: #fff; font-style: italic; font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); }
.final-cta .body-lg { color: rgba(233, 239, 233, .78); }
.final-contact { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.final-contact a { color: var(--gold-light); font-weight: 600; }
.final-form { background: var(--forest-deep); padding: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 1024px) { .final-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 1.1rem; }
.field label:not(.consent) { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.lead-form--dark .field label:not(.consent) { color: var(--gold-light); }
.lead-form input:not([type="checkbox"]), .lead-form select {
  width: 100%; min-height: 3rem; padding: .7rem 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit; font: inherit; font-size: 1rem; outline: none;
  border-bottom-color: rgba(31, 42, 36, .35);
}
.lead-form--dark input:not([type="checkbox"]), .lead-form--dark select { border-bottom-color: rgba(255, 255, 255, .35); color: #fff; }
.lead-form--dark select option { color: var(--ink); }
.lead-form input::placeholder { color: currentColor; opacity: .45; }
.lead-form input:focus, .lead-form select:focus { border-bottom-color: var(--gold); }
.lead-form [aria-invalid="true"] { border-bottom-color: var(--danger) !important; }
.lead-form--dark [aria-invalid="true"] { border-bottom-color: #f3a99f !important; }
.phone-input { display: flex; align-items: center; gap: .6rem; }
.phone-input span { font-size: 1rem; opacity: .7; }
.field-error { min-height: 0; font-size: .78rem; color: var(--danger); margin-top: .25rem; }
.field-error:empty { display: none; }
.lead-form--dark .field-error { color: #f3a99f; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .74rem; line-height: 1.55; opacity: .85; cursor: pointer; }
.consent input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--gold); }
.lead-form--dark .consent { color: rgba(255, 255, 255, .8); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .8rem 1rem; font-size: .88rem; background: #fbeceb; color: var(--danger); border-left: 3px solid var(--danger); }
.lead-form--dark .form-status { background: rgba(243, 169, 159, .12); color: #f7c6bf; border-left-color: #f3a99f; }
.btn-submit { width: 100%; margin-top: .25rem; }
.spinner { display: none; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Inline bar variant (hero) */
@media (min-width: 1024px) {
  .lead-form--bar { grid-template-columns: 1fr 1fr 1fr 1.5fr auto; gap: 1.25rem; align-items: center; }
  .lead-form--bar .field label:not(.consent) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lead-form--bar .consent { font-size: .66rem; line-height: 1.4; }
  .lead-form--bar .form-status { grid-column: 1 / -1; grid-row: 2; }
  .lead-form--bar .btn-submit { width: auto; margin: 0; padding-left: 2.25rem; padding-right: 2.25rem; }
  .lead-form--bar .field { position: relative; }
  .lead-form--bar .field-error { position: absolute; top: 100%; left: 0; white-space: nowrap; font-size: .7rem; }
}

/* ---------- Disclaimer & footer ---------- */
.disclaimer { background: var(--ivory); padding: 3rem 0; border-top: 1px solid var(--line); }
.disclaimer-title { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.disclaimer-lead { font-size: .85rem !important; color: var(--ink) !important; margin-bottom: 1rem; text-align: left !important; }
.disclaimer p { font-size: .74rem; line-height: 1.75; color: var(--muted); text-align: justify; hyphens: auto; }
.site-footer { background: var(--forest-deep); color: rgba(233, 239, 233, .75); padding: 4rem 0 calc(2rem + 64px); font-size: .9rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { width: 200px; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); margin-top: 1rem; font-size: 1.1rem; }
.footer-heading { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p + p { margin-top: .4rem; }
.footer-rera { color: #fff; word-break: break-word; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.75rem; font-size: .78rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-bottom { flex-direction: row; justify-content: space-between; } }
@media (min-width: 1024px) { .site-footer { padding-bottom: 2rem; } }

/* ---------- Side tabs (desktop) & mobile bar ---------- */
.side-tabs { display: none; }
@media (min-width: 1024px) {
  .side-tabs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 2px; }
  .side-tabs button { writing-mode: vertical-rl; transform: rotate(180deg); padding: 1.1rem .7rem; border: 0; background: var(--forest); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transition: background-color .25s, padding .25s; }
  .side-tabs button:nth-child(2) { background: var(--gold); }
  .side-tabs button:hover { padding-left: 1rem; }
}
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--ivory); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .35); }
.mobile-bar a, .mobile-bar button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 56px; border: 0; background: transparent; color: var(--forest); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid var(--line); }
.mobile-bar button { background: var(--forest); color: #fff; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Modal & lightbox (native <dialog>) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(16, 41, 29, .72); backdrop-filter: blur(3px); }
.modal { width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); background: var(--ivory); color: var(--ink); overflow-y: auto; }
.modal[open] { animation: rise .45s var(--ease); }
.modal[open]::backdrop { animation: fade-bg .35s ease; }
.modal-panel { position: relative; padding: clamp(1.75rem, 4vw, 2.75rem); }
.modal-close, .lightbox-close { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; }
.modal-close svg, .lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.modal-title { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); padding-right: 2.5rem; }
.modal-desc { margin: .5rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
.lightbox { width: 100vw; height: 100dvh; background: rgba(16, 41, 29, .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 4rem 0 2rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; object-fit: contain; background: #fff; }
.lightbox figcaption { margin-top: 1rem; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-light); text-align: center; padding: 0 1rem; }
.lightbox-close { color: #fff; }
.lightbox-nav { width: 52px; height: 52px; margin: 0 .5rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.lightbox-nav[hidden] { visibility: hidden; display: grid; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-bg { from { opacity: 0; } to { opacity: 1; } }
body.has-dialog { overflow: hidden; }

/* ---------- Consent banner ---------- */
.consent-banner { position: fixed; left: .75rem; right: .75rem; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 60; max-width: 420px; background: #fff; border: 1px solid var(--line); padding: 1.1rem 1.25rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); font-size: .85rem; color: var(--muted); }
.consent-banner div { display: flex; gap: .5rem; margin-top: .85rem; }
.consent-banner .btn { flex: 1; }
@media (min-width: 1024px) { .consent-banner { left: 1.5rem; bottom: 1.5rem; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Simple pages (thank-you, legal) ---------- */
.simple-page { padding: clamp(3.5rem, 8vw, 6rem) 0; min-height: 60vh; }
.simple-page .container { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--forest); margin-top: 2.5rem; }
.prose p, .prose ul { margin-top: 1rem; color: var(--muted); line-height: 1.8; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--forest); margin-bottom: 1.75rem; }
.thanks-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

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

/* Phone field: one underline across the +91 prefix and the input */
.phone-input { border-bottom: 1px solid rgba(31, 42, 36, .35); }
.lead-form--dark .phone-input { border-bottom-color: rgba(255, 255, 255, .35); }
.phone-input:focus-within { border-bottom-color: var(--gold); }
.lead-form .phone-input input { border-bottom: 0 !important; }
.phone-input:has([aria-invalid="true"]) { border-bottom-color: var(--danger); }
.lead-form--dark .phone-input:has([aria-invalid="true"]) { border-bottom-color: #f3a99f; }

/* Official plans: white drawing on a clean card */
.plan-image { background: #fff; }
.plan-image img { padding: .5rem; }
.plan-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; text-align: center; min-height: 340px; padding: 2.5rem 1.5rem; border: 1px dashed var(--gold-light); background: var(--sage); }
.plan-locked svg { width: 40px; height: 40px; fill: none; stroke: var(--forest); stroke-width: 1.5; }
.plan-locked-title { font-family: var(--serif); font-size: 1.4rem; color: var(--forest); line-height: 1.3; }
.plan-locked p:not(.plan-locked-title) { color: var(--muted); max-width: 36ch; }

/* Floor plan section lead form */
.plan-form { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.plan-form-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); color: var(--forest); line-height: 1.25; font-weight: 600; }
.plan-form-copy p { color: var(--muted); margin-top: .8rem; max-width: 46ch; }
@media (min-width: 1024px) { .plan-form { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }

/* Legal pages */
.legal-contact { margin-top: 1rem; padding: 1.25rem 1.5rem; background: var(--sage); border-left: 3px solid var(--gold); }
.legal-contact p { margin-top: .35rem !important; color: var(--ink) !important; }
.prose code { font-size: .9em; background: var(--sage); padding: .05rem .3rem; }

/* Header: keep every item on one line with the wider Nunito Sans */
.main-nav a, .header-phone, .header-actions .btn, .btn-sm { white-space: nowrap; }
.main-nav ul { gap: clamp(.85rem, 1.3vw, 1.5rem); }
.main-nav a { font-size: .74rem; letter-spacing: .1em; }
@media (min-width: 1400px) { .header-phone { display: none; } }
@media (min-width: 1560px) { .header-phone { display: inline-flex; } }

/* Extra plan drawings */
.plan-drawings { margin-top: 2.5rem; }
.plan-drawings-title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.plan-drawings ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.plan-drawings button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; text-align: left; cursor: zoom-in; overflow: hidden; }
.plan-drawings img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.plan-drawings span { display: block; padding: .7rem .9rem; font-size: .85rem; color: var(--forest); border-top: 1px solid var(--line); }

/* Master plan */
.master-plan { background: var(--sage); }
.master-image { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; overflow: hidden; }
.master-image img { width: 100%; }
.master-facts { border-top: 0; margin-top: 2rem; padding-top: 0; }
.legend { margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); }
.legend-title { font-family: var(--serif); font-size: 1.35rem; color: var(--forest); font-weight: 600; margin-bottom: 1rem; }
.legend ol { margin: 0; padding-left: 1.6rem; columns: 1; column-gap: 2.5rem; font-size: .95rem; color: var(--ink); }
.legend li { break-inside: avoid; padding: .2rem 0; }
.legend li::marker { color: var(--gold); font-weight: 700; }
@media (min-width: 640px) { .legend ol { columns: 2; } }
@media (min-width: 1024px) { .legend ol { columns: 4; } }
.center-cta { flex-wrap: wrap; gap: .75rem; }

/* ── Gated plans: blurred preview until the visitor has enquired ── */
.gated { position: relative; overflow: hidden; }
.gated img { filter: blur(7px) saturate(.85); transform: scale(1.04); transition: filter .6s var(--ease), transform .6s var(--ease); }
.gated .zoom-hint { display: none; }
.gate-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem; text-align: center;
  background: rgba(251, 250, 246, .45);
}
.gate-overlay svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--forest); fill: none; stroke: #fff; stroke-width: 1.6; box-shadow: 0 10px 30px -10px rgba(16, 41, 29, .6); }
.gate-label { display: inline-block; padding: .7rem 1.3rem; background: var(--forest); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; box-shadow: 0 10px 30px -12px rgba(16, 41, 29, .7); transition: background-color .25s; }
.gate-sub { font-size: .8rem; font-weight: 600; color: var(--forest); background: rgba(255, 255, 255, .85); padding: .2rem .6rem; }
.gated:hover .gate-label, .gated:focus-visible .gate-label { background: var(--gold); }
.gate-overlay--sm svg { width: 36px; height: 36px; padding: 8px; }
.gate-overlay--sm .gate-label { padding: .45rem .8rem; font-size: .68rem; }
.gated { cursor: pointer; }
/* Unlocked (set on <html> after a successful enquiry) */
.plans-unlocked .gated { cursor: zoom-in; }
.plans-unlocked .gated img { filter: none; transform: none; }
.plans-unlocked .gate-overlay { display: none; }
.plans-unlocked .gated .zoom-hint { display: inline-flex; }

/* Thank-you page: the requested plans */
.ty-plans { margin-top: 3rem; display: grid; gap: 1.5rem; }
.ty-plans figure { background: #fff; border: 1px solid var(--line); }
.ty-plans img { width: 100%; }
.ty-plans figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; color: var(--forest); }
.ty-plans figcaption a { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* Portrait drawing (4 BHK): keep it a sensible height beside the details */
.plan-image--portrait img { max-height: 620px; width: auto; margin: 0 auto; }
.plan-note { margin-top: .5rem; }

/* ═════════ CRO pass: search-matched hero, mobile-first lead capture ═════════ */
.hero-location { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.hero-title { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.7rem) !important; font-weight: 600 !important; margin-top: .35rem !important; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--forest); margin-top: .6rem; line-height: 1.35; }
.hero-tagline { font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: .35rem; font-size: 1.02rem; }
.hero-usps { display: grid; gap: .45rem; margin-top: 1.1rem; }
.hero-usps li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.hero-usps li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.hero-boxes { margin-top: 1.25rem !important; }
.hero-box dd { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem) !important; }
.hero-ctas { margin-top: 1.25rem !important; }
.hero-rera { margin-top: 1rem !important; }
.hero-badge { position: absolute; left: .75rem; top: .75rem; padding: .35rem .7rem; background: rgba(24, 58, 42, .92); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; }

/* Mobile: compact banner image first, then headline, then the form card */
@media (max-width: 1023px) {
  .hero-media { aspect-ratio: 16 / 9; }
  .hero-copy { padding: 1.4rem var(--gutter) 1.25rem; }
  .hero-usps li:nth-child(n+4) { display: none; }       /* keep the first screen short */
  .hero-boxes { display: none !important; }              /* price/sizes repeat in the form card + plans */
  .hero-ctas { display: none !important; }               /* the form card below is the CTA */
  .hero-bar { display: block !important; background: var(--forest); color: #fff; padding: 1.25rem 0 1.5rem; }
  .hero-bar .container { display: block; }
  .hero-bar-title { font-family: var(--serif); font-size: 1.35rem; color: #fff; font-style: normal; }
  .hero-bar-sub { font-size: .82rem; color: rgba(255, 255, 255, .75); margin: .2rem 0 .9rem; }
  .hero-bar .lead-form { gap: .75rem; }
  .hero-bar .field label:not(.consent) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-bar .lead-form input:not([type="checkbox"]) { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25) !important; padding: .75rem .9rem; }
  .hero-bar .phone-input { border-bottom: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); padding-left: .9rem; }
  .hero-bar .phone-input input { border: 0 !important; background: transparent !important; padding-left: 0 !important; }
}
/* Desktop bar: headline | name | mobile | email | button, consent note underneath */
@media (min-width: 1024px) {
  .hero-bar .container { grid-template-columns: 250px 1fr !important; }
  .hero-bar-title { font-size: 1.25rem !important; line-height: 1.25; white-space: normal !important; }
  .hero-bar-sub { font-size: .75rem; color: rgba(255, 255, 255, .7); margin-top: .25rem; }
  .lead-form--bar { grid-template-columns: 1fr 1fr 1fr auto !important; row-gap: .5rem !important; }
  .lead-form--bar .consent-note { grid-column: 1 / -1; margin-top: 0 !important; }
  .hero-grid { height: calc(100svh - var(--header-h) - 140px) !important; min-height: 560px !important; }
}

.optional { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .75; }
.consent-note { font-size: .7rem; line-height: 1.5; color: var(--muted); margin-top: .1rem; }
.consent-note a { color: inherit; }
.lead-form--dark .consent-note { color: rgba(255, 255, 255, .62); }

/* Modal trust line */
.modal-trust { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .6rem; font-size: .8rem; color: var(--forest); font-weight: 600; }
.modal-trust li { position: relative; padding-left: 1.05rem; }
.modal-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.modal-desc { margin-top: .6rem !important; }

/* Walkthrough film: lightweight preview until clicked */
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--forest-deep); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .8s var(--ease); }
.video-facade:hover img { opacity: .95; transform: scale(1.02); }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 15px 40px -10px rgba(0, 0, 0, .5); }
.play-btn svg { width: 30px; height: 30px; fill: var(--forest); margin-left: 4px; }
.play-label { position: absolute; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); white-space: nowrap; }
.ty-steps { margin: 1.75rem 0 0; padding-left: 1.25rem; display: grid; gap: .6rem; color: var(--ink); max-width: 60ch; }
.ty-steps li::marker { color: var(--gold); font-weight: 700; }

/* Mobile first screen: get the form's first field above the fold */
@media (max-width: 1023px) {
  .hero-media { aspect-ratio: 2 / 1; }
  .hero-media img { object-position: center 70%; }
  .hero-tagline { display: none; }
  .hero-copy { padding: 1.1rem var(--gutter) 1rem; }
  .hero-title { font-size: 2rem !important; }
  .hero-sub { font-size: 1.08rem; margin-top: .35rem; }
  .hero-usps { margin-top: .75rem; gap: .3rem; }
  .hero-usps li { font-size: .9rem; }
  .hero-rera { font-size: .66rem !important; margin-top: .6rem !important; }
  .hero-bar { padding-top: 1rem; }
  .hero-bar-sub { margin-bottom: .7rem; }
}

/* Desktop hero: let the content set the height; keep it compact so the form bar is close to the fold */
@media (min-width: 1024px) {
  .hero-grid { height: auto !important; min-height: 0 !important; max-height: none !important; }
  .hero-copy { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
  .hero-title { font-size: clamp(2.4rem, 1.4rem + 2.2vw, 3.3rem) !important; }
  .hero-usps li:nth-child(4) { display: none; }     /* RERA is already on the badge and the line below */
  .hero-ctas { flex-wrap: nowrap !important; }
  .hero-ctas .btn { flex: 0 1 auto !important; padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-media { min-height: 100%; }
  .hero-bar { position: relative; z-index: 1; }
}
@media (min-width: 1024px) {
  .hero-media { position: relative; min-height: 0 !important; }
  .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
}

/* ═════════ Plans: very light blur + lead form placed on the plan itself ═════════ */
.gated img { filter: blur(2.5px) saturate(.95) !important; transform: scale(1.01) !important; }
.plans-unlocked .gated img { filter: none !important; transform: none !important; }
.gate-wrap { position: relative; }
.gate-form {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; pointer-events: none;              /* clicks outside the card still reach the plan */
  background: linear-gradient(rgba(251, 250, 246, .15), rgba(251, 250, 246, .35));
}
.gate-card {
  pointer-events: auto;
  width: min(100%, 330px);
  padding: 1.1rem 1.15rem 1rem;
  background: rgba(255, 255, 255, .96);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 50px -18px rgba(16, 41, 29, .55);
}
.gate-title { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--forest); line-height: 1.3; margin-bottom: .75rem; }
.gate-title svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--forest); fill: none; stroke: #fff; stroke-width: 1.8; }
.lead-form--compact { gap: .55rem; }
.lead-form--compact .field label:not(.consent) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-form--compact input:not([type="checkbox"]) { min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid var(--line) !important; background: #fff; }
.lead-form--compact .phone-input { border: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: .75rem; background: #fff; }
.lead-form--compact .phone-input input { border: 0 !important; padding-left: 0; }
.lead-form--compact .btn-submit { min-height: 2.75rem; margin-top: .1rem; }
.lead-form--compact .consent-note { font-size: .6rem; line-height: 1.4; }
.lead-form--compact .field-error { font-size: .72rem; }
.plans-unlocked .gate-form { display: none; }
.gated .gate-overlay { display: none; }               /* old overlay label not needed any more */

/* Locked plans get a fixed, roomy frame so the form card always fits (also on small phones) */
html:not(.plans-unlocked) .gate-wrap { min-height: 380px; }
html:not(.plans-unlocked) .gate-wrap .gated { position: absolute; inset: 0; height: 100%; }
html:not(.plans-unlocked) .gate-wrap .gated img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
@media (min-width: 1024px) {
  html:not(.plans-unlocked) .gate-wrap { min-height: 420px; }
  html:not(.plans-unlocked) .gate-wrap--master { min-height: 560px; }
}

/* ═════════ Mobile: short "Brochure" tab on the right edge ═════════ */
@media (max-width: 1023px) {
  .side-tabs { display: flex !important; position: fixed; right: 0; top: 46%; transform: translateY(-50%); z-index: 40; flex-direction: column; }
  .side-tabs button:first-child { display: none; }            /* "Get price" is already in the bottom bar */
  .side-tabs button {
    writing-mode: vertical-rl; transform: rotate(180deg);
    padding: .75rem .45rem; border: 0;
    background: var(--gold); color: #fff;
    font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: -4px 6px 16px -8px rgba(0, 0, 0, .45);
  }
}
@media (max-width: 1023px) {
  html:not(.plans-unlocked) .gate-wrap { min-height: 500px; }
  .gate-form { align-items: flex-end; padding-bottom: .9rem; background: linear-gradient(rgba(251, 250, 246, 0) 30%, rgba(251, 250, 246, .55)); }
}
/* Floor plans: show the whole plan (lightly blurred) behind the form, not a crop */
html:not(.plans-unlocked) .gate-wrap .plan-image img { object-fit: contain; background: #fff; padding: .75rem; }
/* Mobile: blurred plan stays visible on top, form card overlaps its lower edge */
@media (max-width: 1023px) {
  html:not(.plans-unlocked) .gate-wrap { min-height: 0 !important; }
  html:not(.plans-unlocked) .gate-wrap .gated { position: relative !important; inset: auto; height: auto !important; }
  html:not(.plans-unlocked) .gate-wrap .gated img { height: auto !important; object-fit: contain; }
  html:not(.plans-unlocked) .gate-wrap--master .gated img { aspect-ratio: auto; }
  .gate-form { position: relative !important; inset: auto; margin-top: -3.25rem; padding: 0 .75rem; background: none !important; display: flex; justify-content: center; }
  .gate-card { width: 100%; max-width: 420px; }
  .plan-image--portrait img { max-height: 420px; }
}
@media (max-width: 1023px) { .gate-form { margin-top: -1.25rem; } }
