/* =========================================================================
   SETUU commercial property portal
   Colour, type, spacing, radii, elevation and motion come verbatim from the
   SETUU design-system token files in ./tokens. Never hardcode brand colours.
   ========================================================================= */
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/radii.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");

:root {
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --header-h: 76px;
  --utility-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-6));
  background: var(--surface-page);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--surface-page);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  text-wrap: pretty;
}
h1 { font-size: var(--text-display); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: none; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-xs); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

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

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.overline {
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}
.overline.accent { color: var(--accent); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: var(--field-height);
  padding: 0 var(--space-7);
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.btn .ic { font-size: 16px; }
.btn:active { transform: scale(var(--press-scale)); }
.btn-sm { min-height: var(--field-height-sm); padding: 0 var(--space-6); font-size: var(--text-xs); }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--forest-600); color: var(--on-brand); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--brand-strong);
  border: var(--border-width) solid var(--border-brand);
}
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-strong); }

.btn-ghost { background: transparent; color: var(--brand); border: var(--border-width) solid var(--border-default); }
.btn-ghost:hover { background: var(--brand-tint); }

.btn-whatsapp { background: var(--forest-600); color: var(--on-brand); }
.btn-whatsapp:hover { background: var(--forest-700); color: var(--on-brand); }

.link-btn {
  padding: 0;
  color: var(--text-link);
  font-size: inherit;
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--text-link-hover); }

/* =========================================================================
   UTILITY BAR + HEADER
   ========================================================================= */
.utility-bar {
  background: var(--surface-inverse-2);
  color: var(--text-on-dark-muted);
  font-size: var(--text-xs);
}
.utility-inner {
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.utility-claim { color: var(--text-on-dark-muted); }
.utility-claim strong { color: var(--brass-500); font-weight: var(--weight-semibold); }
.utility-contact { display: flex; align-items: center; gap: var(--space-7); }
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-on-dark);
  font-weight: var(--weight-medium);
}
.utility-link .ic { font-size: 14px; }
.utility-link:hover { color: var(--brass-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface-card);
  border-bottom: var(--border-width) solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transition: height var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled .header-inner { height: 60px; }

.site-logo { flex: 0 0 auto; }
.site-logo img {
  height: 46px;
  width: auto;
  transition: height var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled .site-logo img { height: 38px; }

.site-nav { display: flex; align-items: center; gap: var(--space-8); margin-left: var(--space-4); }
.site-nav a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}
.site-nav a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }

.shortlist-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.shortlist-link .ic { font-size: 16px; }
.shortlist-link b {
  min-width: 22px;
  height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--space-3);
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-overline);
}
.shortlist-link.is-active b { background: var(--brand); color: var(--on-brand); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--forest-800);
  font-family: var(--font-mono);
}
.header-phone .ic { font-size: 16px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; }

.site-nav-mobile[hidden] { display: none; }
.site-nav-mobile {
  display: none;
  padding: var(--space-4) var(--gutter) var(--space-7);
  border-top: var(--border-width) solid var(--border-subtle);
}
.site-nav-mobile a {
  padding: var(--space-5) 0;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  border-bottom: var(--border-width) solid var(--border-subtle);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  background-color: #0E1412;
  background-image: linear-gradient(180deg, rgba(10,14,13,.28), rgba(10,14,13,.52)), var(--hero-photo, none);
  background-size: cover;
  background-position: center;
  padding: var(--space-14) 0 var(--space-13);
}
.hero-inner { max-width: 1180px; }
.hero h1 { margin: var(--space-6) 0 0; color: var(--white); max-width: 20ch; }
.hero-lead {
  margin: var(--space-7) 0 0;
  max-width: 66ch;
  font-size: var(--text-lg);
  color: var(--text-on-dark-muted);
}

.search-card {
  margin-top: var(--space-10);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-8) var(--space-8);
}
.search-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
.search-note { font-size: var(--text-xs); color: var(--text-muted); }

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-sunken);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-control);
}
.segmented button {
  min-height: var(--field-height-sm);
  padding: 0 var(--space-6);
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.segmented button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.segmented-block { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }

.search-fields {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  gap: var(--space-5);
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.field label, .rail-group legend {
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea, .range-pair input, #rail-city, #sort {
  width: 100%;
  min-height: var(--field-height);
  padding: 0 var(--space-5);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-control);
}
.field textarea { padding: var(--space-4) var(--space-5); line-height: var(--leading-normal); resize: vertical; }
.field input:hover, .field select:hover { border-color: var(--border-strong); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ic { position: absolute; left: var(--space-5); font-size: 16px; color: var(--text-faint); }
.input-wrap input { padding-left: calc(var(--space-5) * 2 + 16px); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-13);
  margin: var(--space-11) 0 0;
}
.stat-row dt {
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
}
.stat-row dd {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-on-dark);
}
.stat-row dd span { display: block; margin-top: 2px; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--text-on-dark-muted); }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: var(--section-y) 0; }
.section-sunken { background: var(--surface-sunken); border-top: var(--border-width) solid var(--border-subtle); border-bottom: var(--border-width) solid var(--border-subtle); }
.section-inverse { background: var(--surface-inverse); }
.section-inverse h2 { color: var(--white); }
.section-inverse .section-lead { color: var(--text-on-dark-muted); }

.section-head { max-width: var(--container-narrow); margin-bottom: var(--space-11); }
.section-head h2 { margin-top: var(--space-5); }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: var(--rule-accent);
  margin-top: var(--space-6);
  background: var(--brand);
}
.section-inverse .section-head h2::after { background: var(--brass-500); }
.section-lead { margin-top: var(--space-6); font-size: var(--text-md); color: var(--text-body); }

/* ---- Categories ------------------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-5);
}
.category-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-7);
  min-height: 128px;
  text-align: left;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-brand); }
.category-tile.is-active { border-color: var(--brand); box-shadow: var(--ring-brand), var(--shadow-sm); }
.category-tile .ic { font-size: 26px; color: var(--brand); }
.category-tile .tile-text { display: block; margin-top: auto; }
.category-tile strong { display: block; font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-primary); }
.category-tile span { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); }

/* =========================================================================
   LISTINGS
   ========================================================================= */
.listing-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}

.filter-rail {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-7);
}
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-7); }
.rail-head h3 { font-size: var(--text-h4); }
.rail-group { border: 0; margin: 0 0 var(--space-7); padding: 0; }
.rail-group legend { padding: 0; margin-bottom: var(--space-5); }

.check-list { display: grid; gap: var(--space-4); }
.check-list label, .switch {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-body);
  cursor: pointer;
  min-height: 28px;
}
.check-list input, .switch input { accent-color: var(--brand); width: 17px; height: 17px; flex: 0 0 auto; }
.check-list .count { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }
.switch { min-height: 32px; }

.range-pair { display: flex; align-items: center; gap: var(--space-4); }
.range-pair span { color: var(--text-faint); }

.rail-desk {
  padding-top: var(--space-7);
  border-top: var(--border-width) solid var(--border-subtle);
  display: grid;
  gap: var(--space-5);
}
.rail-desk p:not(.overline) { font-size: var(--text-sm); color: var(--text-body); }

.results-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.results-count { font-size: var(--text-h4); font-weight: var(--weight-semibold); color: var(--text-primary); }
.results-sub { font-size: var(--text-sm); color: var(--text-muted); }
.results-tools select { min-width: 200px; }

.filter-tags { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-7); }
.filter-tags:empty { display: none; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 30px;
  padding: 0 var(--space-3) 0 var(--space-5);
  background: var(--brand-tint);
  border: var(--border-width) solid var(--border-brand);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--brand-strong);
}
.tag button { display: inline-flex; padding: var(--space-2); cursor: pointer; color: var(--forest-700); }
.tag .ic { font-size: 12px; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(324px, 1fr));
  gap: var(--space-8);
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pc-media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-sunken); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
.property-card:hover .pc-media img { transform: scale(1.04); }

.pc-status {
  position: absolute; top: var(--space-5); left: var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-primary);
}
.pc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status-available); }
.pc-status[data-status="hold"]::before { background: var(--status-hold); }
.pc-status[data-status="let"]::before { background: var(--status-let); }

.pc-save {
  position: absolute; top: var(--space-5); right: var(--space-5);
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-card);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.pc-save .ic { font-size: 17px; }
.pc-save:hover { transform: scale(1.08); color: var(--brand); }
.pc-save[aria-pressed="true"] { color: var(--status-let); }
.pc-save[aria-pressed="true"] .ic { fill: currentColor; }

.pc-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-7); }
.pc-kicker {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}
.pc-kicker .ic { font-size: 14px; color: var(--brand); }
.pc-source { padding: 2px var(--space-4); background: var(--brand-tint); border: var(--border-width) solid var(--border-brand); border-radius: var(--radius-pill); color: var(--brand-strong); }
.pc-source[data-source="Resale"] { background: var(--accent-soft); border-color: var(--brass-200); color: var(--brass-800); }

.pc-title { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-h4); cursor: pointer; }
.pc-title:hover { color: var(--brand); }
.pc-locality { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.pc-locality .ic { font-size: 14px; }

.pc-figures {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-5);
  margin: var(--space-7) 0 0; padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border-subtle);
}
.pc-price { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--text-primary); }
.pc-area { font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--text-primary); text-align: right; }
.pc-basis { display: block; margin-top: 2px; font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--text-muted); }
.pc-figures > div:last-child .pc-basis { text-align: right; }

.pc-ref { margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); }

.pc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border-subtle);
}
.pc-actions .btn { padding: 0 var(--space-5); }
.pc-icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-control);
  color: var(--brand-strong);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.pc-icon-btn:hover { background: var(--brand-tint); border-color: var(--border-brand); color: var(--brand-strong); }
.pc-icon-btn .ic { font-size: 16px; }

.pc-broker { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); }
.pc-broker strong { color: var(--text-body); font-weight: var(--weight-semibold); }

.empty-state {
  padding: var(--space-14) var(--space-8);
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-card);
  border: var(--border-width) dashed var(--border-default);
  border-radius: var(--radius-md);
}
.empty-state[hidden] { display: none; }

/* =========================================================================
   RATES & TOOLS
   ========================================================================= */
.rates-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-9); align-items: start; }
.table-wrap { overflow-x: auto; background: var(--surface-card); border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.rate-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.rate-table th, .rate-table td { padding: var(--space-6) var(--space-7); text-align: left; border-bottom: var(--border-width) solid var(--border-subtle); }
.rate-table th {
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-sunken);
}
.rate-table td { font-size: var(--text-sm); color: var(--text-body); }
.rate-table td:first-child { font-weight: var(--weight-semibold); color: var(--text-primary); }
.rate-table td.num { font-family: var(--font-mono); }
.rate-table tr:last-child td { border-bottom: 0; }
.yoy { font-family: var(--font-mono); font-weight: var(--weight-medium); color: var(--status-available); }

.calc-stack { display: grid; gap: var(--space-8); }
.calc-card {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-8);
}
.calc-card h3 { font-size: var(--text-h4); margin-bottom: var(--space-6); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.calc-out {
  display: grid; gap: var(--space-4);
  margin: var(--space-7) 0 0; padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border-subtle);
}
.calc-out div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); }
.calc-out dt { font-size: var(--text-sm); color: var(--text-muted); }
.calc-out dd { margin: 0; font-family: var(--font-mono); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--text-primary); }
.calc-out div.is-primary dd { font-size: var(--text-h4); color: var(--brand); }

/* =========================================================================
   BUILDERS / DESK / ABOUT
   ========================================================================= */
.builder-band { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-12); align-items: center; }
.builder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.builder-card {
  min-height: 92px;
  padding: var(--space-6);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
}
.builder-card strong { font-size: var(--text-sm); color: var(--text-primary); }
.builder-card span { font-size: var(--text-xs); color: var(--text-muted); }
.builder-card em { font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brand); }

.broker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }
.broker-card {
  display: flex; flex-direction: column; gap: var(--space-5);
  padding: var(--space-8);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.broker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.broker-avatar {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
}
.broker-card h3 { font-size: var(--text-h4); }
.broker-role { font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--accent); }
.broker-coverage { font-size: var(--text-sm); color: var(--text-body); }
.broker-actions { display: flex; gap: var(--space-4); margin-top: auto; padding-top: var(--space-5); flex-wrap: wrap; }

.about-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: start; }
/* ---- RERA registration badge (about) --------------------------------- */
.rera-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-7);
  border: var(--border-width) solid rgba(212, 175, 55, 0.38);
  border-left: var(--rule-accent) solid var(--brass-500);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}
.rera-badge .ic { font-size: 20px; color: var(--brass-500); margin-top: 2px; flex: 0 0 auto; }
.rera-badge > span { display: grid; gap: var(--space-2); }
.rera-badge strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-on-dark);
  letter-spacing: var(--tracking-tight);
}
.rera-badge [data-rera-number] {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--brass-500);
  letter-spacing: 0.02em;
}

.about-points { display: grid; gap: var(--space-5); margin-top: var(--space-9); }
.about-points li { display: flex; gap: var(--space-5); font-size: var(--text-md); color: var(--text-on-dark); }
.about-points .ic { font-size: 20px; color: var(--brass-500); margin-top: 3px; }

.office-list { display: grid; gap: var(--space-5); }
.office-card {
  padding: var(--space-7);
  background: rgba(255,255,255,.05);
  border: var(--border-width) solid var(--border-on-dark);
  border-radius: var(--radius-md);
}
.office-card h4 { color: var(--white); font-size: var(--text-md); }
.office-card p { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-on-dark-muted); }
.office-card a { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--brass-500); }

/* =========================================================================
   FOOTER + MOBILE CONTACT BAR
   ========================================================================= */
.site-footer {
  padding: var(--section-y-tight) 0 var(--space-9);
  background: var(--surface-inverse-2);
  color: var(--text-on-dark-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-11); }
.logo-plate {
  display: inline-flex;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-card);
  border-radius: var(--radius-md);
}
.logo-plate img { height: 48px; width: auto; }
.footer-brand p { margin-top: var(--space-6); font-size: var(--text-sm); max-width: 38ch; }
.site-footer h4 {
  margin-bottom: var(--space-6);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brass-500);
}
.site-footer ul { display: grid; gap: var(--space-5); }
.site-footer a { display: inline-flex; align-items: center; gap: var(--space-4); font-size: var(--text-sm); color: var(--text-on-dark-muted); }
.site-footer a:hover { color: var(--brass-500); }
.footer-contact .ic { font-size: 15px; }
.footer-rera {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
}
.footer-rera strong { color: var(--text-on-dark); font-weight: var(--weight-semibold); }
.footer-rera [data-rera-number] { font-family: var(--font-mono); color: var(--brass-500); }

.footer-founder {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}
.footer-founder strong { color: var(--text-on-dark); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.footer-founder span { font-size: var(--text-xs); color: var(--brass-500); letter-spacing: var(--tracking-overline); text-transform: uppercase; }

.footer-address {
  margin-top: var(--space-6);
  font-style: normal;
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-on-dark-muted);
}

.footer-legal {
  margin-top: var(--space-11);
  padding-top: var(--space-7);
  border-top: var(--border-width) solid var(--border-on-dark);
  font-size: var(--text-xs);
}

.mobile-contact { display: none; }

/* =========================================================================
   DIALOGS + TOAST
   ========================================================================= */
dialog {
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  background: var(--surface-card);
  color: var(--text-body);
  max-height: 88vh;
}
dialog::backdrop { background: var(--overlay-scrim); }
.detail-dialog { width: min(960px, calc(100vw - 32px)); }
.req-dialog { width: min(620px, calc(100vw - 32px)); }
.dialog-close {
  position: absolute; top: var(--space-5); right: var(--space-5);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: 22px; line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
}
.dialog-close:hover { background: var(--surface-sunken); color: var(--text-primary); }

.detail-body { padding: var(--space-9); }
.detail-hero { position: relative; aspect-ratio: 21 / 9; background: var(--surface-sunken); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.detail-head h3 { font-size: var(--text-h2); }
.detail-price { text-align: right; }
.detail-price strong { display: block; font-family: var(--font-mono); font-size: var(--text-h3); color: var(--text-primary); }
.detail-price span { font-size: var(--text-xs); color: var(--text-muted); }
.detail-overview { margin-top: var(--space-7); font-size: var(--text-md); color: var(--text-body); }
.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-8); margin-top: var(--space-9); }
.detail-cols h4 { margin-bottom: var(--space-5); font-size: var(--text-overline); font-weight: var(--weight-bold); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--text-muted); }
.spec-list { display: grid; gap: var(--space-4); }
.spec-list div { display: flex; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-4); border-bottom: var(--border-width) solid var(--border-subtle); font-size: var(--text-sm); }
.spec-list dt { color: var(--text-muted); }
.spec-list dd { margin: 0; font-weight: var(--weight-semibold); color: var(--text-primary); text-align: right; }
.detail-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
  margin-top: var(--space-9); padding-top: var(--space-7);
  border-top: var(--border-width) solid var(--border-subtle);
}
.detail-broker { margin-right: auto; font-size: var(--text-sm); color: var(--text-muted); }
.detail-broker strong { display: block; color: var(--text-primary); }

.req-form { position: relative; padding: var(--space-9); }
.req-form h3 { margin-top: var(--space-4); }
.req-lead { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.req-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.field-full { grid-column: 1 / -1; }
.req-actions { display: flex; gap: var(--space-5); margin-top: var(--space-8); flex-wrap: wrap; }

.toast {
  position: fixed; right: var(--space-8); bottom: var(--space-8);
  z-index: 900;
  max-width: 340px;
  padding: var(--space-6) var(--space-7);
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: var(--text-sm);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast strong { display: block; margin-bottom: 2px; color: var(--white); }

/* ---- Scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-revealed { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .listing-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .rates-layout { grid-template-columns: 1fr; }
  .builder-band { grid-template-columns: 1fr; gap: var(--space-9); }
  .about-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav-mobile:not([hidden]) { display: grid; }
  .header-actions .btn-secondary, .shortlist-link span { display: none; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field-grow, .search-fields .btn { grid-column: 1 / -1; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .stat-row { gap: var(--space-9); }
  .stat-row > div { min-width: 40%; }
}

@media (max-width: 720px) {
  :root { --section-y: 64px; }
  .utility-claim { display: none; }
  .utility-inner { justify-content: center; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .builder-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-9); }
  .property-grid { grid-template-columns: 1fr; }
  .calc-fields, .req-fields { grid-template-columns: 1fr; }
  .header-phone span { display: none; }
  .detail-body, .req-form { padding: var(--space-7); }
  .toast { left: var(--space-6); right: var(--space-6); bottom: 84px; max-width: none; }

  /* Contact must stay one tap away on mobile. */
  body { padding-bottom: 64px; }
  .mobile-contact {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 800;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--surface-card);
    border-top: var(--border-width) solid var(--border-default);
    box-shadow: 0 -2px 12px rgba(17,19,16,.08);
  }
  .mobile-contact a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 64px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--brand-strong);
  }
  .mobile-contact a + a { border-left: var(--border-width) solid var(--border-subtle); }
  .mobile-contact .ic { font-size: 19px; }
}

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

/* =========================================================================
   HERO — cinematic plate + the SETUU span
   The bridge is the brand idea made literal: it draws itself, then a brass
   light crosses from the BUYER pier to the SELLER pier, on a loop.
   ========================================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero > .container { position: relative; z-index: 3; }

/* Video sits above the photo background, under everything else.
   It starts hidden and is faded in by script.js only once it can actually play. */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  /* the source plate is deliberately underexposed — lift it here so the
     skyline and the water read as glossy rather than muddy */
  filter: brightness(1.55) contrast(1.06) saturate(1.14);
  transition: opacity 1200ms var(--ease-out);
  pointer-events: none;
}
.hero-video.is-playing { opacity: 1; }

.hero-bridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: min(72%, 460px);
  z-index: 1;
  opacity: .82;
  pointer-events: none;
}
.hb-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--weight-bold);
  letter-spacing: 3.4px;
  fill: var(--brass-500);
  opacity: .92;
}

/* Left-weighted scrim: the copy always wins, the span stays visible on the right. */
.hero-scrim {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    /* a soft highlight sweeping off the top-right gives the panel its sheen */
    radial-gradient(120% 90% at 76% 8%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(90deg, rgba(10,14,13,.80) 0%, rgba(10,14,13,.42) 48%, rgba(10,14,13,.06) 100%),
    linear-gradient(180deg, rgba(10,14,13,.18) 0%, rgba(10,14,13,0) 34%, rgba(10,14,13,.34) 100%);
}

/* --- the choreography --- */
.hb-arch, .hb-deck { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: hb-draw 1900ms var(--ease-out) forwards; }
.hb-deck { opacity: .85; animation-delay: 260ms; }
.hb-hangers { opacity: .7; }
.hb-hangers line { opacity: 0; transform-origin: 50% 0; animation: hb-drop 520ms var(--ease-out) forwards; }
.hb-hangers line:nth-child(1) { animation-delay: 900ms; }
.hb-hangers line:nth-child(2) { animation-delay: 960ms; }
.hb-hangers line:nth-child(3) { animation-delay: 1020ms; }
.hb-hangers line:nth-child(4) { animation-delay: 1080ms; }
.hb-hangers line:nth-child(5) { animation-delay: 1140ms; }
.hb-hangers line:nth-child(6) { animation-delay: 1200ms; }
.hb-hangers line:nth-child(7) { animation-delay: 1260ms; }
.hb-hangers line:nth-child(8) { animation-delay: 1320ms; }
.hb-hangers line:nth-child(9) { animation-delay: 1380ms; }
.hb-hangers line:nth-child(10) { animation-delay: 1440ms; }
.hb-hangers line:nth-child(11) { animation-delay: 1500ms; }
.hb-pier { opacity: 0; animation: hb-rise 700ms var(--ease-out) 1500ms forwards; }
.hb-pulse { opacity: 0; animation: hb-cross 4200ms cubic-bezier(.45,0,.55,1) 2100ms infinite; }
.hb-label { opacity: 0; animation: hb-fade 700ms ease 1900ms forwards; }
.hb-label-right { animation-delay: 2150ms; }

@keyframes hb-draw { to { stroke-dashoffset: 0; } }
@keyframes hb-drop { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes hb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hb-fade { to { opacity: .92; } }
@keyframes hb-cross {
  0%   { opacity: 0; transform: translateX(0); }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(830px); }
}

/* Tablet: the span is narrower, so pull the scrim to a vertical wash. */
@media (max-width: 1024px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(10,14,13,.56) 0%, rgba(10,14,13,.34) 50%, rgba(10,14,13,.66) 100%);
  }
}

/* Phone: same video, same span — the bridge just sits lower in the frame
   so the arch is not cropped away, and the scrim carries more weight. */
@media (max-width: 700px) {
  .hero-bridge { opacity: .40; }
  .hero-video.is-playing { opacity: 1; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(10,14,13,.66) 0%, rgba(10,14,13,.46) 45%, rgba(10,14,13,.74) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-arch, .hb-deck { stroke-dashoffset: 0; animation: none; }
  .hb-hangers line, .hb-pier { opacity: 1; animation: none; transform: none; }
  .hb-label { opacity: .92; animation: none; }
  .hb-pulse { animation: none; opacity: 0; }
}

/* =========================================================================
   PROPERTY CARD — depth on hover, and the tour badge
   ========================================================================= */
.pc-media-stage { perspective: 1100px; }
.property-card { transform-style: preserve-3d; }

@media (hover: hover) and (pointer: fine) {
  .property-card:hover {
    transform: translateY(-4px) rotateX(4deg) rotateY(-7deg);
    box-shadow: 0 24px 48px rgba(17,19,16,.18), 0 6px 14px rgba(17,19,16,.08);
  }
  .property-card:hover .pc-media img { transform: translateZ(30px) scale(1.06); }
  .property-card:hover .pc-status,
  .property-card:hover .pc-tour { transform: translateZ(46px); }
  .pc-status, .pc-tour { transition: transform var(--dur-base) var(--ease-standard); }
}

.pc-tour {
  position: absolute; bottom: var(--space-5); right: var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 7px 13px;
  background: rgba(4,36,10,.92);
  color: var(--brass-500);
  border-radius: var(--radius-pill);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  animation: pc-tour-pulse 3.2s ease-in-out infinite;
}
.pc-tour .ic { font-size: 15px; }
.pc-tour:hover { color: var(--brass-200); }
@keyframes pc-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,154,58,.55); }
  55%      { box-shadow: 0 0 0 9px rgba(199,154,58,0); }
}

@media (prefers-reduced-motion: reduce) {
  .property-card:hover { transform: translateY(-4px); }
  .property-card:hover .pc-media img { transform: none; }
  .pc-tour { animation: none; }
}

/* Breadcrumb — sub-pages only */
.crumbs {
  display: flex; align-items: center; gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.crumbs a { color: var(--text-link); }
.crumbs a:hover { color: var(--text-link-hover); }
.crumbs span[aria-hidden] { color: var(--text-faint); }

/* Sub-page heading — the pages split out of the home page need a real H1 */
.page-title {
  margin: var(--space-5) 0 0;
  font-size: var(--text-h2);
  color: var(--text-primary);
  max-width: 22ch;
}

/* Co-partner mark in the footer */
.copartner {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid rgba(248,246,240,.14);
}
.copartner-label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--text-overline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.copartner-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.copartner-link:hover {
  transform: translateY(var(--lift-hover));
  box-shadow: var(--shadow-md);
}
.copartner-link img { height: 34px; width: auto; display: block; }

/* Location map inside the property detail dialog */
.detail-map { margin-top: var(--space-9); }
.detail-map h4 {
  margin-bottom: var(--space-5);
  font-size: var(--text-h4);
  color: var(--text-primary);
}
.detail-map h4 span {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.map-frame {
  position: relative;
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--surface-sunken);
  aspect-ratio: 16 / 9;
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
/* the marker sits dead centre — ring it so the 50 m frame reads as deliberate */
.map-frame::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 62%; height: 62%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(46,155,52,.55);
  border-radius: 50%;
  pointer-events: none;
}
.map-open {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.map-open .ic { font-size: 16px; }

@media (max-width: 700px) {
  .map-frame { aspect-ratio: 4 / 3; }
}

/* Developer cards — logo when we hold the file, otherwise the name in type */
.builder-card strong {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--brand-strong);
  letter-spacing: var(--tracking-tight);
}
.builder-logo {
  display: flex;
  align-items: center;
  min-height: 34px;
}
.builder-logo img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* =========================================================================
   HERO HEADLINE — the one place a display face earns its keep
   ========================================================================= */
.hero-title {
  font-family: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(6,10,9,.42);
}

/* The paragraph under the headline is gone, so the search card needs its
   own breathing room rather than inheriting the old rhythm. */
.hero .search-card { margin-top: var(--space-11); }

@media (max-width: 700px) {
  .hero-title { font-size: clamp(2.15rem, 9vw, 3rem); max-width: 15ch; }
  .hero .search-card { margin-top: var(--space-9); }
}

/* =========================================================================
   HERO PLATE — brighter, cleaner, and readable on a phone
   ========================================================================= */
.hero-video { filter: brightness(1.82) contrast(1.02) saturate(1.16); }

.hero-scrim {
  background:
    radial-gradient(120% 90% at 76% 8%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(90deg, rgba(10,14,13,.68) 0%, rgba(10,14,13,.30) 48%, rgba(10,14,13,.02) 100%),
    linear-gradient(180deg, rgba(10,14,13,.14) 0%, rgba(10,14,13,0) 36%, rgba(10,14,13,.26) 100%);
}

@media (max-width: 1024px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(10,14,13,.44) 0%, rgba(10,14,13,.26) 50%, rgba(10,14,13,.56) 100%);
  }
}

/* On a phone the plate is cropped hard by object-fit, so it needs the most
   lift of all — and the scrim only has to protect the headline. */
@media (max-width: 700px) {
  .hero-video { filter: brightness(2.0) contrast(1.0) saturate(1.18); }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(10,14,13,.50) 0%, rgba(10,14,13,.28) 45%, rgba(10,14,13,.62) 100%);
  }
  .hero-bridge { opacity: .34; }
}
