/* ============================================================
   Element Real Estate — Misfits 2026 Final Direction stylesheet
   ============================================================
   - Burgundy + black + white + mustard + navy palette
   - Bodoni Moda (display) + Manrope (body) + Allura (script)
   - B&W architecture imagery via grayscale filter
   - Giant burgundy comma motif, elongated-E motif, navy arrow
   - Asymmetric layouts, generous space, layered typography
   ============================================================ */

:root {
  --burgundy:        #5b0909;
  --burgundy-deep:   #3d0606;
  --burgundy-soft:   #7a1414;
  --black:           #000000;
  --white:           #ffffff;
  --mustard:         #f7bd01;
  --mustard-soft:    #ffd24a;
  --navy:            #002172;
  --navy-soft:       #1a3a8c;

  --grey-1:          #ebebeb;
  --grey-2:          #d4d4d4;
  --grey-mid:        #979894;
  --grey-deep:       #373737;

  --bg:              #ffffff;
  --bg-soft:         #f4f1ec;
  --bg-grey:         #ebebeb;
  --ink:             #1a0606;
  --ink-soft:        #3d2222;
  --ink-mute:        #6d5b5b;

  --f-display:       'Archivo', 'Manrope', -apple-system, system-ui, sans-serif;
  --f-body:          'Manrope', 'Inter', -apple-system, system-ui, sans-serif;
  --f-script:        'Allura', 'Petit Formal Script', 'Dancing Script', cursive;
  --f-mono:          'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --max:             1320px;
  --radius:          0;
  --shadow:          0 2px 0 rgba(0,0,0,.02), 0 14px 36px rgba(91,9,9,.07);
  --shadow-lift:     0 4px 0 rgba(0,0,0,.03), 0 24px 60px rgba(91,9,9,.16);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: auto; min-height: 100%; }
html { scroll-behavior: smooth; }

/* ============================================================
   Pulsating attention ring — burgundy CTA pulse
   Used on .hf-btn (home form Submit) + .nav-find (Find Your Element)
   ============================================================ */
@keyframes pulse-burgundy {
  0% {
    box-shadow:
      0 0 0 0 rgba(91,9,9,.55),
      0 0 0 0 rgba(91,9,9,.35);
  }
  60% {
    box-shadow:
      0 0 0 12px rgba(91,9,9,0),
      0 0 0 24px rgba(91,9,9,0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(91,9,9,0),
      0 0 0 0 rgba(91,9,9,0);
  }
}
.hf-btn,
.nav-find {
  animation: pulse-burgundy 2.2s ease-out infinite;
}
.hf-btn:hover,
.nav-find:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hf-btn, .nav-find { animation: none; }
}

/* ============================================================
   Global pill rounding — every button + button-like input gets
   the same fully-rounded radius as the hero "Search" CTA.
   ============================================================ */
button,
.btn,
.nav-hotline,
.nav-find,
.nav-login,
.nav-toggle,
.lead-form input,
.lead-form select,
.lead-form button,
.pill-row button,
.filters select,
.filters input,
.filters .reset,
.project-card .pc-ex,
.featured-text .ex-badge,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="search"],
select {
  border-radius: 999px;
}
textarea, .lead-form textarea { border-radius: 22px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--burgundy); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--burgundy); color: var(--mustard); }

/* ============================================================
   Brand bar (very top, thin)
   ============================================================ */
.brand-strip {
  background: var(--burgundy);
  color: var(--white);
  text-align: center;
  padding: 9px 22px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.brand-strip strong { color: var(--mustard); font-weight: 700; letter-spacing: 3.5px; }
.brand-strip a { color: rgba(255,255,255,.85); margin-left: 18px; }
.brand-strip a:hover { color: var(--mustard); }

/* ============================================================
   Main nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(91,9,9,.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex; gap: 22px; flex: 1;
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a {
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}
.nav-cta {
  display: flex; gap: 6px; align-items: center;
}
.nav-hotline {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--f-body); font-weight: 700;
  font-size: 11.5px; letter-spacing: 1.2px;
}
.nav-hotline strong { font-weight: 800; letter-spacing: 2px; }
.nav-hotline:hover { background: var(--burgundy); color: var(--white); }
.nav-login {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border: 1px solid rgba(91,9,9,.22);
  color: var(--burgundy);
  font-family: var(--f-body); font-weight: 800;
  font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-login::before {
  content: ''; width: 12px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b0909' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/><polyline points='10 17 15 12 10 7'/><line x1='15' y1='12' x2='3' y2='12'/></svg>") no-repeat center / contain;
}
.nav-login:hover {
  background: var(--burgundy); color: var(--white);
  border-color: var(--burgundy);
}
.nav-login:hover::before { filter: brightness(0) invert(1); }
.nav-find {
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--f-body); font-weight: 800;
  font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 8px 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, transform .15s;
}
.nav-find:hover { background: var(--burgundy-soft); transform: translateY(-1px); color: var(--white); }
.nav-find::after {
  content: ''; width: 12px; height: 1.5px; background: currentColor; opacity: .85;
}

.nav-toggle { display: none; }

/* ============================================================
   Shoulder labels — recurring micro-text from the brand deck
   ============================================================ */
.shoulder {
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.shoulder strong { color: var(--ink); font-weight: 800; }

/* ============================================================
   Hero (Home) — B&W skyscraper + serif + script accent
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(600px, 80vh, 820px);
  background: var(--white);
  /* no overflow:hidden — the search popovers (Beds & Baths / Price Range)
     open below the card and must not be clipped by the hero edge */
}
.hero-photo {
  position: absolute; inset: 0;
  /* Aerial of Sahel gated compound (villas + pools + golf) — Egypt North Coast */
  background-image: url('/img/hero/sahel-aerial-compound.jpg');
  background-size: cover; background-position: center;
  filter: contrast(1.06) saturate(1.08);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.78) 100%);
}
.hero-inner {
  /* must outrank the content sections below (.lookfor .container z=2) so the
     live search dropdown overlays them; stays under the nav (z=50) */
  position: relative; z-index: 8;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 40px;
  min-height: clamp(600px, 80vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  color: var(--white);
  text-align: center;
}
.hero-lockup {
  max-width: 1180px;
  position: relative;
  text-align: center;
}
.hero-lockup .script {
  font-family: var(--f-script);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  color: var(--mustard);
  line-height: 1; margin-bottom: -8px;
  letter-spacing: -.5px;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
  display: block;
  text-align: center;
}
.hero-lockup .display {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(52px, 8.6vw, 116px);
  line-height: .9;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.hero-lockup .display em {
  font-style: normal; font-weight: 900;
  color: var(--mustard);
}

/* ============================================================
   Hero search — glass-morphic card overlapping the hero banner
   Inspired by Nawy hero search; brand-tinted (burgundy CTA).
   ============================================================ */
.hero-search-wrap {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1180px;
  padding: 0 28px;
  margin: 0 auto;
}
.hero-search {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 40px;
  padding: 22px 28px 24px;
  box-shadow:
    0 30px 70px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.32);
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
}

/* ---- Border beam: a glass dot orbiting the card's border ---- */
@property --hs-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.hero-search::before,
.hero-search::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 42px;
  padding: 2px; /* beam thickness */
  pointer-events: none;
  /* tail fades in (mustard) and ends in a bright glass-white head */
  background: conic-gradient(from var(--hs-angle),
    transparent 0deg,
    transparent 268deg,
    rgba(247,189,1,.0) 270deg,
    rgba(247,189,1,.55) 322deg,
    rgba(255,255,255,.95) 352deg,
    transparent 360deg);
  /* show the gradient only on the border ring */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: hs-orbit 7s linear infinite;
}
/* soft glow twin underneath the crisp ring */
.hero-search::after {
  filter: blur(7px);
  opacity: .8;
}
@keyframes hs-orbit {
  to { --hs-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-search::before, .hero-search::after { animation: none; opacity: 0; }
}
.hs-tabs {
  display: flex;
  gap: 28px;
  padding: 0 16px 4px;
}
.hs-tab {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.65);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.hs-tab:hover { color: rgba(255,255,255,.9); }
.hs-tab.active {
  color: var(--white);
  border-bottom-color: var(--mustard);
}
.hs-search-row {
  background: var(--white);
  border-radius: 999px;
  padding: 14px 26px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.hs-search-icon {
  width: 18px; height: 18px;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.hs-search-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--f-body);
  /* system font for typed text — its metrics never clip descenders in
     inputs, even at fractional Chrome zoom levels (Manrope's do) */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', var(--f-body);
  font-size: 15px;
  line-height: 34px;
  height: 34px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--burgundy);
  outline: none;
  font-weight: 700;
}
.hs-search-row input::placeholder {
  color: var(--ink-mute);
  font-weight: 500;
}
.hs-filters-row {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.hs-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 38px 13px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: background .15s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1,1 L5,5 L9,1' stroke='%231a0606' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.hs-pill:hover { background: rgba(255,255,255,.78); }
.hs-pill:focus { background: var(--white); }

/* Beds & Baths — custom pill with circle-picker popover */
.hs-bb {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.hs-bb-btn {
  width: 100%;
  text-align: left;
  padding: 13px 38px 13px 22px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1,1 L5,5 L9,1' stroke='%231a0606' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-bb-btn:hover { background-color: rgba(255,255,255,.78); }
.hs-bb-btn.on { background-color: var(--white); font-weight: 800; color: var(--burgundy); }
.hs-bb-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  background: var(--white);
  border-radius: 18px;
  padding: 18px 20px;
  min-width: 286px;
  box-shadow: 0 24px 60px rgba(26,6,6,.25);
}
.hs-bb-pop[hidden] { display: none; }
.hs-bb-group + .hs-bb-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91,9,9,.08);
}
.hs-bb-group strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 9px;
}
.hs-bb-row { display: flex; gap: 8px; }
.hs-bb-row button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(91,9,9,.25);
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.hs-bb-row button:hover { border-color: var(--burgundy); }
.hs-bb-row button.sel {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

/* Price Range — min/max inputs + dual slider popover */
.hs-pr {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
.hs-pr-pop { min-width: 308px; }
.hs-pr-title {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 13px;
}
.hs-pr-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.hs-pr-inputs input {
  width: 100%;
  border: 1px solid rgba(91,9,9,.2);
  border-radius: 14px;
  padding: 11px 10px;
  text-align: center;
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.hs-pr-inputs input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(91,9,9,.08); }
.hs-pr-slider {
  position: relative;
  height: 26px;
  margin: 0 6px 16px;
}
.hs-pr-track, .hs-pr-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 7px;
  border-radius: 999px;
}
.hs-pr-track { left: 0; right: 0; background: rgba(91,9,9,.1); }
.hs-pr-fill  { background: rgba(91,9,9,.32); }
.hs-pr-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}
.hs-pr-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--white);
  border: 6.5px solid var(--burgundy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,6,6,.25);
}
.hs-pr-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 6.5px solid var(--burgundy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,6,6,.25);
}
.hs-pr-apply {
  width: 100%;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  transition: background .15s;
}
.hs-pr-apply:hover { background: var(--burgundy-soft); }
.hs-search-btn {
  flex: 0 0 auto;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 42px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s;
  box-shadow: 0 6px 18px rgba(91,9,9,.35);
}
.hs-search-btn:hover {
  background: var(--burgundy-soft);
  transform: translateY(-1px);
}
@media (max-width: 1080px) {
  .hero-search-wrap { padding: 0 18px; }
  .hero-search { padding: 18px 20px 20px; border-radius: 32px; }
  .hs-filters-row { gap: 8px; }
  .hs-pill { padding: 12px 34px 12px 18px; font-size: 13px; }
  .hs-search-btn { padding: 13px 32px; }
}
@media (max-width: 760px) {
  .hs-tabs { padding: 0 8px 4px; }
  .hs-search-row { padding: 12px 20px; }
  .hs-filters-row { flex-direction: column; gap: 8px; }
  .hs-pill { width: 100%; flex: none; }
  .hs-search-btn { width: 100%; padding: 14px 24px; }
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  padding: clamp(72px, 9vw, 130px) 28px;
  position: relative;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.eyebrow { display: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  text-transform: capitalize;
  color: var(--burgundy);
}
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -2px; }
h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.9px; line-height: 1; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -1px; }
h4 { font-size: 18px; letter-spacing: -.4px; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--burgundy); font-weight: 900; }
.lede {
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================================
   Giant burgundy comma motif (the brand's signature decoration)
   ============================================================ */
.comma-motif {
  position: absolute;
  font-family: 'Playfair Display', Georgia, var(--f-display);
  font-weight: 900;
  font-style: italic;
  color: var(--burgundy);
  line-height: 0.6;
  user-select: none; pointer-events: none;
  letter-spacing: -.5px;
}
.comma-motif.huge { font-size: clamp(420px, 50vw, 640px); }
.comma-motif.big  { font-size: clamp(280px, 36vw, 480px); }

/* ============================================================
   "What are you looking for?" — 8 category tiles
   ============================================================ */
.lookfor {
  background: var(--white);
  padding: clamp(64px, 7vw, 110px) 28px;
  position: relative; overflow: hidden;
}
.lookfor .comma-motif {
  top: -120px; right: -60px;
  color: rgba(91,9,9,.05);
}
.lookfor .container { position: relative; z-index: 2; }
.lookfor-head {
  margin-bottom: 36px;
  text-align: left;
}
.lookfor-head h2 { margin: 0; }
.lookfor-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.lf-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 22px 12px 20px;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.14);
  border-radius: 22px;
  text-align: center;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  min-height: 130px;
}
.lf-card:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(91,9,9,.22);
}
.lf-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  transition: background .18s, color .18s;
}
.lf-card:hover .lf-icon {
  background: var(--mustard);
  color: var(--burgundy);
}
.lf-icon svg { width: 22px; height: 22px; }
.lf-label {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
  transition: color .18s;
}
.lf-card:hover .lf-label { color: var(--white); }
@media (max-width: 1080px) {
  .lookfor-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .lookfor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lf-card { min-height: 120px; padding: 18px 10px 16px; border-radius: 18px; }
  .lf-label { font-size: 10.5px; letter-spacing: 1.1px; }
}

/* ============================================================
   Hot Offers — horizontal carousel of project deal cards
   ============================================================ */
.hotoffers {
  background: var(--bg-soft);
  padding: clamp(64px, 7vw, 110px) 28px;
}
.hotoffers-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 18px; flex-wrap: wrap;
}
.hotoffers-head h2 { margin: 6px 0 0; }
.show-all {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--burgundy);
  padding: 0;
  border: none;
  background: transparent;
  transition: color .15s, gap .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.show-all:hover { color: var(--burgundy-soft); gap: 10px; }

.ho-track-wrap {
  position: relative;
}
.ho-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}
.ho-track::-webkit-scrollbar { height: 6px; }
.ho-track::-webkit-scrollbar-track { background: rgba(91,9,9,.06); border-radius: 999px; }
.ho-track::-webkit-scrollbar-thumb { background: rgba(91,9,9,.28); border-radius: 999px; }

.ho-card {
  flex: 0 0 480px;
  max-width: 480px;
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(91,9,9,.10);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.ho-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(91,9,9,.18);
}
.ho-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ho-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}
.ho-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 10px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 800;
  padding: 5px 10px;
  z-index: 2;
}
.ho-badge.muted {
  background: var(--burgundy);
  color: var(--white);
}
.ho-overlay {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  color: var(--white);
  z-index: 2;
}
.ho-developer {
  font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 4px;
}
.ho-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ho-deal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}
.ho-deal span {
  color: var(--mustard);
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 13px;
}

.ho-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: var(--white);
  color: var(--burgundy);
  border: 1px solid rgba(91,9,9,.18);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .15s, color .15s, transform .15s;
  box-shadow: 0 8px 24px rgba(91,9,9,.16);
}
.ho-nav:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}
.ho-nav.prev { left: -18px; }
.ho-nav.next { right: -18px; }

@media (max-width: 760px) {
  .ho-card { flex: 0 0 86%; max-width: 86%; }
  .ho-nav { display: none; }
  .ho-name { font-size: 22px; }
}

/* ============================================================
   USP / "Why Element" strip — 4 columns with small icons
   ============================================================ */
.usp {
  background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(91,9,9,.18);
  border-bottom: 1px solid rgba(91,9,9,.18);
}
.usp-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(91,9,9,.12);
}
.usp-item:last-child { border-right: none; }
.usp-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--mustard);
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 12px;
}
.usp-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--burgundy);
  letter-spacing: -.4px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 10px;
}
.usp-body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   Featured projects — single split panel composition
   ============================================================ */
.featured {
  background: var(--white);
  position: relative;
}
.featured-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
  min-height: 520px;
}
.featured-row.flip {
  grid-template-columns: 1fr 1.2fr;
}
.featured-row.flip .featured-photo { order: 2; }
.featured-row.flip .featured-text  { order: 1; }
.featured-photo {
  position: relative;
  background-size: cover; background-position: center;
}
.featured-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%);
}
.featured-photo .corner-label {
  position: absolute; top: 20px; left: 20px;
  color: var(--white);
  font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase;
  background: rgba(0,0,0,.5); padding: 5px 10px; backdrop-filter: blur(4px);
}
.featured-text {
  background: var(--burgundy);
  color: var(--white);
  padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.featured-text.box-navy { background: var(--navy); }
.featured-text.box-light { background: var(--bg-soft); color: var(--ink); }
.featured-text.box-light h3 { color: var(--burgundy); }
.featured-text .ex-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mustard); color: var(--ink);
  font-weight: 800; font-size: 10.5px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 18px;
  width: max-content;
}
.featured-text .top-meta {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 12px;
}
.featured-text.box-light .top-meta { color: var(--ink-mute); }
.featured-text h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -1.6px;
  text-transform: none;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1;
}
.featured-text .sub {
  font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 380px;
  margin-bottom: 28px;
}
.featured-text.box-light .sub { color: var(--ink-soft); }
.featured-text .stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 22px;
  margin-bottom: 28px;
}
.featured-text.box-light .stats { border-top-color: rgba(91,9,9,.18); }
.featured-text .stat-l { color: rgba(255,255,255,.55); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; }
.featured-text.box-light .stat-l { color: var(--ink-mute); }
.featured-text .stat-v { font-weight: 700; color: var(--white); margin-top: 2px; }
.featured-text.box-light .stat-v { color: var(--burgundy); }
.featured-text .cta-row {
  display: flex; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-body); font-weight: 700;
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase;
  transition: all .15s;
}
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-mustard:hover { background: var(--mustard-soft); color: var(--ink); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
}
.featured-text.box-light .btn-outline { color: var(--burgundy); }
.btn-outline:hover { background: var(--white); color: var(--burgundy); }
.featured-text.box-light .btn-outline:hover { background: var(--burgundy); color: var(--white); }
.btn-burgundy { background: var(--burgundy); color: var(--white); }
.btn-burgundy:hover { background: var(--burgundy-soft); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }

/* ============================================================
   Project grid (for /projects + Home "more projects" section)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  position: relative;
  display: block;
  background: var(--white);
  overflow: hidden;
  transition: transform .25s ease;
}
.project-card:hover { transform: translateY(-4px); }
.project-card .pc-photo {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  transition: transform .35s ease;
  position: relative;
}
.project-card:hover .pc-photo {
  transform: scale(1.04);
}
.project-card .pc-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%);
}
.project-card .pc-overlay {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: var(--burgundy);
  color: var(--white);
  padding: 18px 20px 16px;
  display: flex; flex-direction: column;
  z-index: 2;
}
.project-card.exclusive .pc-overlay { background: var(--burgundy); }
.project-card .pc-ex {
  position: absolute; top: 14px; left: 14px;
  background: var(--mustard); color: var(--ink);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 8px; z-index: 3;
}
.project-card .pc-developer {
  font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 6px;
}
.project-card .pc-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 8px;
}
.project-card .pc-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  letter-spacing: .5px;
}
.project-card .pc-price {
  font-family: var(--f-body);
  font-weight: 700; color: var(--mustard);
  font-size: 13px;
}

/* Projects-page header + filter rail */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(91,9,9,.1);
  padding: 56px 28px 44px;
  position: relative; overflow: hidden;
}
.page-head .container { position: relative; z-index: 2; }
.page-head .comma-motif {
  top: -160px; right: -40px;
  color: rgba(91,9,9,.06);
}
.page-head h1 {
  margin-bottom: 14px;
  letter-spacing: -3px;
}
.page-head .lede { color: var(--ink-soft); margin-bottom: 0; }

.filters {
  background: var(--white);
  border-bottom: 1px solid rgba(91,9,9,.1);
  padding: 20px 28px;
  position: sticky;
  top: 75px; z-index: 30;
}
.filters-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.filters label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin-right: 4px;
}
.filters select, .filters input {
  padding: 9px 16px;
  border: 1px solid rgba(91,9,9,.2);
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13px;
  outline: none;
  min-width: 160px;
}
.filters select:focus, .filters input:focus { border-color: var(--burgundy); }
.filters .count {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-left: auto;
  letter-spacing: 1px;
}
.filters .reset {
  border: 1px solid rgba(91,9,9,.2);
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
}
.filters .reset:hover { background: var(--burgundy); color: var(--white); }

.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-mute);
}
.empty-state .big {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 80px;
  line-height: 1;
  color: var(--burgundy);
  margin-bottom: 8px;
}

/* ============================================================
   Project detail (/projects/:slug)
   ============================================================ */
/* Comma Mask Reveal banner — every photo is born from the Element comma.
   A mustard comma seed breathes bottom-right; on advance it becomes an
   SVG clip mask that scales open to reveal the next photo, with a
   mustard outline tracing the comma as it grows. */
.cmk-banner { position: relative; width: 100%; background: #1a0606; }
.cmk-banner .cmk-stage {
  position: relative;
  width: 100%;
  height: clamp(400px, 58vh, 640px);
  overflow: hidden;
  background: #3d0606;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 34px 70px -36px rgba(91,9,9,.45);
}
.cmk-banner .cmk-stage:focus-visible::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px rgba(247,189,1,.6);
  pointer-events: none; z-index: 9;
}
.cmk-banner .cmk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cmk-banner .cmk-ph {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  will-change: transform, opacity;
  z-index: 0;
}
.cmk-banner .cmk-a { z-index: 1; }
.cmk-banner .cmk-b { opacity: 0; }
.cmk-banner .cmk-ph.cmk-zoom { transform: scale(1.05); transition: transform 1.1s cubic-bezier(.65,0,.2,1); }
.cmk-banner .cmk-ph.cmk-fade { transition: opacity .5s ease; }
.cmk-banner .cmk-ph.cmk-noT { transition: none !important; }
.cmk-banner .cmk-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to top, rgba(26,6,6,.35), rgba(26,6,6,0) 27%),
    linear-gradient(205deg, rgba(26,6,6,.24), rgba(26,6,6,0) 32%);
}
.cmk-banner .cmk-outline {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 4; pointer-events: none; opacity: 0;
  transition: opacity .45s ease .05s;
}
.cmk-banner .cmk-outline.cmk-on { opacity: 1; transition: none; }
.cmk-banner .cmk-outline-path {
  /* No vector-effect: non-scaling-stroke here — Chrome computes dashes in
     screen space with it, breaking pathLength normalization. The JS keeps
     the stroke hairline-thin instead (stroke-width = 2 / scale). */
  fill: none; stroke: var(--mustard); stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100.6;
  filter: drop-shadow(0 0 6px rgba(247,189,1,.4));
}
.cmk-banner .cmk-seed {
  position: absolute; right: 48px; bottom: 40px;
  width: 120px; height: 120px;
  z-index: 5; pointer-events: none; opacity: .5;
  transition: opacity .45s ease;
  animation: cmkBreathe 3.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(26,6,6,.35));
}
.cmk-banner .cmk-seed svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cmk-banner .cmk-seed path { fill: var(--mustard); }
.cmk-banner .cmk-seed.cmk-hide { opacity: 0; transition: opacity .22s ease; }
@keyframes cmkBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.cmk-banner .cmk-zone {
  position: absolute; top: 0; bottom: 0; width: 50%;
  z-index: 6; background: transparent; border: 0; padding: 0;
  border-radius: 0; /* opt out of the global button pill rule — keeps the full hit area */
  -webkit-tap-highlight-color: transparent;
}
.cmk-banner .cmk-zone-l { left: 0; cursor: w-resize; }
.cmk-banner .cmk-zone-r { right: 0; cursor: e-resize; }
.cmk-banner .cmk-zone:focus { outline: none; }
.cmk-banner .cmk-zone:focus-visible { box-shadow: inset 0 0 0 2px rgba(247,189,1,.5); }
.cmk-banner .cmk-chip {
  position: absolute; top: 22px; right: 24px; z-index: 7;
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 16px 8px; border-radius: 999px;
  background: rgba(26,6,6,.34); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 32px rgba(26,6,6,.32);
  color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 13.5px;
  letter-spacing: .14em; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.cmk-banner .cmk-cur { display: inline-block; min-width: 2ch; text-align: center; }
.cmk-banner .cmk-cur.cmk-tick { animation: cmkTick .5s cubic-bezier(.2,.8,.2,1); }
@keyframes cmkTick { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
.cmk-banner .cmk-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  color: var(--mustard); font-size: 21px; line-height: 0;
  display: inline-block; transform: translateY(-1px);
}
.cmk-banner .cmk-tot { opacity: .6; font-size: 11.5px; }
.cmk-banner .cmk-dots {
  position: absolute; left: 24px; bottom: 22px; z-index: 7;
  display: flex; gap: 9px; align-items: center;
}
.cmk-banner .cmk-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.45);
  box-shadow: 0 2px 8px rgba(26,6,6,.4);
  cursor: pointer;
  transition: width .38s cubic-bezier(.65,0,.2,1), background .3s ease, transform .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.cmk-banner .cmk-dot:hover { background: rgba(255,255,255,.8); transform: scale(1.15); }
.cmk-banner .cmk-dot.cmk-on { width: 30px; background: var(--mustard); transform: none; box-shadow: 0 3px 12px rgba(91,9,9,.4); }
.cmk-banner .cmk-dot:focus { outline: none; }
.cmk-banner .cmk-dot:focus-visible { box-shadow: 0 0 0 3px rgba(247,189,1,.5); }
@media (max-width: 760px) {
  .cmk-banner .cmk-stage { height: 360px; }
  .cmk-banner .cmk-seed { right: 26px; bottom: 26px; width: 92px; height: 92px; }
  .cmk-banner .cmk-chip { top: 14px; right: 14px; padding: 8px 13px 7px; font-size: 12px; }
  .cmk-banner .cmk-comma { font-size: 18px; }
  .cmk-banner .cmk-dots { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmk-banner .cmk-seed { animation: none; }
  .cmk-banner .cmk-ph.cmk-zoom { transition: none; transform: none; }
  .cmk-banner .cmk-dot { transition: none; }
  .cmk-banner .cmk-cur.cmk-tick { animation: none; }
  .cmk-banner .cmk-outline { transition: none; }
}

/* Project header — all text below the banner */
.project-head {
  background: var(--white);
  padding: 30px 28px 10px;
}
.ph-crumbs {
  font-family: var(--f-body);
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.ph-crumbs a { color: var(--burgundy); font-weight: 700; }
.ph-crumbs a:hover { text-decoration: underline; }
.project-head h1 {
  letter-spacing: -2px;
  margin: 8px 0 10px;
}
.ph-subline {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 680px;
}
.ph-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid rgba(91,9,9,.1);
  padding-top: 20px;
  margin-top: 24px;
}
.ph-meta .meta-l {
  font-family: var(--f-body);
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.ph-meta .meta-v {
  font-family: var(--f-display); font-weight: 800; font-size: 21px;
  letter-spacing: -.4px;
  color: var(--burgundy);
  margin-top: 4px;
}
.ph-meta .meta-v .currency {
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-mute);
  margin-left: 4px; letter-spacing: 1.2px;
}
@media (max-width: 760px) {
  .ph-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

.project-body {
  padding: 80px 28px;
  background: var(--white);
}
.project-body .row {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.project-pitch {
  font-family: var(--f-body);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 3px solid var(--burgundy);
}
.project-pitch + p {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
  max-width: 640px;
}
.project-facts {
  background: var(--bg-soft);
  padding: 32px 28px;
  align-self: start;
}
.project-facts h4 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 18px;
}
.project-facts dl {
  display: grid; gap: 14px;
  font-size: 14px;
}
.project-facts dl > div {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 14px;
  border-bottom: 1px solid rgba(91,9,9,.08);
  padding-bottom: 12px;
}
.project-facts dt {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}
.project-facts dd { color: var(--ink); font-weight: 600; }

.project-cta-block {
  background: var(--burgundy);
  color: var(--white);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.project-cta-block .left h3 {
  color: var(--white);
  margin-bottom: 14px;
}
.project-cta-block .left p {
  color: rgba(255,255,255,.78);
  font-size: 15px; max-width: 460px;
}
.project-cta-block .script-tag {
  position: absolute; top: 30px; right: 38px;
  font-family: var(--f-script);
  font-size: 38px; color: var(--mustard); font-weight: 400;
  transform: rotate(-6deg);
}
.lead-form { display: grid; gap: 12px; }
.lead-form input, .lead-form select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  padding: 13px 20px;
  font-family: var(--f-body); font-size: 14px;
  outline: none;
}
.lead-form textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--white);
  padding: 13px 18px;
  font-family: var(--f-body); font-size: 14px;
  outline: none;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255,255,255,.45); }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { border-color: var(--mustard); background: rgba(255,255,255,.1); }
.lead-form button {
  background: var(--mustard);
  color: var(--ink);
  padding: 14px 18px;
  font-weight: 800; font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lead-form button:hover { background: var(--mustard-soft); transform: translateY(-1px); }
.lead-form .status {
  font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 4px;
}

/* ============================================================
   Network / About page sections
   ============================================================ */
.network-stats {
  background: var(--white);
  padding: 96px 28px;
}
.network-stats .grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(91,9,9,.18);
  border-bottom: 1px solid rgba(91,9,9,.18);
}
.network-stats .item {
  padding: 36px 28px;
  border-right: 1px solid rgba(91,9,9,.12);
}
.network-stats .item:last-child { border-right: none; }
.network-stats .v {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 84px);
  color: var(--burgundy);
  line-height: 1; letter-spacing: -3.4px;
}
.network-stats .v sup {
  font-size: 28px; vertical-align: top; margin-left: 2px;
  color: var(--mustard);
}
.network-stats .l {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* ============================================================
   Big quote / brand statement block
   ============================================================ */
.statement {
  position: relative;
  background: var(--bg-grey);
  padding: 130px 28px;
  text-align: center;
  overflow: hidden;
}
.statement .comma-motif {
  top: -110px; right: -60px;
  color: rgba(91,9,9,.06);
}
.statement .body {
  position: relative; z-index: 2;
  max-width: 980px; margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.18;
  color: var(--burgundy);
  letter-spacing: -1.6px;
  text-transform: uppercase;
}
.statement .body em {
  font-style: normal; font-weight: 900;
  color: var(--mustard);
}
.statement .signoff {
  font-family: var(--f-script);
  font-size: 32px;
  color: var(--mustard);
  margin-top: 36px;
  display: block;
}

/* ============================================================
   "Find Your Element" intake quiz (very lightweight v1)
   ============================================================ */
.intake-hero {
  background: var(--burgundy);
  color: var(--white);
  padding: 100px 28px;
  text-align: center;
  position: relative; overflow: hidden;
}
.intake-hero h1 {
  color: var(--white);
  letter-spacing: -3.4px;
}
.intake-hero h1 em { color: var(--mustard); font-style: normal; }
.intake-hero .script {
  font-family: var(--f-script);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--mustard);
  font-weight: 400;
  margin-bottom: -10px;
}
.intake-hero .lede { color: rgba(255,255,255,.8); margin: 22px auto 0; }

.intake-form {
  max-width: 880px; margin: 0 auto;
  padding: 80px 28px;
}
.intake-step {
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(91,9,9,.1);
  padding-bottom: 36px;
}
.intake-step:last-child { border-bottom: none; }
.intake-step .step-num {
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--mustard);
  font-size: 22px; margin-right: 10px;
  letter-spacing: -.5px;
}
.intake-step .step-title {
  font-family: var(--f-display);
  font-weight: 800; font-size: 22px;
  color: var(--burgundy);
  letter-spacing: -.8px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}
.pill-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill-row button {
  padding: 9px 16px;
  border: 1px solid rgba(91,9,9,.2);
  background: var(--white);
  color: var(--burgundy);
  font-size: 13px; font-weight: 600;
  letter-spacing: .3px;
  transition: all .12s;
}
.pill-row button:hover { border-color: var(--burgundy); }
.pill-row button.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}
.range-row {
  display: flex; flex-direction: column;
  gap: 8px;
}
.range-row input[type=range] {
  appearance: none;
  width: 100%; height: 4px;
  background: rgba(91,9,9,.16);
  border-radius: 999px;
  outline: none;
}
.range-row input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  background: var(--burgundy); border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 0 4px rgba(91,9,9,.16);
}
.range-row .v {
  font-family: var(--f-display);
  font-weight: 700; font-size: 24px;
  color: var(--burgundy);
}

/* ============================================================
   Element App — split-panel promo card
   Beige content side + deep burgundy "stage" panel behind the
   3D phone, ghost comma watermark. The split-color seam is the
   same editorial device as the featured rows — pure Element.
   ============================================================ */
.app-promo {
  background: var(--white);
  /* extra top padding gives the phone's overhang room to breathe */
  padding: clamp(110px, 11vw, 150px) 28px clamp(40px, 4.5vw, 64px);
}
.app-promo-card {
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(120deg, var(--bg-soft) 0%, #fdfbf8 60%, #f3ece4 100%);
  border: 1px solid rgba(91,9,9,.08);
  border-radius: 26px;
  padding: clamp(30px, 3vw, 44px) clamp(24px, 3.5vw, 52px);
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  position: relative;
  box-shadow: 0 14px 36px rgba(91,9,9,.08);
}
.ap-left { position: relative; z-index: 2; }
.ap-script {
  font-family: var(--f-script);
  font-size: clamp(21px, 2.1vw, 28px);
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: -3px;
  margin-left: 2px;
}
.ap-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 12px;
}
.ap-sub {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 400px;
  margin-bottom: 20px;
}
.ap-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.ap-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 12px;
  transition: background .15s, transform .15s;
}
.ap-badge:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }
.ap-badge svg { width: 19px; height: 19px; flex-shrink: 0; }
.ap-badge span {
  display: flex; flex-direction: column;
  font-family: var(--f-body);
  font-weight: 800; font-size: 12px;
  line-height: 1.15; letter-spacing: .2px;
}
.ap-badge span small {
  font-weight: 500; font-size: 8.5px;
  letter-spacing: 1.1px; text-transform: uppercase;
  opacity: .7;
}

/* Phone mockup — 3D perspective, ghost comma + app fragments around it */
.ap-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  min-height: 215px;
  perspective: 1600px;
}
/* Brand comma behind the device */
.ap-ghost-comma {
  position: absolute;
  top: 26%; left: 50%;
  transform: translate(-46%, -50%);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-style: italic;
  font-size: 300px;
  line-height: .6;
  color: rgba(91,9,9,.055);
  user-select: none; pointer-events: none;
  z-index: 1;
}
/* Floating app-UI fragments */
.ap-float {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(91,9,9,.15);
  font-family: var(--f-body);
  animation: ap-float 5s ease-in-out infinite;
}
.ap-float-msg {
  top: -42%; left: -8%;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 8px;
  animation-delay: 0s;
}
.ap-ava {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 800; font-size: 11.5px;
  flex-shrink: 0;
}
.ap-msg-body { display: flex; flex-direction: column; gap: 1px; }
.ap-msg-body strong {
  font-size: 9.5px; font-weight: 800;
  color: var(--ink); letter-spacing: .2px;
}
.ap-msg-body em {
  font-style: normal;
  font-size: 9px; font-weight: 500;
  color: var(--ink-mute);
}
.ap-float-ex {
  top: 14%; right: -6%;
  background: var(--mustard);
  color: var(--ink);
  font-size: 8.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(247,189,1,.4);
  animation-delay: 1.6s;
}
.ap-float-ok {
  bottom: -4%; left: -2%;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 7px;
  font-size: 9.5px; font-weight: 800;
  color: var(--ink);
  letter-spacing: .2px;
  animation-delay: 3.1s;
}
.ap-ok-dot {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}
@keyframes ap-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-float { animation: none; }
}
.ap-phone {
  width: 186px;
  /* iPhone Pro proportions: 19.5:9 display */
  aspect-ratio: 71.5 / 146.6;
  display: flex;
  /* Break out of the card: the device towers above the banner edge */
  position: absolute;
  top: -135px;
  left: 50%;
  margin-left: -93px;
  background: linear-gradient(105deg, #3a3a3c 0%, #1c1c1e 30%, #101012 100%);
  border-radius: 34px;
  /* Slim, uniform titanium bezel */
  padding: 5px;
  z-index: 2;
  transform-style: preserve-3d;
  /* Near-upright pose with a hint of 3D, like a product render */
  transform: rotateY(-13deg) rotateX(3deg) rotate(2.5deg);
  /* Stacked offset shadows = slim device-side thickness on the right edge */
  box-shadow:
    1.5px 1px 0 #3d3d3f,
    3px 2px 0 #2c2c2e,
    4.5px 3px 0 #1d1d1f,
    6px 4px 0 #121214,
    7px 5px 1px rgba(0,0,0,.5);
  /* Ambient floor shadow follows the transformed silhouette */
  filter: drop-shadow(22px 36px 32px rgba(26,6,6,.32));
}
/* Dynamic Island — floating pill with camera lens */
.ap-phone::before {
  content: '';
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 13px;
  background:
    radial-gradient(circle at 77% 50%, #2a4a6b 0 1.9px, #11202f 2.1px 2.7px, transparent 3px),
    #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.04);
}
/* Titanium rail catch-light on the near (left) edge */
.ap-phone::after {
  content: '';
  position: absolute;
  top: 14px; bottom: 14px; left: -1.5px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.45) 18%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.45) 82%, transparent);
  pointer-events: none;
}
/* Physical side buttons — action + volume (left), power (right) */
.ap-side {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4a4a4c, #232325);
  z-index: 1;
}
.ap-side-action { left: -2.5px; top: 64px;  height: 11px; }
.ap-side-volup  { left: -2.5px; top: 84px;  height: 20px; }
.ap-side-voldn  { left: -2.5px; top: 110px; height: 20px; }
.ap-side-power  { right: -2.5px; top: 94px; height: 30px;
  background: linear-gradient(90deg, #232325, #0c0c0e); }
.ap-screen {
  background: var(--bg-soft);
  border-radius: 27px;
  padding: 28px 10px 10px;
  display: flex; flex-direction: column;
  gap: 7px;
  overflow: hidden;
  position: relative;
  flex: 1;
}
.ap-app-nav { margin-top: auto; }
/* Glass glare sweeping across the screen */
.ap-screen::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 26px;
  background: linear-gradient(112deg,
    rgba(255,255,255,.34) 0%,
    rgba(255,255,255,.1) 22%,
    transparent 38%,
    transparent 78%,
    rgba(255,255,255,.08) 100%);
  pointer-events: none;
  z-index: 4;
}
.ap-app-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 4px;
}
.ap-app-logo {
  font-family: var(--f-display);
  font-weight: 900; font-size: 13px;
  letter-spacing: -.4px;
  color: var(--burgundy);
}
.ap-app-logo em { font-style: normal; color: var(--mustard); }
.ap-app-hello {
  font-family: var(--f-body);
  font-size: 9px; font-weight: 600;
  color: var(--ink-mute);
}
.ap-app-search {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: var(--f-body);
  font-size: 9.5px;
  color: var(--ink-mute);
  box-shadow: 0 2px 8px rgba(91,9,9,.06);
}
.ap-app-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(91,9,9,.07);
}
.ap-app-photo {
  height: 72px;
  background-size: cover;
  background-position: center;
}
.ap-app-card-body {
  padding: 8px 11px 9px;
  display: flex; flex-direction: column; gap: 1px;
}
.ap-app-card-body strong {
  font-family: var(--f-display);
  font-weight: 800; font-size: 11.5px;
  color: var(--burgundy);
  letter-spacing: -.2px;
}
.ap-app-card-body span {
  font-family: var(--f-body);
  font-size: 8.5px;
  color: var(--ink-mute);
}
.ap-app-nav {
  display: flex; justify-content: space-around;
  padding: 7px 18px 3px;
}
.ap-app-nav span {
  width: 18px; height: 4px;
  border-radius: 999px;
  background: rgba(91,9,9,.15);
}
.ap-app-nav span.on { background: var(--burgundy); }

/* QR — compact horizontal tile under the badges */
.ap-qr {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.1);
  border-radius: 20px;
  padding: 18px 20px 14px;
  box-shadow: 0 12px 30px rgba(91,9,9,.09);
}
.ap-qr img {
  display: block;
  width: 124px; height: 124px;
  border-radius: 9px;
}
.ap-qr span {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--burgundy);
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .app-promo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ap-sub { margin-left: auto; margin-right: auto; }
  .ap-badges { justify-content: center; }
  .ap-qr { display: none; } /* QR is pointless on the device itself */
  .ap-visual { min-height: 320px; margin-top: 24px; }
  /* In-flow phone on smaller screens — no overhang to collide with text */
  .ap-phone { position: static; margin-left: 0; }
  .ap-float-msg { left: 6%; top: 7%; }
  .ap-float-ex { right: 6%; top: 40%; }
  .ap-float-ok { left: 10%; }
}
@media (max-width: 560px) {
  .app-promo { padding: 40px 16px; }
  .app-promo-card { border-radius: 20px; }
  .ap-phone { width: 148px; }
  .ap-ghost-comma { font-size: 250px; }
  .ap-float-msg { left: 0; }
  .ap-float-ex { right: 0; }
  .ap-float-ok { left: 0; }
}

/* ============================================================
   Home lead form — wide banner card + overlapping floating form
   ============================================================ */
.home-form {
  background: var(--bg-soft);
  padding: clamp(72px, 8vw, 110px) 28px;
  position: relative;
}
.hf-shell {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hf-banner {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 440px;
  padding: 80px clamp(40px, 6vw, 96px);
  display: flex; align-items: center;
  background-image: url('/img/hero/sahel-aerial-compound.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(91,9,9,.18);
}
.hf-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(91,9,9,.94) 0%, rgba(61,6,6,.88) 50%, rgba(0,0,0,.78) 100%);
}
.hf-banner-inner {
  position: relative; z-index: 2;
  color: var(--white);
  max-width: 620px;
}
.hf-banner-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -1.4px;
  color: var(--white);
  text-transform: none;
  margin: 0 0 18px;
}
.hf-banner-title em {
  font-style: normal;
  color: var(--mustard);
}
.hf-banner-sub {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 480px;
  margin-bottom: 28px;
}
.hf-banner-meta {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.hf-banner-meta a {
  color: var(--mustard);
  font-weight: 700;
}
.hf-banner-meta a:hover { color: var(--mustard-soft); }
.hf-banner-meta .dot { opacity: .5; }

/* Floating form card — overlaps right side of banner */
.hf-card-wrap {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  width: 420px;
  z-index: 4;
}
.hf-card {
  background: var(--white);
  border-radius: 28px;
  padding: 32px 30px;
  box-shadow: 0 30px 70px rgba(91,9,9,.22), 0 4px 0 rgba(0,0,0,.02);
}
.hf-card-head { margin-bottom: 18px; }
.hf-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border-radius: 14px;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.hf-card-icon svg { width: 24px; height: 24px; }
.hf-card-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.2px;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.1;
}
.hf-card-sub {
  font-family: var(--f-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0;
}

.hf-form {
  margin-top: 18px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.hf-form input,
.hf-form textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13.5px;
  outline: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.hf-form input::placeholder,
.hf-form textarea::placeholder { color: var(--ink-mute); }
.hf-form input:focus,
.hf-form textarea:focus {
  background: var(--white);
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91,9,9,.08);
}
.hf-form textarea {
  border-radius: 22px;
  min-height: 90px;
  padding-top: 14px;
  resize: vertical;
  font-family: var(--f-body);
}
.hf-form select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 44px 13px 22px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13.5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1,1 L5,5 L9,1' stroke='%235b4744' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
}
.hf-form select:focus {
  background-color: var(--white);
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91,9,9,.08);
}

/* Phone input with flag dropdown */
.hf-phone-wrap {
  position: relative;
  background: var(--bg-soft);
  border-radius: 999px;
  padding-left: 64px;
}
.hf-phone-wrap input {
  background: transparent;
  border-radius: 999px;
  padding-left: 0;
}
.hf-phone-wrap input:focus {
  background: var(--white);
}
.hf-phone-wrap:focus-within {
  background: var(--white);
  border: 1px solid var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91,9,9,.08);
}
.hf-flag {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.hf-flag-eg {
  display: inline-flex; flex-direction: column;
  width: 22px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}
.hf-flag-eg > span { flex: 1; }

.hf-btn {
  margin-top: 6px;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.hf-btn:hover {
  background: var(--burgundy-soft);
  transform: translateY(-1px);
  color: var(--white);
}
.hf-status {
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--ink-mute);
  min-height: 16px;
  margin-top: 2px;
  text-align: center;
}
.hf-status .ok { color: var(--burgundy); font-weight: 700; }

@media (max-width: 1080px) {
  .hf-card-wrap {
    position: relative;
    top: auto; right: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
    margin: -60px auto 0;
  }
  .hf-banner { padding: 56px 36px 96px; min-height: 360px; }
  .hf-banner-inner { max-width: 100%; }
}
@media (max-width: 560px) {
  .home-form { padding: 56px 16px; }
  .hf-banner { border-radius: 22px; padding: 44px 28px 96px; }
  .hf-card { padding: 28px 22px; border-radius: 22px; }
  .hf-banner-title { font-size: 30px; }
}

/* ============================================================
   Element Events — wide promotional banner cards
   ============================================================ */
.events {
  background: var(--white);
  padding: clamp(64px, 7vw, 110px) 28px;
  border-top: 1px solid rgba(91,9,9,.08);
}
.events-head {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.events-head h2 { margin: 0; }

.ev-track-wrap {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.ev-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}
.ev-track::-webkit-scrollbar { height: 6px; }
.ev-track::-webkit-scrollbar-track { background: rgba(91,9,9,.06); border-radius: 999px; }
.ev-track::-webkit-scrollbar-thumb { background: rgba(91,9,9,.28); border-radius: 999px; }

.ev-card {
  flex: 0 0 620px;
  max-width: 620px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 7;
  display: flex; align-items: flex-end;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 14px 30px rgba(91,9,9,.10);
}
.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(91,9,9,.20);
}
.ev-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 100%);
}
.ev-card.accent-burgundy::after { background: linear-gradient(180deg, rgba(91,9,9,0) 30%, rgba(91,9,9,.85) 100%); }
.ev-card.accent-navy::after     { background: linear-gradient(180deg, rgba(0,33,114,0) 30%, rgba(0,33,114,.88) 100%); }
.ev-card.accent-ink::after      { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.86) 100%); }
.ev-card.accent-mustard::after  { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(247,189,1,.86) 100%); }

.ev-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--white);
  color: var(--burgundy);
  font-family: var(--f-body);
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
}
.ev-card.accent-mustard .ev-badge {
  background: var(--ink); color: var(--mustard);
}

.ev-date-chip {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.32);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
}
.ev-card.accent-mustard .ev-date-chip {
  background: rgba(0,0,0,.32);
  border-color: rgba(0,0,0,.2);
}

.ev-body {
  position: relative; z-index: 2;
  padding: 32px;
  color: var(--white);
  width: 100%;
}
.ev-card.accent-mustard .ev-body { color: var(--ink); }
.ev-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.8px;
  margin-bottom: 8px;
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.ev-card.accent-mustard .ev-title { text-shadow: none; }
.ev-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-bottom: 14px;
}
.ev-card.accent-mustard .ev-meta { color: rgba(26,6,6,.78); }
.ev-meta .sep { opacity: .5; }
.ev-description {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  margin-bottom: 18px;
  max-width: 460px;
}
.ev-card.accent-mustard .ev-description { color: rgba(26,6,6,.7); }
.ev-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.ev-cta::after {
  content: ''; width: 14px; height: 1.5px; background: currentColor;
}
.ev-cta:hover {
  background: var(--mustard-soft);
  transform: translateX(2px);
  color: var(--ink);
}
.ev-card.accent-mustard .ev-cta {
  background: var(--burgundy);
  color: var(--white);
}
.ev-card.accent-mustard .ev-cta:hover { background: var(--burgundy-deep); color: var(--white); }

.ev-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: var(--white);
  color: var(--burgundy);
  border: 1px solid rgba(91,9,9,.18);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .15s, color .15s, transform .15s;
  box-shadow: 0 8px 24px rgba(91,9,9,.16);
}
.ev-nav:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}
.ev-nav.prev { left: -18px; }
.ev-nav.next { right: -18px; }

@media (max-width: 760px) {
  .ev-card { flex: 0 0 88%; max-width: 88%; aspect-ratio: 16 / 9; }
  .ev-title { font-size: 22px; }
  .ev-description { font-size: 13px; }
  .ev-nav { display: none; }
}

/* ============================================================
   Featured Projects — bento mosaic (1 large showcase + 4 cards)
   ============================================================ */
.featproj {
  background: var(--white);
  padding: clamp(64px, 7vw, 110px) 28px;
}
.featproj-head {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 18px; flex-wrap: wrap;
}
.featproj-head h2 { margin: 0; }
.featproj-head .lede { max-width: 560px; }
.featproj-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 6px 18px rgba(91,9,9,.05);
}
.fp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91,9,9,.22);
  box-shadow: 0 18px 40px rgba(91,9,9,.13);
}
.fp-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.fp-ex {
  position: absolute; top: 12px; left: 12px;
  background: var(--mustard); color: var(--ink);
  font-family: var(--f-body);
  font-size: 9px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 3;
}
.fp-body {
  padding: 13px 16px 14px;
  display: flex; flex-direction: column;
  gap: 3px;
  background: var(--white);
}
.fp-developer {
  font-family: var(--f-body);
  font-size: 9.5px; letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
}
.fp-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.4px;
  line-height: 1.05;
  color: var(--burgundy);
}
.fp-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .3px;
}
.fp-price {
  font-weight: 800;
  background: var(--mustard);
  color: var(--ink);
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .featproj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .featproj-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Element News — editorial 3-col card grid
   ============================================================ */
.news {
  background: var(--white);
  padding: clamp(72px, 8vw, 120px) 28px;
  border-top: 1px solid rgba(91,9,9,.08);
}
.news-head {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 24px; flex-wrap: wrap;
}
.news-head h2 { margin: 0; }
.news-head .lede {
  max-width: 560px;
}
.news-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--white);
  transition: transform .25s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-photo {
  display: block;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  transition: filter .25s ease;
}
.news-card:hover .news-photo { filter: brightness(1.04); }
.news-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--white);
  color: var(--burgundy);
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.news-body { display: flex; flex-direction: column; gap: 10px; }
.news-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.news-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.4px;
  color: var(--burgundy);
  text-transform: none;
}
.news-title a { color: inherit; }
.news-title a:hover { color: var(--burgundy-soft); }
.news-excerpt {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.news-link {
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--mustard);
  transition: border-color .15s, color .15s;
}
.news-link:hover {
  color: var(--burgundy-soft);
  border-bottom-color: var(--burgundy);
}
@media (max-width: 1080px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ROI Calculator page
   ============================================================ */
.roi-wrap {
  background: var(--white);
  padding: clamp(56px, 6vw, 96px) 28px;
}
.roi-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.roi-inputs {
  background: var(--bg-soft);
  padding: 36px 32px;
  border-radius: 28px;
  display: flex; flex-direction: column;
  gap: 20px;
  position: sticky; top: 90px;
}
.roi-field {
  display: flex; flex-direction: column; gap: 6px;
}
.roi-field label {
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.roi-field input,
.roi-field select {
  background: var(--white);
  border: 1px solid rgba(91,9,9,.16);
  padding: 12px 18px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--burgundy);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.roi-field input:focus,
.roi-field select:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(91,9,9,.08);
}
.roi-field .hint {
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.45;
}
.roi-actions {
  display: flex; gap: 10px; margin-top: 10px;
}

.roi-results {
  display: flex; flex-direction: column; gap: 28px;
}
.roi-headline {
  background: var(--burgundy);
  color: var(--white);
  padding: 36px 32px;
  border-radius: 28px;
  position: relative; overflow: hidden;
}
.roi-headline::after {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(247,189,1,.18) 0%, transparent 70%);
  pointer-events: none;
}
.roi-hl-label {
  font-size: 11px; letter-spacing: 2.2px;
  text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.roi-hl-value {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -2px;
  line-height: 1;
  color: var(--mustard);
  text-transform: uppercase;
}
.roi-hl-sub {
  font-family: var(--f-body);
  font-size: 14px;
  color: rgba(255,255,255,.78);
  margin-top: 8px;
  letter-spacing: .3px;
}
.roi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(91,9,9,.14);
  border-radius: 22px;
  overflow: hidden;
}
.roi-stat {
  padding: 22px 22px;
  border-right: 1px solid rgba(91,9,9,.1);
  border-bottom: 1px solid rgba(91,9,9,.1);
}
.roi-stat:nth-child(3n) { border-right: none; }
.roi-stat:nth-last-child(-n+3) { border-bottom: none; }
.roi-stat .l {
  font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.roi-stat .v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.6px;
  color: var(--burgundy);
}

.roi-table-wrap { overflow-x: auto; }
.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-body);
  font-size: 14px;
}
.roi-table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 14px 18px;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-mute);
}
.roi-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(91,9,9,.08);
  color: var(--ink);
}
.roi-table td:first-child { font-weight: 800; color: var(--burgundy); }
.roi-table td:last-child  { font-weight: 700; color: var(--burgundy); }

.roi-disclaimer {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 16px;
}
.roi-disclaimer a { color: var(--burgundy); font-weight: 700; }
.roi-disclaimer a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .roi-grid { grid-template-columns: 1fr; gap: 32px; }
  .roi-inputs { position: static; }
  .roi-stats { grid-template-columns: repeat(2, 1fr); }
  .roi-stat:nth-child(3n) { border-right: 1px solid rgba(91,9,9,.1); }
  .roi-stat:nth-child(2n) { border-right: none; }
  .roi-stat:nth-last-child(-n+3) { border-bottom: 1px solid rgba(91,9,9,.1); }
  .roi-stat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .roi-stats { grid-template-columns: 1fr; }
  .roi-stat { border-right: none !important; }
  .roi-stat:not(:last-child) { border-bottom: 1px solid rgba(91,9,9,.1) !important; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-wrap {
  background: var(--white);
  padding: 52px 28px 72px;
}
.contact-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  /* fixed columns, centered as one composition */
  grid-template-columns: minmax(0, 560px) 430px;
  justify-content: center;
  gap: 64px;
  align-items: center;
}
.contact-left .eyebrow { color: var(--burgundy); }
.contact-left h2 {
  margin-bottom: 14px;
}
.contact-left .lede { margin-bottom: 24px; max-width: 460px; font-size: 14.5px; }
.contact-channels { display: grid; gap: 13px; max-width: 420px; }
.contact-channel {
  border-left: 2px solid var(--burgundy);
  padding-left: 14px;
}
.contact-channel .l {
  font-size: 9.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--ink-mute);
  font-weight: 700;
}
.contact-channel .v {
  font-family: var(--f-body); font-weight: 800;
  font-size: 15px; color: var(--burgundy);
  margin-top: 2px; letter-spacing: 0;
}
/* Compact variant of the advice card on the contact page */
.contact-grid .hf-card {
  padding: 24px 22px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(91,9,9,.12);
}
.contact-grid .hf-card-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  margin-bottom: 10px;
}
.contact-grid .hf-card-icon svg { width: 19px; height: 19px; }
.contact-grid .hf-card-title { font-size: 15px; }
.contact-grid .hf-card-sub { font-size: 11.5px; }
.contact-grid .hf-card-head { margin-bottom: 12px; }
.contact-grid .hf-form { margin-top: 12px; gap: 8px; }
.contact-grid .hf-form input,
.contact-grid .hf-form select {
  padding: 10px 17px;
  font-size: 12.5px;
}
.contact-grid .hf-form select { padding-right: 40px; }
.contact-grid .hf-phone-wrap { padding-left: 54px; }
.contact-grid .hf-flag { left: 14px; }
.contact-grid .hf-form textarea {
  min-height: 62px;
  padding: 10px 17px;
  font-size: 12.5px;
  border-radius: 17px;
}
.contact-grid .hf-btn {
  padding: 11px 20px;
  font-size: 11.5px;
  letter-spacing: 1.4px;
}

.contact-right {
  background: var(--burgundy);
  color: var(--white);
  padding: 48px 44px;
  position: relative; overflow: hidden;
}
.contact-right .comma-motif {
  top: -100px; right: -40px;
  color: rgba(255,255,255,.08);
  font-size: 380px;
}
.contact-right h3 {
  color: var(--white); margin-bottom: 8px;
}
.contact-right p { color: rgba(255,255,255,.78); margin-bottom: 28px; font-size: 14px; }

/* ============================================================
   Element Live — map, consultants, deal flow
   ============================================================ */
.nav-live-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,85,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(31,157,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); }
}

.live-head {
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(91,9,9,.08);
  padding: 44px 28px 34px;
}
.live-title-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.live-title-row h1 { margin: 0; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid rgba(31,157,85,.35);
  color: #1f9d55;
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.live-badge.small { font-size: 9px; padding: 4px 10px; }
.live-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1f9d55;
  animation: live-pulse 1.6s ease-out infinite;
}

.live-stats {
  background: var(--white);
  border-bottom: 1px solid rgba(91,9,9,.08);
  padding: 0 28px;
}
.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ls-item {
  padding: 20px 24px;
  border-right: 1px solid rgba(91,9,9,.08);
}
.ls-item:last-child { border-right: none; }
.ls-v {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -1px;
  color: var(--burgundy);
  line-height: 1;
}
.ls-l {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 5px;
}

.live-wrap { background: var(--white); padding: 32px 28px 72px; }

/* Filter tabs */
.lr-tabs {
  display: flex; gap: 9px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.lr-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(91,9,9,.18);
  background: var(--white);
  color: var(--burgundy);
  font-family: var(--f-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .3px;
  padding: 9px 16px;
  transition: background .15s, color .15s, border-color .15s;
}
.lr-tab:hover { border-color: var(--burgundy); }
.lr-tab.on {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}
.lr-tab-n {
  background: rgba(31,157,85,.12);
  color: #1f9d55;
  font-size: 10.5px; font-weight: 800;
  min-width: 21px; height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lr-tab.on .lr-tab-n { background: rgba(255,255,255,.18); color: var(--white); }

/* Roster grid */
.lr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lr-card {
  background: var(--white);
  border: 1px solid rgba(91,9,9,.1);
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.lr-card.available {
  border-color: rgba(31,157,85,.35);
  box-shadow: 0 8px 24px rgba(31,157,85,.08);
}
.lr-card.available:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(31,157,85,.14);
}
.lr-card.viewing, .lr-card.busy { opacity: .72; }
.lr-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.lr-ava {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--burgundy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 900; font-size: 17px;
}
.lr-presence {
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.lr-presence.ok  { background: #1f9d55; animation: live-pulse 1.6s ease-out infinite; }
.lr-presence.mid { background: var(--mustard); }
.lr-presence.off { background: var(--grey-mid); }
.lr-status {
  font-family: var(--f-body);
  font-size: 9px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.lr-status.ok  { background: rgba(31,157,85,.1); color: #1f9d55; }
.lr-status.mid { background: rgba(247,189,1,.16); color: #8a6a00; }
.lr-status.off { background: rgba(91,9,9,.07); color: var(--ink-mute); }
.lr-name {
  font-family: var(--f-display);
  font-weight: 800; font-size: 16.5px;
  letter-spacing: -.2px;
  color: var(--ink);
}
.lr-rating {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 800;
  color: var(--ink);
  margin: 1px 0 2px;
}
.lr-rating svg {
  width: 13px; height: 13px;
  color: var(--mustard);
  flex-shrink: 0;
}
.lr-rating em {
  font-style: normal;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--ink-mute);
}
.lr-top-badge {
  background: var(--mustard);
  color: var(--ink);
  font-size: 8px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 999px;
  margin-left: 3px;
}
.lr-spec {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 600;
  color: var(--burgundy);
}
.lr-spec.viewing { color: #8a6a00; }
.lr-meta {
  font-family: var(--f-body);
  font-size: 10.5px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.lr-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #1f9d55;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .6px;
  padding: 11px 14px;
  border-radius: 999px;
  margin-top: auto;
  transition: background .15s, transform .15s;
}
.lr-wa:hover { background: #178246; color: var(--white); transform: translateY(-1px); }
.lr-wa svg { width: 15px; height: 15px; }
.lr-wa.ghost {
  background: var(--bg-soft);
  color: var(--ink-mute);
  cursor: default;
  font-weight: 700;
}

.live-fineprint {
  margin-top: 26px;
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .3px;
}

@media (max-width: 1080px) {
  .lr-grid { grid-template-columns: repeat(2, 1fr); }
  .live-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ls-item:nth-child(2n) { border-right: none; }
  .ls-item { border-bottom: 1px solid rgba(91,9,9,.08); }
  .ls-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .lr-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Projects listing — sidebar filters + horizontal cards
   ============================================================ */
.plp { background: var(--white); padding: 26px 28px 90px; }
.plp-crumbs {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--ink-mute);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.plp-crumbs a { color: var(--burgundy); font-weight: 600; }
.plp-crumbs a:hover { text-decoration: underline; }

.plp-topbar {
  display: flex; gap: 14px;
  margin-bottom: 24px;
}
.plp-search {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(91,9,9,.18);
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.plp-search:focus-within { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(91,9,9,.07); }
.plp-search svg { width: 18px; height: 18px; color: var(--ink-mute); flex-shrink: 0; }
.plp-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--f-body); font-size: 14.5px; color: var(--ink);
  line-height: 28px; height: 28px; /* descender room — see .hs-search-row input */
}
.plp-sort {
  border: 1px solid rgba(91,9,9,.18);
  border-radius: 999px;
  background: var(--white);
  padding: 12px 42px 12px 20px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
  cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1,1 L5,5 L9,1' stroke='%235b0909' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.plp-titlerow {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 24px;
}
.plp-titlerow h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1.2px;
}
.plp-count {
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  color: var(--ink-mute);
}

.plp-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar — sticky under the nav, scrolls independently of the results */
.plp-side {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 102px);
  overflow-y: auto;
  overscroll-behavior: contain; /* don't drag the page along at the ends */
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91,9,9,.25) transparent;
}
.plp-side::-webkit-scrollbar { width: 5px; }
.plp-side::-webkit-scrollbar-track { background: transparent; }
.plp-side::-webkit-scrollbar-thumb { background: rgba(91,9,9,.22); border-radius: 999px; }
.plp-side::-webkit-scrollbar-thumb:hover { background: rgba(91,9,9,.4); }
.plp-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(91,9,9,.08);
}
.plp-group-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.plp-group-head strong {
  font-family: var(--f-display);
  font-weight: 800; font-size: 15px;
  color: var(--ink);
}
.plp-group-head button {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 700;
  color: var(--burgundy);
  padding: 0;
}
.plp-group-head button:hover { text-decoration: underline; }
.plp-checks { display: grid; gap: 9px; }
.plp-checks label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.plp-checks label:hover { color: var(--ink); }
.plp-checks input {
  width: 16px; height: 16px;
  accent-color: var(--burgundy);
  cursor: pointer;
}
.plp-more {
  margin-top: 10px;
  padding: 0;
  font-family: var(--f-body);
  font-size: 12px; font-weight: 700;
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plp-exclusive {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 700;
  color: var(--burgundy);
  cursor: pointer;
}
.plp-exclusive input { width: 16px; height: 16px; accent-color: var(--burgundy); }
.plp-resetall {
  width: 100%;
  border: 1px solid rgba(91,9,9,.22);
  color: var(--burgundy);
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 14px;
  transition: background .15s, color .15s;
}
.plp-resetall:hover { background: var(--burgundy); color: var(--white); }

/* Result cards — horizontal rows */
.plp-results { display: grid; gap: 18px; }
.plp-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.1);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.plp-card:hover, .plp-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(91,9,9,.25);
  box-shadow: 0 16px 38px rgba(91,9,9,.12);
  outline: none;
}
.plp-photo {
  position: relative;
  min-height: 235px;
  background-size: cover;
  background-position: center;
}
.plp-ex {
  position: absolute; top: 14px; left: 14px;
  background: var(--mustard); color: var(--ink);
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.plp-body {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 20px 24px 18px;
  min-width: 0;
}
.plp-loc {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-mute);
}
.plp-loc svg { width: 14px; height: 14px; color: var(--burgundy); flex-shrink: 0; }
.plp-name {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.5px;
  color: var(--burgundy);
}
.plp-pitch {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.plp-tags span, .plp-tags a {
  font-family: var(--f-body);
  font-size: 10.5px; font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid rgba(91,9,9,.14);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.plp-tags span.dev, .plp-tags a.dev {
  background: var(--bg-soft);
  border-color: transparent;
  color: var(--burgundy);
  font-weight: 800;
}
.plp-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91,9,9,.07);
}
.plp-price span {
  display: block;
  font-family: var(--f-body);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.plp-price strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -.6px;
  color: var(--ink);
}
.plp-price em {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 11px; font-weight: 700;
  color: var(--ink-mute);
}
.plp-actions { display: flex; align-items: center; gap: 14px; }
.plp-wa {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #1f9d55;
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.plp-wa:hover { background: #178246; color: var(--white); transform: scale(1.07); }
.plp-wa svg { width: 20px; height: 20px; }
.plp-view {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .plp-layout { grid-template-columns: 1fr; gap: 24px; }
  .plp-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .plp-card { grid-template-columns: 280px 1fr; }
}
@media (max-width: 760px) {
  .plp-topbar { flex-direction: column; }
  .plp-card { grid-template-columns: 1fr; }
  .plp-photo { min-height: 200px; }
  .plp-foot { flex-wrap: wrap; }
}

/* ============================================================
   Laila — AI consultant chat widget
   ============================================================ */
#laila-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 14px 34px rgba(91,9,9,.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
#laila-fab:hover { transform: translateY(-2px) scale(1.04); background: var(--burgundy-soft); }
.laila-fab-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  font-size: 38px;
  color: var(--mustard);
  line-height: 0;
  margin-top: -14px;
}
.laila-fab-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #1f9d55;
  border: 2.5px solid var(--white);
  animation: live-pulse 1.6s ease-out infinite;
}
#laila-panel[hidden] { display: none; }
#laila-panel {
  position: fixed;
  right: 22px; bottom: 94px;
  z-index: 91;
  width: 372px;
  max-width: calc(100vw - 28px);
  height: 560px;
  max-height: calc(100vh - 130px);
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(26,6,6,.3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.laila-head {
  background: linear-gradient(120deg, var(--burgundy-soft), var(--burgundy) 60%, var(--burgundy-deep));
  color: var(--white);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 11px;
}
.laila-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 900; font-size: 17px;
  flex-shrink: 0;
}
.laila-head-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.laila-head-info strong {
  font-family: var(--f-display);
  font-weight: 800; font-size: 15px;
  letter-spacing: .2px;
}
.laila-head-info em {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 10.5px;
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; gap: 6px;
}
.laila-online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
}
.laila-close {
  background: rgba(255,255,255,.12);
  color: var(--white);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.laila-close:hover { background: rgba(255,255,255,.22); }
.laila-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 9px;
}
.laila-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.laila-msg.her {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(91,9,9,.06);
}
.laila-msg.me {
  align-self: flex-end;
  background: var(--burgundy);
  color: var(--white);
  border-bottom-right-radius: 5px;
}
.laila-msg[dir="rtl"] { text-align: right; }
.laila-msg.typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 13px 16px;
}
.laila-msg.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(91,9,9,.35);
  animation: laila-blink 1.2s infinite;
}
.laila-msg.typing span:nth-child(2) { animation-delay: .2s; }
.laila-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes laila-blink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.laila-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 8px 14px;
  background: var(--bg-soft);
}
.laila-chips:empty { display: none; }
.laila-chip {
  border: 1px solid rgba(91,9,9,.22);
  background: var(--white);
  color: var(--burgundy);
  font-family: var(--f-body);
  font-size: 11.5px; font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.laila-chip:hover { background: var(--burgundy); color: var(--white); }
.laila-inputrow {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: var(--white);
  border-top: 1px solid rgba(91,9,9,.08);
}
.laila-inputrow input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.laila-inputrow input:focus { border-color: var(--burgundy); background: var(--white); }
.laila-inputrow button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.laila-inputrow button:hover { background: var(--burgundy-soft); transform: scale(1.05); }
.laila-inputrow button svg { width: 17px; height: 17px; }
#laila-mic {
  position: relative;
  background: var(--bg-soft);
  color: var(--burgundy);
  border: 1px solid rgba(91,9,9,.15);
}
#laila-mic:hover { background: var(--white); transform: scale(1.05); }
#laila-mic.rec {
  background: #c0392b;
  border-color: #c0392b;
  color: var(--white);
  animation: laila-rec 1.2s ease-in-out infinite;
}
@keyframes laila-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.45); }
  60%      { box-shadow: 0 0 0 9px rgba(192,57,43,0); }
}
#laila-mic.unsupported { opacity: .4; cursor: default; }
#laila-mic-lang {
  position: absolute;
  bottom: -3px; right: -3px;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 8.5px; font-weight: 800;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--white);
  cursor: pointer;
}
@media (max-width: 560px) {
  #laila-panel {
    right: 10px; left: 10px;
    width: auto;
    bottom: 86px;
    height: 70vh;
  }
  #laila-fab { right: 14px; bottom: 14px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding: 72px 28px 28px;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand .script {
  font-family: var(--f-script);
  font-size: 26px;
  color: var(--mustard);
  margin-bottom: 6px; display: block;
}
.footer-brand p { font-size: 13px; line-height: 1.65; max-width: 320px; }
.footer-col h5 {
  color: var(--white);
  font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.footer-col a:hover { color: var(--mustard); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 11.5px; letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
}
.footer-bottom strong { color: var(--mustard); }

/* ============================================================
   Sub-text labels for hero corners — accepts BR/TR/TL/BL
   ============================================================ */
.corner-label-block {
  display: flex; flex-direction: column;
  gap: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .featured-row { grid-template-columns: 1fr; min-height: 0; }
  .featured-row.flip .featured-photo { order: 1; }
  .featured-row.flip .featured-text  { order: 2; }
  .featured-photo { min-height: 360px; }
  .featured-text { padding: 44px 32px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item:nth-child(2) { border-right: none; }
  .network-stats .grid { grid-template-columns: repeat(2, 1fr); }
  .network-stats .item:nth-child(2) { border-right: none; }
  .project-body .row { grid-template-columns: 1fr; }
  .project-cta-block { grid-template-columns: 1fr; padding: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-inner { padding: 12px 18px; gap: 14px; flex-wrap: wrap; }
  .nav-logo img { height: 38px; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(91,9,9,.1); }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex; padding: 9px 12px; font-size: 16px;
    color: var(--burgundy); margin-left: auto;
  }
  .nav-hotline { padding: 7px 10px; font-size: 11px; letter-spacing: 1.2px; }
  .nav-find { padding: 9px 12px; font-size: 10.5px; letter-spacing: 1.4px; }
  .hero-inner { padding: 38px 18px 48px; }
  .hero-lockup .display { letter-spacing: -1.5px; }
  .section { padding: 60px 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item:nth-child(n) { border-right: none; border-bottom: 1px solid rgba(91,9,9,.12); }
  .usp-item:last-child { border-bottom: none; }
  .network-stats .grid { grid-template-columns: 1fr; }
  .network-stats .item:nth-child(n) { border-right: none; border-bottom: 1px solid rgba(91,9,9,.12); }
  .network-stats .item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .filters-inner select { min-width: 140px; }
}

/* ============================================================
   Units — market inventory listing (/units) + unit detail
   ============================================================ */
.plp-n { font-style: normal; opacity: .45; font-size: 11.5px; margin-left: 4px; }
.ulp-beds { display: flex; gap: 8px; }
.ulp-beds button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(91,9,9,.22);
  background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.ulp-beds button:hover { border-color: var(--burgundy); }
.ulp-beds button.on { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.ulp-compound-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(91,9,9,.07); color: var(--burgundy);
  border-radius: 999px; padding: 9px 18px; margin-bottom: 18px;
  font-size: 14px; width: fit-content;
}
.ulp-compound-pill button {
  font-size: 17px; font-weight: 800; color: var(--burgundy);
  line-height: 1; padding: 0 2px;
}
.ulp-resale { background: var(--burgundy); color: var(--white); }
.ulp-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 36px;
}
.ulp-pager button {
  padding: 11px 22px; border: 1.5px solid rgba(91,9,9,.25);
  background: var(--white); color: var(--burgundy); font-weight: 700; font-size: 14px;
  transition: background .15s, color .15s;
}
.ulp-pager button:hover:not(:disabled) { background: var(--burgundy); color: var(--white); }
.ulp-pager button:disabled { opacity: .35; cursor: default; }
.ulp-pager span { font-weight: 700; font-size: 14px; color: var(--ink-soft); }

/* unit detail */
.unit-banner {
  height: clamp(340px, 52vh, 560px);
  background-color: #3d0606;
  background-size: cover; background-position: center;
}
.ulp-plan {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; max-width: 620px;
}
.ulp-plan-cell {
  background: var(--white); border: 1px solid rgba(91,9,9,.12);
  border-radius: 18px; padding: 18px 20px;
  display: grid; gap: 6px;
}
.ulp-plan-cell span {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-soft);
}
.ulp-plan-cell strong {
  font-family: var(--f-display); font-weight: 800;
  font-size: 19px; color: var(--burgundy); letter-spacing: -.3px;
}
.ulp-siblings { background: var(--white); padding: 64px 28px; }
.ulp-siblings .container { max-width: 1180px; margin: 0 auto; }
.ulp-siblings h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 28px;
  color: var(--burgundy); letter-spacing: -.5px; margin-bottom: 26px;
  text-transform: capitalize;
}
.sib-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.sib-card {
  border: 1px solid rgba(91,9,9,.12); border-radius: 18px; overflow: hidden;
  background: var(--bg-soft);
  transition: box-shadow .2s, transform .2s;
}
.sib-card:hover { box-shadow: 0 18px 44px rgba(91,9,9,.16); transform: translateY(-2px); color: inherit; }
.sib-photo { height: 150px; background-size: cover; background-position: center; background-color: #e7ded2; }
.sib-body { padding: 14px 16px 16px; }
.sib-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.sib-price { margin-top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--burgundy); }
.sib-price em { font-style: normal; font-size: 11px; color: var(--mustard); font-weight: 800; }
@media (max-width: 760px) {
  .unit-banner { height: 280px; }
}

/* ============================================================
   Unit detail — Explore tiles + Payment journey + lightbox
   ============================================================ */
.ux-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ux-tile {
  position: relative;
  width: 168px; min-height: 108px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.14);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  text-align: left; cursor: pointer;
  transition: background .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.ux-tile .ux-comma {
  position: absolute; top: -34px; right: 2px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  font-size: 110px; line-height: 1;
  color: rgba(91,9,9,.07);
  pointer-events: none;
  transition: color .22s, transform .22s;
}
.ux-tile strong {
  font-family: var(--f-display); font-weight: 800;
  font-size: 16px; color: var(--ink); letter-spacing: -.2px;
  transition: color .22s;
}
.ux-tile em {
  font-style: normal; font-size: 12px; color: var(--ink-soft);
  transition: color .22s;
}
.ux-tile:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(91,9,9,.28);
  color: inherit;
}
.ux-tile:hover strong { color: var(--white); }
.ux-tile:hover em { color: rgba(255,255,255,.72); }
.ux-tile:hover .ux-comma { color: var(--mustard); transform: rotate(-8deg) scale(1.06); }

/* Payment journey bar */
.pj { max-width: 620px; }
.pj-bar {
  display: flex; align-items: stretch;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(91,9,9,.14);
  background: var(--white);
}
.pj-down {
  background: var(--mustard);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px;
  line-height: 1.05;
}
.pj-down strong { font-family: var(--f-display); font-weight: 900; font-size: 16px; color: var(--ink); }
.pj-down span { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(26,6,6,.65); }
.pj-track {
  position: relative; flex: 1;
  background: rgba(91,9,9,.06);
  display: flex; align-items: stretch; justify-content: space-evenly;
}
.pj-track i { width: 1px; background: rgba(91,9,9,.13); }
.pj-mid {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; letter-spacing: .6px;
  color: var(--burgundy);
  text-transform: capitalize;
  background: linear-gradient(90deg, transparent, var(--bg-soft) 28%, var(--bg-soft) 72%, transparent);
  pointer-events: none;
}
.pj-keys {
  background: var(--burgundy); color: var(--white);
  display: flex; align-items: center; gap: 7px;
  padding: 0 20px 0 16px;
  font-family: var(--f-display); font-weight: 800; font-size: 14px;
  white-space: nowrap;
}
.pj-keys-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  color: var(--mustard); font-size: 22px; line-height: 0;
  transform: translateY(-2px);
}
.pj-cash {
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  background: var(--mustard); color: var(--ink);
  border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-size: 15px;
}
@media (max-width: 640px) {
  .ux-tile { width: calc(50% - 7px); }
  .pj-bar { height: 50px; }
  .pj-mid { font-size: 11px; }
  .pj-keys { padding: 0 14px 0 11px; font-size: 12.5px; }
}

/* Lightbox */
#ulb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(26,6,6,.94);
  display: flex; align-items: center; justify-content: center;
}
#ulb[hidden] { display: none; }
.ulb-img {
  max-width: min(86vw, 1280px); max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
  user-select: none;
}
.ulb-x {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ulb-x:hover { background: var(--mustard); color: var(--ink); }
.ulb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ulb-nav:hover { background: var(--mustard); color: var(--ink); }
.ulb-prev { left: 26px; }
.ulb-next { right: 26px; }
.ulb-count {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 18px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--f-display); font-weight: 800; font-size: 13.5px;
  letter-spacing: .14em; font-variant-numeric: tabular-nums;
}
.ulb-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  color: var(--mustard); font-size: 20px; line-height: 0;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .ulb-nav { width: 42px; height: 42px; font-size: 24px; }
  .ulb-prev { left: 10px; } .ulb-next { right: 10px; }
}

/* ============================================================
   Only on Element — homepage showcase for the signature tools
   ============================================================ */
.edge { background: var(--bg-soft); padding: 72px 28px; }
.edge .container { max-width: 1180px; margin: 0 auto; }
.edge-grid {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.edge-card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.12);
  border-radius: 22px;
  padding: 0 24px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.edge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(91,9,9,.18);
  border-color: rgba(91,9,9,.28);
  color: inherit;
}
.edge-visual {
  position: relative; height: 120px;
  margin: 0 -24px 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden;
}
.edge-v-coast { background: linear-gradient(180deg, #fdf7ea 0%, #d9edf4 38%, #5fc4c8 62%, #f4f1ec 62.5%, #efe9dd 100%); }
.edge-road {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 10px;
  background: #2c1d17;
}
.edge-road::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 14px, transparent 14px 30px);
}
.edge-km {
  position: absolute; right: 16px; top: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  color: var(--burgundy);
  background: rgba(255,255,255,.8); border-radius: 999px; padding: 4px 10px;
}
.edge-v-sell { background: linear-gradient(135deg, #fdfbf8, #f4ead3); flex-direction: column; gap: 8px; }
.edge-price {
  font-family: var(--f-display); font-weight: 900; font-size: 34px;
  letter-spacing: -1.5px; color: var(--burgundy);
}
.edge-range {
  width: 130px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--mustard) 0 30%, rgba(91,9,9,.12) 30% 70%, var(--burgundy) 70%);
}
.edge-v-abroad { background: linear-gradient(135deg, #5b0909, #7a1010); }
.edge-fx, .edge-fx2 {
  font-family: var(--f-display); font-weight: 900; font-size: 22px;
  letter-spacing: -.5px; color: var(--white);
}
.edge-fx2 { color: var(--mustard); }
.edge-eq { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: 24px; color: rgba(255,255,255,.6); }
.edge-comma {
  position: absolute; right: 8px; top: 96px;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: 90px; line-height: 1; color: rgba(91,9,9,.07);
  pointer-events: none;
}
.edge-card h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  letter-spacing: -.4px; color: var(--ink);
  text-transform: capitalize;
}
.edge-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.edge-go {
  margin-top: 6px;
  font-weight: 800; font-size: 13.5px; color: var(--burgundy);
}
.edge-card:hover .edge-go { color: var(--burgundy); text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .edge-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Unit page — on-demand AI verdict
   ============================================================ */
.uv-btn { display: inline-flex; align-items: center; gap: 10px; }
.uv-btn-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  color: var(--mustard); font-size: 22px; line-height: 0;
  transform: translateY(-2px);
}
.uv-panel {
  background: var(--burgundy); color: var(--white);
  border-radius: 24px;
  padding: 30px 32px 22px;
  max-width: 620px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.uv-panel.uv-on { opacity: 1; transform: translateY(0); }
.uv-head { display: grid; grid-template-columns: 150px 1fr; gap: 10px 30px; }
.uv-honest { font-family: 'Allura', cursive; font-size: 25px; line-height: 1; color: var(--mustard); }
.uv-score { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.uv-score .uv-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  font-size: 56px; line-height: .6; color: var(--mustard);
  transform: translateY(-6px);
}
.uv-score strong { font-family: var(--f-display); font-weight: 900; font-size: 56px; line-height: .9; letter-spacing: -2.5px; }
.uv-score em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.uv-lists { display: grid; gap: 8px; align-content: center; }
.uv-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.uv-lists li { position: relative; padding-left: 22px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.92); }
.uv-pros li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--mustard); font-weight: 800; }
.uv-cons li { color: rgba(255,255,255,.82); }
.uv-cons li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 11px; height: 3px; border-radius: 2px; background: #f0a3a3; }
.uv-foot {
  margin-top: 16px; padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px; color: rgba(255,255,255,.6);
}
.uv-foot a { color: var(--mustard); font-weight: 700; }
.uv-foot a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .uv-head { grid-template-columns: 1fr; }
  .uv-panel { padding: 24px 22px 18px; }
}

/* ============================================================
   Shortlist — hearts, fab, drawer
   ============================================================ */
.sl-heart {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(91,9,9,.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,6,6,.2);
  transition: transform .15s, background .15s;
}
.sl-heart svg { width: 19px; height: 19px; fill: none; stroke: var(--burgundy); stroke-width: 1.8; }
.sl-heart:hover { transform: scale(1.1); }
.sl-heart.on { background: var(--burgundy); border-color: var(--burgundy); }
.sl-heart.on svg { fill: var(--mustard); stroke: var(--mustard); }
.sl-heart-inline { position: static; width: 44px; height: 44px; flex: 0 0 auto; }

#sl-fab {
  position: fixed; right: 18px; bottom: 96px; z-index: 240;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); border: 1.5px solid rgba(91,9,9,.2);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px rgba(91,9,9,.25);
}
#sl-fab.on { display: flex; }
#sl-fab svg { width: 22px; height: 22px; fill: var(--burgundy); }
#sl-fab b {
  position: absolute; top: -4px; right: -4px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--mustard); color: var(--ink);
  font-size: 11.5px; font-weight: 800; line-height: 21px; text-align: center;
}
#sl-drawer { position: fixed; inset: 0; z-index: 320; }
#sl-drawer[hidden] { display: none; }
#sl-back { position: absolute; inset: 0; background: rgba(26,6,6,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#sl-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 94vw);
  background: var(--white);
  box-shadow: -30px 0 80px rgba(26,6,6,.35);
  display: flex; flex-direction: column;
  animation: slIn .3s cubic-bezier(.2,.8,.2,1);
  padding: 20px 20px 18px;
}
@keyframes slIn { 0% { transform: translateX(40px); opacity: 0; } 100% { transform: none; opacity: 1; } }
#sl-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
#sl-head .sl-comma { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: 30px; color: var(--mustard); line-height: .6; }
#sl-head strong { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--burgundy); }
#sl-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(91,9,9,.07); color: var(--burgundy); font-size: 20px; display: flex; align-items: center; justify-content: center; }
#sl-x:hover { background: var(--burgundy); color: var(--white); }
#sl-rows { flex: 1; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.sl-row { display: flex; gap: 11px; align-items: center; border: 1px solid rgba(91,9,9,.12); border-radius: 14px; padding: 9px; }
.sl-thumb { flex: 0 0 auto; width: 62px; height: 48px; border-radius: 9px; background-size: cover; background-position: center; background-color: #ece5db; }
.sl-row-bd { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sl-row-bd a { font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-row-bd a:hover { color: var(--burgundy); }
.sl-row-bd span { font-size: 12px; color: var(--ink-soft); }
.sl-rm { width: 30px; height: 30px; border-radius: 50%; background: rgba(91,9,9,.06); color: var(--burgundy); font-size: 16px; flex: 0 0 auto; }
.sl-rm:hover { background: var(--burgundy); color: var(--white); }
#sl-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; text-align: center; padding: 0 26px; }
#sl-foot { display: flex; gap: 9px; margin-top: 14px; }
.sl-btn { flex: 1; padding: 12px 10px; text-align: center; font-weight: 800; font-size: 13px; border-radius: 999px; }
.sl-btn-green { background: #1faa57; color: var(--white); }
.sl-btn-green:hover { background: #178a46; color: var(--white); }
.sl-btn-burgundy { background: var(--burgundy); color: var(--white); }
.sl-btn-burgundy:hover { background: #7a1010; }
#sl-form { display: grid; gap: 9px; margin-top: 11px; }
#sl-form[hidden] { display: none; }
#sl-form input { padding: 12px 17px; border: 1.5px solid rgba(91,9,9,.2); font-size: 14px; background: var(--white); }
#sl-status { font-size: 13px; font-weight: 700; color: var(--burgundy); min-height: 18px; }

/* inline heart beside the unit title */
#uHeart .sl-heart { position: static; width: 46px; height: 46px; }

/* ============================================================
   Book a call — /live consultants
   ============================================================ */
.lr-book {
  margin-top: 8px; width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(91,9,9,.25);
  background: var(--white); color: var(--burgundy);
  font-weight: 800; font-size: 13px;
  transition: background .15s, color .15s;
}
.lr-book:hover { background: var(--burgundy); color: var(--white); }
.bk { position: fixed; inset: 0; z-index: 330; display: flex; align-items: center; justify-content: center; padding: 20px; }
.bk[hidden] { display: none; }
.bk-back { position: absolute; inset: 0; background: rgba(26,6,6,.5); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.bk-sheet {
  position: relative; width: min(440px, 94vw);
  max-height: 88vh; overflow-y: auto;
  background: var(--white); border-radius: 24px;
  padding: 26px 26px 22px;
  box-shadow: 0 40px 120px rgba(26,6,6,.4);
  animation: slIn .3s cubic-bezier(.2,.8,.2,1);
}
.bk-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(91,9,9,.07); color: var(--burgundy); font-size: 20px; display: flex; align-items: center; justify-content: center; }
.bk-x:hover { background: var(--burgundy); color: var(--white); }
.bk-h { display: flex; align-items: center; gap: 9px; }
.bk-comma { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: 32px; color: var(--mustard); line-height: .6; }
.bk-h h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 21px; color: var(--burgundy); text-transform: capitalize; }
.bk-sub { margin: 6px 0 16px; font-size: 13.5px; color: var(--ink-soft); }
.bk-lab { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 8px; }
.bk-days, .bk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-pill {
  padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid rgba(91,9,9,.22);
  background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.bk-pill:hover:not(:disabled) { border-color: var(--burgundy); }
.bk-pill.on { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.bk-pill:disabled { opacity: .35; cursor: default; }
#bkForm { display: grid; gap: 10px; margin-top: 18px; }
#bkForm input { padding: 13px 18px; border: 1.5px solid rgba(91,9,9,.2); font-size: 14px; background: var(--white); }
.bk-status { font-size: 13px; font-weight: 700; color: var(--burgundy); min-height: 18px; }
.bk-done { text-align: center; padding: 14px 0 6px; }
.bk-done[hidden] { display: none; }
.bk-done-comma { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: 64px; color: var(--mustard); line-height: .8; }
.bk-done strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--burgundy); margin: 8px 0 4px; }
.bk-done p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; }

.plp-tags a.dev:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* developer logos inside the /units filter list */
.plp-devlogo {
  width: 21px; height: 21px; border-radius: 50%;
  object-fit: contain; background: #fff;
  border: 1px solid rgba(91,9,9,.15);
  vertical-align: -6px; margin-right: 7px;
}
i.plp-devlogo-c {
  display: inline-flex; align-items: center; justify-content: center;
  font-style: italic; font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900; font-size: 12px; color: var(--burgundy);
}
a.plp-alldev { display: inline-block; margin-left: 10px; text-decoration: none; color: var(--burgundy); font-weight: 800; }
a.plp-alldev:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* developer logo inside the unit-card chip */
.plp-tags .plp-devlogo { width: 18px; height: 18px; vertical-align: -5px; margin-right: 6px; }

/* logo-only developer mark, pushed to the right of the tags row */
.plp-devonly {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 1.5px solid rgba(91,9,9,.18);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(26,6,6,.1);
  transition: transform .15s, border-color .15s;
}
.plp-devonly img { width: 80%; height: 80%; object-fit: contain; }
.plp-devonly:hover { transform: scale(1.12); border-color: var(--mustard); }

.plp-body { position: relative; }

/* ============================================================
   Developers band — homepage logo marquee
   ============================================================ */
.devband { background: var(--white); padding: 64px 28px; }
.devband .container { max-width: 1180px; margin: 0 auto; }
.devband-marquee {
  margin-top: 30px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.devband-track {
  display: flex; gap: 18px; width: max-content;
  animation: devbandRoll 48s linear infinite;
}
.devband-marquee:hover .devband-track { animation-play-state: paused; }
@keyframes devbandRoll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.devband-logo {
  flex: 0 0 auto;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--white); border: 1.5px solid rgba(91,9,9,.14);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(26,6,6,.08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.devband-logo img { width: 72%; height: 72%; object-fit: contain; }
.devband-logo:hover { transform: translateY(-4px) scale(1.06); border-color: var(--mustard); box-shadow: 0 14px 32px rgba(91,9,9,.18); }
@media (prefers-reduced-motion: reduce) { .devband-track { animation: none; flex-wrap: wrap; } }

/* coast edge card — real satellite tile of Sidi Abdel Rahman */
.edge-v-coast {
  background:
    linear-gradient(rgba(26,6,6,.08), rgba(26,6,6,.16)),
    url('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/10/419/593') center/cover no-repeat !important;
}
.edge-sat-pin {
  position: absolute; left: 46%; top: 52%;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--burgundy); border: 2.5px solid #fff;
  box-shadow: 0 0 0 0 rgba(247,189,1,.6);
  animation: edgePin 2s ease-out infinite;
}
@keyframes edgePin { 0% { box-shadow: 0 0 0 0 rgba(247,189,1,.6); } 70% { box-shadow: 0 0 0 12px rgba(247,189,1,0); } 100% { box-shadow: 0 0 0 0 rgba(247,189,1,0); } }

/* hot offers carousel wearing the featured-projects card design */
.ho-track .fp-card.ho-fp { flex: 0 0 min(330px, 80vw); position: relative; }

/* coast view switch — satellite vs illustrated map, the visitor decides */
.cw-switch {
  position: fixed; top: 82px; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; gap: 3px; padding: 4px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(91,9,9,.16);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(26,6,6,.18);
}
.cw-switch a {
  padding: 8px 18px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 800; font-size: 12.5px; letter-spacing: .4px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.cw-switch a:hover { color: var(--burgundy); }
.cw-switch a.on { background: var(--burgundy); color: var(--white); }
@media (max-width: 640px) { .cw-switch { top: 74px; } .cw-switch a { padding: 7px 14px; font-size: 11.5px; } }

/* ============================================================
   Filter sidebar v2 — custom checks, hover rows, refined type
   (overrides the earlier .plp-checks styling)
   ============================================================ */
.plp-group { padding-bottom: 22px; margin-bottom: 22px; }
.plp-group-head { margin-bottom: 10px; }
.plp-group-head strong { font-size: 17px; letter-spacing: -.2px; }
.plp-group-head button {
  font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
  color: rgba(91,9,9,.55);
  transition: color .15s;
}
.plp-group-head button:hover { color: var(--burgundy); }
.plp-checks { display: grid; gap: 2px; }
.plp-checks label {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; margin: 0 -10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: background .12s;
}
.plp-checks label:hover { background: rgba(91,9,9,.05); }
.plp-checks input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex: 0 0 auto; margin: 0;
  border: 1.5px solid rgba(91,9,9,.3); border-radius: 7px;
  background: var(--white);
  display: inline-grid; place-content: center;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}
.plp-checks label:hover input { border-color: var(--burgundy); }
.plp-checks input::after {
  content: '';
  width: 11px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform .16s cubic-bezier(.2,.8,.2,1);
}
.plp-checks input:checked { background: var(--burgundy); border-color: var(--burgundy); }
.plp-checks input:checked::after { transform: rotate(-45deg) scale(1); }
.plp-checks input[type="radio"] { border-radius: 50%; }
.plp-checks input[type="radio"]::after {
  width: 9px; height: 9px; margin-top: 0;
  border: 0; border-radius: 50%; background: #fff;
  transform: scale(0);
}
.plp-checks input[type="radio"]:checked::after { transform: scale(1); }
.plp-checks span { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.plp-checks .plp-n {
  margin-left: auto;
  font-size: 11.5px; font-weight: 700; font-style: normal;
  color: rgba(91,9,9,.4);
}
.plp-checks .plp-devlogo { margin-right: 0; vertical-align: 0; }
.plp-more {
  margin-top: 8px;
  font-weight: 800; font-size: 13px; color: var(--burgundy);
  text-decoration: underline; text-decoration-color: var(--mustard);
  text-decoration-thickness: 2.5px; text-underline-offset: 4px;
}
.plp-resetall {
  width: 100%; padding: 12px;
  border: 1.5px solid rgba(91,9,9,.25);
  color: var(--burgundy); font-weight: 800; font-size: 13px;
  background: var(--white);
  transition: background .15s, color .15s;
}
.plp-resetall:hover { background: var(--burgundy); color: var(--white); }

/* ============================================================
   Facet picker modal — See more → search + full list
   ============================================================ */
.fpk { position: fixed; inset: 0; z-index: 340; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fpk[hidden] { display: none; }
.fpk-back { position: absolute; inset: 0; background: rgba(26,6,6,.5); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.fpk-sheet {
  position: relative; width: min(520px, 94vw);
  max-height: 86vh; display: flex; flex-direction: column;
  background: var(--white); border-radius: 26px;
  padding: 26px 26px 22px;
  box-shadow: 0 40px 120px rgba(26,6,6,.4);
  animation: slIn .3s cubic-bezier(.2,.8,.2,1);
}
.fpk-x {
  position: absolute; top: 16px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(91,9,9,.07); color: var(--burgundy);
  font-size: 21px; display: flex; align-items: center; justify-content: center;
}
.fpk-x:hover { background: var(--burgundy); color: var(--white); }
.fpk-sheet h3 {
  margin: 0 0 16px; padding-right: 46px;
  font-family: var(--f-display); font-weight: 800; font-size: 21px;
  letter-spacing: -.4px; color: var(--burgundy); text-transform: capitalize;
}
.fpk-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; margin-bottom: 12px;
  border: 1.5px solid rgba(91,9,9,.22); border-radius: 999px;
  background: var(--white);
}
.fpk-search:focus-within { border-color: var(--burgundy); }
.fpk-search svg { width: 17px; height: 17px; color: var(--ink-soft); flex: 0 0 auto; }
.fpk-search input { flex: 1; border: 0; outline: 0; background: none; font: 600 14.5px var(--f-body); color: var(--ink); }
.fpk-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -10px; padding: 0 10px;
  scrollbar-width: thin; scrollbar-color: rgba(91,9,9,.3) transparent;
}
.fpk-list::-webkit-scrollbar { width: 5px; }
.fpk-list::-webkit-scrollbar-thumb { background: rgba(91,9,9,.22); border-radius: 999px; }
.fpk-list .fpk-row { border-bottom: 1px solid rgba(91,9,9,.07); border-radius: 0; padding: 12px 10px; }
.fpk-list .fpk-row:last-child { border-bottom: 0; }
.fpk-empty { padding: 30px 10px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.fpk-add { width: 100%; justify-content: center; margin-top: 14px; display: inline-flex; }

/* location pin on cards — mustard accent */
.plp-loc svg { color: var(--mustard); }


/* hf-card form reused inside the burgundy CTA bands */
.project-cta-block .hf-card { width: 100%; max-width: 430px; justify-self: end; align-self: center; }
.hf-form select {
  width: 100%; background: var(--bg-soft);
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 22px; color: var(--ink);
  font-family: var(--f-body); font-size: 13.5px; outline: none;
}
.hf-form select:focus { border-color: var(--burgundy); background: var(--white); }
@media (max-width: 880px) { .project-cta-block .hf-card { justify-self: stretch; max-width: none; } }

/* reference chip in the lead card — the client sees exactly what they're asking about */
.hf-ref {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  background: var(--bg-soft);
  border: 1px solid rgba(91,9,9,.14);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: .04em;
  color: var(--burgundy); font-weight: 500;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hf-ref-comma {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 900;
  color: var(--mustard); font-size: 17px; line-height: 0;
}
.hf-ref[hidden] { display: none; }

/* ============================================================
   Unit page v2 — about line + sticky summary card (Nawy-clean)
   ============================================================ */
.u-about {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-soft);
  max-width: 600px; margin: 0 0 34px;
}
.u-side { position: relative; }
.u-card {
  position: sticky; top: 92px;
  background: var(--white);
  border: 1px solid rgba(91,9,9,.13);
  border-radius: 24px;
  padding: 26px 24px 20px;
  box-shadow: 0 20px 50px rgba(91,9,9,.1);
}
.u-price span {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.u-price strong {
  font-family: var(--f-display); font-weight: 900;
  font-size: 34px; letter-spacing: -1.2px; color: var(--burgundy); line-height: 1;
}
.u-price strong em { font-style: normal; font-size: 14px; color: var(--mustard); font-weight: 800; letter-spacing: 0; }
.u-approx { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); min-height: 0; }
.u-rows { margin: 18px 0 18px; display: grid; }
.u-rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(91,9,9,.08);
}
.u-rows > div:last-child { border-bottom: 0; }
.u-rows dt { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.u-rows dd { margin: 0; font-weight: 800; font-size: 14.5px; color: var(--ink); text-align: right; }
.u-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px 16px; margin-top: 9px;
  border-radius: 999px;
  font-weight: 800; font-size: 13.5px;
  transition: background .15s, transform .15s;
}
.u-btn svg { width: 18px; height: 18px; }
.u-btn-green { background: #1faa57; color: var(--white); }
.u-btn-green:hover { background: #178a46; color: var(--white); transform: translateY(-1px); }
.u-btn-burgundy { background: var(--burgundy); color: var(--white); }
.u-btn-burgundy:hover { background: #7a1010; color: var(--white); transform: translateY(-1px); }
.u-card-note { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--ink-mute); }
@media (max-width: 880px) {
  .u-card { position: static; }
}

/* generated about copy + developer chip in the unit subline */
.u-paras p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 640px; margin: 0 0 12px; }
.u-devchip {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--burgundy);
}
.u-devchip img {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: contain; background: #fff;
  border: 1px solid rgba(91,9,9,.18);
}
.u-devchip:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* logo-only developer medallion, far right of the unit title row */
.u-devlogo {
  margin-left: auto;
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; border: 1.5px solid rgba(91,9,9,.18);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(26,6,6,.12);
  transition: transform .15s, border-color .15s;
}
.u-devlogo img { width: 76%; height: 76%; object-fit: contain; }
.u-devlogo:hover { transform: scale(1.08); border-color: var(--mustard); }
.u-devlogo[hidden] { display: none; }

/* flyer link in the sticky card */
.u-flyer {
  display: block; text-align: center; margin-top: 11px;
  font-weight: 800; font-size: 12.5px; color: var(--burgundy);
  text-decoration: underline; text-decoration-color: var(--mustard);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ============================================================
   ⌘K omnibox
   ============================================================ */
#ob-trig {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; margin-right: 10px;
  background: rgba(91,9,9,.06);
  border: 1px solid rgba(91,9,9,.14);
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
#ob-trig svg { width: 15px; height: 15px; }
#ob-trig i { font-style: normal; font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: .04em; color: rgba(91,9,9,.5); }
#ob-trig:hover { background: var(--burgundy); color: var(--white); }
#ob-trig:hover i { color: rgba(255,255,255,.7); }
@media (max-width: 900px) { #ob-trig i { display: none; } }
#ob { position: fixed; inset: 0; z-index: 360; }
#ob[hidden] { display: none; }
#ob-back { position: absolute; inset: 0; background: rgba(26,6,6,.45); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
#ob-panel {
  position: absolute; top: 11vh; left: 50%; transform: translateX(-50%);
  width: min(620px, 94vw);
  background: var(--white); border-radius: 22px;
  box-shadow: 0 50px 140px rgba(26,6,6,.45);
  overflow: hidden;
  animation: slIn .26s cubic-bezier(.2,.8,.2,1);
}
#ob-row { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid rgba(91,9,9,.1); }
#ob-row svg { width: 19px; height: 19px; color: var(--burgundy); flex: 0 0 auto; }
#ob-q { flex: 1; border: 0; outline: 0; background: none; font: 600 16.5px var(--f-body); color: var(--ink); }
#ob-esc { font: 600 10px 'JetBrains Mono', monospace; color: var(--ink-mute); border: 1px solid rgba(91,9,9,.18); border-radius: 6px; padding: 3px 7px; }
#ob-res { max-height: 56vh; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.ob-h { padding: 10px 14px 5px; font: 800 10.5px var(--f-display); letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-soft); }
.ob-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 13px;
  color: inherit;
}
.ob-item:hover, .ob-item.on { background: rgba(91,9,9,.06); color: inherit; }
.ob-item.on .ob-go { opacity: 1; }
.ob-thumb {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  background-size: cover; background-position: center; background-color: var(--bg-soft);
}
.ob-thumb-c {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  font-size: 19px; color: var(--burgundy);
}
.ob-bd { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ob-bd b { font: 700 14.5px var(--f-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-bd i { font: 600 12px var(--f-body); font-style: normal; color: var(--ink-soft); }
.ob-go { opacity: 0; font: 700 13px 'JetBrains Mono', monospace; color: var(--burgundy); transition: opacity .12s; }
.ob-hint { padding: 26px 16px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* /units map view */
.ulp-view { display: flex; gap: 3px; padding: 4px; border: 1.5px solid rgba(91,9,9,.2); border-radius: 999px; background: var(--white); }
.ulp-view button { padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--ink-soft); transition: background .15s, color .15s; }
.ulp-view button.on { background: var(--burgundy); color: var(--white); }
#ulpMap { height: 72vh; border-radius: 20px; overflow: hidden; border: 1px solid rgba(91,9,9,.15); box-shadow: 0 18px 50px rgba(91,9,9,.12); }
#ulpMap[hidden] { display: none; }
.ulp-pop { width: 220px; font-family: var(--f-body); }
.ulp-pop-ph { height: 96px; border-radius: 10px; background-size: cover; background-position: center; margin-bottom: 8px; }
.ulp-pop strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 14.5px; color: var(--burgundy); }
.ulp-pop span { display: block; font-size: 12px; color: var(--ink-soft); margin: 2px 0 8px; }
.ulp-pop a { display: inline-block; font-weight: 800; font-size: 12.5px; color: var(--burgundy); text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.maplibregl-popup-content { border-radius: 14px; padding: 12px; box-shadow: 0 14px 40px rgba(26,6,6,.3); }

/* compare pill in the /units toolbar */
.ulp-cmp {
  display: inline-flex; align-items: center;
  padding: 12px 20px;
  border: 1.5px solid rgba(91,9,9,.22); border-radius: 999px;
  background: var(--white); color: var(--burgundy);
  font-weight: 800; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.ulp-cmp:hover { background: var(--burgundy); color: var(--white); }

/* ---- Hero search: inline live suggestions (replaces the popup omnibox entry) ---- */
.hs-search-row { position: relative; }
.hs-sug {
  position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid rgba(91, 9, 9, .08);
  border-radius: 22px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .28);
  max-height: 350px; overflow-y: auto;
  padding: 8px;
  text-align: left;
}
.hs-sug-h {
  font-family: var(--f-body);
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 10px 12px 4px;
}
.hs-sug-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  text-decoration: none;
}
.hs-sug-item:hover, .hs-sug-item.on { background: #f4f1ec; }
.hs-sug-thumb {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  background-color: #efe9dd;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font: italic 900 19px 'Playfair Display', serif;
  color: var(--burgundy);
}
.hs-sug-logo {
  background-size: contain; background-repeat: no-repeat;
  background-color: #fff;
  border: 1px solid rgba(91, 9, 9, .1);
  background-origin: content-box; padding: 4px;
}
.hs-sug-c { font-style: italic; }
.hs-sug-bd { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hs-sug-bd b {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 700;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-sug-bd i {
  font-family: var(--f-body); font-size: 11.5px; font-weight: 500; font-style: normal;
  color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   Compare picker — ⇄ toggles on cards + bottom tray
   ============================================================ */
.cmp-tg {
  position: absolute; top: 10px; right: 54px; z-index: 3; /* sits left of the heart */
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(91,9,9,.15);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,6,6,.2);
  transition: transform .15s, background .15s;
  cursor: pointer;
  padding: 0;
}
.cmp-tg svg { width: 18px; height: 18px; color: var(--burgundy); }
.cmp-tg:hover { transform: scale(1.1); }
.cmp-tg.on { background: var(--mustard); border-color: var(--mustard); }
.cmp-tg.on svg { color: var(--ink); }
#uCmp .cmp-tg { position: static; width: 46px; height: 46px; }

#cmpbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 300;
  display: flex; align-items: center; gap: 14px;
  background: var(--burgundy);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 18px 48px rgba(26,6,6,.45);
  max-width: calc(100vw - 24px);
}
#cmpbar[hidden] { display: none; }
#cmpbar-thumbs { display: flex; gap: 6px; }
.cmpbar-th {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: #7a2a2a;
  border: 2px solid rgba(255,255,255,.5);
  flex: 0 0 auto;
}
.cmpbar-rm {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--mustard); color: var(--ink);
  font: 800 12px/1 var(--f-body);
  display: flex; align-items: center; justify-content: center;
}
#cmpbar-txt { font: 700 13px var(--f-body); color: rgba(255,255,255,.92); white-space: nowrap; }
#cmpbar-go {
  background: var(--mustard); color: var(--ink);
  border-radius: 999px; padding: 10px 20px;
  font: 800 13px var(--f-body); text-decoration: none; white-space: nowrap;
}
#cmpbar-go.off { opacity: .45; }
#cmpbar-clear {
  border: 0; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.65);
  font: 700 12px var(--f-body);
}
#cmpbar-clear:hover { color: #fff; }
#cmpbar.shake { animation: cmpbar-sh .35s; }
@keyframes cmpbar-sh {
  25% { transform: translateX(calc(-50% - 7px)); }
  75% { transform: translateX(calc(-50% + 7px)); }
}
@media (max-width: 640px) {
  #cmpbar-txt { display: none; }
  /* left-anchor and width-cap clear of the Laila bubble bottom-right */
  #cmpbar { left: 12px; transform: none; max-width: calc(100vw - 100px); overflow-x: auto; }
  #cmpbar.shake { animation: cmpbar-sh-m .35s; }
  /* the max-cap message must still show while flashing */
  #cmpbar.shake #cmpbar-txt { display: inline; }
}
@keyframes cmpbar-sh-m {
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
@media (max-width: 480px) {
  #cmpbar { gap: 8px; padding: 8px 10px; }
  #cmpbar-thumbs { gap: 4px; }
  .cmpbar-th { width: 32px; height: 32px; }
  #cmpbar-go { padding: 9px 14px; }
}
@media (max-width: 360px) {
  .cmpbar-th { width: 28px; height: 28px; }
  #cmpbar-go { padding: 8px 12px; }
}

/* ---- /compare units mode ---- */
.cmpm-tabs { display: flex; gap: 8px; margin: 0 0 26px; }
.cmpm-tab {
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(91,9,9,.22); background: var(--white);
  font: 800 13px var(--f-body); color: var(--burgundy);
}
.cmpm-tab.on { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.cmu-wrap { overflow-x: auto; padding-bottom: 8px; }
.cmu-grid { display: grid; gap: 14px; }
.cmu-col {
  background: var(--white); border: 1px solid rgba(91,9,9,.13);
  border-radius: 22px; overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.cmu-rm {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--burgundy);
  font: 800 16px/1 var(--f-body);
  box-shadow: 0 4px 12px rgba(26,6,6,.2);
}
.cmu-ph { display: block; height: 140px; background-size: cover; background-position: center; background-color: #e9e2d4; }
.cmu-bd { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.cmu-nm { font-family: var(--f-display); font-weight: 800; font-size: 16.5px; letter-spacing: -.3px; color: var(--burgundy); text-decoration: none; line-height: 1.25; }
.cmu-nm:hover { text-decoration: underline; }
.cmu-meta { margin-top: 3px; font-size: 12px; color: var(--ink-soft); }
.cmu-ref { font: 500 10.5px 'JetBrains Mono', monospace; color: var(--ink-soft); }
.cmu-rows { margin: 12px 0 0; display: grid; }
.cmu-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(91,9,9,.08); }
.cmu-rows dt { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.cmu-rows dd { margin: 0; font-weight: 800; font-size: 13px; color: var(--ink); text-align: right; }
.cmu-rows dd.win { color: var(--burgundy); }
.cmu-rows dd.win::after { content: ' ✓'; color: var(--mustard); }
.cmu-cta { display: inline-flex; margin-top: 14px; align-self: flex-start; }
.cmu-add {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font: 800 13.5px var(--f-body); color: var(--burgundy); text-decoration: none;
}
.cmu-add:hover { text-decoration: underline; }
.cmu-add[hidden] { display: none; }

/* big Element-verdict score in unit compare columns */
.cmu-score { display: flex; align-items: baseline; gap: 7px; margin: 13px 0 2px; }
.cmu-score .c { font: italic 900 30px 'Playfair Display', serif; line-height: .6; color: var(--mustard); }
.cmu-score strong { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: -1.5px; color: var(--ink); }
.cmu-score em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.cmu-score .tick { color: var(--mustard); font-size: 16px; }

/* ============================================================
   Mobile optimization pass (2026-06-13)
   ============================================================ */
/* filters toggle — desktop never sees it */
.plp-filters-toggle { display: none; }

@media (max-width: 760px) {
  /* one-row nav: logo · hotline · burger (Find/Login live on desktop only;
     all pages remain reachable through the burger menu) */
  .nav-cta { margin-left: auto; order: 2; gap: 8px; }
  .nav-toggle { order: 3; margin-left: 0; }
  .nav-links { order: 4; }
  .nav-find, .nav-login { display: none; }

  /* /units + /projects toolbar: search full-width, controls in a 2-col grid */
  .plp-topbar { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .plp-search { grid-column: 1 / -1; }
  .plp-sort { width: 100%; min-width: 0; }
  #ulpCcy { max-width: 100% !important; }
  .ulp-cmp, .ulp-view { display: flex; align-items: center; justify-content: center; width: 100%; }

  /* filters collapse behind a toggle so units appear immediately */
  .plp-layout { grid-template-columns: 1fr; gap: 0; }
  .plp-side { display: none; position: static; max-height: none; overflow: visible; }
  body.filters-open .plp-side { display: block; margin-bottom: 18px; }
  .plp-filters-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin: 0 0 16px; padding: 13px;
    border: 1.5px solid rgba(91,9,9,.25); border-radius: 999px;
    background: var(--white);
    font-family: var(--f-body); font-weight: 800; font-size: 13.5px;
    color: var(--burgundy); cursor: pointer;
  }
}

/* ============================================================
   Mobile app-style bottom tab bar — desktop never sees it
   ============================================================ */
#tabbar, #tbSheet { display: none; }

@media (max-width: 760px) {
  #tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    display: flex;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid rgba(91,9,9,.12);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  #tabbar .tb {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 0 3px; border: 0; background: none; cursor: pointer;
    text-decoration: none; position: relative;
    color: var(--ink-soft);
  }
  #tabbar .tb svg { width: 22px; height: 22px; }
  #tabbar .tb span {
    font-family: var(--f-body); font-weight: 700; font-size: 10px; letter-spacing: .2px;
  }
  #tabbar .tb.on { color: var(--burgundy); }
  #tabbar .tb b {
    position: absolute; top: 0; right: calc(50% - 21px);
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
    background: var(--mustard); color: var(--ink);
    font: 800 10px/16px var(--f-body); text-align: center;
  }

  /* content must clear the bar */
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-tabbar .footer { margin-bottom: 0; }

  /* floating widgets move out of the bar's way */
  body.has-tabbar #laila-fab { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  body.has-tabbar #sl-fab { display: none !important; } /* shortlist lives in the bar */
  body.has-tabbar #cmpbar { bottom: calc(74px + env(safe-area-inset-bottom)); }

  /* more sheet */
  #tbSheet { display: block; position: fixed; inset: 0; z-index: 390; }
  #tbSheet[hidden] { display: none; }
  #tbSheetBack { position: absolute; inset: 0; background: rgba(26,6,6,.45); }
  #tbSheetBody {
    position: absolute; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom));
    background: var(--bg); border-radius: 24px 24px 0 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 50px rgba(26,6,6,.25);
  }
  #tbSheetHandle {
    width: 42px; height: 5px; border-radius: 3px;
    background: rgba(91,9,9,.2); margin: 4px auto 12px;
  }
  #tbSheetGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  #tbSheetGrid a {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 8px; border-radius: 14px;
    background: var(--white); border: 1px solid rgba(91,9,9,.13);
    font-family: var(--f-body); font-weight: 800; font-size: 13px;
    color: var(--burgundy); text-decoration: none; text-align: center;
  }
}

/* ============================================================
   Mobile hero = the app's hero (clean pill, no glass machinery)
   ============================================================ */
.hs-go-m { display: none; }

@media (max-width: 760px) {
  /* the multi-field glass card collapses to the app's single search pill */
  .hs-tabs, .hs-filters-row { display: none; }
  .hero-search {
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; border-radius: 0;
    padding: 0; box-shadow: none; gap: 0;
  }
  .hero-search::before, .hero-search::after { display: none; } /* border beam off */
  .hs-search-row {
    padding: 9px 8px 9px 20px; gap: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,.26);
  }
  .hs-search-row .hs-search-icon { width: 18px; height: 18px; }
  .hs-search-row input { font-size: 16px; } /* 16px also stops iOS zoom-on-focus */
  /* the website's orbiting border beam, wrapped around the pill */
  .hs-search-row::before,
  .hs-search-row::after {
    content: '';
    position: absolute; inset: -1.5px;
    border-radius: 999px;
    padding: 1.5px;
    pointer-events: none;
    background: conic-gradient(from var(--hs-angle),
      transparent 0deg,
      transparent 268deg,
      rgba(247,189,1,0) 270deg,
      rgba(247,189,1,.55) 322deg,
      rgba(255,255,255,.95) 352deg,
      transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: hs-orbit 7s linear infinite;
  }
  /* no blurred twin on the small pill — the glow bleeds outside the shape;
     the crisp ring alone reads clean at this size */
  .hs-search-row::after { display: none; }
  .hs-go-m {
    display: inline-flex; align-items: center;
    flex-shrink: 0; border: 0; cursor: pointer;
    background: var(--burgundy); color: var(--white);
    border-radius: 999px; padding: 14px 21px;
    font-family: var(--f-body); font-weight: 800; font-size: 13px;
    letter-spacing: .2px;
  }
  .hs-go-m:active { background: #7a1010; }
  /* group vertically centered in the banner, on one shared left edge */
  .hero-inner { justify-content: center; align-items: flex-start; padding-bottom: 0; }
  .hero-search-wrap { width: 100%; padding: 0; }
  .hero-lockup { text-align: left; }
  .hero-lockup .script { font-size: 27px; margin-bottom: -5px; margin-left: 3px; text-align: left; }
  .hero-lockup .display { font-size: 52px; letter-spacing: -1.5px; }
  .hero-search { margin-top: 16px; }

  /* "What are you looking for" — app-style swipe rail with snap */
  .lookfor-grid {
    display: flex !important; gap: 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin: 0 -18px; padding: 4px 18px 14px;
    scrollbar-width: none;
  }
  .lookfor-grid::-webkit-scrollbar { display: none; }
  .lookfor-grid .lf-card {
    flex: 0 0 124px; scroll-snap-align: start;
  }
}
