/* ==========================================================================
   Sameera Groups — "Make the Winning Move" multi-project landing page
   ========================================================================== */

:root {
  --red: #CB3634;          /* logo red */
  --red-deep: #A8262A;
  --red-ink: #7E1A1E;
  --ink: #1C1C1C;
  --ink-2: #4A4A4A;
  --muted: #7A7474;
  --line: #ECE6E6;
  --paper: #FFFFFF;
  --paper-2: #FBF8F7;
  --grid: #F46F58;   /* solid coral grid, sampled from the final J1 press ad (V1 used pale pink) */
  --grid-size: 150px;
  --header-h: 76px;
  --radius: 3px;
  --shadow: 0 18px 50px -18px rgba(60, 10, 12, .28);
  --shadow-sm: 0 6px 22px -10px rgba(60, 10, 12, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 70px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: .005em; }
em { font-style: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

.grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible, .chip:focus-visible, .link-btn:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); box-shadow: 0 10px 24px -10px rgba(168, 38, 42, .7); }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--grid);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 172px; height: auto; }
.main-nav { display: flex; gap: 38px; }
.main-nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 8px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.header-call svg { color: var(--red); font-size: 18px; }
.header-call small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

/* ================================================================= HERO */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--grid); }
.hero-inner {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  align-items: center; min-height: min(calc(100vh - var(--header-h)), 760px);
  padding-top: 40px; padding-bottom: 40px;
}

/* --- chess scene --- */
.hero-scene {
  position: absolute; z-index: 1; pointer-events: none;
  /* top-anchored so the sleeve's cut edge always sits behind the red panel */
  top: 96px; left: 25%; width: 56%;
}
.scene { position: relative; width: 100%; aspect-ratio: 1720 / 1365; }
.scene .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .pawn   { transform-origin: 29.18% 68.06%; }
.scene .bishop { transform-origin: 40.49% 64.68%; }
.scene .knight { transform-origin: 74.25% 67.23%; }
.scene .impact {
  position: absolute; left: 56.4%; top: 88.6%; width: 44%; aspect-ratio: 4 / 1;
  transform: translate(-50%, -50%) scale(0); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(203,54,52,.35), rgba(203,54,52,.12) 55%, transparent 72%);
  opacity: 0;
}

/* --- copy panel --- */
.hero-copy { position: relative; z-index: 2; grid-column: 1; align-self: start; padding: 28px 0 0; }
.hero-panel {
  position: relative; background: var(--red); color: #fff;
  width: min(100%, 520px); padding: 46px 42px 42px;
  box-shadow: var(--shadow);
}
.hero-panel h1 { margin: 0; text-transform: uppercase; line-height: 1.02; }
.hero-lead { font-weight: 400; font-size: clamp(30px, 3vw, 42px); letter-spacing: .04em; }
.hero-with {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 12px;
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1;
}
.hero-with::before, .hero-with::after {
  content: ""; flex: 0 0 64px; height: 1px; background: rgba(255,255,255,.85);
}
.hero-big { font-weight: 800; font-size: clamp(24px, 2.25vw, 33px); letter-spacing: .015em; line-height: 1.06; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; }
.hero-rule { display: block; width: 120px; height: 2px; background: rgba(255,255,255,.85); margin: 24px 0 20px; transform-origin: left; }
.hero-sub { margin: 0; font-weight: 400; text-transform: uppercase; font-size: clamp(20px, 2vw, 29px); line-height: 1.15; letter-spacing: .04em; }
.hero-kicker {
  margin: 26px 0 10px; font-size: 15px; letter-spacing: .06em; color: var(--ink-2); max-width: 520px;
}
.hero-kicker em { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.08em; }
/* sectors sit in a white block attached under the red panel (as in the J1 ad),
   so the grid lines never run through the text */
.sectors {
  list-style: none; margin: 0; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 6px 16px;
  width: min(100%, 520px); font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-sm);
  position: relative;
}
.sectors li { display: inline-flex; align-items: center; }
/* a dot before every item, as in the J1 ad, so no line ends with a dangling separator */
.sectors li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--red); border-radius: 50%; margin-right: 7px; }

/* --- form card --- */
.card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-form { position: relative; z-index: 3; grid-column: 2; padding: 30px 28px 24px; border-radius: var(--radius); }
.hero-form h2 { font-size: 29px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.form-intro { margin: 10px 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }

/* ============================================================ HERO MOTION
   Final state = the press-ad composition. JS adds .play once layers decode. */
.js .scene:not(.play) .layer { opacity: 0; }
.js .hero-copy .line > span { transform: translateY(105%); }
.js .hero-rule { transform: scaleX(0); }
.js .hero-panel { clip-path: inset(0 100% 0 0); }
.js .hero-with, .js .hero-kicker, .js .sectors, .js .hero-form { opacity: 0; transform: translateY(16px); }

.hero.play .hero-panel { animation: panel-in .9s var(--ease) .05s both; }
.hero.play .hero-copy .line > span { animation: rise .9s var(--ease) both; }
.hero.play h1 .line:nth-child(1) > span { animation-delay: .35s; }
.hero.play h1 .line:nth-child(2) > span { animation-delay: .47s; }
.hero.play h1 .line:nth-child(4) > span { animation-delay: .95s; }
.hero.play h1 .line:nth-child(5) > span { animation-delay: 1.07s; }
.hero.play h1 .line:nth-child(6) > span { animation-delay: 1.19s; }
.hero.play .hero-with { animation: fade-up .7s var(--ease) .72s both; }
.hero.play .hero-sub .line:nth-child(1) > span { animation-delay: 1.55s; }
.hero.play .hero-sub .line:nth-child(2) > span { animation-delay: 1.67s; }
.hero.play .hero-rule { animation: rule .8s var(--ease) 1.4s both; }
.hero.play .hero-kicker { animation: fade-up .8s var(--ease) 1.9s both; }
.hero.play .sectors { animation: fade-up .8s var(--ease) 1.5s both; }
.hero.play .hero-form { animation: fade-up .9s var(--ease) .6s both; }

.scene.play .hand-king { animation: place-king 1.25s cubic-bezier(.45, 0, .2, 1) .25s both; }
.scene.play .floor     { animation: floor-in 1s ease-out 1.35s both; }
.scene.play .impact    { animation: impact .9s ease-out 1.42s both; }
.scene.play .piece     { animation-duration: 1.05s; animation-timing-function: var(--ease); animation-fill-mode: both; }
.scene.play .pawn   { animation-name: fly-pawn;   animation-delay: 1.44s; }
.scene.play .bishop { animation-name: fly-bishop; animation-delay: 1.42s; }
.scene.play .knight { animation-name: fly-knight; animation-delay: 1.43s; }
/* pieces are visible and standing before the king lands */
.scene.play .piece  { opacity: 1; }

@keyframes panel-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@keyframes place-king {
  0%   { opacity: 0; transform: translate(-5%, -26%); }
  18%  { opacity: 1; }
  82%  { transform: translate(0, .8%); }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes floor-in { from { opacity: 0; transform: scaleX(.7); } to { opacity: 1; transform: none; } }
@keyframes impact {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
/* each piece starts upright beside the king, then is flung into its press-ad pose */
@keyframes fly-pawn {
  0%   { opacity: 1; transform: translate(4.8%, 12.9%) rotate(52deg); }
  45%  { transform: translate(-2.6%, -5.5%) rotate(-9deg); }
  75%  { transform: translate(.4%, .8%) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes fly-bishop {
  0%   { opacity: 1; transform: translate(2.5%, 12.3%) rotate(38deg); }
  45%  { transform: translate(-1.8%, -6.5%) rotate(-7deg); }
  75%  { transform: translate(.3%, .8%) rotate(1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes fly-knight {
  0%   { opacity: 1; transform: translate(-4.3%, 9.3%) rotate(-45deg); }
  45%  { transform: translate(2.8%, -6%) rotate(8deg); }
  75%  { transform: translate(-.4%, .7%) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .scene .layer, .js .hero-copy .line > span, .js .hero-rule, .js .hero-panel,
  .js .hero-with, .js .hero-kicker, .js .sectors, .js .hero-form {
    opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important;
  }
  .scene .impact { display: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================= FORMS */
.lead-form { display: grid; gap: 14px; }
.field { position: relative; }
.field > label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .select-field select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid #D9D2D2; border-radius: var(--radius);
  background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #A9A1A1; }
.field input:focus, .select-field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(203,54,52,.14); }
.phone-wrap { display: flex; }
.phone-wrap .cc {
  display: grid; place-items: center; padding: 0 12px; border: 1px solid #D9D2D2; border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--paper-2); font-weight: 500; color: var(--ink-2);
}
.phone-wrap input { border-radius: 0 var(--radius) var(--radius) 0 !important; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid .cc { border-color: var(--red) !important; background: #FFF7F7; }
.field.is-valid input, .field.is-valid select { border-color: #9CC7A8; }
.err { margin: 5px 0 0; font-size: 12.5px; color: var(--red); min-height: 0; line-height: 1.35; }
.err:empty { display: none; }
.err button { background: none; border: 0; padding: 0; color: var(--red-ink); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }

.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px !important; }
.select svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ink-2); pointer-events: none; }

.field > label.consent { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; margin: 0; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.consent .box {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid #CFC6C6; border-radius: 2px;
  display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s;
}
.consent .box svg { font-size: 13px; opacity: 0; }
.consent input:checked + .box { background: var(--red); border-color: var(--red); }
.consent input:checked + .box svg { opacity: 1; }
.consent input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form button[type=submit] { position: relative; margin-top: 4px; }
.lead-form .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.lead-form.is-loading button[type=submit] { pointer-events: none; opacity: .92; }
.lead-form.is-loading button[type=submit] svg { display: none; }
.lead-form.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; font-size: 13.5px; color: var(--red); text-align: center; }
.form-status:empty { display: none; }
.secure { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.secure svg { font-size: 16px; color: var(--ink); }

/* ============================================================ PORTFOLIO */
.portfolio { padding: 48px 0 40px; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 14px; color: var(--red); font-weight: 500; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--red); }
.eyebrow-left::before { display: none; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; text-transform: uppercase; }
.section-lede { margin: 16px auto 0; color: var(--ink-2); font-size: 17px; max-width: 600px; }

.filter-bar {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 30;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid transparent; border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.filter-bar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 24px -18px rgba(0,0,0,.35); }
.filter-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  height: 42px; padding: 0 22px; border-radius: 999px; border: 1px solid #D7CFCF; background: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.selects { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-bar .select select {
  height: 42px; border-radius: 999px; border: 1px solid #D7CFCF; background: #fff;
  padding: 0 18px; font-size: 14px; font-weight: 500; letter-spacing: .06em; min-width: 210px;
}
.filter-bar .select-township select { min-width: 300px; }
.filter-bar .select select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(203,54,52,.14); }
.filter-bar .select.is-set select { border-color: var(--red); color: var(--red); }

/* custom dropdowns: button + listbox (native select kept hidden as the value store) */
.filter-bar .select.cs select { display: none; }
.cs-btn {
  display: flex; align-items: center; width: 100%; min-width: 210px; height: 42px; padding: 0 44px 0 20px;
  border-radius: 999px; border: 1px solid #D7CFCF; background: #fff; color: var(--ink); cursor: pointer; text-align: left;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .06em; transition: border-color .2s, box-shadow .2s;
}
.cs-btn:hover { border-color: var(--red); }
.cs-btn:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(203,54,52,.14); }
.cs-val { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-township .cs-btn { min-width: 300px; }
.select.is-set .cs-btn { border-color: var(--red); color: var(--red); }
.select.cs svg { transition: transform .2s; }
.select.is-open svg { transform: translateY(-50%) rotate(180deg); }
.cs-list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 45; min-width: 100%; max-height: min(360px, 60vh);
  margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(60,10,12,.35);
  animation: cs-in .16s ease-out;
}
@keyframes cs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.selects > .select:last-child .cs-list { left: auto; right: 0; }
.cs-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.3; white-space: nowrap;
}
.cs-list li small { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.cs-list li:hover, .cs-list li:focus { outline: none; background: #FBF1F0; }
.cs-list li[aria-selected="true"] { color: var(--red); font-weight: 600; }
.cs-list li[aria-selected="true"]::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); align-self: center; margin-left: -6px; }
.cs-list li[aria-selected="true"] small { display: none; }


.result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 18px; }
.result-count { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.result-count strong { color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: card-in .5s var(--ease) both;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.project-media { position: relative; aspect-ratio: 1080 / 698; overflow: hidden; background: #eee; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-media img { transform: scale(1.05); }
.project-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.price {
  position: absolute; left: 0; bottom: 16px; z-index: 1; background: var(--red); color: #fff;
  padding: 7px 14px 7px 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1;
}
.price strong { display: block; font-size: 21px; letter-spacing: .02em; font-weight: 700; text-transform: none; }
.area-tag { position: absolute; right: 14px; bottom: 16px; z-index: 1; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-type { margin: 0 0 6px; color: var(--red); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.project h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.project .tagline { margin: 6px 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.loc { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 14.5px; }
.loc svg { color: var(--red); font-size: 17px; }
.sector-line { margin: -6px 0 16px; font-size: 12.5px; line-height: 1.7; color: var(--muted); letter-spacing: .02em; }
.sector-line i { display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.price-soon { background: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.facts > div { padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts svg { font-size: 24px; color: var(--red); }
.facts span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-size: 13px; font-weight: 500; line-height: 1.25; }
.highlights { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.highlights li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.highlights svg { color: var(--red); font-size: 15px; margin-top: 3px; }
.rera { margin: auto 0 14px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.project-actions { display: flex; gap: 10px; }
.project-actions .btn { flex: 1; }
.map-link { flex: none !important; padding: 0 16px !important; gap: 6px !important; border-color: #D7CFCF; color: var(--ink-2); background: #fff; letter-spacing: .1em; }
.map-link svg { font-size: 18px; color: var(--red); }
.map-link:hover { background: var(--paper-2); border-color: var(--red); color: var(--red); }
.map-link:hover svg { transform: none; }

.empty { text-align: center; padding: 50px 20px 30px; color: var(--ink-2); }
.empty > svg { width: 44px; height: 34px; color: var(--red); margin-bottom: 12px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ================================================================ SCALE */
.scale { padding: 44px 0 4px; }
.scale-inner { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 44px; }
.stat { text-align: center; padding: 0 12px; }
.stat + .stat { border-left: 1px solid var(--red); }
.stat strong { display: block; white-space: nowrap; color: var(--red); font-size: clamp(26px, 2.9vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.stat span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }

/* ================================================================== WHY */
.why { padding: 100px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.why-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.why-story, .why-townships { background: #fff; padding: 44px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.why-story h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.why-story h2 em { display: block; font-weight: 700; color: var(--red); }
.why-facts { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; }
.why-facts li { position: relative; padding-left: 20px; }
.why-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.why-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.why-stats div { background: var(--red); color: #fff; text-align: center; padding: 16px 6px 14px; }
.why-stats strong { display: block; font-size: 26px; font-weight: 700; line-height: 1; }
.why-stats span { display: block; font-size: 11.5px; margin-top: 7px; line-height: 1.25; opacity: .92; }
.why-townships h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--red); margin-bottom: 24px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 18px; }
.why-list svg { width: 46px; height: 46px; padding: 11px; border: 1px solid var(--red); color: var(--red); border-radius: 50%; }
.why-list strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.why-list span { color: var(--ink-2); font-size: 15px; }

/* ============================================================== CTA BAND */
.cta-band {
  position: relative; color: #fff; padding: 80px 0; overflow: hidden;
  background: linear-gradient(100deg, rgba(126,26,30,.95) 0%, rgba(168,38,42,.88) 45%, rgba(203,54,52,.55) 100%),
              url("../img/cta-bg.webp") center 60% / cover no-repeat;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; }
.cta-band p { margin: 14px 0 0; font-size: 19px; opacity: .92; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions { flex-direction: column; align-items: stretch; max-width: 460px; }
.cta-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-numbers a { display: block; padding: 12px 16px; border: 1px solid rgba(255,255,255,.7); color: #fff; text-decoration: none; transition: background .2s; }
.cta-numbers a:hover { background: rgba(255,255,255,.12); }
.cta-numbers span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.cta-numbers strong { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }

/* =============================================================== FOOTER */
.site-footer { padding: 56px 0 30px; background: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand img { width: 184px; height: auto; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-contact { display: grid; grid-template-columns: repeat(2, auto); gap: 48px; justify-content: end; }
.footer-contact span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; text-decoration: none; }
.footer-contact a svg { color: var(--red); }
.footer-legal { padding-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-legal p { margin: 0 0 8px; }

/* ========================================================== STICKY CTA */
.sticky-cta { display: none; }

/* ================================================================ MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 9, .62); backdrop-filter: blur(3px); animation: fade .3s ease both; }
.modal-panel {
  position: relative; width: min(100%, 470px); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-top: 4px solid var(--red); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  animation: pop .38s var(--ease) both; overscroll-behavior: contain;
}
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; font-size: 20px;
}
.modal-close:hover { background: var(--paper-2); color: var(--red); }
.modal-project { display: flex; gap: 14px; align-items: center; padding: 16px 56px 16px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.modal-project img { width: 84px; height: 62px; object-fit: cover; border-radius: 2px; }
.modal-project.is-swapped { animation: fade .35s ease both; }
.modal-project-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal-project strong { display: block; font-size: 17px; text-transform: uppercase; line-height: 1.2; }
#modal-project-meta { display: block; font-size: 13px; color: var(--ink-2); }
.modal-body { padding: 28px 30px 24px; }
.modal-body h2 { font-size: 26px; font-weight: 700; text-transform: uppercase; padding-right: 30px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* ============================================================ MAP MODAL */
.map-panel { width: min(100%, 880px); }
.map-head { padding: 22px 64px 16px 28px; }
.map-head h2 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.map-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.map-frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.map-frame.is-loaded iframe { opacity: 1; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.map-loading svg { color: var(--red); font-size: 20px; animation: bob 1s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-5px); } }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px 22px; }
.map-foot .highlights { margin: 0; }
.map-actions { flex: none; }

/* ========================================================== RESPONSIVE */
@media (max-width: 1240px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-scene { left: 24%; width: 50%; }
  .hero-panel { width: min(100%, 440px); padding: 40px 34px 36px; }
  .sectors { width: min(100%, 440px); }
  .main-nav { gap: 26px; }
  .header-call span { display: none; }
}

@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand img { margin: 0 auto; }
  .footer-contact { grid-template-columns: repeat(2, auto); justify-content: center; }
}

/* Tablet & mobile: hero form moves into the popup, sticky CTA appears */
@media (max-width: 1023px) {
  :root { --header-h: 64px; --grid-size: 96px; }
  .wrap { padding: 0 24px; }
  .main-nav, .header-cta .btn { display: none; }
  .header-call { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .brand img { width: 148px; }

  .hero-inner { display: block; min-height: 0; padding: 0 0 36px; }
  .hero-form { display: none; }
  .hero-scene { position: relative; top: auto; left: auto; width: 100%; max-width: 760px; margin: 0 auto; }
  .scene { width: 112%; margin-left: -4%; }
  .hero-copy { padding: 0 24px; margin-top: -7%; }
  .hero-panel { width: 100%; max-width: 620px; margin: 0 auto; text-align: center; padding: 34px 26px 32px; }
  .hero-rule { margin: 20px auto 18px; transform-origin: center; }
  .hero-with { justify-content: center; }
  .hero-kicker, .sectors { margin-left: auto; margin-right: auto; text-align: center; justify-content: center; }
  .hero-kicker { font-size: 14px; }
  .sectors { font-size: 13px; width: 100%; max-width: 620px; padding: 14px 16px; }

  .portfolio { padding-top: 40px; }
  .scale-inner { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(3) { border-left: 0; }
  .why { padding: 64px 0; }
  .why-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  .sticky-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -14px rgba(0,0,0,.3);
    transform: translateY(0); transition: transform .35s var(--ease);
  }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-main { flex: 1; min-width: 0; --h: 52px; padding: 0 14px; white-space: nowrap; }
  .sticky-call { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--red); color: var(--red); border-radius: var(--radius); font-size: 22px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* popup becomes a bottom sheet */
  .modal { place-items: end center; padding: 0; }
  .modal-panel { width: 100%; max-width: 560px; max-height: 94vh; border-radius: 14px 14px 0 0; border-top: 0; animation: sheet .42s var(--ease) both; }
  .modal-panel::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: #D9D2D2; margin: 10px auto 0; }
  .modal-body { padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); }
  .modal-project { padding: 12px 56px 12px 18px; }
  .map-head { padding: 16px 60px 12px 18px; }
  .map-head h2 { font-size: 20px; }
  .map-frame { aspect-ratio: 4 / 3.4; }
  .map-foot { flex-direction: column; align-items: stretch; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
  .map-actions .btn { width: 100%; }
  @keyframes sheet { from { transform: translateY(100%); } }
}

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .hero-copy { padding: 0 16px; }
  .section-head { margin-bottom: 22px; }
  .section-lede { font-size: 15.5px; }

  /* filter bar: one scrollable chip row + two selects */
  .filter-inner { display: block; padding: 10px 0 12px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(to right, #000 88%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 38px; padding: 0 16px; font-size: 12.5px; scroll-snap-align: start; }
  .selects { padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .selects .select-township { grid-column: 1 / -1; }
  .filter-bar .select-township select { min-width: 0; }
  .filter-bar .select select { min-width: 0; width: 100%; height: 40px; font-size: 13.5px; padding: 0 34px 0 14px; }
  .filter-bar .select svg { right: 11px; }
  .cs-btn, .select-township .cs-btn { min-width: 0; height: 42px; padding: 0 34px 0 16px; font-size: 13.5px; }
  .selects .select { position: relative; }
  .cs-list { min-width: 0; width: 100%; max-height: 55vh; }
  .selects .select:not(.select-township) .cs-list { width: max(100%, 230px); }
  .selects .select:last-child .cs-list { left: auto; right: 0; }
  .selects > .select:last-child .cs-list { left: auto; right: 0; }
.cs-list li { padding: 12px 12px; font-size: 15px; white-space: normal; }

  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project:hover { transform: none; }
  .project-body { padding: 18px 18px 20px; }
  .project h3 { font-size: 19px; }
  .result-row { margin: 16px 0 14px; }

  .scale { padding: 20px 0 0; }
  .scale-inner { padding-top: 30px; }
  .stat span { font-size: 11.5px; letter-spacing: .12em; }

  .why-story, .why-townships { padding: 28px 22px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 56px 0; }
  .cta-band p { font-size: 16px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .cta-actions { max-width: none; }
  .cta-numbers { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 400px) {
  .sticky-main { font-size: 12.5px; letter-spacing: .08em; gap: .45em; }
}
@media (max-width: 380px) {
  .hero-lead { font-size: 26px; letter-spacing: .02em; }
  .hero-big { font-size: 22px; }
  .hero-with { font-size: 22px; }
  .hero-panel { padding-left: 18px; padding-right: 18px; }
  .stat { padding: 0 4px; }
  .stat strong { font-size: 23px; }
  .stat span { font-size: 10.5px; letter-spacing: .08em; }
  .hero-panel h1 { font-size: 34px; }
  .hero-sub { font-size: 19px; }
  .facts strong { font-size: 12px; }
}

/* =====================================================================
   Mobile project list (phones): compact rows + detail popup
   ===================================================================== */
.prow-list { display: grid; gap: 10px; }
.prow {
  display: grid; grid-template-columns: 92px 1fr auto 14px; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  animation: card-in .4s var(--ease) both;
}
.prow:active { transform: scale(.99); }
.prow img { width: 92px; height: 64px; object-fit: cover; object-position: center 70%; border-radius: 8px; background: #eee; }
.prow-main { min-width: 0; }
.prow-main strong { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.prow-main span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-price { text-align: right; font-weight: 700; font-size: 15px; color: var(--red); white-space: nowrap; line-height: 1.15; }
.prow-price small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prow-price.is-soon { font-size: 12.5px; color: var(--ink-2); }
.prow-go { width: 14px; height: 14px; color: var(--muted); transform: rotate(-90deg); }


/* detail popup: the full card */
.detail-panel { padding: 0; width: min(100%, 440px); }
.detail-panel .project { border: 0; box-shadow: none; border-radius: 0; animation: none; }
.detail-panel .project:hover { transform: none; box-shadow: none; }


