/* ==========================================================================
   Brigade Chennai Properties  ·  operated by TSS Global
   Design tokens mirror tssglobal.in (ivory #f7f4ee, ink #1a1814, gold #9a6f28,
   Cormorant Garamond + Figtree). Small gold/muted text is darkened a step so it
   keeps WCAG AA contrast on ivory.
   ========================================================================== */

/* ---- Fonts (self-hosted, OFL) ------------------------------------------------ */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("assets/fonts/figtree-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ------------------------------------------------------------------ */
:root {
  --bg: #f7f4ee;
  --bg-soft: #f2eee6;
  --surface: #fffdf9;
  --ink: #1a1814;
  --ink-2: #4a4540;
  --muted: #655f57;           /* TSS #7a746c darkened for AA on ivory */
  --gold: #9a6f28;
  --gold-text: #6b4d1a;       /* TSS gold-dark: small gold text */
  --gold-light: #c9973f;
  --gold-border: #c4ae7a;
  --gold-btn-shine: linear-gradient(135deg, #ffe380 0%, #e8a520 30%, #c08010 70%, #e8a520 100%);
  --line: rgba(154, 111, 40, 0.2);
  --line-strong: rgba(154, 111, 40, 0.42);
  --dark: #14120f;
  --dark-2: #1f1c17;
  --on-dark: #f5f0e8;
  --on-dark-2: #b9b2a7;
  --orange: #c2410c;
  --orange-soft: #fff0e6;
  --danger: #b42318;
  --ok: #1f7a46;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06), 0 6px 18px rgba(26, 24, 20, 0.05);
  --shadow-md: 0 14px 38px rgba(26, 24, 20, 0.12);
  --shadow-lg: 0 34px 90px rgba(20, 18, 15, 0.35);

  --header-h: 88px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(201, 151, 63, 0.35); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.2em; height: 2.2em; }
.fill { fill: currentColor; stroke: none; }

.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow--rule { display: flex; align-items: center; gap: 14px; }
.eyebrow--rule::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

/* ---- Buttons ----------------------------------------------------------------- */
.btn {
  --pad-y: 0.8rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, filter 0.2s;
}
.btn--sm { --pad-y: 0.55rem; --pad-x: 1.05rem; font-size: 0.875rem; }
.btn--lg { --pad-y: 1rem; --pad-x: 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gold-btn-shine); color: var(--ink); box-shadow: 0 4px 20px rgba(220, 150, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 28px rgba(220, 150, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--outline { border-color: var(--gold); color: var(--gold-text); background: transparent; }
.btn--outline:hover { background: rgba(154, 111, 40, 0.09); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: rgba(154, 111, 40, 0.07); }
.btn--text { padding: 0.4rem 0.2rem; border: 0; background: none; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(0.25) brightness(0.97); transform: none; }
.on-dark .btn--outline, .cta-band .btn--outline { color: var(--on-dark); border-color: rgba(245, 240, 232, 0.5); }

/* ---- Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, 0.9); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(26, 24, 20, 0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand-lockup { display: flex; align-items: center; gap: 20px; min-width: 0; }
.brand-lockup__tss { display: flex; align-items: center; }
.brand-lockup__tss img { height: 58px; width: auto; aspect-ratio: 500 / 159; }
.brand-lockup__divider { width: 1px; height: 46px; background: var(--line-strong); flex: none; }
.brand-lockup__dev { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.brand-lockup__dev-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
/* Brigade logo: same visual weight as the TSS logo and vertically centred with it */
.brand-lockup__dev-name.has-logo { display: flex; align-items: center; line-height: 0; }
.brigade-logo-img { height: 66px; width: auto; aspect-ratio: 89 / 102; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 6px; }
.primary-nav ul a { display: block; padding: 10px 12px; font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-2); border-radius: 8px; position: relative; }
.primary-nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.primary-nav ul a:hover, .primary-nav ul a.is-active { color: var(--ink); }
.primary-nav ul a:hover::after, .primary-nav ul a.is-active::after { transform: scaleX(1); }
.primary-nav__ctas { display: flex; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; align-items: center; justify-content: center; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .site-header.is-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav ul a::after { display: none; }
  .primary-nav__ctas { flex-direction: column; }
  .primary-nav__ctas .btn { width: 100%; --pad-y: 0.9rem; }
}
@media (max-width: 520px) {
  .brand-lockup { gap: 12px; }
  .brand-lockup__tss img { height: 42px; }
  .brigade-logo-img { height: 50px; }
  .brand-lockup__dev-name { font-size: 1.1rem; }
  .brand-lockup__divider { height: 36px; }
}
@media (max-width: 380px) { .brand-lockup__tss img { height: 36px; } .brigade-logo-img { height: 44px; } .brand-lockup__divider { height: 30px; } }

/* ---- Hero -------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 820px); display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f9f6f0 0%, #f4efe5 55%, #efe7d8 100%); }
.hero__glow { position: absolute; inset: 0; background:
  radial-gradient(48% 55% at 82% 18%, rgba(232, 165, 32, 0.28), transparent 70%),
  radial-gradient(40% 50% at 8% 90%, rgba(154, 111, 40, 0.14), transparent 70%); animation: glow 14s ease-in-out infinite alternate; }
.hero__skyline { position: absolute; left: -3%; right: -3%; bottom: 0; }
.hero__skyline svg { width: 100%; height: 100%; }
.hero__skyline--far { height: 52%; opacity: 0.4; animation: drift 46s ease-in-out infinite alternate; }
.hero__skyline--near { height: 38%; opacity: 0.85; animation: drift 34s ease-in-out infinite alternate-reverse; }
/* keep the copy area clear: the skyline fades out toward the text */
.hero__skyline { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 68%); mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 68%); }
@media (max-width: 899px) { .hero__skyline { -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); } .hero__skyline--far { height: 40%; } .hero__skyline--near { height: 30%; } }
.hero--photo .hero__media { background: var(--ink) var(--hero-img) center / cover no-repeat; animation: kenburns 28s ease-out both; }
.hero--photo .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 244, 238, 0.97) 0%, rgba(247, 244, 238, 0.92) 46%, rgba(247, 244, 238, 0.55) 68%, rgba(247, 244, 238, 0.08) 100%); }
/* Phones and tablets: the text runs the full width, so the scrim is a top-to-bottom wash, not a left-to-right one. */
@media (max-width: 1023px) { .hero--photo .hero__media::after { background: linear-gradient(180deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.93) 60%, rgba(247, 244, 238, 0.72) 100%); } }
.hero--photo .hero__skyline, .hero--photo .hero__glow { display: none; }
.hero__inner { padding-block: clamp(72px, 10vw, 128px) clamp(140px, 16vw, 200px); }
.hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.9rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.012em; margin-top: 22px; max-width: 18ch; text-wrap: balance; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero__lede { margin-top: 26px; max-width: 36rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__verified { margin-top: 34px; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.hero__credit { position: absolute; right: var(--gutter); bottom: 18px; z-index: 2; max-width: 46ch; padding: 6px 12px; font-size: 0.78rem; color: var(--ink-2); background: rgba(247, 244, 238, 0.82); border-radius: 999px; backdrop-filter: blur(6px); }
@media (max-width: 720px) { .hero__credit { left: var(--gutter); right: auto; bottom: 12px; border-radius: 12px; } }
.scroll-cue { position: absolute; left: calc(max(0px, (100% - 1280px) / 2) + var(--gutter)); bottom: 22px; display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-text); }
.scroll-cue__label { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 600; }
.scroll-cue__line { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@media (max-height: 640px), (max-width: 640px) { .scroll-cue { display: none; } }

@keyframes drift { from { transform: translateX(-1.4%); } to { transform: translateX(1.4%); } }
@keyframes glow { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero entrance is pure CSS (no flash); below-the-fold reveals use IntersectionObserver */
.hero .reveal { animation: rise 0.9s var(--ease) both; }
.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal:nth-child(3) { animation-delay: 0.28s; }
.hero .reveal:nth-child(4) { animation-delay: 0.4s; }
.hero .reveal:nth-child(5) { animation-delay: 0.52s; }
.js .reveal:not(.hero .reveal) { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in:not(.hero .reveal) { opacity: 1; transform: none; }

/* ---- Sections ---------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--projects { background: var(--bg); }
.section--locations { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { text-wrap: balance; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.008em; margin-top: 16px; }
.section__lede { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; max-width: 40rem; }
.fineprint { margin-top: 22px; font-size: 0.85rem; color: var(--muted); max-width: 44rem; }

/* ---- Filters ----------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.toolbar .field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.toolbar .field label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toolbar .field--search { flex: 1 1 280px; position: relative; justify-content: flex-end; }
.toolbar .field--search .icon { position: absolute; left: 14px; bottom: 15px; color: var(--gold); pointer-events: none; }
.toolbar input[type="search"], .toolbar select, .form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"], .form-row select {
  width: 100%; height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--gold-border); border-radius: 12px; font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.toolbar input[type="search"] { padding-left: 42px; }
.toolbar select, .form-row select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a6f28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.toolbar input:focus, .toolbar select:focus, .form-row input:focus, .form-row select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 151, 63, 0.28); }
.toolbar__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 22px; min-height: 28px; }
.result-count { font-size: 0.9rem; color: var(--muted); }

/* ---- Project grid & cards ---------------------------------------------------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.loading { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-border); }
.card:has(:focus-visible) { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media > svg, .card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media > svg, .card:hover .card__media > img { transform: scale(1.045); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(20, 18, 15, 0.5), transparent); pointer-events: none; }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card__locale { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 0.85rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; gap: 14px; }
.card__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.95rem; line-height: 1.05; letter-spacing: -0.005em; }
.card__facts { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 18px; padding-block: 12px; border-block: 1px solid var(--line); }
.card__config { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.card__config .icon { color: var(--gold); }
.card__price { text-align: right; line-height: 1.1; }
.card__price small { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card__price strong { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 600; color: var(--gold-text); }
.card__price--none strong { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; color: var(--orange); letter-spacing: 0.01em; }
.card--sold .card__price--none strong { color: var(--orange); }
.card__usp { font-size: 0.97rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.card__actions .btn { flex: 1 1 140px; --pad-x: 1rem; }
/* Stretched button: whole card is one click target, yet inner buttons stay independent. */
.card__explore { position: static; }
/* transform and filter turn an element into the containing block for absolutely positioned
   descendants. On hover they would shrink the stretched ::after to the button's own box and the
   rest of the card would stop being clickable. Hover feedback therefore uses shadow only here. */
.card__explore:hover, .card__explore:focus-visible { transform: none; filter: none; }
.card:hover .card__explore { box-shadow: 0 8px 28px rgba(220, 150, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.card__explore::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.card__request { position: relative; z-index: 2; }
.card--sold { border-color: rgba(194, 65, 12, 0.35); }
.card--sold::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--orange); z-index: 3; }
.card--sold .card__media > svg, .card--sold .card__media > img { filter: saturate(0.7); }
.card.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(201, 151, 63, 0.7); } 100% { box-shadow: 0 0 0 22px rgba(201, 151, 63, 0); } }

.grid-more { display: flex; justify-content: center; margin-top: 30px; }
.grid-more[hidden], .grid-more:has(> [hidden]) { display: none; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty h3 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; }
.empty p { margin: 8px 0 20px; color: var(--ink-2); }

/* ---- Status badges ----------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }
.badge--gold { background: rgba(20, 18, 15, 0.86); color: #f3d58c; box-shadow: inset 0 0 0 1px rgba(243, 213, 140, 0.35); }
.badge--green { background: #e4f4ea; color: #14532d; }
.badge--neutral { background: rgba(255, 253, 249, 0.92); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--orange { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(194, 65, 12, 0.4); }
.badge--orange::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* ---- Brigade at a glance ------------------------------------------------------- */
.glance { background: var(--dark); color: var(--on-dark); padding-block: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.glance::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 92% 0%, rgba(232, 165, 32, 0.2), transparent 70%); }
.stats { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 2px solid var(--tone-on-dark, rgba(232, 200, 130, 0.45)); }
.stat__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; background: color-mix(in srgb, var(--tone-on-dark) 18%, transparent); color: var(--tone-on-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone-on-dark) 40%, transparent); }
.stat__value { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.5rem, 4.6vw, 3.8rem); line-height: 1; color: var(--tone-on-dark, #f3d58c); letter-spacing: -0.01em; }
.stat__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.stat__note { font-size: 0.82rem; color: var(--on-dark-2); }
.glance__note { position: relative; margin-top: 26px; font-size: 0.82rem; color: var(--on-dark-2); }

/* ---- Colour tones: stats, highlights, services and city tabs pick one each (.tone-1 ... .tone-7) ---------
   --tone: strong colour on light backgrounds (white text/icons on it pass 4.5:1); --tone-soft: its pale tint;
   --tone-on-dark: the bright version used on the dark "at a glance" band. */
.tone-1 { --tone: #3b4fb0; --tone-soft: #e9edfb; --tone-on-dark: #a3b4ff; }   /* indigo */
.tone-2 { --tone: #85601e; --tone-soft: #f7edd8; --tone-on-dark: #f3d58c; }   /* gold */
.tone-3 { --tone: #0b6d64; --tone-soft: #dbf3ef; --tone-on-dark: #62dccd; }   /* teal */
.tone-4 { --tone: #a73a24; --tone-soft: #fbe5de; --tone-on-dark: #ff9f88; }   /* terracotta */
.tone-5 { --tone: #7b3a95; --tone-soft: #f2e4f7; --tone-on-dark: #e1a6f7; }   /* plum */
.tone-6 { --tone: #27702f; --tone-soft: #e0f2e2; --tone-on-dark: #8fe09c; }   /* green */
.tone-7 { --tone: #1a65a4; --tone-soft: #ddedf9; --tone-on-dark: #8fcaf8; }   /* blue */

/* ---- Why Brigade ----------------------------------------------------------------- */
.section--why { background: var(--bg); }
/* a mosaic of Brigade addresses: one large tile + four small ones (each opens that project's details) */
.landmarks-wrap { margin-bottom: clamp(32px, 5vw, 56px); }
.landmarks-wrap[hidden] { display: none; }
.landmarks-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin-bottom: 16px; }
.landmarks { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
.landmark { margin: 0; min-height: 0; }
.landmark--lead { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 900px) { .landmarks { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; } .landmark--lead { grid-column: span 2; } }
.landmark__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; text-align: left; cursor: pointer; background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.landmark__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.landmark__btn:hover img, .landmark__btn:focus-visible img { transform: scale(1.06); }
.landmark__cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px; color: #fff; background: linear-gradient(0deg, rgba(20, 18, 15, 0.9) 0%, rgba(20, 18, 15, 0.58) 58%, transparent 100%); }
.landmark__cap strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.landmark--lead .landmark__cap strong { font-size: 1.7rem; }
.landmark__cap span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: #f3d58c; }

.highlights { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
.highlight { position: relative; overflow: hidden; padding: 28px 26px 24px; background: linear-gradient(165deg, var(--tone-soft) 0%, var(--surface) 58%); border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); border-radius: var(--radius-lg); transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.highlight::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tone); }
.highlight:hover { border-color: var(--tone); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.highlight__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tone); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--tone) 32%, transparent); }
.highlight h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; margin: 16px 0 8px; }
.highlight p { font-size: 0.95rem; color: var(--ink-2); }
@media (min-width: 1040px) {
  /* seven cards: the last one takes the whole row instead of leaving a gap */
  .highlight:last-child:nth-child(3n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; padding-block: 22px; }
  .highlight:last-child:nth-child(3n + 1) .highlight__icon { grid-row: span 2; }
  .highlight:last-child:nth-child(3n + 1) h3 { margin: 0 0 4px; }
}
.highlight .highlight__note { margin-top: 10px; font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ---- Cities (tabs) and the Chennai panel ------------------------------------------ */
.city-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
@media (min-width: 820px) { .city-tabs { grid-template-columns: repeat(3, 1fr); } }
.city-tab { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.city-tab:hover { border-color: var(--gold-border); transform: translateY(-2px); }
.city-tab__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7.5; object-fit: cover; background: var(--tone-soft); transition: transform 0.6s var(--ease); }
.city-tab:hover .city-tab__photo { transform: scale(1.05); }
.city-tab__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 14px 18px 16px; }
.city-tab__num { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; line-height: 1; background: var(--tone-soft); color: var(--tone); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent); }
.city-tab__name { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; line-height: 1.05; }
.city-tab__tag { grid-column: 2; font-size: 0.82rem; color: var(--muted); }
.city-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-md); }
.city-tab[aria-selected="true"] .city-tab__tag { color: var(--on-dark-2); }
.city-tab[aria-selected="true"] .city-tab__num { background: color-mix(in srgb, var(--tone-on-dark) 22%, transparent); color: var(--tone-on-dark); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone-on-dark) 55%, transparent); }
@media (max-width: 819px) { .city-tab__photo { aspect-ratio: 4 / 3; } .city-tab__body { grid-template-columns: 1fr; padding: 12px 14px 14px; } .city-tab__num { display: none; } .city-tab__tag { grid-column: 1; } .city-tab__name { font-size: 1.45rem; } .city-tab:hover { transform: none; } }

.city-panel:focus { outline: none; }
.city-intro { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; margin-bottom: 28px; }
@media (min-width: 900px) { .city-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; } }
.city-intro__text { max-width: 40rem; }
/* photos of the selected city's projects (1 to 3) */
.city-media { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.city-media[hidden] { display: none; }
.city-media--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.city-media--2 { grid-template-rows: 1fr; }
.city-media--3 .city-media__tile:first-child { grid-row: span 2; }
.city-media__tile { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.city-media__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.city-media__tile figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 11px; border-radius: 999px; background: #1a1814; color: #f7f4ee; font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-intro__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
.city-intro p { margin-top: 10px; color: var(--ink-2); }
.city-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hoods { margin-bottom: 36px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hoods__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.hoods__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hood-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-border); background: #fff; font-size: 0.92rem; font-weight: 500; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.hood-chip:hover { border-color: var(--gold); }
.hood-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #f3d58c; }
.hoods__note { margin-top: 14px; font-size: 0.93rem; color: var(--ink-2); min-height: 1.5em; }
.projects-block__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; margin-bottom: 18px; }

/* ---- About ------------------------------------------------------------------- */
.about { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .about { grid-template-columns: 5fr 6fr; } }
.disclosure { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--radius); font-size: 0.93rem; color: var(--ink-2); }
.disclosure .icon { margin-top: 3px; color: var(--gold); width: 1.3em; height: 1.3em; }
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .services { grid-template-columns: 1fr 1fr; } .service:last-child { grid-column: 1 / -1; } }
.service { padding: 24px; background: linear-gradient(165deg, var(--tone-soft) 0%, var(--surface) 62%); border: 1px solid color-mix(in srgb, var(--tone) 22%, var(--line)); border-radius: var(--radius-lg); transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.service:hover { border-color: var(--tone); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.service__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tone); color: #fff; }
.service .icon { color: inherit; }
.service h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; margin: 14px 0 8px; }
.service p { font-size: 0.95rem; color: var(--ink-2); }

/* ---- 404 page ------------------------------------------------------------------- */
.notfound { min-height: 100vh; display: grid; align-content: center; padding-block: clamp(48px, 9vw, 120px); background: linear-gradient(180deg, #f9f6f0 0%, #f4efe5 100%); }
.notfound__logo { width: clamp(150px, 22vw, 200px); height: auto; margin-bottom: clamp(32px, 6vw, 64px); }
.notfound .section__title { margin-top: 18px; max-width: 16ch; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- Final CTA --------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding-block: clamp(60px, 8vw, 104px); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 88% 0%, rgba(232, 165, 32, 0.22), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(154, 111, 40, 0.2), transparent 70%); }
.cta-band__inner { position: relative; display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { text-wrap: balance; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.05; max-width: 16ch; }
.cta-band p { margin-top: 18px; color: var(--on-dark-2); font-size: 1.1rem; max-width: 34rem; }
.cta-band__actions { display: grid; gap: 22px; justify-items: start; }
.contact-list { display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); }
.contact-list .icon { color: #e8c882; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(232, 200, 130, 0.4); color: var(--on-dark); }
.contact-list a:hover { border-color: #e8c882; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: #e8c882; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: #0e0d0b; color: var(--on-dark-2); padding-block: clamp(48px, 6vw, 80px) 36px; font-size: 0.93rem; }
.site-footer__top { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.3fr 0.8fr 1.4fr 1fr; } }
/* Both logos on one compact light plate (the Brigade logo has dark lettering, so it needs a light ground): same lockup as the header */
.footer-plate { display: inline-flex; align-items: center; gap: 20px; max-width: 100%; padding: 16px 24px; background: var(--bg); border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.footer-plate__tss { width: auto; height: 56px; aspect-ratio: 500 / 159; flex: none; }
.footer-plate__divider { width: 1px; height: 52px; background: var(--line-strong); flex: none; }
.footer-plate__dev { display: flex; align-items: center; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1; }
.footer-plate__dev.has-logo { line-height: 0; }
.footer-plate .brigade-logo-img { height: 72px; }
@media (max-width: 420px) { .footer-plate { gap: 14px; padding: 14px 16px; } .footer-plate__tss { height: 42px; } .footer-plate .brigade-logo-img { height: 58px; } .footer-plate__divider { height: 40px; } }
.footer-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #e8c882; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-address { max-width: 22rem; }
.site-footer__legal { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(245, 240, 232, 0.14); display: grid; gap: 14px; max-width: 62rem; font-size: 0.84rem; line-height: 1.65; }
.site-footer__legal strong { color: var(--on-dark); font-weight: 600; }
.site-footer__copy { color: var(--on-dark-2); }

/* ---- Modals (native <dialog>) ------------------------------------------------ */
html.is-locked { overflow: hidden; padding-right: var(--sbw, 0px); }
dialog.modal { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--ink); overflow: visible; }
dialog.modal::backdrop { background: rgba(20, 18, 15, 0.66); backdrop-filter: blur(3px); animation: fade 0.25s ease both; }
/* minmax(0, 1fr): without it the auto-sized column grows to fit wide content (e.g. a long thumbnail strip) and pushes the modal off-screen */
dialog.modal[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
.modal__shell { position: relative; width: min(100%, 1040px); max-height: min(92dvh, 900px); background: var(--bg); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; animation: pop 0.38s var(--ease) both; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 20; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 253, 249, 0.96); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), background-color 0.2s; }
.modal__close:hover { transform: rotate(90deg); background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
@keyframes sheet { from { transform: translateY(100%); } }

/* Detail modal */
.modal__shell--detail { flex-direction: column; width: min(100%, 980px); }
.modal__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.detail__hero { position: relative; aspect-ratio: 21 / 9; min-height: 200px; overflow: hidden; background: var(--bg-soft); }
.detail__hero > svg, .detail__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 18, 15, 0.7), transparent 65%); }
.detail__hero-text { position: absolute; z-index: 2; left: clamp(20px, 4vw, 40px); right: 70px; bottom: clamp(16px, 3vw, 28px); color: #fff; }
.detail__hero-text .badge { margin-bottom: 12px; }
.detail__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.detail__where { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.95rem; opacity: 0.95; }
.detail__content { padding: clamp(22px, 4vw, 40px); display: grid; gap: clamp(28px, 4vw, 40px); }
.detail__lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46rem; }
.detail__tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-top: 10px; }
.d-sec h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.d-sec h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact dt { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact dd { margin: 4px 0 0; font-weight: 600; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 500; color: var(--ink-2); }
.price-table td { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--gold-text); text-align: right; }
.price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-big strong { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--gold-text); font-weight: 600; }
.price-big span { color: var(--muted); font-size: 0.95rem; }
.note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.9rem; }
.nearby { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.nearby__group { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.nearby__group h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.nearby__group li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.93rem; }
.nearby__group li span:last-child { color: var(--muted); white-space: nowrap; }
.phase-list { display: grid; gap: 12px; }
.phase { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; }
.phase__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.phase__name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.phase__meta { font-size: 0.9rem; color: var(--ink-2); }
.phase a { font-size: 0.9rem; color: var(--gold-text); }
.rera { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; gap: 8px; }
.rera__nums { display: flex; flex-wrap: wrap; gap: 8px; }
.rera__num { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.88rem; padding: 6px 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; user-select: all; }
.rera a { color: var(--gold-text); font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.95rem; color: var(--ink-2); }
.notice .icon { margin-top: 3px; color: var(--gold); }
.notice--warn { border-style: solid; border-color: rgba(194, 65, 12, 0.4); background: var(--orange-soft); }
.notice--warn .icon { color: var(--orange); }
.notice__actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 420px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.gallery figure { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 8px 12px 10px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); background: var(--surface); }
.gallery--plans { grid-auto-columns: min(86%, 520px); }
.gallery--plans img { object-fit: contain; background: #fff; aspect-ratio: 1 / 1; }
.gallery--amenities { grid-auto-columns: min(60%, 260px); }
.gallery--amenities img { aspect-ratio: 4 / 3; }
.locmap { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.locmap img { width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; }
.locmap figcaption { margin: 0; padding: 8px 14px 10px; }

/* Gallery viewer in the project popup: featured image + thumbnail row */
.gv { display: grid; gap: 10px; }
.gv__stage { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gv__main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 16 / 9; }
.gv__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gv__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(20, 18, 15, 0.74); color: #fff; font-size: 0.78rem; font-weight: 600; }
.gv__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 253, 249, 0.95); color: var(--ink); box-shadow: var(--shadow-sm); }
.gv__nav:hover { background: #fff; }
.gv__nav--prev { left: 10px; } .gv__nav--next { right: 10px; }
.gv__flip { transform: scaleX(-1); }
.gv__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.gv__thumb { flex: 0 0 auto; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-soft); opacity: 0.72; scroll-snap-align: start; transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s; }
.gv__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gv__thumb:hover { opacity: 1; }
.gv__thumb[aria-pressed="true"] { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 2px rgba(201, 151, 63, 0.35); }
@media (max-width: 720px) { .gv__thumb { width: 72px; } .gv__nav { width: 40px; height: 40px; } .gv__main { aspect-ratio: 4 / 3; } }

/* Lightbox */
dialog.modal--light::backdrop { background: rgba(14, 13, 11, 0.9); }
.modal__shell--light { background: transparent; box-shadow: none; width: min(100%, 1280px); max-height: 96dvh; flex-direction: column; align-items: center; justify-content: center; overflow: visible; }
.modal--light .modal__close { top: 8px; right: 8px; }
.lightbox__figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lightbox__figure img { max-width: min(100%, 1200px); max-height: calc(100dvh - 250px); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: var(--on-dark); font-size: 0.92rem; text-align: center; max-width: 60ch; }
.lightbox__count { color: var(--on-dark-2); margin-left: 8px; }
.lightbox__nav { position: absolute; top: 50%; z-index: 20; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 253, 249, 0.95); color: var(--ink); transform: translateY(-50%); box-shadow: var(--shadow-sm); }
.lightbox__nav:hover { background: #fff; }
.lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
.lightbox__flip { transform: scaleX(-1); }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: safe center; max-width: 100%; overflow-x: auto; padding: 12px 4px 4px; margin-top: 4px; }
.lightbox__thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid rgba(255, 255, 255, 0.22); border-radius: 8px; overflow: hidden; background: #222; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.lightbox__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 0.95; }
.lightbox__thumb[aria-current="true"] { border-color: #f3d58c; opacity: 1; }
/* Solid dark ground (not just the dimmed ::backdrop) so the light caption always has dark contrast behind it, in every browser and tool */
dialog.modal.modal--light .modal__shell--light { background: #0e0d0b; padding: 56px 20px 20px; border-radius: 22px; }
/* The lightbox is full-screen on phones, not a bottom sheet. Selectors are doubled-up so they beat the
   generic sheet rules that are declared further down the file. */
@media (max-width: 720px) {
  dialog.modal.modal--light[open] { place-items: center; padding: 0; }
  dialog.modal.modal--light .modal__shell--light { width: 100%; height: 100%; max-height: 100dvh; border-radius: 0; animation: fade 0.25s ease both; justify-content: center; padding: 56px 12px 84px; }
  dialog.modal.modal--light .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  dialog.modal.modal--light .lightbox__figure img { max-height: calc(100dvh - 320px); }
  dialog.modal.modal--light .lightbox__thumb { width: 58px; }
  dialog.modal.modal--light .lightbox__thumbs { padding-top: 8px; margin-top: 0; }
}
.videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.video { display: grid; gap: 8px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; background: radial-gradient(60% 80% at 70% 20%, rgba(232, 165, 32, 0.3), transparent 70%), linear-gradient(135deg, #24201a, #14120f); color: #fff; }
.video__play span.circle { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-btn-shine); color: var(--ink); box-shadow: 0 6px 28px rgba(220, 150, 0, 0.5); transition: transform 0.25s var(--ease); }
.video__play:hover span.circle { transform: scale(1.1); }
.video__play .icon { width: 28px; height: 28px; margin-left: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__label { font-weight: 600; font-size: 0.95rem; }
.video__src { font-size: 0.78rem; color: var(--muted); }
.detail__links { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.9rem; }
.detail__links a { color: var(--gold-text); }
.detail__bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px clamp(16px, 3vw, 32px); background: rgba(255, 253, 249, 0.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(26, 24, 20, 0.06); }
.detail__bar .btn { flex: 0 1 auto; }
.detail__bar .grow { flex: 1; }
.detail__bar .btn--text { font-size: 0.9rem; }

/* Lead modal */
.modal__shell--lead { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; width: min(100%, 980px); }
.lead__aside { position: relative; padding: 32px 28px; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.lead__aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 50% at 100% 0%, rgba(232, 165, 32, 0.25), transparent 70%); pointer-events: none; }
.lead__aside > * { position: relative; }
.lead__aside .eyebrow { color: #e8c882; margin-top: 10px; }
.lead__thumb { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(232, 200, 130, 0.25); }
.lead__thumb > svg, .lead__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.lead__project { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600; line-height: 1.05; }
.lead__meta { font-size: 0.9rem; color: var(--on-dark-2); }
.lead__aside .badge { align-self: start; margin-top: 4px; }
.lead__points { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; font-size: 0.9rem; color: var(--on-dark-2); }
.lead__points li { display: flex; align-items: center; gap: 10px; }
.lead__points .icon { color: #e8c882; }
.lead__main { position: relative; padding: clamp(24px, 4vw, 40px); overflow-y: auto; overscroll-behavior: contain; max-height: min(92dvh, 900px); }
.lead__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; padding-right: 44px; }
.lead__sub { margin: 8px 0 18px; color: var(--ink-2); font-size: 0.97rem; }

.form-grid { display: grid; gap: 14px 16px; grid-template-columns: 1fr 1fr; }
.form-row { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.form-row--full { grid-column: 1 / -1; }
.form-row > label, .form-row > legend, .chips legend { font-size: 0.85rem; font-weight: 600; color: var(--ink); padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); }
.phone-input { display: flex; }
.phone-input__prefix { display: grid; place-items: center; padding: 0 14px; background: var(--bg-soft); border: 1px solid var(--gold-border); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 600; color: var(--ink-2); }
.phone-input input { border-radius: 0 12px 12px 0 !important; letter-spacing: 0.04em; }
.form-row.has-error input:not([type="checkbox"]), .form-row.has-error select, .form-row.has-error .phone-input__prefix { border-color: var(--danger); }
.form-row.has-error input:not([type="checkbox"]):focus, .form-row.has-error select:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.22); }
.field-error { font-size: 0.84rem; color: var(--danger); font-weight: 500; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; }
.chips__group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-border); background: #fff; font-size: 0.9rem; font-weight: 500; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.chip-radio input:checked + span { background: var(--ink); color: #f3d58c; border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.checks { display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.check a { color: var(--gold-text); }
.check--optional { color: var(--muted); }
.form-row.has-error .check span { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 0.92rem; background: #fdecea; color: #7a1a12; border: 1px solid rgba(180, 35, 24, 0.35); }
#lead-submit { margin-top: 18px; position: relative; }
#lead-submit .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(26, 24, 20, 0.25); border-top-color: var(--ink); animation: spin 0.7s linear infinite; }
#lead-submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.privacy-note .icon { margin-top: 2px; color: var(--gold); }

.success { display: grid; justify-items: start; gap: 14px; padding-block: 16px; }
.success__tick { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-btn-shine); color: var(--ink); box-shadow: 0 8px 30px rgba(220, 150, 0, 0.4); }
.success__text { color: var(--ink-2); max-width: 32rem; }
.success__mock { padding: 10px 14px; background: var(--orange-soft); border: 1px solid rgba(194, 65, 12, 0.4); border-radius: 10px; font-size: 0.9rem; color: #7c2d0a; font-weight: 600; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Bottom-sheet behaviour on phones */
@media (max-width: 720px) {
  dialog.modal[open] { place-items: end center; padding: 0; }
  .modal__shell { width: 100%; max-height: 94dvh; border-radius: 24px 24px 0 0; animation: sheet 0.34s var(--ease) both; }
  .modal__shell--lead { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .lead__aside { flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 18px 70px 18px 18px; }
  .lead__thumb { width: 64px; flex: none; aspect-ratio: 1; }
  .lead__aside .eyebrow, .lead__points { display: none; }
  .lead__project { font-size: 1.5rem; flex: 1 1 calc(100% - 80px); }
  .lead__meta { flex: 1 1 100%; }
  .lead__main { overflow: visible; max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .modal__close { top: 12px; right: 12px; background: #fff; }
  .detail__hero { aspect-ratio: 16 / 10; }
  .detail__hero-text { right: 64px; }
  .detail__bar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .detail__bar .btn { flex: 1 1 100%; }
  .detail__bar .grow { display: none; }
}

/* ---- Toast / consent / noscript ---------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--on-dark); font-size: 0.92rem; box-shadow: var(--shadow-md); transition: opacity 0.25s, transform 0.3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.consent { position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-md); font-size: 0.9rem; }
.consent p { flex: 1 1 320px; color: var(--ink-2); }
.consent__actions { display: flex; gap: 10px; }
.noscript { max-width: 640px; margin: 40px auto; padding: 24px var(--gutter); }
.noscript h2 { font-family: var(--font-serif); }

/* Dev-only mock banner */
.mock-banner { position: fixed; z-index: 400; top: 0; left: 0; right: 0; padding: 6px 12px; text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; background: var(--orange); color: #fff; }

/* ---- Small utilities (kept as classes so a strict CSP can forbid inline styles) -- */
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mb-16 { margin-bottom: 16px; }
.detail__lede--sm { font-size: 1rem; }
.note--flush { margin: 0; }
.empty--wide { grid-column: 1 / -1; }

/* ---- Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal:not(.hero .reveal) { opacity: 1; transform: none; }
}
@media print { .site-header, .scroll-cue, .modal, .toast, .consent { display: none !important; } }
