/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(660px, 92vh, 880px);
  height: clamp(660px, 92vh, 880px);
  display: flex;
  flex-direction: column;
  padding: 120px var(--pad-x) 60px;
  color: white;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fallback color is hidden by the hero image painted via inline style on
     the element itself (front-page.php). Keeps the first paint always
     showing the hero image, even before Ken Burns or video can render. */
  background: #0a0a0a center / cover no-repeat;
  /* Match the kb-slide cinematic tint so the static fallback blends with the
     animated layer when it fades in on top. */
  filter: brightness(0.92) contrast(1.06) saturate(0.92) sepia(0.04);
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-kenburns {
  position: absolute; inset: 0;
  z-index: 0;
}
.kb-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Cinematic: lower exposure + warm tint, but keep the image legible */
  filter: brightness(0.92) contrast(1.06) saturate(0.92) sepia(0.04);
  animation: kbCycle 18s ease-in-out infinite;
  will-change: transform, opacity;
}
.kb-slide:nth-child(1) { animation-delay: 0s; }
.kb-slide:nth-child(2) { animation-delay: 6s; }
.kb-slide:nth-child(3) { animation-delay: 12s; }
@keyframes kbCycle {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; }
  33% { opacity: 1; transform: scale(1.13); }
  41% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: brightness(0.92) contrast(1.06) saturate(0.92) sepia(0.04);
  opacity: 0;
  transition: opacity 600ms var(--ease-out, ease-out);
}
/* JS adds .is-playing once the playing event fires. Until then, Ken Burns is
   the visible hero - prevents the "black box" failure on slow networks where
   the video element exists but the buffer never starts. */
.hero-video.is-playing {
  opacity: 1;
}
/* Respect OS-level reduce-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
  .kb-slide { animation: none; opacity: 1; }
  .kb-slide:nth-child(n+2) { display: none; }
}
.hero-veil { z-index: 2; }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, transparent 0%, rgba(0,0,0,0.13) 70%),
    linear-gradient(180deg, rgba(15,15,15,0.27) 0%, rgba(15,15,15,0.04) 25%, rgba(15,15,15,0.06) 50%, rgba(15,15,15,0.33) 100%);
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0;
  animation: fadeIn 1s 0.4s forwards;
}
.hero-meta { display: flex; align-items: center; gap: 14px; opacity: 0.85; }
.hero-meta-dot { opacity: 0.5; }
@keyframes fadeIn { to { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 2;
  /* sit in upper third */
  margin-top: clamp(40px, 6vh, 80px);
  margin-left: 0;
  max-width: 1300px;
  text-align: left;
}
.hero-title {
  font-size: clamp(42px, 6.4vw, 94px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-title em,
.hero-title .hero-accent {
  font-style: normal;
  font-weight: 400;
  color: var(--gold-emaar);
}
.mask-reveal > span { transition-delay: 0.2s; }
.mask-reveal:nth-child(3) > span { transition-delay: 0.45s; }

/* Hero title — restrained block fade. Each line lifts in 6px and fades up.
   Second line uses --gold (richer than --gold-emaar) so the accent reads as
   gold rather than cream/white on the dark hero veil. */
.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: heroLineIn 0.9s var(--ease-out) 0.15s both;
}
.hero-line-accent {
  /* The first line is full white; this rotating second line is a softer, muted
     white so it reads as a secondary layer under the main statement. The slight,
     wide drop shadow (no tight inner layer) adds depth without a hard outline. */
  color: rgba(255, 255, 255, 0.72);
  animation-delay: 0.55s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  /* Small gap below the first line so the rotating line reads as its own beat. */
  margin-top: 0.16em;
}
/* Typewriter caret: the cycler (home.js) types the changing line one letter at
   a time and appends this blinking bar so it reads as if it is being typed. */
.hero-line-accent .hero-caret {
  display: inline-block;
  width: 0.05em;
  height: 0.78em;
  margin-left: 0.06em;
  vertical-align: -0.06em;
  background: currentColor;
  animation: heroCaretBlink 1s steps(1, end) infinite;
}
.hero-line-accent .hero-caret--off { display: none; }
@keyframes heroCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Compact hero on short viewports — keep headline + search bar from colliding */
@media (max-height: 760px) {
  .hero-title { font-size: clamp(48px, 7.4vw, 96px); }
  .hero-content { margin-top: 20px; }
  .hero-sub { display: none; }
  .hero-search { bottom: 32px; }
}
@media (max-height: 600px) {
  .hero-title { font-size: clamp(40px, 6.5vw, 72px); margin-bottom: 14px; }
}

.hero-sub {
  max-width: 720px;
  margin: 0;
  text-align: left;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero-cta-primary {
  background: var(--gold-emaar);
  color: white;
  border-color: var(--gold-emaar);
}
.hero-cta-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  transform: translateY(-1px);
}
.hero-cta-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.18em; }
}

/* ===== Glass search bar ===== */
.hero-search {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 96px;
  z-index: 4;
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  max-width: 960px;
  background: rgba(244, 241, 236, 0.10);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 14px 30px -12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.18);
  padding: 6px;
  border-radius: 2px;
}
/* Defeat the .reveal global transform — keep the bar centered */
.hero-search.reveal { transform: none; }
.hero-search.reveal { opacity: 0; transition: opacity 1.1s var(--ease-out); }
.hero-search.reveal.in { opacity: 1; transform: none; }
.hs-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
  position: relative;
  transition: background 0.3s var(--ease-out);
  cursor: pointer;
  min-width: 0;
}
.hs-cell:hover { background: rgba(255,255,255,0.06); }
.hs-divider {
  width: 1px;
  align-self: center;
  height: 36px;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
}
.hs-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  pointer-events: none;
}
.hs-input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.7)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 18px;
}
.hs-input option { background: var(--ink); color: white; }
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  margin-left: 6px;
  background: var(--gold-emaar);
  color: white;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), letter-spacing 0.4s var(--ease-out);
  flex-shrink: 0;
  min-width: 150px;
  justify-content: center;
}
.hs-btn:hover {
  background: #0F0F0F;
  padding: 0 38px;
  letter-spacing: 0.2em;
}
.hs-btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  font-weight: 400;
}
.hs-btn:hover .hs-btn-arrow { transform: translateX(4px); }

/* Hero actions kept for fallback (unused now) */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-featured {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(160px, 22vh, 200px);
  z-index: 3;
  width: clamp(260px, 26vw, 340px);
  background: rgba(15, 15, 15, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 22px 24px;
  color: white;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.55);
}
.hero-featured-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 8px;
  color: var(--gold-emaar);
}
.hero-featured-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero-featured-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.hero-featured-meta > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.hero-featured-meta .mono { font-size: 9px; opacity: 0.55; letter-spacing: 0.14em; }
.hero-featured-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: gap 0.3s, border-color 0.3s, color 0.3s;
}
.hero-featured-cta:hover { gap: 16px; border-color: var(--gold-emaar); color: var(--gold-emaar); }
.hero-featured-cta .arrow { transition: transform 0.3s; }
.hero-featured-cta:hover .arrow { transform: translateX(2px); }

.hero-scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 15, 15, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
  animation: heroArrowBob 2.2s ease-in-out infinite;
}
.hero-scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}
@keyframes heroArrowBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

@media (max-width: 1100px) {
  .hero-featured { display: none; }
}
@media (max-width: 900px) {
  .hero { padding: 110px var(--pad-x) 40px; }
  .hero-search {
    flex-direction: column;
    bottom: 30px;
    align-items: stretch;
    padding: 8px;
  }
  .hs-divider { display: none; }
  .hs-cell { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .hs-cell:last-of-type { border-bottom: none; }
  .hs-btn { margin: 6px 0 0; padding: 14px 20px; min-width: 0; width: 100%; }
  .hero-top .hero-locale { display: none; }
}

/* ===== MARQUEE ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bone);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 22px);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  animation: marquee 50s linear infinite;
  letter-spacing: 0.02em;
}
.marquee-track .dot { color: var(--forest); font-size: 0.5em; align-self: center; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== INVESTMENT CASE (formerly trust-band) ===== */
.trust-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 70px;
}
.trust-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 22px;
}
.trust-lede {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 880px;
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
}
.trust-lede em {
  font-style: normal;
  color: var(--gold-emaar);
}
.invest-case-lede {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
  color: var(--ink-soft);
  line-height: 1.6;
}
/* ---- 3-pillar grid ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 40px;
  row-gap: 50px;
  margin-top: 80px;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.pillar-icon {
  color: var(--gold-emaar);
  margin-bottom: 32px;
  line-height: 0;
}
.pillar-icon svg {
  display: block;
  margin: 0 auto;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 24px;
  padding-bottom: 22px;
  color: var(--ink);
  position: relative;
}
.pillar-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 1px;
  background: var(--ink);
}
.pillar-body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 320px;
  flex-grow: 1;
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.pillar-link:hover { color: var(--gold-emaar); border-bottom-color: currentColor; }
.pillar-link .arrow { transition: transform 0.3s var(--ease-out); }
.pillar-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--line-soft);
  }
  .pillar {
    padding: 44px 12px 40px;
    border-bottom: 1px solid var(--line-soft);
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .pillar:last-child { border-bottom: 0; }
  .pillar-icon { margin-bottom: 24px; }
  .pillar-icon svg { width: 38px; height: 38px; }
  .pillar-title { font-size: 22px; margin-bottom: 18px; padding-bottom: 16px; }
  .pillar-body { max-width: 100%; margin-bottom: 22px; font-size: 14.5px; }
}
@media (max-width: 600px) {
  .trust-band { padding: 52px 0 44px; }
  .invest-case-lede { font-size: 15px; margin-bottom: 36px; }
}

.accent { font-style: normal; color: var(--gold-emaar); }

/* ===== ANCHOR FEATURES (compact value bar overlapping the hero) ===== */
/* The hero owns the scroll affordance; on the homepage the anchor bar below
   bridges into the content, so the scroll arrow is redundant there. */
body.home .hero-scroll-arrow { display: none; }

.anchor-bar {
  position: relative;
  z-index: 5;
  margin-top: clamp(-72px, -6vw, -48px);
}
.anchor-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(15, 15, 15, 0.45);
}
.anchor-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 30px 34px;
  border-right: 1px solid var(--line);
}
.anchor-feature:last-child { border-right: 0; }
.anchor-feature .pillar-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--gold-emaar);
  margin: 2px 0 0;
  line-height: 0;
}
.anchor-feature h3 { grid-column: 2; }
.anchor-feature p { grid-column: 2; }
.anchor-feature .pillar-icon svg { width: 30px; height: 30px; }
.anchor-feature h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}
.anchor-feature p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 900px) {
  .anchor-bar { margin-top: -44px; }
  .anchor-bar-inner { grid-template-columns: 1fr; }
  .anchor-feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .anchor-feature:last-child { border-bottom: 0; }
}

/* ===== MOMENTUM DROP (post-hero split screen) ===== */
.momentum {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(70px, 7.5vw, 104px) 0 clamp(64px, 7vw, 96px);
}
.momentum-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
/* Overlap copy + splatter in a single cell so the (much larger) image sits
 * behind the text. Revert by restoring the two-column grid. */
.momentum-grid > .momentum-text,
.momentum-grid > .momentum-media {
  grid-area: 1 / 1;
}
.momentum-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.momentum .trust-lede { text-align: left; margin: 0 0 24px; max-width: none; }
.momentum-lede { color: var(--ink-soft); line-height: 1.6; margin: 0 0 32px; }
.momentum-media {
  z-index: 1;
  justify-self: end;
  width: min(92%, 1240px);
  aspect-ratio: 4 / 3;
  background: var(--bone-2) var(--momentum-img) center / cover no-repeat;
  margin-right: calc(var(--pad-x) * -1);
}
/* Splatter variant: match the box to the splatter PNG aspect so it doesn't
 * distort. Remove the img-splash--splatter class in front-page.php to revert
 * to the organic SVG splash. */
.momentum-media.img-splash--splatter {
  aspect-ratio: 1375 / 760;
}
@media (max-width: 900px) {
  .momentum { padding: 56px 0; }
  /* Keep copy and splatter overlapped on mobile, but fade the splatter back
     so it reads as a faint backdrop behind the text. Fade via filter:opacity,
     NOT the opacity property — the .reveal scroll animation drives opacity
     (0->1) and would override it, leaving the splatter at full strength. */
  .momentum-text { max-width: none; }
  .momentum-text .btn { display: flex; width: fit-content; margin-inline: auto; }
  .momentum-media {
    width: 100%;
    justify-self: center;
    margin-right: 0;
    filter: opacity(0.3);
  }
}

/* ===== PERSONAS ===== */
.personas {
  padding: 104px var(--pad-x) 56px;
}
.personas-head { max-width: 880px; margin: 0 auto 40px; text-align: center; }
.personas-head h2 { margin-bottom: 22px; font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -0.02em; line-height: 1; }
.personas-head h2 em { font-style: normal; color: var(--gold-emaar); }
.personas-head p { margin: 0 auto; max-width: 640px; }

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(15, 15, 15, 0.22);
}
.persona-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.persona-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.0) 40%, rgba(15,15,15,0.55) 100%);
}
.persona-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--bone);
  color: var(--ink);
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  z-index: 2;
}
.persona-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.persona-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.6vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-weight: 500;
}
.persona-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex: 1;
}
.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.persona-tags span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.persona-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  transition: gap 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.persona-card:hover .persona-cta { gap: 16px; border-color: var(--gold-emaar); color: var(--gold-emaar); }
.persona-cta .arrow { transition: transform 0.3s; }
.persona-card:hover .persona-cta .arrow { transform: translateX(2px); }

@media (max-width: 1024px) {
  .personas-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .personas-grid > .persona-card:nth-child(3) { grid-column: span 2; }
  .personas-grid > .persona-card:nth-child(3) .persona-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .personas { padding: 72px var(--pad-x) 36px; }
  .personas-grid { grid-template-columns: 1fr; gap: 22px; }
  .personas-grid > .persona-card:nth-child(3) { grid-column: auto; }
  .personas-grid > .persona-card:nth-child(3) .persona-img { aspect-ratio: 4 / 3; }
}

/* ===== FIND YOUR FIT (three editorial cards, text below image) =====
   Three equal-height cards side by side: a strict portrait image, then title +
   body + CTA grouped tightly beneath. Reuses .persona-card markup so the global
   content-image hover zoom (components.css) still applies. */
.fit { padding: 104px var(--pad-x) 80px; }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.fit-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.fit-card:hover { transform: none; box-shadow: none; }
.fit-card .persona-img {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bone-2) center / cover no-repeat;
}
.fit-card .persona-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fit-card .persona-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.fit-card .persona-body p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.fit-card .persona-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: var(--ink);
  letter-spacing: 0.16em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s var(--ease-out), color 0.3s, border-color 0.3s;
}
.fit-card:hover .persona-cta,
.fit-card:focus-visible .persona-cta { gap: 16px; color: var(--gold-emaar); border-color: var(--gold-emaar); }
.fit-card .persona-cta .arrow { transition: transform 0.3s var(--ease-out); }
.fit-card:hover .persona-cta .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .fit-grid { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin-inline: auto; }
  .fit-card .persona-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .fit { padding: 70px var(--pad-x) 44px; }
}

/* ===== DISTRICTS (replaces interactive map) ===== */
.districts {
  background: var(--paper);
  padding: 124px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.districts-head { max-width: 1100px; margin: 0 auto 40px; text-align: center; }
.districts-head h2 em { font-style: normal; color: var(--gold-emaar); }
.districts-head p { margin: 0 auto; max-width: 640px; }
.districts-foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 60px); }
.districts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
/* Homepage teaser: condensed overlay cards. The grid flows below as normal (no
   horizontal scroll); each card shows just the area name + tagline over the
   image, amenity chips hidden. Scoped to body.home so /communities/ and the
   taxonomy archives keep the full stacked card. */
body.home .districts-grid { gap: 24px; }
body.home .district-card {
  position: relative;
  border: 0;
  background: var(--ink);
}
body.home .district-img::after { display: none; }
body.home .district-card .district-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 22px 22px;
  z-index: 2;
  /* Darker + starts higher than the base scrim so the area name stays legible
     over bright facades/skies, not just the card's bottom edge. */
  background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.45) 35%, rgba(15, 15, 15, 0.92) 100%);
}
body.home .district-body h3 {
  color: var(--bone);
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
body.home .district-body p {
  color: rgba(244, 241, 236, 0.92);
  margin: 0;
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
body.home .district-amenities,
body.home .district-cta,
body.home .district-count { display: none; }
/* Hover/focus affordance: a gold arrow badge fades in to signal the card is a
   link (the explicit "View projects" CTA is hidden on the homepage teaser). */
body.home .district-card::after {
  content: "\2192";
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-emaar);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.82) translateY(-4px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
body.home .district-card:hover::after,
body.home .district-card:focus-visible::after {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.district-card {
  display: flex;
  flex-direction: column;
  background: var(--bone);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  border: 1px solid var(--line-soft);
}
.district-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(15, 15, 15, 0.2);
}
.district-img {
  position: relative;
  aspect-ratio: 5 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Communities page + homepage "Nairobi addresses" teaser: taller, top-anchored
   frame so the whole building reads, not a cropped middle slice. */
.communities-grid-section .district-img,
body.home .districts .district-img {
  aspect-ratio: 4 / 3;
  background-position: center top;
}
.district-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0) 40%, rgba(15,15,15,0.5) 100%);
}
.district-count {
  position: absolute;
  bottom: 14px; left: 16px;
  z-index: 2;
  color: white;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.district-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.district-body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.district-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.district-amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.district-amenities li {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.district-amenities li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 1px;
  background: var(--gold-emaar);
}
.district-cta {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, border-color 0.3s, color 0.3s;
}
.district-card:hover .district-cta { gap: 14px; border-color: var(--gold-emaar); color: var(--gold-emaar); }

@media (max-width: 1024px) {
  .districts-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .districts { padding: 80px 0; }
}
@media (max-width: 600px) {
  .districts-grid { grid-template-columns: 1fr; }
  .districts { padding: 62px 0; }
}

/* ===== JOURNAL (latest posts band) ===== */
/* Vertical padding only — the .container class supplies horizontal pad-x.
   A `padding: … 0 …` shorthand here would zero that out and run the grid to
   the screen edge on mobile. */
.journal { padding-top: 104px; padding-bottom: 56px; }
.journal-head { max-width: 880px; margin: 0 auto 40px; text-align: center; }
.journal-head h2 em { font-style: normal; color: var(--gold-emaar); }
.journal-head p { margin: 0 auto; max-width: 600px; }
.journal-foot { margin-top: 48px; text-align: center; }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.journal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out);
}
.journal-card:hover { transform: translateY(-4px); }
.journal-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bone-2);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.journal-img-placeholder { background: linear-gradient(135deg, var(--bone-2), var(--bone)); }
.journal-img-placeholder .placeholder-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(15,15,15,0.04) 14px, rgba(15,15,15,0.04) 15px);
}
.journal-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}
.journal-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.journal-card:hover h3 { color: var(--gold-emaar); }
.journal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.journal-cta {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
}
@media (max-width: 1024px) { .journal-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 700px) { .journal { padding-top: 62px; padding-bottom: 36px; } .journal-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ===== SIGNATURE RESIDENCE (legacy — block removed from markup) ===== */
.signature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad-x) 60px;
  gap: 80px;
}
.signature-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-2);
  text-decoration: none;
}
.signature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.signature-media:hover img { transform: scale(1.04); }
.signature-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--bone);
  color: var(--ink);
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.signature-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bone-2), var(--bone));
}
.signature-placeholder .placeholder-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(15,15,15,0.04) 14px, rgba(15,15,15,0.04) 15px);
}
.signature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.signature-meta {
  color: var(--muted);
  margin-bottom: 22px;
}
.signature-name {
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.signature-lede {
  max-width: 460px;
  margin-bottom: 36px;
}
.signature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}
.signature-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signature-stats .mono {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.signature-stats .val {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.signature-cta { align-self: flex-start; }

@media (max-width: 900px) {
  .signature {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 70px var(--pad-x) 40px;
  }
  .signature-media { aspect-ratio: 4 / 3; }
  .signature-stats { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
}

/* ===== CONCIERGE BUBBLE ===== */
.concierge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: conciergeIn 0.6s var(--ease-out) 1.4s backwards;
}
.concierge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  height: 48px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid rgba(244, 241, 236, 0.14);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
}
.concierge-btn:hover {
  transform: translateY(-2px);
  background: var(--gold-emaar);
  color: white;
  border-color: var(--gold-emaar);
}
.concierge-whatsapp svg { color: #25D366; }
.concierge-whatsapp:hover svg { color: white; }
.concierge-call svg { color: var(--gold-emaar); }
.concierge-call:hover svg { color: white; }
.concierge-label { line-height: 1; }

@keyframes conciergeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .concierge { right: 16px; bottom: 16px; gap: 8px; }
  .concierge-btn { padding: 10px 14px; height: 44px; }
  .concierge-label { display: none; }
  .concierge-btn { padding: 0; width: 44px; justify-content: center; }
}

/* ===== INTRO ===== */
.intro { padding-top: 72px; padding-bottom: 80px; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.intro-grid .eyebrow { padding-top: 10px; }
.intro-headline h2 {
  font-size: clamp(44px, 6vw, 84px);
  margin-bottom: 28px;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 24px; } .intro { padding-top: 80px; padding-bottom: 40px; } }

/* ===== PROPERTIES ===== */
.props { padding-bottom: 124px; }

/* Property search (light variant of hero-search, for the Featured Projects section) */
.props-search {
  display: flex;
  align-items: stretch;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(15, 15, 15, 0.18);
  padding: 6px;
  border-radius: 2px;
  position: relative;
  z-index: 20; /* lift open popover menus above the project grid that follows */
}
.props-search .hs-cell { color: var(--ink); }
.props-search .hs-cell:hover { background: rgba(15, 15, 15, 0.04); }
.props-search .hs-divider { background: var(--line); }
.props-search .hs-label { color: var(--muted); }
.props-search .hs-input {
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(15,15,15,0.55)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}
.props-search .hs-input option { background: var(--paper); color: var(--ink); }
.props-search .hs-btn { background: var(--gold-emaar); color: white; }
.props-search .hs-btn:hover { background: var(--ink); }
@media (max-width: 900px) {
  .props-search {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }
  .props-search .hs-divider { display: none; }
  .props-search .hs-cell { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
  .props-search .hs-cell:last-of-type { border-bottom: none; }
  .props-search .hs-btn { margin: 6px 0 0; padding: 14px 20px; min-width: 0; width: 100%; }
}

/* Filter-bar popovers — a labelled toggle that drops a checkbox/radio menu.
 * Replaces the native <select> cells; markup from
 * rodol_editorial_render_filter_popover() (inc/rh-property-filters.php), behaviour
 * from the popover module in site.js. Revert: delete this block + that JS module. */
.hs-pop { position: relative; }
.hs-pop-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.hs-pop-value {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: inherit;
  max-width: 100%;
  padding-right: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(15,15,15,0.55)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  transition: color 0.3s var(--ease-out);
}
.hs-pop-toggle:hover .hs-pop-value { color: var(--gold-emaar); }
.hs-pop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  max-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(15, 15, 15, 0.32);
  border-radius: 2px;
}
.hs-pop-menu[hidden] { display: none; }
.hs-pop-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.hs-pop-opt:hover { background: rgba(15, 15, 15, 0.05); }
.hs-pop-opt input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--gold-emaar);
  cursor: pointer;
}
.hs-pop-opt span { line-height: 1.3; }
@media (max-width: 900px) {
  .hs-pop-menu { left: 0; right: 0; min-width: 0; max-width: none; }
}

/* Listing-type tabs — For Sale / For Rent / Commercial. Folder tabs that fuse
 * into the top edge of .props-search on the archive (props-tabs--flush) and
 * stand on their own hairline above the grid on community pages
 * (community-listing-tabs). Plain <a> links, no JS. Rendered by
 * rodol_editorial_render_listing_tabs() (inc/rh-property-filters.php). */
/* The shell carries .reveal, whose lingering translateY(0) creates a stacking
 * context — so any z-index INSIDE it (the popover menus) can never escape
 * above the later grid/map sections, whose .reveal cards are stacking contexts
 * too. Lifting the shell itself is the only fix that works from outside. */
.props-search-shell { position: relative; z-index: 30; }
.props-tabs {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 21;                       /* sits above .props-search's border (z 20) */
  border-bottom: 1px solid var(--line);
}
.props-tabs--flush { margin-bottom: -1px; }  /* overlap the bar's top border 1:1 */
.community-listing-tabs { margin: 4px 0 32px; }
.props-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: -1px;
  padding: 13px 26px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.props-tab:hover { color: var(--ink); }
.props-tab:focus-visible { outline: 2px solid var(--gold-emaar); outline-offset: -2px; }
.props-tab.is-active {
  background: var(--paper);
  border-color: var(--line);
  border-bottom-color: var(--paper);  /* breaks the baseline under the active tab */
  color: var(--ink);
}
.props-tab.is-active::before {        /* gold accent along the top edge */
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--gold-emaar);
}
@media (max-width: 900px) {
  .props-tab { flex: 1; justify-content: center; padding: 12px 6px 13px; font-size: 11px; letter-spacing: 0.08em; gap: 6px; }
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.prop {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.prop:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(15, 15, 15, 0.22);
}
.prop-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-2);
}
/* Featured Projects: no overlay/filter on the photo so the architectural
   detail of each render reads in full. The status chip carries its own
   background, so it stays legible without a darkening gradient. */
.prop-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
/* Homepage Featured Projects: top-anchor the photo so the whole building reads
   rather than a cropped middle slice (matches the archive/communities grids). */
body.home .prop-img img { object-position: center top; }
.prop:hover .prop-img img { transform: scale(1.06); }
.prop-info {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prop-status {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: var(--bone);
  color: var(--ink);
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
}
.prop-img-placeholder {
  background: linear-gradient(135deg, var(--bone-2) 0%, var(--bone) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.placeholder-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(15,15,15,0.04) 12px, rgba(15,15,15,0.04) 13px);
}
.placeholder-label { color: var(--muted); text-align: center; line-height: 1.6; padding: 20px; position: relative; }

.prop-meta {
  display: flex; justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.prop-info h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(22px, 1.6vw, 26px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prop-tags span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.prop-price { font-size: 13px; color: var(--ink-soft); margin-top: auto; }
.prop-price strong { font-weight: 500; color: var(--ink); }
.prop-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-size: 11px; letter-spacing: 0.16em; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  transition: gap 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.prop:hover .prop-cta { gap: 16px; border-color: var(--gold-emaar); color: var(--gold-emaar); }
.prop-cta .arrow { transition: transform 0.3s; }
.prop:hover .prop-cta .arrow { transform: translateX(2px); }

.props-foot {
  display: flex; justify-content: center; align-items: center;
  margin-top: 70px;
  flex-wrap: wrap;
  gap: 18px;
}
.props-foot .mono { color: var(--muted); }

@media (max-width: 1024px) { .props-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 600px) { .props-grid { grid-template-columns: 1fr; } .props { padding-bottom: 80px; } }

/* ===== PHILOSOPHY ===== */
.philosophy {
  position: relative;
  padding: 140px var(--pad-x);
  color: var(--bone);
  overflow: hidden;
  background: var(--ink-soft);
}
.philosophy-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(0.4) contrast(1.1);
  will-change: transform;
}
.philosophy-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; }
.philosophy h2 {
  font-size: clamp(40px, 4.9vw, 66px);
  margin: 0 0 28px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
}
.philosophy h2 em { font-style: normal; color: var(--gold-emaar); }
.delivers-lede {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
  color: rgba(244, 241, 236, 0.78);
}

/* Impact Matrix — one cohesive grid (light text on dark bg) pairing each live
   metric directly above its label and a descriptive line. Replaces the former
   separate reason pillars and standalone stat row. */
.impact-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 70px;
  border-top: 1px solid rgba(244, 241, 236, 0.14);
  border-bottom: 1px solid rgba(244, 241, 236, 0.14);
}
.impact-cell {
  padding: 48px 30px;
  border-right: 1px solid rgba(244, 241, 236, 0.12);
}
.impact-cell:first-child { padding-left: 0; }
.impact-cell:last-child { border-right: none; padding-right: 0; }
.impact-metric {
  display: block;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 16px;
}
.impact-suffix { color: var(--gold-emaar); }
.impact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-emaar);
  margin-bottom: 16px;
  padding-bottom: 16px;
  position: relative;
}
.impact-label::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 1px;
  background: rgba(244, 241, 236, 0.3);
}
.impact-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.72);
  margin: 0;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.45;
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 24px 0 24px 36px;
  border-left: 2px solid var(--gold-emaar);
  position: relative;
}
.philosophy-quote .quote-mark { position: absolute; left: -2px; top: -10px; font-size: 70px; color: var(--gold-emaar); line-height: 1; font-family: var(--font-display); }
.philosophy-quote cite { display: block; font-size: 12px; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-top: 18px; font-family: var(--font-sans); }

@media (max-width: 1024px) {
  .impact-matrix { grid-template-columns: 1fr 1fr; }
  .impact-cell { padding: 40px 28px; }
  .impact-cell:nth-child(2n) { border-right: none; padding-right: 0; }
  .impact-cell:nth-child(2n+1) { padding-left: 0; }
  .impact-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(244, 241, 236, 0.12); }
}
@media (max-width: 800px) {
  .philosophy { padding: 90px var(--pad-x); }
}

/* ===== INVEST IN NAIROBI ===== */
.invest {
  padding: 140px 0 100px;
  background: linear-gradient(180deg, var(--bone) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}
.invest-head { max-width: 880px; margin-bottom: 80px; }
.invest-head h2 { font-size: clamp(44px, 5.5vw, 76px); margin: 24px 0 28px; }
/* Match the actual markup: .intro .section-head, .invest .section-head, .why .section-head, .map-head */
.intro .section-head { max-width: 880px; margin-bottom: 0; }
.invest .section-head,
.why .section-head { max-width: 880px; margin-bottom: 40px; }
.intro .section-head h2,
.invest .section-head h2,
.why .section-head h2,
.map-head h2 {
  font-size: clamp(44px, 5.5vw, 76px);
  margin: 24px 0 28px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .intro .section-head h2,
  .invest .section-head h2,
  .why .section-head h2,
  .map-head h2 { white-space: normal; }
}
.invest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.invest-stat {
  padding: 50px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.invest-stat:last-child { border-right: none; }
.invest-num {
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--forest);
}
.invest-num span { font-size: 0.55em; opacity: 0.7; }
.invest-label { font-size: 13px; color: var(--ink-soft); line-height: 1.55; max-width: 240px; margin: 0 auto; }
.invest-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 80px;
}
.invest-point h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.invest-point h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 40px; height: 1px;
  background: var(--forest);
}
.invest-point p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
@media (max-width: 1024px) {
  .invest-grid { grid-template-columns: 1fr 1fr; }
  .invest-stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 20px; }
  .invest-stat:nth-child(2n) { border-right: none; }
  .invest-stat:nth-child(n+3) { border-bottom: none; }
  .invest-points { grid-template-columns: 1fr; gap: 30px; }
  .invest { padding: 80px 0 60px; }
}

/* ===== WHY US ===== */
.why { padding-top: 140px; padding-bottom: 140px; }
.why-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 70px;
  align-items: end;
}
.why-head h2 { font-size: clamp(44px, 5.5vw, 76px); }
.why-head p { padding-bottom: 12px; }

.why-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.why-item {
  padding: 38px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.why-item:first-child { padding-left: 0; }
.why-item:last-child { border-right: none; }
.why-item:hover { background: linear-gradient(180deg, transparent, rgba(27,67,50,0.04)); }
.why-num { color: var(--forest); margin-bottom: 30px; font-weight: 500; }
.why-item h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.15; margin-bottom: 14px; letter-spacing: -0.01em; }
.why-item p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

@media (max-width: 1024px) {
  .why-head { grid-template-columns: 1fr; gap: 24px; }
  .why-list { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .why-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 20px; }
  .why-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .why { padding-top: 80px; padding-bottom: 80px; }
  .why-list { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; }
}

/* ===== MAP ===== */
.map-sec {
  background: var(--paper);
  padding: 140px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.map-head { max-width: 720px; margin-bottom: 60px; }
.map-head h2 { font-size: clamp(44px, 5.5vw, 76px); margin: 24px 0 24px; }

.map-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.map-canvas {
  background: var(--bone);
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; }
.map-pin {
  cursor: pointer;
  transition: opacity 0.3s;
}
.map-pin circle:first-child { fill: var(--forest); transition: r 0.3s, fill 0.3s; }
.map-pin-pulse { fill: var(--forest); opacity: 0.3; animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { 0% { r: 6; opacity: 0.4; } 100% { r: 22; opacity: 0; } }
.map-pin text { font-family: "JetBrains Mono", monospace; font-size: 11px; fill: var(--ink); letter-spacing: 0.04em; }
.map-pin-meta { font-size: 9px !important; fill: var(--muted) !important; opacity: 0; transition: opacity 0.3s; }
.map-pin:hover .map-pin-meta, .map-pin.active .map-pin-meta { opacity: 1; }
.map-pin:hover circle:first-child, .map-pin.active circle:first-child { r: 8; fill: var(--gold); }
.map-pin:not(:hover):not(.active) { opacity: 0.7; }

.map-detail {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 30px 0;
}
.map-detail-label { color: var(--muted); margin-bottom: 12px; }
.map-detail-name { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 14px; letter-spacing: -0.02em; }
.map-detail-meta { color: var(--forest); margin-bottom: 24px; }
.map-detail p { margin-bottom: 30px; max-width: 360px; }
.map-detail-cta {
  align-self: flex-start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s;
}

@media (max-width: 1024px) { .map-wrap { grid-template-columns: 1fr; } .map-sec { padding: 80px 0; } }

/* ===== CTA / NEWSLETTER ===== */
.cta-full {
  width: 100%;
  background: var(--bone-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--pad-x);
  border-top: 1px solid var(--bone-2);
  margin: 140px 0 0;
}
.cta-full-inner {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}
.cta-full .eyebrow {
  color: var(--muted);
  justify-content: center;
}
.cta-full .eyebrow .dash { background: var(--muted); }
.cta-full h2 { font-size: clamp(52px, 7vw, 100px); margin: 20px 0 32px; color: var(--ink); white-space: nowrap; }
.cta-full .body-lg {
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 52px;
  line-height: 1.65;
}
.cta-form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(15,15,15,0.2);
  max-width: 480px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.cta-form input::placeholder { color: rgba(15,15,15,0.38); }
.cta-form button {
  background: var(--gold-emaar);
  color: white;
  border: none;
  padding: 16px 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease-out);
}
.cta-form button:hover { background: var(--bone); color: var(--ink); }

@media (max-width: 800px) {
  .cta-full { padding: 80px var(--pad-x); margin: 80px 0 0; }
  .cta-form { flex-direction: column; }
  .cta-form button { padding: 16px; }
}

/* ===== SECTION HEADING SIZES (journal + districts missed explicit sizes) ===== */
.journal-head h2,
.districts-head h2 {
  font-size: clamp(36px, 4.8vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
  white-space: nowrap;
}

/* ===== EXTRA MOBILE IMPROVEMENTS ===== */

/* Trust-band: single-column stats on very small screens already handled at 600px.
   Reduce section padding further on small phones. */
@media (max-width: 480px) {
  .trust-band { padding: 44px 0 36px; }
  .trust-lede { font-size: clamp(28px, 8vw, 40px); }
  .invest-case-lede { font-size: 15px; margin-bottom: 36px; }
}

/* Props section: more vertical breathing room on large tablets gone, tighten small phones */
@media (max-width: 480px) {
  .props { padding-bottom: 60px; }
  .props-grid { gap: 44px 0; }
}

/* Personas: collapse head padding on small phones */
@media (max-width: 480px) {
  .personas { padding: 60px var(--pad-x) 32px; }
  .personas-head { margin-bottom: 36px; }
}

/* Districts: tighten on small phones */
@media (max-width: 480px) {
  .districts { padding: 56px 0; }
  .districts-head { margin-bottom: 36px; }
}

/* Journal: tighten on small phones */
@media (max-width: 480px) {
  .journal { padding-top: 56px; padding-bottom: 32px; }
  .journal-head { margin-bottom: 32px; }
}

/* CTA newsletter: tighter on very small phones */
@media (max-width: 480px) {
  .cta-full { padding: 64px var(--pad-x); }
  .cta-full h2 { font-size: clamp(40px, 11vw, 60px); }
}

/* Philosophy: tighten on small phones */
@media (max-width: 480px) {
  .philosophy { padding: 70px var(--pad-x); }
  .delivers-lede { margin-bottom: 44px; font-size: 15px; }
  .impact-matrix { grid-template-columns: 1fr; margin-bottom: 48px; }
  .impact-cell { padding: 32px 0; border-right: none; border-bottom: 1px solid rgba(244, 241, 236, 0.12); }
  .impact-cell:last-child { border-bottom: none; }
  .philosophy-quote { font-size: clamp(18px, 5vw, 24px); padding: 18px 0 18px 24px; margin-bottom: 44px; }
}

/* Intro (Featured Projects heading) */
@media (max-width: 480px) {
  .intro { padding-top: 60px; padding-bottom: 32px; }
}
