/* =========================================================================
   PRELUDE — Shared Design System
   Bangalore-first platform for upcoming premium & luxury residential projects
   -------------------------------------------------------------------------
   Editorial / cinematic / premium-developer aesthetic.
   Fonts: Fraunces (display serif) + Inter (body). Google Fonts only.
   No external image URLs — all imagery is .media-ph (CSS gradient + SVG).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Palette */
  --ink: #0E1726;
  --ink-2: #16223A;
  --cream: #F8F5EF;
  --surface: #FFFFFF;
  --surface-warm: #FCFAF6;
  --gold: #B08D57;
  --gold-2: #CBA96B;
  --emerald: #13443A;
  --text: #1C2433;
  --muted: #6E7787;
  --line: #E8E1D5;

  /* Derived / functional colours */
  --gold-soft: rgba(176, 141, 87, 0.12);
  --gold-ring: rgba(176, 141, 87, 0.55);
  --emerald-soft: rgba(19, 68, 58, 0.10);
  --ink-overlay: rgba(14, 23, 38, 0.62);
  --on-dark: #F5F1E8;
  --on-dark-muted: rgba(245, 241, 232, 0.66);

  /* Stage badge tints */
  --stage-prelaunch-bg: #EFE8DC;
  --stage-prelaunch-fg: #7A5C2E;
  --stage-newlaunch-bg: #E7EFEA;
  --stage-newlaunch-fg: #1F5C4D;
  --stage-uc-bg: #E6EAF1;
  --stage-uc-fg: #2C3F5E;
  --rera-bg: #E4EFE6;
  --rera-fg: #2C6B43;

  /* Type scale (modular, fluid where it earns it) */
  --fs-eyebrow: 0.78rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3125rem;
  --fs-h4: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 1.4vw, 2.1rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.6rem, 1.9rem + 3.6vw, 4.4rem);
  --fs-display: clamp(3rem, 2rem + 5vw, 5.6rem);

  /* Fonts */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Line heights */
  --lh-tight: 1.06;
  --lh-snug: 1.22;
  --lh-body: 1.65;

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows — soft, layered, premium */
  --shadow-xs: 0 1px 2px rgba(14, 23, 38, 0.04);
  --shadow-sm: 0 2px 6px rgba(14, 23, 38, 0.05), 0 1px 2px rgba(14, 23, 38, 0.04);
  --shadow-md: 0 10px 24px -12px rgba(14, 23, 38, 0.16), 0 2px 8px rgba(14, 23, 38, 0.05);
  --shadow-lg: 0 24px 60px -24px rgba(14, 23, 38, 0.28), 0 6px 16px rgba(14, 23, 38, 0.07);
  --shadow-gold: 0 14px 34px -16px rgba(176, 141, 87, 0.5);

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --header-h: 76px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* z-index */
  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-tray: 90;
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }

ul, ol { list-style: none; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }

hr { border: none; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

::selection { background: var(--gold-2); color: var(--ink); }

/* Visible gold focus ring */
:where(a, button, input, select, textarea, [tabindex], [data-chip], summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
.h-display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 470;
  line-height: var(--lh-snug);
  color: var(--ink);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 460; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

.h-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: 440;
  letter-spacing: -0.02em;
}

p { margin: 0; }
p + p { margin-top: var(--space-4); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow--bare::before { display: none; }
.eyebrow--center::before { display: none; }

.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.serif { font-family: var(--font-display); }

/* Big serif numbers (stats, prices in some displays) */
.numeral { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }

/* -------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(48px, 7vw, 104px);
}
.section--tight { padding-block: clamp(32px, 4.5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--cream { background: var(--cream); }
.section--warm { background: var(--surface-warm); }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink .lede, .section--ink .text-muted { color: var(--on-dark-muted); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-dark); }

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Listing layout: sidebar + results */
.layout-with-rail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.layout-with-rail--right { grid-template-columns: 1fr 340px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: clamp(24px, 3vw, 44px);
}
.section-head__text { max-width: 62ch; }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head__title { font-size: var(--fs-h2); }
.section-head__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--gold);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.section-head__link:hover { border-bottom-color: var(--gold); }
.section-head__link::after { content: "\2192"; transition: transform var(--t-base); }
.section-head__link:hover::after { transform: translateX(3px); }
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .eyebrow::before { display: none; }

/* Spacing helpers */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.flow > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.cluster--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.text-center { text-align: center; }
.full-bleed { width: 100%; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-btn);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-2), var(--gold));
  --btn-fg: #2A2012;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 18px 42px -16px rgba(176, 141, 87, 0.62); }

.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--on-dark); }
.btn--dark:hover { --btn-bg: var(--ink-2); }

.btn--light {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { --btn-bd: var(--gold); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bd: var(--gold); --btn-fg: var(--gold); }
.section--ink .btn--ghost, .btn--ghost.on-dark {
  --btn-fg: var(--on-dark);
  --btn-bd: rgba(245, 241, 232, 0.32);
}
.section--ink .btn--ghost:hover { --btn-bd: var(--gold-2); --btn-fg: var(--gold-2); }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 9px 15px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 30px; font-size: var(--fs-base); }

.btn:disabled, .btn.is-disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* "WhatsApp (soon)" style disabled CTA with a soon tag */
.btn--soon {
  --btn-bg: var(--surface-warm);
  --btn-fg: var(--muted);
  --btn-bd: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}
.btn--soon .soon-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------------------
   6. BADGES
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  border-radius: var(--radius-pill);
  background: var(--surface-warm);
  color: var(--text);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge svg { width: 0.9em; height: 0.9em; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge--rera {
  background: var(--rera-bg);
  color: var(--rera-fg);
  border-color: rgba(44, 107, 67, 0.22);
}
.badge--stage-prelaunch {
  background: var(--stage-prelaunch-bg);
  color: var(--stage-prelaunch-fg);
  border-color: rgba(122, 92, 46, 0.2);
}
.badge--stage-newlaunch {
  background: var(--stage-newlaunch-bg);
  color: var(--stage-newlaunch-fg);
  border-color: rgba(31, 92, 77, 0.2);
}
.badge--stage-underconstruction {
  background: var(--stage-uc-bg);
  color: var(--stage-uc-fg);
  border-color: rgba(44, 63, 94, 0.2);
}
.badge--price {
  background: var(--ink);
  color: var(--on-dark);
  border-color: transparent;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   7. MEDIA PLACEHOLDER (.media-ph)
   No external images — gradient + faint SVG architectural texture + label.
   ------------------------------------------------------------------------- */
.media-ph {
  --seed: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 48%, var(--emerald) 130%);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--seed);
  color: var(--on-dark);
  isolation: isolate;
}
/* Faint inline-SVG architectural texture (thin tower/skyline lines) */
.media-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.10'%3E%3Cpath d='M0 120h160M0 90h160M0 60h160'/%3E%3Crect x='18' y='44' width='30' height='100'/%3E%3Crect x='24' y='54' width='18' height='80'/%3E%3Crect x='62' y='28' width='34' height='116'/%3E%3Crect x='70' y='40' width='18' height='96'/%3E%3Crect x='112' y='58' width='30' height='86'/%3E%3Cpath d='M62 28l17-14 17 14'/%3E%3Cline x1='33' y1='62' x2='33' y2='134'/%3E%3Cline x1='79' y1='48' x2='79' y2='136'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-position: center;
  opacity: 0.9;
  mix-blend-mode: screen;
  z-index: 0;
}
/* Soft vignette so labels/buttons read */
.media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,23,38,0) 38%, rgba(14,23,38,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Gradient seeds so adjacent media differ */
.media-ph.--g1 { --seed: linear-gradient(145deg, #1B2C49 0%, #0E1726 55%, #13443A 130%); }
.media-ph.--g2 { --seed: linear-gradient(155deg, #16223A 0%, #0E1726 50%, #3A2C18 135%); }
.media-ph.--g3 { --seed: linear-gradient(140deg, #13443A 0%, #0E1726 60%, #16223A 120%); }
.media-ph.--g4 { --seed: linear-gradient(160deg, #243650 0%, #16223A 52%, #0E1726 120%); }
.media-ph.--g5 { --seed: linear-gradient(135deg, #2A2012 0%, #16223A 58%, #0E1726 125%); }

/* Aspect variants */
.media-ph.--wide { aspect-ratio: 21 / 9; }
.media-ph.--portrait { aspect-ratio: 3 / 4; }
.media-ph.--tall { aspect-ratio: 4 / 5; }
.media-ph.--square { aspect-ratio: 1 / 1; }
.media-ph.--hero { aspect-ratio: auto; height: 100%; min-height: 320px; border-radius: 0; }

/* Caption label */
.media-ph__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  background: rgba(14, 23, 38, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 241, 232, 0.16);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.media-ph__label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* Optional top-right slot (e.g. compare button or stage badge) */
.media-ph__tr {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.media-ph__tl {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 4;
}

/* Glassy play button for --video */
.media-ph.--video .media-ph__play,
.media-ph__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.media-ph__play::before {
  content: "";
  width: clamp(54px, 6vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(248, 245, 239, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(245, 241, 232, 0.55);
  box-shadow: 0 8px 26px -10px rgba(0,0,0,0.6);
  transition: transform var(--t-base), background var(--t-base);
}
.media-ph__play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--on-dark);
  transform: translateX(3px);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.media-ph__play:hover::before { transform: scale(1.06); background: rgba(203, 169, 107, 0.28); }

/* "Add to compare" floating button living on media */
.media-ph__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  background: rgba(14, 23, 38, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 241, 232, 0.22);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--t-base), color var(--t-base);
}
.media-ph__compare .ico-plus { display: inline-block; transition: transform var(--t-base); }
.media-ph__compare:hover { background: var(--gold); color: #2A2012; border-color: transparent; }
.media-ph__compare.is-selected {
  background: var(--gold);
  color: #2A2012;
  border-color: transparent;
}
.media-ph__compare.is-selected .ico-plus { transform: rotate(45deg); }

/* -------------------------------------------------------------------------
   8. SITE HEADER
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}
/* Solid after scroll (also default when no hero sits beneath) */
.site-header.is-scrolled {
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* When transparent over a dark hero, text is light */
.site-header[data-over-hero="true"]:not(.is-scrolled) {
  color: var(--on-dark);
}
.site-header[data-over-hero="true"]:not(.is-scrolled) .brand,
.site-header[data-over-hero="true"]:not(.is-scrolled) .nav__link,
.site-header[data-over-hero="true"]:not(.is-scrolled) .nav__toggle {
  color: var(--on-dark);
}
.site-header[data-over-hero="true"]:not(.is-scrolled) .nav__link::after { background: var(--gold-2); }

/* Brand wordmark */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand__dot { color: var(--gold); margin-left: 1px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Explore dropdown */
.nav__item--has-menu { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.nav__dropdown-toggle .caret {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--t-base);
}
.nav__item--has-menu.is-open .nav__dropdown-toggle .caret { transform: rotate(225deg) translateY(-1px); }
.nav__item--has-menu.is-open .nav__dropdown-toggle { color: var(--gold); }

.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: 5;
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav__item--has-menu.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__menu-link:hover { background: var(--gold-soft); color: var(--gold); }
.nav__menu-link .label-strong { font-weight: 600; }
.nav__menu-link small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }

.nav__cta { margin-left: var(--space-2); }

/* Hamburger toggle (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* -------------------------------------------------------------------------
   9. MOBILE NAV DRAWER
   ------------------------------------------------------------------------- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }
.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--ink-overlay);
  opacity: 0;
  transition: opacity var(--t-base);
}
.nav-drawer.is-open .nav-drawer__backdrop { opacity: 1; }
.nav-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateX(0); }
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.nav-drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}
.nav-drawer__body { padding: var(--space-4) var(--space-5) var(--space-6); flex: 1; }
.nav-drawer__link {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-drawer__link:hover { color: var(--gold); }
.nav-drawer__group-label {
  display: block;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.nav-drawer__sublink {
  display: block;
  padding: 9px 4px;
  font-size: var(--fs-sm);
  color: var(--text);
}
.nav-drawer__sublink:hover { color: var(--gold); }
.nav-drawer__foot { padding: var(--space-5); border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   10. HERO + SEARCHBAR
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(48px, 8vw, 104px);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg .media-ph { height: 100%; border-radius: 0; }
.hero__bg .media-ph::after {
  background: linear-gradient(115deg, rgba(14,23,38,0.86) 0%, rgba(14,23,38,0.62) 46%, rgba(19,68,58,0.4) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1, .hero .h-display { color: var(--on-dark); }
.hero .lede { color: var(--on-dark-muted); }
.hero .eyebrow { color: var(--gold-2); }

/* Searchbar — hero requirement quick-bar */
.searchbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  max-width: 940px;
}
.searchbar__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: text;
  position: relative;
  transition: background var(--t-fast);
}
.searchbar__field + .searchbar__field::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  height: 72%;
  width: 1px;
  background: var(--line);
}
.searchbar__field:hover { background: var(--surface-warm); }
.searchbar__field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.searchbar__field select,
.searchbar__field input {
  border: none;
  background: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  padding: 2px 0;
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.searchbar__field select:focus,
.searchbar__field input:focus { outline: none; }
.searchbar__submit { align-self: stretch; }
.searchbar__submit .btn { height: 100%; padding-inline: clamp(18px, 2vw, 30px); }

/* -------------------------------------------------------------------------
   11. CHIPS
   ------------------------------------------------------------------------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--gold-2); color: var(--gold); }
.chip .chip__check {
  width: 0; opacity: 0; overflow: hidden;
  transition: width var(--t-base), opacity var(--t-base);
}
.chip.is-selected {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.chip.is-selected .chip__check { width: 13px; opacity: 1; }
.chip--lg { padding: 11px 20px; font-size: var(--fs-sm); }
.chip--ghost { background: transparent; }
/* Link-chips (filter pills used as anchors) */
a.chip { text-decoration: none; }

/* -------------------------------------------------------------------------
   12. PROJECT CARD
   ------------------------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-2);
}
.project-card__media {
  position: relative;
}
.project-card__media .media-ph { border-radius: 0; aspect-ratio: 16 / 11; }
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  flex: 1;
}
.project-card__builder {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 470;
}
.project-card__title a:hover { color: var(--gold); }
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.project-card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.project-card__price {
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
}
.project-card__price .from { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; }
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
}
.project-card__footer .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.project-card__footer .actions { display: flex; gap: 8px; }

/* Compact list variant (search results row) */
.project-card--row {
  flex-direction: row;
}
.project-card--row .project-card__media { width: 38%; flex: none; }
.project-card--row .project-card__media .media-ph { height: 100%; }
.project-card--row .project-card__body { padding: var(--space-5) var(--space-6); }

/* -------------------------------------------------------------------------
   13. FILTERS (sidebar) + DRAWER
   ------------------------------------------------------------------------- */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.filters__head h3 { font-size: var(--fs-md); }
.filters__clear { font-size: var(--fs-xs); font-weight: 600; color: var(--gold); }
.filter-group { padding-block: var(--space-4); border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group__label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.filter-group .chip-group { gap: 7px; }

/* Mobile filters drawer */
.filters-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.filters-drawer.is-open { visibility: visible; pointer-events: auto; }
.filters-drawer__backdrop {
  position: absolute; inset: 0;
  background: var(--ink-overlay);
  opacity: 0;
  transition: opacity var(--t-base);
}
.filters-drawer.is-open .filters-drawer__backdrop { opacity: 1; }
.filters-drawer__panel {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  max-height: 86vh;
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.filters-drawer.is-open .filters-drawer__panel { transform: translateY(0); }
.filters-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.filters-drawer__body { padding: var(--space-5); overflow-y: auto; flex: 1; }
.filters-drawer__foot {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--space-3);
  background: var(--surface);
}

/* -------------------------------------------------------------------------
   14. SORTBAR
   ------------------------------------------------------------------------- */
.sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.sortbar__count {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.sortbar__count strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.sortbar__right { display: flex; align-items: center; gap: var(--space-3); }
.sortbar__filter-toggle { display: none; }

.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.select select {
  border: none; background: none; appearance: none; cursor: pointer; font-weight: 600;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236E7787' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.select select:focus { outline: none; }

/* -------------------------------------------------------------------------
   15. RAIL / LEAD CARD (sticky requirement capture)
   ------------------------------------------------------------------------- */
.rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.lead-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.lead-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}
.lead-card__eyebrow { margin-bottom: var(--space-2); }
.lead-card__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.lead-card__sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-5); }
.lead-card .field { margin-bottom: var(--space-3); }
.lead-card__actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.lead-card__secondary { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.lead-card__trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.lead-card__trust svg { width: 16px; height: 16px; color: var(--rera-fg); flex: none; }

/* Form primitives used inside lead-card / requirements / footer */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}
.field__hint { font-size: 0.78rem; color: var(--muted); }
.input, .textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236E7787' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.input:focus, .textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

/* -------------------------------------------------------------------------
   16. FACTS BAR
   ------------------------------------------------------------------------- */
.facts-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.facts-bar__cell {
  flex: 1 1 160px;
  padding: var(--space-5) var(--space-5);
  border-left: 1px solid var(--line);
}
.facts-bar__cell:first-child { border-left: none; }
.facts-bar__label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.facts-bar__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   17. BREADCRUMB / TRUST STRIP / STAT
   ------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: var(--space-5);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.trust-strip__item svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.trust-strip--logos .trust-strip__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-2);
  opacity: 0.7;
  font-weight: 500;
}

.stat { text-align: left; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 460;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section--ink .stat__num { color: var(--on-dark); }
.stat__num .unit { font-size: 0.5em; color: var(--gold); }
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   18. TABS
   ------------------------------------------------------------------------- */
.tabs__nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.tabs__tab {
  position: relative;
  padding: 12px 4px;
  margin-right: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t-fast);
}
.tabs__tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active { color: var(--ink); }
.tabs__tab.is-active::after { transform: scaleX(1); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fade-in var(--t-slow); }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   19. ACCORDION
   ------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 470;
  color: var(--ink);
}
.accordion__trigger:hover { color: var(--gold); }
.accordion__icon {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow), padding var(--t-slow);
}
.accordion__item.is-open .accordion__panel { max-height: 600px; padding-bottom: var(--space-5); }
.accordion__panel-inner { color: var(--muted); line-height: 1.6; max-width: 70ch; }

/* -------------------------------------------------------------------------
   20. COMPARE TABLE + TRAY
   ------------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
/* Sticky first column = row labels */
.compare-table th[scope="row"],
.compare-table .compare-table__rowlabel {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface-warm);
  border-left: none;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 160px;
}
.compare-table thead th {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
  vertical-align: bottom;
}
.compare-table thead th[scope="row"] { z-index: 3; }
.compare-table__project-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--ink);
  font-weight: 470;
}
.compare-table__project-builder { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.compare-table td.is-best {
  background: var(--gold-soft);
  font-weight: 600;
  color: var(--ink);
}
.compare-table td.is-best::after {
  content: "Best";
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
}
/* "Add project" empty slot column */
.compare-table__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 120px;
  color: var(--muted);
  text-align: center;
}
.compare-table__add .add-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

/* Compare tray — sticky bottom bar */
.compare-tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-tray);
  transform: translateY(110%);
  transition: transform var(--t-slow);
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 -10px 40px -16px rgba(14,23,38,0.5);
}
.compare-tray.is-active { transform: translateY(0); }
.compare-tray__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.compare-tray__info { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.compare-tray__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
}
.compare-tray__count strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold-2);
}
.compare-tray__dots { display: flex; gap: 6px; }
.compare-tray__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,232,0.4);
}
.compare-tray__dot.is-filled { background: var(--gold-2); border-color: var(--gold-2); }
.compare-tray__actions { display: flex; align-items: center; gap: var(--space-3); }
.compare-tray__clear { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.compare-tray__clear:hover { color: var(--on-dark); }

/* -------------------------------------------------------------------------
   21. STEPPER (requirements page)
   ------------------------------------------------------------------------- */
.stepper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stepper__head {
  padding: var(--space-6) clamp(24px, 4vw, 48px) 0;
}
.stepper__progress {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.stepper__progress-bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: var(--radius-pill);
  transition: right var(--t-slow);
}
.stepper__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.stepper__meta .step-of { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.stepper__body { padding: var(--space-6) clamp(24px, 4vw, 48px); }
.stepper__step { display: none; }
.stepper__step.is-active { display: block; animation: fade-in var(--t-slow); }
.stepper__step-title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.stepper__step-sub { color: var(--muted); margin-bottom: var(--space-6); max-width: 56ch; }
.stepper__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--surface-warm);
}
.stepper__match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.stepper__match strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
}
.stepper__nav-btns { display: flex; gap: var(--space-3); }
.field-error { display: none; color: #B23B3B; font-size: var(--fs-xs); margin-top: 4px; }
.field.has-error .input,
.field.has-error select { border-color: #B23B3B; box-shadow: 0 0 0 3px rgba(178,59,59,0.1); }
.field.has-error .field-error { display: block; }

/* -------------------------------------------------------------------------
   22. AMENITY GRID
   ------------------------------------------------------------------------- */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.amenity {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color var(--t-base), transform var(--t-base);
}
.amenity:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.amenity__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--emerald);
}
.amenity__icon svg { width: 22px; height: 22px; }
.amenity__label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }

/* -------------------------------------------------------------------------
   23. CTA BAND
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band__text { max-width: 52ch; }
.cta-band__text h2 { color: var(--on-dark); }
.cta-band__text .eyebrow { color: var(--gold-2); }
.cta-band__text p { color: var(--on-dark-muted); margin-top: var(--space-3); }
.cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
/* Decorative gold arc */
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(203,169,107,0.32), transparent 62%);
  z-index: 1;
}
.cta-band--gold {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 65%, #98763F 130%);
  color: #2A2012;
}
.cta-band--gold h2, .cta-band--gold .eyebrow { color: #2A2012; }
.cta-band--gold .eyebrow::before { background: #2A2012; }
.cta-band--gold p { color: rgba(42,32,18,0.74); }
.cta-band--gold::after { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.34), transparent 62%); }
.cta-band--emerald { background: linear-gradient(140deg, var(--emerald) 0%, #0C2E27 120%); }

/* -------------------------------------------------------------------------
   24. FOOTER
   ------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-top: clamp(48px, 6vw, 80px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(245,241,232,0.12);
}
.footer__brand .brand { color: var(--on-dark); font-size: 1.7rem; }
.footer__brand .brand__dot { color: var(--gold-2); }
.footer__tagline { margin-top: var(--space-3); font-size: var(--fs-sm); max-width: 32ch; color: var(--on-dark-muted); }
.footer__signup { margin-top: var(--space-5); max-width: 320px; }
.footer__signup-label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: block;
  margin-bottom: var(--space-3);
}
.footer__signup-form {
  display: flex;
  gap: 8px;
  background: rgba(245,241,232,0.06);
  border: 1px solid rgba(245,241,232,0.16);
  border-radius: var(--radius-btn);
  padding: 5px 5px 5px 14px;
}
.footer__signup-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--on-dark);
  font-size: var(--fs-sm);
}
.footer__signup-form input::placeholder { color: rgba(245,241,232,0.5); }
.footer__signup-form input:focus { outline: none; }
.footer__signup-note { margin-top: var(--space-3); font-size: 0.78rem; color: rgba(245,241,232,0.5); }
.footer__signup-note .soon-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); border: 1px solid rgba(203,169,107,0.4);
  padding: 1px 6px; border-radius: var(--radius-pill); margin-left: 4px;
}
.footer__col-title {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: var(--space-4);
}
.footer__links li { margin-bottom: var(--space-3); }
.footer__links a {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.footer__links a:hover { color: var(--gold-2); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-size: var(--fs-xs);
  color: rgba(245,241,232,0.5);
}
.footer__disclaimer {
  padding-block: var(--space-5);
  border-top: 1px solid rgba(245,241,232,0.12);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(245,241,232,0.46);
  max-width: 90ch;
}
.footer__legal-links { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__legal-links a:hover { color: var(--gold-2); }

/* -------------------------------------------------------------------------
   25. MODAL (video experience-film preview)
   ------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-5);
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14,23,38,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-base);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  background: var(--ink-2);
  border: 1px solid rgba(245,241,232,0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-base);
  color: var(--on-dark);
}
.modal.is-open .modal__dialog { transform: scale(1) translateY(0); opacity: 1; }
.modal__media .media-ph { border-radius: 0; aspect-ratio: 16/9; }
.modal__body { padding: var(--space-6); }
.modal__eyebrow { color: var(--gold-2); margin-bottom: var(--space-2); }
.modal__title { color: var(--on-dark); font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.modal__text { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(14,23,38,0.5);
  color: var(--on-dark);
  font-size: 1.4rem;
  line-height: 1;
  border: 1px solid rgba(245,241,232,0.2);
  transition: background var(--t-fast);
}
.modal__close:hover { background: var(--gold); color: #2A2012; }

/* -------------------------------------------------------------------------
   26. RESPONSIVE
   ------------------------------------------------------------------------- */

/* <= 1024 — header collapses to drawer; rail/filters become drawers */
@media (max-width: 1024px) {
  .nav__list, .nav__cta.nav__cta--desktop { display: none; }
  .nav__toggle { display: inline-flex; }

  .layout-with-rail,
  .layout-with-rail--right { grid-template-columns: 1fr; }

  /* sidebar filters hidden on tablet/mobile; use drawer toggle */
  .filters { display: none; }
  .sortbar__filter-toggle { display: inline-flex; }

  /* rail becomes a bottom sticky CTA strip */
  .rail {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    z-index: var(--z-tray);
    padding: var(--space-3) clamp(18px, 5vw, 40px);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px -16px rgba(14,23,38,0.3);
  }
  .rail .lead-card { display: none; }
  .rail .rail__mobile-cta { display: flex; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.rail__mobile-cta { display: none; align-items: center; gap: var(--space-3); }
.rail__mobile-cta .price-from { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.rail__mobile-cta .price-from small { display: block; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rail__mobile-cta .btn { margin-left: auto; }

/* <= 768 — grids collapse, searchbar stacks */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .searchbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .searchbar__field + .searchbar__field::before { display: none; }
  .searchbar__field { border: 1px solid var(--line); }
  .searchbar__submit { grid-column: 1 / -1; }
  .searchbar__submit .btn { width: 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .facts-bar__cell { flex-basis: 50%; border-top: 1px solid var(--line); }
  .facts-bar__cell:nth-child(-n+2) { border-top: none; }
  .facts-bar__cell:nth-child(odd) { border-left: none; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .project-card--row { flex-direction: column; }
  .project-card--row .project-card__media { width: 100%; }
  .project-card--row .project-card__media .media-ph { aspect-ratio: 16/11; }

  .tabs__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs__tab { white-space: nowrap; }

  .compare-tray__dots { display: none; }
}

/* <= 640 — tightest */
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section-head__link { align-self: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
}

/* >= 1240 — full container */
@media (min-width: 1240px) {
  .grid--4 { gap: 28px; }
}
