/* =========================================================
   MS Land Promoters & Builders — site styles
   ========================================================= */

:root {
  --ink: #17120e;
  --ink-2: #3a312a;
  --muted: #6d6258;
  --line: rgba(23, 18, 14, .10);
  --line-strong: rgba(23, 18, 14, .18);

  --bg: #fbf8f3;
  --bg-tint: #f5efe5;
  --card: #ffffff;

  --maroon: #8b1a1a;
  --maroon-2: #a82727;
  --maroon-deep: #5e0f0f;
  --gold: #c69a3e;
  --gold-2: #e3bb5d;
  --gold-soft: #f4e7c5;

  --dark: #110d0a;
  --dark-2: #1c1612;
  --dark-line: rgba(255, 255, 255, .12);
  --on-dark: #f6f1e8;
  --on-dark-muted: #b8ad9f;

  --wa: #1fa855;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px -6px rgba(40, 24, 10, .18);
  --shadow: 0 24px 60px -28px rgba(40, 24, 10, .38);
  --container: 1920px;
  --gutter: clamp(16px, 4vw, 80px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
sup { font-size: .6em; line-height: 0; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }

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

.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.tamil { font-family: "Noto Sans Tamil", "Tamil Sangam MN", "Latha", var(--font-sans); color: var(--maroon); font-weight: 600; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--bh); padding: 10px 22px; max-width: 100%;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.3; letter-spacing: -.005em;
  text-decoration: none; white-space: normal; text-align: center; overflow-wrap: anywhere;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: .86rem; }
.btn-lg { --bh: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 24px -12px rgba(139, 26, 26, .7); }
.btn-primary:hover { background: var(--maroon-2); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--line-strong); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a221c; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1309; box-shadow: 0 10px 24px -12px rgba(198, 154, 62, .8); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .9rem; color: var(--maroon); text-decoration: none; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translate(2px, -2px); }
button.link-arrow { padding: 0; border: 0; background: none; }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; }
.topbar p { margin: 0; }
.topbar strong { color: var(--gold-2); font-weight: 700; }
.topbar a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.topbar a:hover { border-color: var(--gold-2); }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 12px; z-index: 60; margin-top: 12px; padding-inline: var(--gutter); }
.nav {
  max-width: calc(var(--container) - 2 * var(--gutter));
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 12px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  box-shadow: 0 10px 40px -18px rgba(40, 24, 10, .28);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled .nav { background: rgba(255, 255, 255, .9); box-shadow: 0 14px 40px -16px rgba(40, 24, 10, .35); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 62px; height: 48px; border-radius: 12px; background: #000; display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: .95rem; font-weight: 800; letter-spacing: .01em; color: var(--maroon); text-transform: uppercase; white-space: nowrap; }
.brand-text span { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(23, 18, 14, .06); color: var(--ink); }
.nav-links a.is-active { color: var(--maroon); background: rgba(139, 26, 26, .08); }
.nav-menu-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; place-items: center; }
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1100px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; background: #fff; border-radius: 20px; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-menu-cta { display: block; margin-top: 6px; }
  .nav-menu-cta .btn { width: 100%; color: #fff; }
  .nav-menu-cta .btn:hover { background: var(--maroon-2); color: #fff; }
}
@media (max-width: 560px) {
  .nav-call span { display: none; }
  .nav-call { width: 44px; padding: 0; --bh: 44px; border-radius: 12px; }
  .brand-mark { width: 52px; height: 40px; }
  .brand-text strong { font-size: .82rem; }
  .brand-text span { font-size: .66rem; }
  .hide-sm { display: none; }
}
@media (max-width: 360px) {
  .brand-text span { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); margin-top: calc(-1 * (var(--header-h) + 12px)); padding-top: calc(var(--header-h) + 12px + clamp(40px, 6vw, 72px)); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(40% 50% at 8% 18%, rgba(227, 187, 93, .38), transparent 70%),
    radial-gradient(38% 45% at 92% 8%, rgba(168, 39, 39, .16), transparent 70%),
    radial-gradient(45% 50% at 70% 95%, rgba(227, 187, 93, .24), transparent 70%),
    radial-gradient(35% 40% at 25% 90%, rgba(244, 196, 170, .35), transparent 70%),
    var(--bg);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(23, 18, 14, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--maroon); margin-bottom: 18px; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin-bottom: 26px; }
.hero-title span { display: block; }
.hero-title em { display: block; margin-top: .08em; font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; color: var(--maroon); font-size: .74em; line-height: 1.08; }
.hero-text { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(23, 18, 14, .3); }
.hero-link:hover { color: var(--maroon); }
.hero-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 34px 0 0; padding: 18px 8px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 20px; box-shadow: var(--shadow-sm); max-width: 600px;
}
.hero-info > div { padding: 0 16px; border-left: 1px solid var(--line); }
.hero-info > div:first-child { border-left: 0; }
.hero-info dt { font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-info dd { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.hero-info a { text-decoration: none; }

.hero-visual { position: relative; padding: 18px 0 40px 18px; }
.hero-photo { margin: 0; position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 40px 80px -36px rgba(40, 24, 10, .6); transform: rotate(1.2deg); background: var(--dark-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.hero-photo-cap { position: absolute; z-index: 1; left: 26px; top: 26px; display: flex; flex-direction: column; color: #fff; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.05; letter-spacing: -.03em; }
.hero-photo-kicker { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--gold-2); }
.hero-badge { position: absolute; z-index: 3; top: 0; right: -6px; background: var(--gold-2); color: #1b1309; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border-radius: 10px; transform: rotate(4deg); box-shadow: var(--shadow-sm); }
.hero-sticker { position: absolute; z-index: 3; left: -6px; top: 46%; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; line-height: 1.25; transform: rotate(-10deg); box-shadow: 0 16px 30px -12px rgba(94, 15, 15, .7); border: 3px solid rgba(255, 255, 255, .9); }
.hero-feature {
  position: absolute; z-index: 3; left: 44px; right: 20px; bottom: 0;
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 14px 12px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.hero-feature:hover { transform: translateY(-3px); }
.hero-feature img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; object-position: top; flex: none; }
.hero-feature-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-feature-text strong { font-size: 1rem; }
.hero-feature-text span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hero-feature-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .85rem; color: var(--maroon); padding: 8px 12px; border-radius: 999px; background: rgba(139, 26, 26, .08); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
  .hero-info { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .hero-info > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { padding-left: 0; }
  .hero-feature { left: 12px; right: 12px; }
  .hero-sticker { width: 84px; height: 84px; font-size: .66rem; left: -4px; top: 34%; }
  .hero-feature-cta { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--maroon); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin: 0 -2%; box-shadow: 0 16px 30px -20px rgba(94, 15, 15, .8); position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker-group li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 800; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker-group li::after { content: "✳"; color: var(--gold-2); font-size: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.eyebrow { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow span { color: var(--maroon); }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.section-dark .eyebrow span { color: var(--gold-2); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 22px; }
.h2 em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: -.015em; color: var(--maroon); }
.section-dark .h2 em { color: var(--gold-2); }
.lead { font-size: 1.06rem; color: var(--ink-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 { margin-bottom: 0; }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.fine-print { font-size: .82rem; color: var(--muted); margin: 28px 0 0; max-width: 820px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-copy > p { color: var(--ink-2); font-size: 1.04rem; }
.tick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 22px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.tick-list .i { color: #fff; background: var(--maroon); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; margin-top: -1px; }
.about-copy .tamil { font-size: 1.05rem; margin: 0; }
.about-media { position: relative; padding-bottom: 70px; }
.about-media figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-img-main { width: 86%; aspect-ratio: 4 / 4.2; }
.about-img-main img, .about-img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-img-main .media-caption { top: 14px; bottom: auto; }
.about-img-float { position: absolute !important; right: 0; bottom: 0; width: 58%; aspect-ratio: 16 / 11; border: 6px solid var(--bg); }
.media-caption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: inline-block; width: fit-content; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 10px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(17, 13, 10, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); line-height: 1.3; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
}
@media (max-width: 480px) { .tick-list { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--maroon); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Leadership ---------- */
.leader-section { overflow: hidden; }
.leader-section::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 187, 93, .18), transparent 65%); pointer-events: none; }
.leader { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.leader-photo { margin: 0; position: relative; max-width: 420px; }
.leader-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 200px 200px 28px 28px; border: 1.5px solid rgba(227, 187, 93, .5); }
.leader-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 200px 200px 28px 28px; background: #fff; }
.leader-copy .h2 { color: #fff; }
.leader-copy strong { color: var(--on-dark); }
.leader-sign { display: flex; flex-direction: column; margin: 26px 0 26px; padding-left: 18px; border-left: 3px solid var(--gold-2); }
.leader-name { font-family: var(--font-serif); font-style: italic; font-size: 1.8rem; font-weight: 600; color: #fff; line-height: 1.2; }
.leader-role { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.leader-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .leader { grid-template-columns: 1fr; }
  .leader-photo { max-width: 320px; }
}

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: var(--shadow-sm); }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s; }
.filter-btn:hover { background: var(--bg-tint); }
.filter-btn .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--bg-tint); font-size: .75rem; font-weight: 800; }
.filter-btn.is-active { background: var(--ink); color: #fff; }
.filter-btn.is-active .count { background: var(--gold-2); color: var(--ink); }
@media (max-width: 640px) {
  .filters { border-radius: 20px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .filter-btn { justify-content: space-between; padding: 10px 14px; }
}

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1020px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { cursor: pointer; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.is-hidden { display: none; }
.pc-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-tint); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.project-card:hover .pc-media img { transform: scale(1.04); }
.pc-status { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.pc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ongoing { background: #fff; color: #15803d; }
.st-upcoming { background: var(--gold-2); color: #1b1309; }
.st-completed { background: var(--ink); color: #fff; }
.pc-num { position: absolute; right: 14px; bottom: 14px; font-weight: 800; font-size: .85rem; color: #fff; background: rgba(17, 13, 10, .55); padding: 4px 10px; border-radius: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pc-body h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; }
.pc-loc { display: flex; align-items: flex-start; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.pc-loc .i { color: var(--maroon); margin-top: 1px; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pc-meta li { font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--bg-tint); color: var(--ink-2); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pc-price { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pc-price span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc-price strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--maroon); }
.pc-actions { display: flex; align-items: center; gap: 8px; }

.pc-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(227, 187, 93, .55), transparent 70%),
    radial-gradient(60% 60% at 10% 100%, rgba(168, 39, 39, .35), transparent 70%),
    linear-gradient(160deg, #241a12, #120d0a);
  color: #fff;
}
.pc-placeholder::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.pc-placeholder > .i { width: 42px; height: 42px; color: var(--gold-2); position: relative; z-index: 1; }
.pc-place { position: relative; z-index: 1; font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.01em; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1020px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { position: relative; padding: 34px 22px 24px; }
.service-icon { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--maroon); color: #fff; box-shadow: 0 10px 20px -10px rgba(139, 26, 26, .8); border: 3px solid #fff; }
.service-icon .i { width: 24px; height: 24px; }
.service-body h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.service-body p { margin: 0; font-size: .94rem; color: var(--ink-2); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 48px); }
.why-intro .h2 { color: #fff; }
.why-intro .btn { margin-top: 10px; }
.why-list { counter-reset: why; }
.why-item { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start; padding: 28px 0; border-top: 1px solid var(--dark-line); }
.why-item:last-child { border-bottom: 1px solid var(--dark-line); }
.why-num { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--gold-2); line-height: 1.2; min-width: 2ch; }
.why-item h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -.025em; }
.why-item p { margin: 0; }
.why-arrow { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--dark-line); color: var(--gold-2); transition: background .3s, color .3s, transform .3s var(--ease); }
.why-item:hover .why-arrow { background: var(--gold-2); color: var(--ink); transform: rotate(-8deg); }
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
}
@media (max-width: 480px) { .why-arrow { display: none; } .why-item { grid-template-columns: auto 1fr; gap: 14px; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 16vw, 320px); gap: 16px; }
.gallery-item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.g-wide { grid-column: span 2; grid-row: span 2; }
.gallery-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: left; font-size: .8rem; font-weight: 700; color: #fff; padding: 7px 11px; border-radius: 10px; background: rgba(17, 13, 10, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); width: fit-content; max-width: calc(100% - 24px); line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery-cap { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 140px; gap: 10px; }
}

/* ---------- EMI ---------- */
.emi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.emi-copy > p { color: var(--ink-2); font-size: 1.04rem; }
.emi-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.chip-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; font-size: .84rem; transition: background .2s, color .2s, border-color .2s; }
.chip-btn:hover, .chip-btn.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.emi-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.emi-photo img { width: 100%; height: 100%; object-fit: cover; }
.emi-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.emi-field { margin-bottom: 22px; }
.emi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.emi-row label { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.emi-row output { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--maroon) var(--p), #eadfce var(--p));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--maroon); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--maroon); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.emi-result { margin-top: 8px; padding: 22px; border-radius: var(--radius); background: var(--dark); color: var(--on-dark); }
.emi-label { margin: 0 0 2px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.emi-big { margin: 0 0 14px; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.emi-bar { height: 10px; border-radius: 999px; background: #c8664f; overflow: hidden; margin-bottom: 16px; }
.emi-bar span { display: block; height: 100%; width: 50%; background: var(--gold-2); border-radius: 999px; transition: width .4s var(--ease); }
.emi-break { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.emi-break dt { font-size: .74rem; font-weight: 700; color: var(--on-dark-muted); display: flex; align-items: center; gap: 6px; }
.emi-break dd { margin: 2px 0 0; font-weight: 800; font-size: .98rem; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-p { background: var(--gold-2); }
.dot-i { background: #c8664f; }
.emi-note { margin: 12px 0 0; font-size: .76rem; color: var(--on-dark-muted); }
@media (max-width: 860px) { .emi-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .emi-break { grid-template-columns: 1fr 1fr; } .emi-break > div:last-child { grid-column: 1 / -1; } }

/* ---------- Process ---------- */
.process { position: relative; padding: clamp(80px, 10vw, 140px) 0; color: var(--on-dark); isolation: isolate; overflow: hidden; }
.process-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 13, 10, .82), rgba(17, 13, 10, .9)), url("../assets/img/open-land-sunrise.webp") center / cover no-repeat; }
.process .eyebrow { color: var(--on-dark-muted); }
.process .eyebrow span { color: var(--gold-2); }
.process .h2 { color: #fff; }
.process .h2 em { color: var(--gold-2); }
.process-head { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 20px 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.process-head .eyebrow, .process-head .h2 { grid-column: 1; }
.process-head .h2 { margin-bottom: 0; }
.process-ctas { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, transform .35s var(--ease); }
.step:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-2); color: var(--ink); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: .94rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .process-head { grid-template-columns: 1fr; }
  .process-ctas { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 48px); }
.faq-head p { color: var(--ink-2); }
.faq-head a { color: var(--maroon); font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background .3s, color .3s; flex: none; }
.faq-item[open] summary .i { transform: rotate(45deg); background: var(--maroon); border-color: var(--maroon); color: #fff; }
.faq-item summary:hover { color: var(--maroon); }
.faq-item p { margin: 0 0 22px; color: var(--ink-2); padding-right: 50px; }
.faq-item p a { color: var(--maroon); font-weight: 700; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } .faq-item p { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy > p { color: var(--ink-2); font-size: 1.04rem; }
.contact-cards { display: grid; gap: 12px; margin-top: 26px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--maroon); }
.contact-card address { color: var(--ink-2); line-height: 1.5; margin-bottom: 6px; }
.cc-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cc-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 26, 26, .08); color: var(--maroon); flex: none; }
.cc-icon .i { width: 22px; height: 22px; }
.cc-wa { background: rgba(31, 168, 85, .1); color: var(--wa); }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .86rem; font-weight: 700; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 7px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 4px rgba(139, 26, 26, .12); }
.field input[aria-invalid="true"] { border-color: #c2410c; box-shadow: 0 0 0 4px rgba(194, 65, 12, .12); }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-options label { position: relative; }
.pill-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-options span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.pill-options input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-options input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.form-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1ec; color: #9a3412; font-weight: 600; font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form-actions .btn { flex: 1 1 200px; }
.form-actions .btn-primary { background: var(--wa); box-shadow: 0 10px 24px -12px rgba(31, 168, 85, .8); }
.form-actions .btn-primary:hover { background: #18914a; }
.form-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

.map-wrap { margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 380px; background: #e9e2d6; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-brand img { width: 220px; margin: -10px 0 8px -12px; mix-blend-mode: lighten; }
.footer-brand p { max-width: 320px; }
.footer-brand .tamil { color: var(--gold-2); }
.footer-col h4 { font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { color: var(--gold-2); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: .8rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating actions ---------- */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .8); transition: transform .3s var(--ease); }
.wa-fab .i { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 69; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .wa-fab { display: none; }
  .to-top { right: 16px; bottom: 86px; }
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 70;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 6px;
    background: rgba(17, 13, 10, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 13px; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; }
  .mobile-bar a:nth-child(2) .i { color: #4ade80; }
  .mobile-bar .mobile-bar-cta { background: var(--maroon); }
}

/* ---------- Modals ---------- */
dialog { padding: 0; border: 0; color: inherit; }
dialog::backdrop { background: rgba(12, 9, 7, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); height: min(700px, calc(100dvh - 24px)); }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm); }
.modal-close:hover { background: var(--ink); color: #fff; }
.pm-media { display: flex; flex-direction: column; min-height: 0; background: var(--dark); }
.pm-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.pm-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pm-zoom img { width: 100%; height: 100%; object-fit: contain; }
.pm-placeholder { position: absolute; inset: 0; }
.pm-placeholder-note { position: relative; z-index: 1; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.pm-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow-sm); transition: background .2s, color .2s; }
.pm-nav:hover { background: var(--ink); color: #fff; }
.pm-nav .i { width: 22px; height: 22px; }
.pm-prev { left: 12px; }
.pm-next { right: 12px; }
.pm-count { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 800; color: #fff; background: rgba(17, 13, 10, .6); font-variant-numeric: tabular-nums; pointer-events: none; }
.pm-thumbs { position: relative; display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: var(--dark-2); flex: none; }
.pm-thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #2a221c; opacity: .55; transition: opacity .2s, border-color .2s; }
.pm-thumbs button:hover { opacity: .9; }
.pm-thumbs button.is-active { opacity: 1; border-color: var(--gold-2); }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-thumbs button.is-video { position: relative; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .28); }
.thumb-play .i { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.pm-nav[hidden], .pm-thumbs[hidden], .lb-nav[hidden] { display: none; }
.pm-body { padding: clamp(24px, 3.4vw, 40px); overflow-y: auto; position: relative; }
.pm-body .pc-status { position: static; margin-bottom: 14px; }
.pm-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 4px; padding-right: 40px; }
.pm-tamil { font-family: "Noto Sans Tamil", "Tamil Sangam MN", var(--font-sans); color: var(--maroon); font-weight: 600; margin-bottom: 18px; }
.pm-tamil:empty { display: none; }
.pm-facts { display: grid; gap: 10px; margin: 6px 0 20px; }
.pm-facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.pm-facts .i { color: var(--maroon); margin-top: 3px; }
.pm-configs { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pm-configs:empty { display: none; }
.pm-config { padding: 14px; border-radius: 16px; background: var(--bg-tint); text-align: center; }
.pm-config span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pm-config strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--maroon); line-height: 1.3; }
.pm-config small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.pm-note { font-size: .82rem; color: var(--muted); }
.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.pm-actions [hidden] { display: none; }
@media (max-width: 760px) {
  .modal { overflow-y: auto; }
  .modal-card { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pm-stage { flex: none; height: 44vh; }
  .pm-thumbs button { width: 64px; height: 48px; }
  .pm-body { overflow: visible; }
}

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; display: none; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(10, 8, 6, .9); }
.lb-figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lb-figure img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 16px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
#lb-video { display: block; max-height: 80vh; max-width: min(1100px, 92vw); margin-inline: auto; border-radius: 16px; background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.lb-figure figcaption { margin-top: 14px; color: #f1ebe2; font-weight: 600; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-nav .i { width: 24px; height: 24px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox .modal-close { position: fixed; }
@media (max-width: 560px) { .lb-nav { top: auto; bottom: 20px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* ---------- Fluid layouts and device safe areas ---------- */
/* Keep grid/flex children shrinkable when text or media is wider than a column. */
:where(.container, .hero-grid, .about-grid, .leader, .section-head, .project-grid,
       .service-grid, .why-grid, .emi-grid, .process-head, .steps, .faq-grid,
       .contact-grid, .footer-grid, .modal-card) > * { min-width: 0; }
:where(h1, h2, h3, h4, p, address, dd, .footer-col a) { overflow-wrap: anywhere; }
.nav-actions { flex-shrink: 0; }
.nav-toggle { flex-shrink: 0; }
.nav-links { min-width: 0; }
.hero-info a { overflow-wrap: anywhere; }
.pc-foot, .emi-row { flex-wrap: wrap; }
.pc-actions { margin-left: auto; }
.emi-break > div { min-width: 0; }
.map-wrap { height: clamp(260px, 32vw, 480px); }
.gallery-grid, .project-grid, .service-grid, .stats, .steps {
  gap: clamp(12px, 1.5vw, 28px);
}
.container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.site-header {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
@media (min-width: 1440px) {
  .hero { min-height: min(960px, calc(100svh - 40px)); display: grid; align-items: center; }
  .hero-title { font-size: clamp(4.8rem, 4.5vw, 6rem); }
  .hero-photo { aspect-ratio: 1 / 1; max-height: 720px; }
  .hero-text { max-width: 65ch; }
  .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .nav-links {
    max-height: calc(100dvh - var(--header-h) - 48px - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
  }
}
@media (max-width: 760px) {
  body:has(.mobile-bar) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
  }
  .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .modal { max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); }
  .pm-stage { height: clamp(180px, 42svh, 420px); }
  .lb-figure img, #lb-video { max-height: calc(100dvh - 160px); }
  .lb-figure figcaption { max-height: 4.5em; overflow-y: auto; font-size: .88rem; }
}
@media (max-width: 560px) {
  .section { padding-block: clamp(48px, 12vw, 72px); }
  .process { padding-block: 56px; }
  .topbar-inner { padding-block: 8px; font-size: .75rem; }
  .nav { gap: 8px; padding: 8px; border-radius: 18px; }
  .brand { gap: 8px; }
  .brand-text strong { white-space: normal; }
  .brand-text span { font-size: .6rem; letter-spacing: .04em; white-space: normal; }
  .nav-actions { gap: 6px; }
  .brand-mark { width: 44px; height: 38px; }
  .hero-title { font-size: clamp(2.25rem, 9vw, 3.15rem); }
  .h2 { font-size: clamp(1.85rem, 7.5vw, 2.6rem); }
  .hero-info > div { padding-inline: 10px; }
  .hero-photo-cap { left: 20px; top: 22px; }
  .hero-badge { right: 0; font-size: .65rem; padding: 8px 12px; }
  .hero-feature { gap: 10px; }
  .hero-feature img { width: 46px; height: 46px; }
  .hero-feature-text strong { font-size: .88rem; }
  .hero-feature-text span { font-size: .72rem; }
  .stat { padding: 20px 16px; }
  .stat-num { font-size: clamp(2rem, 9vw, 2.8rem); }
  .leader-photo { width: calc(100% - 18px); }
  .pc-body { padding: 18px; }
  .form-card, .emi-card { padding: 20px 16px; }
  .emi-result { padding: 18px 14px; }
  .filter-btn { padding: 10px; font-size: .82rem; gap: 5px; }
  .leader-actions .btn, .process-ctas .btn, .pm-actions .btn { flex: 1 1 180px; }
  .footer-grid { gap: 28px; }
  .mobile-bar a { font-size: .78rem; gap: 4px; }
  .pm-body { padding: 24px 18px; }
}
@media (max-width: 374px) {
  .nav-call { display: none; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .hero-info { grid-template-columns: minmax(0, 1fr); }
  .hero-info > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}
/* Short landscape windows need scrolling content rather than clipped dialogs. */
@media (min-width: 761px) and (max-height: 600px) {
  .modal-card { height: auto; min-height: 0; }
  .modal { overflow-y: auto; }
  .pm-media { position: sticky; top: 0; height: calc(100dvh - 24px); }
  .pm-body { overflow: visible; }
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
  .topbar, .site-header, .wa-fab, .to-top, .mobile-bar, .ticker, .map-wrap, dialog { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .section-dark, .process, .site-footer { background: #fff; color: #000; }
}
