/* =====================================================================
   Enclave — property templates (mobile-first responsive)
   Loaded after style.css. Uses tokens from style.css :root.
   Approach: Serhant-led layout/spacing patterns, our brand palette.
   ===================================================================== */

:root {
  --ec-bp-md: 768px;
  --ec-bp-lg: 1024px;
  --ec-bp-xl: 1320px;
  --ec-section-pad-y: clamp(48px, 7vw, 104px);
  --ec-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --ec-shadow-md: 0 8px 24px rgba(20,30,50,0.08);
  --ec-col-left: minmax(0, 5fr);
  --ec-col-right: minmax(0, 7fr);
  --ec-col-gap: clamp(32px, 5vw, 72px);
  --ec-page-margin: clamp(56px, 5.5vw, 96px);
  --ec-copy-measure: 46ch;
  --ec-copy-measure-tight: 38ch;
  --ec-heading-measure: 18ch;
}

/* ---------- Base utilities ---------- */
.ec-section { padding: var(--ec-section-pad-y) 0; }
.ec-display { font-family: var(--ff-display); font-weight: 600; line-height: 1.1; color: var(--navy); letter-spacing: -0.015em; margin: 0; }
.ec-eyebrow { font-family: var(--ff-body); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ec-eyebrow--light { color: rgba(255,255,255,0.75); }
.ec-eyebrow--accent { color: var(--accent); }
.ec-body { font-size: 16px; line-height: 1.65; color: var(--body); max-width: 60ch; }
.ec-body--light { color: var(--muted); }

.ec-section__head { margin-bottom: clamp(32px, 5vw, 64px); max-width: none; }
.ec-section__head .ec-eyebrow { margin-bottom: 16px; }
.ec-section__head .ec-display { font-size: clamp(28px, 3.6vw, 44px); max-width: var(--ec-heading-measure); }
.ec-section__head .ec-body { margin-top: 20px; max-width: var(--ec-copy-measure); }
.ec-section__head,
.ec-section__head .ec-display,
.ec-display,
.ec-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Buttons & pills (universal shape) ---------- */
.ec-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; cursor: pointer; transition: 150ms ease;
  background: transparent; color: var(--ink);
  border-radius: 999px;            /* pill shape — site-wide */
  white-space: nowrap;
}
.ec-btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ec-btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.ec-btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.ec-btn--ghost:hover { background: rgba(255,255,255,0.1); }
.ec-btn--small { padding: 10px 18px; font-size: 11px; }
.ec-btn--compact { padding-inline: 22px; }

/* Status pill (e.g. "Off-plan", "Coming soon") */
.ec-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--rule);
  font-family: var(--ff-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.ec-pill--filled { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ec-pill--ghost  { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }

/* ---------- NAV — transparent over hero, fades to white on scroll ---------- */
.ec-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 280ms ease, border-color 280ms ease;
}
/* WordPress admin toolbar offset — only when logged in */
body.admin-bar .ec-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ec-nav { top: 46px; } }
.ec-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 24px); padding: 18px var(--gutter); min-height: 72px; }
.ec-nav__logo { display: inline-flex; align-items: center; line-height: 1; position: relative; }
.ec-nav__logo-img { display: block; height: 38px; width: auto; }
.ec-nav__logo-img--dark { display: none; }
@media (min-width: 768px) { .ec-nav__logo-img { height: 44px; } }

.ec-nav__links { display: none; gap: clamp(18px, 1.7vw, 28px); align-items: center; }
.ec-nav__links a { font-size: 13px; color: var(--white); transition: color 200ms ease; }
.ec-nav__links a:hover { color: var(--accent); }

.ec-nav__cta { display: flex; align-items: center; gap: 12px; }
.ec-currency {
  display: none; gap: 2px; padding: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  transition: 200ms ease;
  border-radius: 999px;
}
.ec-currency button {
  background: transparent; border: 0; padding: 6px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.78);
  cursor: pointer; font-family: var(--ff-body); border-radius: 999px;
  transition: 200ms ease;
}
.ec-currency button.is-active { background: var(--white); color: var(--navy); }

.ec-nav .ec-btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.ec-nav .ec-btn--primary:hover { background: var(--navy); border-color: var(--navy); }

.ec-nav__burger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.ec-nav__burger:hover { transform: translateY(-1px); }
.ec-nav__burger span {
  position: absolute;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 999px;
  transition: transform 220ms ease, opacity 180ms ease, background 200ms ease;
}
.ec-nav__burger span:nth-child(1) { transform: translateY(-5px); }
.ec-nav__burger span:nth-child(2) { opacity: 0; }
.ec-nav__burger span:nth-child(3) { transform: translateY(5px); }
.ec-nav.is-open .ec-nav__burger span:nth-child(1) { transform: rotate(45deg); }
.ec-nav.is-open .ec-nav__burger span:nth-child(2) { opacity: 0; }
.ec-nav.is-open .ec-nav__burger span:nth-child(3) { transform: rotate(-45deg); }

@media (min-width: 1180px) {
  .ec-nav__links { display: flex; }
  .ec-currency { display: inline-flex; }
  .ec-nav__burger { display: none; }
}

/* Scrolled — white bg, navy text/logo */
.ec-nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--rule-soft);
  backdrop-filter: blur(8px);
}
.ec-nav.is-scrolled .ec-nav__logo-img--light { display: none; }
.ec-nav.is-scrolled .ec-nav__logo-img--dark  { display: block; }
.ec-nav.is-scrolled .ec-nav__links a { color: var(--navy); }
.ec-nav.is-scrolled .ec-currency {
  background: var(--paper); border-color: var(--rule);
}
.ec-nav.is-scrolled .ec-currency button { color: var(--muted); }
.ec-nav.is-scrolled .ec-currency button.is-active { background: var(--navy); color: var(--white); }
.ec-nav.is-scrolled .ec-btn--primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ec-nav.is-scrolled .ec-btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.ec-nav.is-scrolled .ec-nav__burger span { background: var(--navy); }
.ec-nav.is-scrolled .ec-nav__burger {
  background: var(--paper);
  border-color: var(--rule);
}

@media (max-width: 1179px) {
  .ec-nav__links {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--rule-soft);
    box-shadow: var(--ec-shadow-md);
    border-radius: 18px;
    overflow: hidden;
  }
  .ec-nav.is-open .ec-nav__links { display: flex; }
  .ec-nav__links a {
    color: var(--navy);
    padding: 13px 16px;
    border-radius: 12px;
    border-bottom: 0;
  }
  .ec-nav__links a:hover { background: var(--paper); color: var(--navy); }
  .ec-nav.is-open {
    background: rgba(255,255,255,0.96);
    border-bottom-color: var(--rule-soft);
    backdrop-filter: blur(8px);
  }
  .ec-nav.is-open .ec-nav__logo-img--light { display: none; }
  .ec-nav.is-open .ec-nav__logo-img--dark  { display: block; }
  .ec-nav.is-open .ec-nav__burger span { background: var(--navy); }
  .ec-nav.is-open .ec-nav__burger {
    background: var(--paper);
    border-color: var(--rule);
  }
}

/* Pages without a hero (e.g. archive) — start in scrolled style. */
body:not(.is-property) .ec-nav { position: sticky; }
body:not(.is-property) .ec-nav { background: var(--white); border-bottom-color: var(--rule-soft); }
body:not(.is-property) .ec-nav__logo-img--light { display: none; }
body:not(.is-property) .ec-nav__logo-img--dark  { display: block; }
body:not(.is-property) .ec-nav__links a { color: var(--navy); }
body:not(.is-property) .ec-currency { background: var(--paper); border-color: var(--rule); }
body:not(.is-property) .ec-currency button { color: var(--muted); }
body:not(.is-property) .ec-nav .ec-btn--primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
body:not(.is-property) .ec-nav__burger span { background: var(--navy); }
body:not(.is-property) .ec-nav__burger { background: var(--paper); border-color: var(--rule); }

/* ---------- HERO ---------- */
.ec-hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  color: var(--white); overflow: hidden;
}
.ec-hero__media { position: absolute; inset: 0; }
.ec-hero__video, .ec-hero__img { width: 100%; height: 100%; object-fit: cover; }
.ec-hero__feather {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,14,25,0.34) 0%, rgba(7,14,25,0.16) 34%, rgba(7,14,25,0.9) 100%),
    linear-gradient(90deg, rgba(7,14,25,0.82) 0%, rgba(7,14,25,0.5) 34%, rgba(7,14,25,0.12) 72%, rgba(7,14,25,0.04) 100%);
  pointer-events: none;
}
.ec-hero__inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(104px, 11vw, 140px) var(--gutter) clamp(40px, 6vw, 64px);
  width: 100%;
}
.ec-hero__breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; max-width: min(100%, 72ch); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin: 0; }
.ec-hero__breadcrumb a,
.ec-hero__breadcrumb span { min-width: 0; }
.ec-hero__breadcrumb .sep { color: rgba(255,255,255,0.4); }
.ec-hero__breadcrumb .cur { color: var(--white); }
.ec-hero__title {
  font-family: var(--ff-display); font-weight: 700;
  color: var(--white); margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  max-width: 16ch;
}
.ec-hero__tagline {
  font-family: var(--ff-body); font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px);
  color: rgba(255,255,255,0.88); max-width: 44ch;
  margin: 0 0 32px; line-height: 1.5;
}
.ec-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 7vw, 64px); }
.ec-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin: 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,0.18); }
.ec-hero__stats div { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
.ec-hero__stats dt { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0; }
.ec-hero__stats dd { font-family: var(--ff-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: var(--white); margin: 0; line-height: 1.1; letter-spacing: -0.01em; }

@media (min-width: 768px) {
  .ec-hero__stats { grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 0; border-top: 0; }
  .ec-hero__stats div {
    position: relative;
    padding: 28px 32px 0 0;
  }
  .ec-hero__stats div::before {
    content: ""; position: absolute; left: 0; top: 0;
    width: 36px; height: 1px; background: rgba(255,255,255,0.5);
  }
}

/* ---------- GALLERY (Serhant property pattern: hero + thumbs + lightbox) ---------- */
.ec-gallery2 { padding: clamp(24px, 4vw, 48px) 0; }
.ec-gallery2__hero { position: relative; }
.ec-gallery2__hero-img {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: var(--rule-soft); cursor: zoom-in;
}
.ec-gallery2__hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 400ms ease;
}
.ec-gallery2__hero-img img.is-active { opacity: 1; }
.ec-gallery2__expand {
  position: absolute; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: rgba(255,255,255,0.92);
  color: var(--navy); border: 0; cursor: pointer;
  font-family: var(--ff-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.ec-gallery2__expand:hover { background: var(--white); }

.ec-gallery2__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--navy);
  border: 0; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: 200ms ease;
}
.ec-gallery2__nav:hover { background: var(--white); }
.ec-gallery2__nav--prev { left: 16px; }
.ec-gallery2__nav--next { right: 16px; }
@media (max-width: 640px) { .ec-gallery2__nav { width: 40px; height: 40px; } }

.ec-gallery2__bar {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 0 0;
}
.ec-gallery2__counter {
  font-family: var(--ff-display); font-size: 18px; color: var(--navy);
  display: inline-flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.ec-gallery2__counter em { color: var(--muted); font-style: normal; }

.ec-gallery2__thumbs {
  display: grid; grid-auto-flow: column; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ec-gallery2__thumbs::-webkit-scrollbar { display: none; }
.ec-gallery2__thumb {
  position: relative;
  flex: 0 0 auto; width: clamp(96px, 14vw, 160px); aspect-ratio: 4/3;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  overflow: hidden; opacity: 0.55; transition: 200ms ease;
}
.ec-gallery2__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-gallery2__thumb:hover { opacity: 0.85; }
.ec-gallery2__thumb.is-active { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }

.ec-gallery2__thumb--more::after {
  content: ""; position: absolute; inset: 0; background: rgba(15,25,45,0.5);
}
.ec-gallery2__more {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 22px; color: var(--white);
}

@media (min-width: 768px) {
  .ec-gallery2__bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .ec-gallery2__thumbs { gap: 12px; }
}

/* ---------- LIGHTBOX ---------- */
.ec-gallery2__lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); overflow-y: auto;
  padding: 24px;
}
.ec-gallery2__lightbox[hidden] { display: none; }
.ec-gallery2__close {
  position: fixed; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 0; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.ec-gallery2__close:hover { background: rgba(255,255,255,0.2); }
.ec-gallery2__lightbox-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 24px 0 64px;
}
.ec-gallery2__lightbox-item { margin: 0; }
.ec-gallery2__lightbox-item img { width: 100%; height: auto; display: block; }
.ec-gallery2__lightbox-item figcaption {
  margin-top: 8px; font-size: 11px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .ec-gallery2__lightbox-grid { grid-template-columns: 1fr 1fr; } }
body.ec-lightbox-open { overflow: hidden; }

/* ---------- OVERVIEW ---------- */
.ec-overview__copy { max-width: 64ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--body); margin-bottom: clamp(48px, 6vw, 80px); }
.ec-overview__copy p { margin: 0 0 1em; }
.ec-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 0; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ec-stats div { display: flex; flex-direction: column; gap: 8px; }
.ec-stats dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ec-stats__num { font-family: var(--ff-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; color: var(--navy); margin: 0; line-height: 1; letter-spacing: -0.02em; }
.ec-stats__num--accent { color: var(--navy); }
.ec-stats__num > span:not(.ec-money__unit) { font-size: 0.5em; color: var(--muted); margin-left: 6px; font-weight: 500; }

@media (min-width: 768px) { .ec-stats { grid-template-columns: repeat(4, 1fr); } }

.ec-overview__meta { margin-top: 32px; }
.ec-overview__meta dl { display: flex; flex-wrap: wrap; gap: 32px 64px; margin: 0; }
.ec-overview__meta dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ec-overview__meta dd { font-family: var(--ff-display); font-size: 20px; margin: 0; color: var(--navy); }

/* ---------- LIFESTYLE ---------- */
.ec-lifestyle__grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--rule); }
.ec-lifestyle__item {
  display: grid;
  grid-template-columns: 56px 36px 1fr;
  gap: 20px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.ec-lifestyle__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.ec-lifestyle__icon svg { width: 28px; height: 28px; }
.ec-lifestyle__num {
  font-family: var(--ff-body); font-size: 11px; font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em; color: var(--muted); text-align: left;
}
.ec-lifestyle__title {
  font-family: var(--ff-display); font-weight: 600; font-size: 18px;
  color: var(--navy); margin: 0; text-align: left; line-height: 1.3;
  letter-spacing: -0.005em;
}
.ec-lifestyle__img {
  display: none;
}

@media (min-width: 768px) {
  .ec-lifestyle__grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .ec-lifestyle__item { padding: 24px 0; }
}
@media (min-width: 1024px) {
  .ec-lifestyle__item { grid-template-columns: 56px 48px 1fr; gap: 24px; }
  .ec-lifestyle__title { font-size: 24px; }
}

/* ---------- COMPARE SLIDER ---------- */
.ec-compare__slider { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; }
.ec-compare__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-compare__after { clip-path: inset(0 0 0 50%); }
.ec-compare__handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--white); left: 50%; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.ec-compare__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); color: var(--navy); border: 0; box-shadow: var(--ec-shadow-md); cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.ec-compare__label { position: absolute; bottom: 16px; padding: 6px 12px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); }
.ec-compare__label--left { left: 16px; }
.ec-compare__label--right { right: 16px; }

/* ---------- AVAILABLE RESIDENCES — Serhant table + type pill + pagination ---------- */
.ec-residences2__pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 32px;
}
.ec-residences2__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: 150ms ease;
}
.ec-residences2__pill:hover { border-color: var(--navy); }
.ec-residences2__pill.is-active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.ec-residences2__pill-count {
  font-size: 11px; opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.ec-residences2__pill.is-active .ec-residences2__pill-count { opacity: 0.85; }

.ec-residences2__table {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.ec-residences2__head { display: none; }
.ec-residences2__row {
  display: grid; gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink); text-decoration: none;
  transition: background 200ms ease, padding 220ms cubic-bezier(0.32, 0.08, 0.24, 1);
  cursor: pointer;
}
/* Row is paginated via [hidden]; force display:none past the grid rule. */
.ec-residences2__row[hidden] { display: none !important; }
.ec-residences2__row:hover {
  background: var(--paper);
  padding-left: 16px;
  padding-right: 16px;
}
.ec-residences2__row > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ec-residences2__row > div::before {
  content: attr(data-label);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); min-width: 72px; flex-shrink: 0;
}
.ec-residences2__row > div.col-residence::before { content: ""; min-width: 0; }
.ec-residences2__row > div.col-arrow::before { content: ""; min-width: 0; }

.ec-residences2__name {
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.ec-residences2__row .num { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); }
.ec-residences2__row .col-price .num,
.ec-residences2__row .col-price [data-kes] { font-weight: 700; color: var(--navy); }
.ec-residences2__row .col-arrow {
  justify-content: flex-end;
  color: var(--muted);
}
.ec-residences2__row:hover .col-arrow { color: var(--navy); }

.ec-residences2__badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy); color: var(--white);
}
.ec-residences2__badge--pending  { background: var(--accent); color: var(--white); }
.ec-residences2__badge--reserved { background: var(--accent); color: var(--white); }
.ec-residences2__badge--sold     { background: var(--muted); color: var(--white); }
.ec-residences2--land .col-beds,
.ec-residences2--land .col-baths { text-align: left; }
.ec-residences2--land .ec-residences2__row .col-beds::before,
.ec-residences2--land .ec-residences2__row .col-beds::after,
.ec-residences2--land .ec-residences2__row .col-baths::before,
.ec-residences2--land .ec-residences2__row .col-baths::after { content: none !important; }
.ec-overview__actions { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }

.ec-residences2__empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

/* Desktop — true 8-col grid */
@media (min-width: 1024px) {
  .ec-residences2__head,
  .ec-residences2__row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 60px 60px minmax(140px, 1.4fr) 80px minmax(120px, 1.2fr) 110px 24px;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
  }
  .ec-residences2__head {
    display: grid;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    background: transparent;
  }
  .ec-residences2__head > div {
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); font-weight: 600;
  }
  .ec-residences2__row:hover {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ec-residences2__row > div::before { content: none; }
  .ec-residences2__row > div { gap: 0; }
  .ec-residences2__row .num { text-align: left; }
}

/* Pagination */
.ec-residences2__pager {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.ec-residences2__pager-btn,
.ec-residences2__pager-page {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--navy);
  font-family: var(--ff-body); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: 150ms ease;
  font-variant-numeric: tabular-nums;
}
.ec-residences2__pager-btn:hover:not(:disabled),
.ec-residences2__pager-page:hover { border-color: var(--navy); }
.ec-residences2__pager-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ec-residences2__pager-page.is-active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.ec-residences2__pager-pages { display: inline-flex; align-items: center; gap: 6px; }
.ec-residences2__pager-dots {
  width: 24px;
  text-align: center;
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  user-select: none;
}

/* ---------- FLOOR PLANS ---------- */
.ec-floorplans__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ec-floorplans .ec-section__head {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.ec-floorplans .ec-section__head .ec-display {
  font-size: clamp(28px, 3vw, 40px);
  max-width: 18ch;
}
.ec-floorplans__tab {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 10px 20px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--navy); cursor: pointer; transition: 150ms ease;
  border-radius: 999px;
}
.ec-floorplans__tab:hover { border-color: var(--navy); }
.ec-floorplans__tab.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ec-floorplans__count { color: inherit; opacity: 0.6; margin-left: 6px; font-size: 11px; font-weight: 400; }
.ec-floorplans__tab.is-active .ec-floorplans__count { opacity: 0.7; }
.ec-floorplans__panel { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 3vw, 40px); min-width: 0; }
.ec-floorplans__panel[hidden], .ec-floorplans__panel:not(.is-active) { display: none; }
.ec-floorplans__panel.is-active { display: grid; }
.ec-floorplans__drawing { aspect-ratio: 16/10; min-width: 0; min-height: 260px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: clamp(12px, 2vw, 24px); }
.ec-floorplans__drawing img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ec-floorplans__placeholder { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.ec-floorplans__side { min-width: 0; overflow: hidden; }
.ec-floorplans__size {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
  font-size: clamp(26px, 2.7vw, 42px);
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.ec-floorplans__size .muted {
  color: var(--muted);
  font-size: 0.58em;
  white-space: nowrap;
}
.ec-floorplans__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ec-floorplans__stats dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ec-floorplans__stats dd { font-family: var(--ff-display); font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--navy); line-height: 1.08; overflow-wrap: anywhere; }
.ec-floorplans__stats dd.accent { color: var(--navy); }
.ec-floorplans__cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (min-width: 1180px) { .ec-floorplans__panel { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr); gap: 48px; } }

@media (min-width: 1180px) and (max-width: 1420px) {
  .ec-floorplans__panel {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 34px;
  }
  .ec-floorplans__stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .ec-hero { min-height: 760px; }
  .ec-hero__title { font-size: clamp(42px, 6.4vw, 58px); max-width: 14ch; }
  .ec-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .ec-hero__stats div {
    padding: 0;
  }
  .ec-hero__stats div::before {
    display: none;
  }
}

/* ---------- INVESTMENT ---------- */
.ec-invest { background: var(--paper); }
.ec-invest__display { color: var(--navy); font-size: clamp(32px, 4.5vw, 56px); max-width: 22ch; margin: 16px 0; }
.ec-invest__panel { background: var(--white); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--rule); }
.ec-invest__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.ec-invest__tag {
  background: transparent; color: var(--navy);
  border: 1px solid var(--rule); padding: 10px 20px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: 150ms ease;
  border-radius: 999px;
}
.ec-invest__tag:hover { border-color: var(--navy); }
.ec-invest__tag.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.ec-invest__body { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
.ec-invest__chart { position: relative; width: 100%; display: flex; flex-direction: column; }
.ec-invest__chart svg { display: block; width: 100%; height: auto; aspect-ratio: 800 / 360; overflow: visible; flex: 1 1 auto; }
.ec-invest__chart [data-invest-line], .ec-invest__chart [data-invest-area] {
  transition: d 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ec-invest__chart [data-invest-line] {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: ec-draw 1800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ec-draw { to { stroke-dashoffset: 0; } }
.ec-invest__chart-cap {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
}
.ec-invest__chart-cap .break-even { color: var(--accent); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }

/* Stats — paper cards in a horizontal row underneath the chart.
   No borders. Generous internal spacing so labels never wrap mid-line. */
.ec-invest__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.ec-invest__stats > div {
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  justify-content: space-between;
}
.ec-invest__stats dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}
.ec-invest__num {
  font-family: var(--ff-display);
  font-size: clamp(26px, 2.4vw, 36px);
  color: var(--navy);
  margin: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}
.ec-invest__num em { color: var(--navy); font-style: normal; }
.ec-invest__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  text-wrap: balance;
}
.ec-invest__disc { font-size: 11px; color: var(--muted); margin: 24px 0 0; letter-spacing: 0.06em; }

/* Tablet — 2 columns of cards under chart */
@media (min-width: 640px) {
  .ec-invest__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Desktop — chart full width, 4 cards in a row below */
@media (min-width: 960px) {
  .ec-invest__body { grid-template-columns: 1fr; gap: 32px; }
  .ec-invest__stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .ec-invest__stats > div { padding: 28px 24px; }
}

/* ---------- PAYMENT ---------- */
.ec-payment__timeline { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: pay; }
.ec-payment__step { padding: 32px; background: var(--paper); border-left: 4px solid var(--rule); }
.ec-payment__step.is-current { border-left-color: var(--accent); background: var(--white); box-shadow: var(--ec-shadow-md); }
.ec-payment__milestone { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ec-payment__pct { font-family: var(--ff-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.ec-payment__step h4 { font-family: var(--ff-display); font-weight: 600; font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.ec-payment__step p { font-size: 14px; color: var(--body); margin: 0 0 16px; }
.ec-payment__sample { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--rule); }
.ec-payment__sample .lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ec-payment__sample .amt { font-family: var(--ff-display); font-size: 18px; color: var(--navy); }

@media (min-width: 768px) { .ec-payment__timeline { grid-template-columns: repeat(3, 1fr); } }

/* ---------- LOCATION / MAP — top-down, container-margins ---------- */
.ec-location__wrap { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ec-location__map { height: 56vh; min-height: 420px; max-height: 640px; background: var(--paper); position: relative; }
.ec-location__map .leaflet-container { height: 100%; width: 100%; font-family: var(--ff-body); background: var(--paper); }
.ec-location__map .leaflet-control-attribution { display: none !important; }
.ec-location__map .leaflet-control-zoom a {
  background: var(--white); color: var(--navy);
  border: 1px solid var(--rule); border-radius: 0;
  font-family: var(--ff-body); font-weight: 400; font-size: 18px;
}
.ec-location__map .leaflet-control-zoom a:hover { background: var(--paper); }

.ec-location__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.ec-location__item {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: 150ms ease;
}
.ec-location__item:hover, .ec-location__item.is-active { background: var(--paper); padding-left: 12px; padding-right: 12px; }
.ec-location__num { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ec-location__name { font-family: var(--ff-display); font-size: 20px; color: var(--navy); }
.ec-location__dist { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--navy); font-family: var(--ff-display); font-weight: 600; }
.ec-location__dist em { color: var(--muted); font-style: normal; font-size: 11px; margin-left: 4px; letter-spacing: 0.12em; font-weight: 500; }
.ec-location__sep { color: var(--muted); margin: 0 6px 0 8px; font-weight: 400; }
.ec-location__item--self { background: var(--paper); }
.ec-location__item--self .ec-location__name { font-weight: 700; }
.ec-location__dist--self { font-family: var(--ff-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Money unit (KES, USD …) — eyebrow/label treatment, identical site-wide ---------- */
.ec-money__unit {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.6em;
  vertical-align: 0.3em;
}

@media (min-width: 768px) {
  .ec-location__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1024px) {
  .ec-location__list { grid-template-columns: repeat(3, 1fr); }
}

.ec-location__attribution { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; margin: 16px 0 0; }
.ec-location__attribution a { color: var(--muted); text-decoration: underline; }

/* Leaflet pin override */
.ec-leaflet-pin { background: var(--navy); color: var(--white); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; font-family: var(--ff-body); font-size: 11px; font-weight: 600; }
.ec-leaflet-pin--main { background: var(--navy); width: 44px !important; height: 44px !important; }
.ec-leaflet-pin--poi { width: 28px !important; height: 28px !important; background: var(--muted); }

/* ---------- AGENTS ---------- */
.ec-agents__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ec-agents__card { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px; background: var(--paper); }
.ec-agents__photo { aspect-ratio: 1/1; max-width: 240px; overflow: hidden; background: var(--rule); }
.ec-agents__photo img { width: 100%; height: 100%; object-fit: cover; }
.ec-agents__photo--placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 96px; color: var(--muted); background: var(--white); border: 1px solid var(--rule); }
.ec-agents__card h3 { font-size: 32px; margin: 8px 0 0; }
.ec-agents__role { font-size: 13px; color: var(--muted); margin: 4px 0 24px; letter-spacing: 0.04em; }
.ec-agents__contact { margin: 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.ec-agents__contact div { display: flex; gap: 16px; align-items: baseline; padding: 8px 0; }
.ec-agents__contact dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); min-width: 70px; margin: 0; }
.ec-agents__contact dd { font-size: 15px; color: var(--ink); margin: 0; }
.ec-agents__contact a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .ec-agents__grid { grid-template-columns: repeat(2, 1fr); }
  .ec-agents__card { grid-template-columns: 200px 1fr; align-items: start; }
  .ec-agents__photo { max-width: 100%; }
}

/* ---------- RESERVE — wrapped in container, follows site margins ---------- */
.ec-reserve-wrap { padding: var(--ec-section-pad-y) 0; }
.ec-reserve { display: grid; grid-template-columns: 1fr; border: 1px solid var(--rule); }
.ec-reserve__left { padding: clamp(32px, 4vw, 56px); background: var(--navy); color: var(--white); }
.ec-reserve__display { color: var(--white); font-size: clamp(26px, 3vw, 38px); margin: 16px 0; max-width: 20ch; }
.ec-reserve__lede { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.65; max-width: 48ch; }
.ec-reserve__rule { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 32px 0 24px; }
.ec-reserve__sublabel { margin-bottom: 14px; }
.ec-reserve__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,0.85); font-size: 15px; }

.ec-reserve__right { padding: clamp(32px, 4vw, 56px); background: var(--white); }
.ec-reserve__right h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 12px 0; }
.ec-reserve__form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.ec-field { display: flex; flex-direction: column; gap: 6px; }
.ec-field span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ec-field input, .ec-field select, .ec-field textarea {
  padding: 12px 14px; border: 1px solid var(--rule);
  font-family: var(--ff-body); font-size: 15px; color: var(--ink); background: var(--white);
}
.ec-field input:focus, .ec-field select:focus, .ec-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
.ec-reserve__submit { margin-top: 8px; }
.ec-reserve__caption { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin: 12px 0 0; }
.ec-reserve__success { padding: 32px 0; }
.ec-reserve__success .ec-display { font-size: 36px; margin: 12px 0; }

@media (min-width: 768px) { .ec-reserve__form { grid-template-columns: 1fr 1fr; } .ec-field--full { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ec-reserve { grid-template-columns: 1fr 1fr; } }

/* ---------- WHATSAPP STICKY ---------- */
.ec-wa-sticky {
  position: fixed; bottom: 16px; right: 16px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: var(--white);
  padding: 12px 18px; border-radius: 999px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4); transition: 200ms ease;
}
.ec-wa-sticky:hover { transform: translateY(-2px); }
.ec-wa-sticky span { display: none; }
@media (min-width: 768px) { .ec-wa-sticky span { display: inline; } }

/* ---------- ARCHIVE / DEVELOPMENTS INDEX ---------- */
.ec-archive__hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.ec-archive__title { font-size: clamp(36px, 4.8vw, 60px); font-weight: 700; max-width: 22ch; margin: 16px 0 24px; text-transform: uppercase; letter-spacing: -0.015em; line-height: 1.05; }
.ec-archive__lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 56ch; }

.ec-archive__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.ec-card { display: block; color: inherit; text-decoration: none; group: card; }
.ec-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--rule-soft); margin-bottom: 24px; }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: 600ms ease; }
.ec-card:hover .ec-card__media img { transform: scale(1.04); }
.ec-card__status {
  position: absolute; top: 16px; left: 16px;
  background: var(--white); color: var(--navy);
  padding: 8px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid var(--rule);
}
.ec-card__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(21px, 2vw, 26px); color: var(--navy); margin: 12px 0 8px; line-height: 1.18; letter-spacing: -0.01em; text-transform: uppercase; }
.ec-card__tagline { font-size: 15px; color: var(--muted); margin: 0 0 16px; max-width: 38ch; }
.ec-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.ec-card:hover .ec-card__cta { color: var(--accent); }

@media (min-width: 768px) { .ec-archive__grid { grid-template-columns: repeat(2, 1fr); gap: 64px 48px; } }
@media (min-width: 1280px) { .ec-archive__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- HOMEPAGE ---------- */
.ec-home .ec-section {
  padding: clamp(46px, 4.2vw, 66px) 0;
}
.ec-home .ec-section__head {
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.ec-home-hero {
  position: relative;
  min-height: clamp(560px, 86svh, 760px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
}
.ec-home-hero__media,
.ec-home-hero__shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ec-home-hero__slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 5200ms ease;
}
.ec-home-hero__slide-media.is-active {
  opacity: 1;
  transform: scale(1);
}
.ec-home-hero__shade {
  background:
    linear-gradient(180deg, rgba(10,16,28,0.26) 0%, rgba(10,16,28,0.28) 42%, rgba(10,16,28,0.86) 100%),
    linear-gradient(90deg, rgba(10,16,28,0.68) 0%, rgba(10,16,28,0.2) 62%, rgba(10,16,28,0.1) 100%);
}
.ec-home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(44px, 8vw, 84px);
}
.ec-home-hero__content-wrap {
  display: grid;
  width: min(760px, 100%);
}
.ec-home-hero__content {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.ec-home-hero__content.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ec-home-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 20ch;
  margin: 16px 0 24px;
}
.ec-home-hero__lede {
  max-width: 48ch;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
.ec-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 32px;
}
.ec-home-hero__dots {
  display: flex;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 46px);
}
.ec-home-hero__dots button {
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ec-home-hero__dots span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.42);
  transition: background 220ms ease, transform 220ms ease;
}
.ec-home-hero__dots button.is-active span {
  background: var(--white);
  transform: scaleY(1.8);
}
.ec-home-hero__previews {
  width: min(760px, 100%);
  margin-top: clamp(28px, 4vw, 46px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
}
.ec-home-hero__preview-track {
  display: flex;
  width: max-content;
  animation: ec-home-preview-marquee 28s linear infinite;
  will-change: transform;
}
.ec-home-hero__previews:hover .ec-home-hero__preview-track {
  animation-play-state: paused;
}
.ec-home-hero__preview-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}
.ec-home-hero__preview {
  position: relative;
  display: block;
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.ec-home-hero__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}
.ec-home-hero__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,14,25,0.05) 0%, rgba(7,14,25,0.82) 100%),
    linear-gradient(90deg, rgba(7,14,25,0.42) 0%, rgba(7,14,25,0) 70%);
}
.ec-home-hero__preview span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 4px;
}
.ec-home-hero__preview em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.ec-home-hero__preview strong {
  font-family: var(--ff-display);
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
}
.ec-home-hero__preview:hover img {
  transform: scale(1.05);
}
@keyframes ec-home-preview-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-home-hero__preview-track {
    animation: none;
  }
}
.ec-home-feature__grid {
  display: grid;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.ec-home-feature__copy {
  display: grid;
  align-content: center;
  max-width: 760px;
}
.ec-home-feature h2 {
  margin: 14px 0 18px;
}
.ec-home-feature .ec-body {
  max-width: var(--ec-copy-measure);
}
.ec-home-feature__copy > .ec-btn {
  justify-self: start;
}
.ec-home-feature__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(24px, 3vw, 34px) 0 clamp(24px, 3vw, 32px);
  padding: 0;
}
.ec-home-feature__facts div {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.ec-home-feature__facts dt {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ec-home-feature__facts dd {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(18px, 2vw, 28px);
  color: var(--navy);
  line-height: 1.1;
}
.ec-home-feature__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: clamp(360px, 33vw, 560px);
  background: var(--rule-soft);
}
.ec-home-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.ec-home-feature__image:hover img { transform: scale(1.04); }
.ec-home-reels {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  overflow: hidden;
}
.ec-home-reels__layout {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.ec-home-reels h2 {
  color: var(--white);
  margin: 14px 0 0;
}
.ec-home-reels .ec-eyebrow {
  color: rgba(255,255,255,0.62);
}
.ec-home-reels__copy {
  display: grid;
  gap: 16px;
  align-items: start;
}
.ec-home-reels__copy p {
  margin: 0;
  max-width: var(--ec-copy-measure-tight);
  color: rgba(255,255,255,0.72);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}
.ec-home-reels .ec-btn--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.ec-home-reels__rail {
  --reel-card-width: clamp(190px, 18vw, 260px);
  --reel-gap: clamp(14px, 1.7vw, 24px);
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
}
.ec-home-reels__track {
  display: flex;
  width: max-content;
  animation: ec-reels-marquee 46s linear infinite;
  will-change: transform;
}
.ec-home-reels__rail:hover .ec-home-reels__track {
  animation-play-state: paused;
}
.ec-home-reels__group {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--reel-gap);
  padding-right: var(--reel-gap);
}
@keyframes ec-reels-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ec-home-reels__track {
    animation: none;
  }
}
.ec-reel-card {
  position: relative;
  display: flex;
  flex: 0 0 var(--reel-card-width);
  width: var(--reel-card-width);
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  align-items: flex-end;
  padding: clamp(14px, 1.5vw, 20px);
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
  text-decoration: none;
}
.ec-reel-card img,
.ec-reel-card video,
.ec-reel-card__shade {
  position: absolute;
  inset: 0;
}
.ec-reel-card img,
.ec-reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
  z-index: -2;
}
.ec-reel-card video {
  opacity: 0;
  transition: opacity 320ms ease, transform 650ms ease;
}
.ec-reel-card video.is-ready {
  opacity: 1;
}
.ec-reel-card__shade {
  background:
    linear-gradient(180deg, rgba(9,18,32,0.08) 0%, rgba(9,18,32,0.18) 46%, rgba(9,18,32,0.88) 100%),
    linear-gradient(90deg, rgba(9,18,32,0.54) 0%, rgba(9,18,32,0) 72%);
  z-index: -1;
}
.ec-reel-card__play {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
}
.ec-reel-card__meta {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.ec-reel-card strong {
  display: block;
  max-width: 24ch;
  font-family: var(--ff-display);
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 600;
  line-height: 1.28;
  text-transform: uppercase;
}
.ec-reel-card:hover img,
.ec-reel-card:hover video { transform: scale(1.05); }
.ec-home-services {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
}
.ec-home-services .ec-eyebrow {
  color: rgba(255,255,255,0.62);
}
.ec-home-services .ec-display {
  color: var(--white);
}
.ec-home-services .ec-section__head {
  display: grid;
  gap: 18px;
}
.ec-home-services .ec-section__head .ec-btn {
  justify-self: start;
}
.ec-home-services__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.24);
}
.ec-home-services__grid article {
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.ec-home-services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
}
.ec-home-services__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ec-home-services__index {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.56);
}
.ec-home-services__grid h3 {
  margin: 0 0 14px;
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
  color: var(--white);
}
.ec-home-services__grid p {
  max-width: 38ch;
  margin: 0;
  color: rgba(255,255,255,0.72);
}
.ec-home-rail-section {
  background: var(--white);
  overflow: hidden;
}
.ec-home-rail-section--paper {
  background: var(--paper);
}
.ec-home-rail-section__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(24px, 3.5vw, 42px);
}
.ec-home-rail-section__head .ec-display {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}
.ec-home-rail-section__head p {
  max-width: var(--ec-copy-measure);
  margin: 0;
  color: var(--body);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}
.ec-property-rail {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 8px;
  cursor: grab;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.ec-property-rail::-webkit-scrollbar {
  display: none;
}
.ec-property-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.ec-property-rail__track {
  display: flex;
  width: max-content;
  gap: clamp(14px, 1.6vw, 24px);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  align-items: stretch;
}
.ec-property-rail-card {
  position: relative;
  display: flex;
  flex: 0 0 clamp(224px, 16vw, 286px);
  width: clamp(224px, 16vw, 286px);
  min-width: clamp(224px, 16vw, 286px);
  max-width: clamp(224px, 16vw, 286px);
  height: clamp(390px, 34vw, 520px);
  overflow: hidden;
  align-items: flex-end;
  padding: clamp(18px, 2vw, 28px);
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  scroll-snap-align: start;
  isolation: isolate;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), min-width 420ms cubic-bezier(0.22, 1, 0.36, 1), max-width 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms ease;
  will-change: width, min-width, max-width;
}
.ec-property-rail-card img,
.ec-property-rail-card__shade {
  position: absolute;
  inset: 0;
}
.ec-property-rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 650ms ease;
}
.ec-property-rail-card__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,14,25,0.05) 0%, rgba(7,14,25,0.2) 44%, rgba(7,14,25,0.9) 100%),
    linear-gradient(90deg, rgba(7,14,25,0.62) 0%, rgba(7,14,25,0.08) 70%);
}
.ec-property-rail-card__status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,0.92);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ec-property-rail-card__body {
  display: grid;
  gap: 7px;
  width: min(100%, 50ch);
}
.ec-property-rail-card__body strong {
  color: var(--white);
  font-family: var(--ff-display);
  font-size: clamp(21px, 1.7vw, 30px);
  line-height: 1.03;
  text-transform: uppercase;
  max-width: 14ch;
}
.ec-property-rail-card__body em {
  font-style: normal;
  color: rgba(255,255,255,0.86);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-property-rail-card__body small {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.48;
  transition: max-height 300ms ease, opacity 260ms ease;
}
.ec-property-rail-card__body b {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-property-rail-card:hover,
.ec-property-rail-card:focus-visible {
  width: clamp(460px, 44vw, 720px);
  min-width: clamp(460px, 44vw, 720px);
  max-width: clamp(460px, 44vw, 720px);
}
.ec-property-rail-card:hover img,
.ec-property-rail-card:focus-visible img {
  transform: scale(1.04);
}
.ec-property-rail-card:hover .ec-property-rail-card__body small,
.ec-property-rail-card:focus-visible .ec-property-rail-card__body small {
  max-height: 8em;
  opacity: 1;
}
.ec-home-projects { background: var(--white); }
.ec-home-projects__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(32px, 5vw, 56px);
}
.ec-home-report { background: var(--white); }
.ec-home-report__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ec-home-report h2 {
  margin: 14px 0 18px;
}
.ec-home-report .ec-btn { margin-top: 24px; }
.ec-home-report__list {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.ec-home-report__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--rule);
}
.ec-home-report__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rule-soft);
}
.ec-home-report__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.ec-home-report__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ec-home-report__item em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ec-home-report__item strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.15;
  color: var(--navy);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.ec-home-report__item:hover img { transform: scale(1.06); }
.ec-home-report__item:hover strong { color: var(--navy); }
.ec-home-contact {
  background: var(--paper);
  color: var(--body);
}
.ec-home-contact .ec-display {
  color: var(--navy);
}
.ec-home-contact__inner {
  display: grid;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: stretch;
}
.ec-home-contact__copy {
  display: grid;
  align-content: start;
  padding-top: clamp(0px, 1vw, 10px);
}
.ec-home-contact__copy p {
  max-width: var(--ec-copy-measure);
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}
.ec-home-contact__list {
  list-style: none;
  padding: clamp(22px, 3vw, 30px) 0 0;
  margin: clamp(28px, 3.5vw, 38px) 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 12px;
  color: var(--body);
}
.ec-home-contact__list li {
  position: relative;
  padding-left: 18px;
}
.ec-home-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.ec-home-contact__panel {
  background: var(--white);
  color: var(--ink);
  display: grid;
  align-content: start;
  padding: clamp(28px, 3.6vw, 44px);
  box-shadow: var(--ec-shadow-lg);
}
.ec-home-contact__panel h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  text-transform: uppercase;
}
.ec-home-contact__panel h2 {
  margin: 10px 0 0;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.08;
  text-transform: uppercase;
}
.ec-home-contact__form {
  margin-top: clamp(24px, 3vw, 34px);
}

/* ---------- Core Inner Pages ---------- */
.ec-page {
  background: var(--white);
}
.ec-page-hero {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(36px, 5vw, 70px);
  background: var(--white);
}
.ec-page-hero--blue {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
}
.ec-page-hero--blue .ec-display {
  color: var(--white);
}
.ec-page-hero--blue .ec-eyebrow {
  color: rgba(255,255,255,0.62);
}
.ec-page-hero__grid {
  display: grid;
  gap: clamp(22px, 4vw, 64px);
  align-items: end;
}
.ec-page-hero .ec-display {
  max-width: 18ch;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.96;
  text-transform: uppercase;
}
.ec-page-hero__lede {
  max-width: var(--ec-copy-measure);
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
}
.ec-page-hero--blue .ec-page-hero__lede {
  color: rgba(255,255,255,0.74);
}
.ec-page-list {
  background: var(--paper);
}
.ec-page-card-grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}
.ec-page-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  color: var(--body);
  text-decoration: none;
}
.ec-page-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rule-soft);
}
.ec-page-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}
.ec-page-card__media span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ec-page-card__body {
  display: grid;
  gap: 10px;
}
.ec-page-card__body em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ec-page-card__body strong {
  display: block;
  max-width: 18ch;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.04;
  text-transform: uppercase;
}
.ec-page-card__body small {
  display: block;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.ec-page-card__body b {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-page-card:hover .ec-page-card__media img {
  transform: scale(1.04);
}
.ec-service-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.ec-service-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  text-decoration: none;
}
.ec-service-row span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.ec-service-row strong {
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}
.ec-service-row small {
  max-width: var(--ec-copy-measure);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.ec-page-split {
  background: var(--white);
}
.ec-page-split--blue {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
}
.ec-page-split--blue .ec-display {
  color: var(--white);
}
.ec-page-split--blue .ec-eyebrow {
  color: rgba(255,255,255,0.62);
}
.ec-page-split__grid {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
}
.ec-page-split .ec-display {
  max-width: 16ch;
  font-size: clamp(30px, 3.4vw, 46px);
  text-transform: uppercase;
}
.ec-page-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
}
.ec-page-copy p {
  margin: 0;
  max-width: var(--ec-copy-measure);
  line-height: 1.7;
}
.ec-page-split--blue .ec-page-copy {
  color: rgba(255,255,255,0.74);
}
.ec-case-grid {
  display: grid;
  gap: 18px;
}
.ec-case-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 260px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--rule-soft);
}
.ec-case-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ec-case-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.ec-page-contact {
  padding-top: clamp(64px, 8vw, 112px);
}
.ec-completed {
  background: var(--paper);
}
.ec-completed__grid {
  display: grid;
  gap: clamp(34px, 4vw, 58px);
}
.ec-completed-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--body);
  text-decoration: none;
}
.ec-completed-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rule-soft);
}
.ec-completed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}
.ec-completed-card__label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ec-completed-card__badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 18px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  color: #050505;
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 26px rgba(10,20,35,0.08);
}
.ec-completed-card__body {
  display: grid;
  gap: 8px;
}
.ec-completed-card__body em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ec-completed-card__body strong {
  display: block;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ec-completed-card__body small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.ec-completed-card__body b {
  margin-top: 4px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-completed-card:hover .ec-completed-card__media img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .ec-page-hero__grid,
  .ec-page-split__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.72fr);
  }
  .ec-page-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ec-page-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ec-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ec-completed__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ec-page-hero {
    padding-top: 52px;
    padding-bottom: 34px;
  }
  .ec-page-hero .ec-display {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1;
  }
  .ec-page-hero__lede {
    font-size: 15px;
  }
  .ec-page-card-grid {
    gap: 34px;
  }
  .ec-page-card__body strong {
    font-size: 24px;
  }
  .ec-service-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .ec-service-row strong {
    font-size: 24px;
  }
  .ec-case-card {
    min-height: 0;
    padding: 22px;
  }
  .ec-completed-card__badge {
    font-size: clamp(30px, 11vw, 48px);
  }
}
.ec-home-contact__form .ec-reserve__submit {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ec-home-contact__form .ec-reserve__submit .ec-btn {
  flex: 0 0 auto;
  justify-content: center;
}
.ec-home-contact__form .ec-btn--ghost {
  color: var(--navy);
  border-color: var(--rule);
}
.ec-home-contact__form .ec-btn--ghost:hover {
  background: var(--rule-soft);
}

.ec-home-feature h2,
.ec-home-reels h2,
.ec-home-services .ec-section__head .ec-display,
.ec-home-projects .ec-section__head .ec-display,
.ec-home-report h2,
.ec-home-contact .ec-display {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  max-width: 18ch;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .ec-home-feature__grid,
  .ec-home-reels__layout {
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  }
  .ec-home-reels__rail {
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 100%);
  }
  .ec-home-reels__copy .ec-btn { justify-self: start; }
}

@media (min-width: 768px) {
  .ec-home-services__grid { grid-template-columns: repeat(2, 1fr); }
  .ec-home-services__grid article {
    padding-right: clamp(24px, 4vw, 52px);
    border-bottom: 0;
  }
  .ec-home-services__grid article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.18); }
  .ec-home-services__grid article + article { padding-left: clamp(24px, 4vw, 52px); }
  .ec-home-report__grid { grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr); }
  .ec-home-contact__inner { grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr); }
  .ec-home-rail-section__head { grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.6fr); align-items: end; }
}

@media (min-width: 1180px) {
  .ec-home-services__grid { grid-template-columns: repeat(4, 1fr); }
  .ec-home-services__grid article { border-right: 1px solid rgba(255,255,255,0.18); }
  .ec-home-services__grid article:nth-child(4n) { border-right: 0; }
}

@media (max-width: 640px) {
  .ec-home-hero { min-height: 84vh; }
  .ec-home-hero__title { font-size: 34px; max-width: 13ch; }
  .ec-home-hero__actions .ec-btn { flex: 1 1 100%; justify-content: center; }
  .ec-home-feature__facts { grid-template-columns: 1fr; gap: 16px; }
  .ec-home-feature__image { aspect-ratio: 4/3; }
  .ec-home-contact__form .ec-reserve__submit .ec-btn { width: 100%; }
}

/* ---------- THE ENCLAVE REPORT ---------- */
.ec-report-hero {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(36px, 5vw, 60px);
  background: var(--white);
}
.ec-report-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.ec-report-hero__title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  max-width: 22ch;
  margin: 16px 0 24px;
  text-transform: uppercase;
  line-height: 1;
}
.ec-report-hero__lede {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}
.ec-report-start {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.ec-report-start h2 {
  margin: 12px 0;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--navy);
}
.ec-report-start p {
  margin: 0 0 24px;
  color: var(--muted);
}
.ec-report-daraja {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding: clamp(36px, 5vw, 64px) 0;
}
.ec-report-daraja__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.ec-report-daraja h2 {
  margin: 12px 0 0;
  max-width: 24ch;
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--white);
}
.ec-report-daraja__links {
  display: grid;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ec-report-daraja__links a {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-family: var(--ff-display);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.28;
  text-transform: uppercase;
  color: var(--white);
}
.ec-report-daraja__links a:hover { color: rgba(255,255,255,0.72); }
.ec-report-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.ec-report-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ec-report-tools a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.ec-report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}
.ec-report-card {
  display: grid;
  gap: 22px;
  align-content: start;
}
.ec-report-card__media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--rule-soft);
}
.ec-report-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.ec-report-card:hover .ec-report-card__media img { transform: scale(1.04); }
.ec-report-card__body h2 {
  margin: 12px 0 12px;
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.22;
  text-transform: uppercase;
  color: var(--navy);
}
.ec-report-card__body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}
.ec-report-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ec-report-card__cta:hover { color: var(--navy); }
.ec-report-single__hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
  background: var(--white);
}
.ec-report-single__hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.ec-report-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ec-report-single__meta a { color: var(--navy); }
.ec-report-single__title {
  font-size: clamp(30px, 3.2vw, 44px);
  max-width: 24ch;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
}
.ec-report-single__dek {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
}
.ec-report-single__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--rule-soft);
}
.ec-report-single__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-report-single__body-wrap { padding-top: clamp(40px, 6vw, 80px); }
.ec-report-single__body-grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.ec-report-single__content {
  max-width: 760px;
  color: var(--body);
}
.ec-report-single__content p,
.ec-report-single__content li {
  font-size: 16px;
  line-height: 1.7;
}
.ec-report-single__content p { margin: 0 0 24px; }
.ec-report-single__content h2 {
  margin: 38px 0 14px;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.22;
  color: var(--navy);
  text-transform: uppercase;
}
.ec-report-single__content ul {
  margin: 0 0 28px;
  padding-left: 20px;
}
.ec-report-single__content a {
  color: var(--navy);
  border-bottom: 1px solid currentColor;
}
.ec-report-single__side {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.ec-report-single__side h2 {
  margin: 12px 0;
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--navy);
  text-transform: uppercase;
}
.ec-report-single__side p {
  margin: 0 0 24px;
  color: var(--muted);
}
.ec-report-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .ec-report-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr); }
  .ec-report-daraja__inner { grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr); }
  .ec-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-report-single__hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr); }
  .ec-report-single__body-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .ec-report-single__side { position: sticky; top: 104px; }
}

@media (min-width: 1280px) {
  .ec-report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- FOOTER ---------- */
.ec-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 80px 0 40px; }
.ec-footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ec-footer__brand p { color: rgba(255,255,255,0.7); margin-top: 20px; max-width: 48ch; line-height: 1.65; }
.ec-footer__logo { display: block; height: 56px; width: auto; }
.ec-footer__col h5 { font-family: var(--ff-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 0 0 16px; font-weight: 500; }
.ec-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ec-footer__col a { color: rgba(255,255,255,0.85); }
.ec-footer__col a:hover { color: var(--accent); }
.ec-footer__legal { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.5); }

@media (min-width: 768px) {
  .ec-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .ec-footer__legal { flex-direction: row; justify-content: space-between; }
}

/* =====================================================================
   MOBILE OVERRIDES — desktop is locked (>=768px). Mobile gets a
   tighter, denser layout. Two-column where it makes sense, smaller
   type, less padding, no font-size highlights.
   ===================================================================== */
@media (max-width: 767px) {

  :root { --ec-section-pad-y: 52px; }

  .ec-nav__inner {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ec-nav__logo-img {
    height: 34px;
  }
  .ec-nav__cta {
    gap: 8px;
  }
  body:not(.is-property) .ec-nav__cta > .ec-btn,
  .ec-nav--property .ec-nav__cta > .ec-btn {
    display: none;
  }
  .ec-nav__burger {
    width: 40px;
    height: 40px;
  }

  .ec-section__head { margin-bottom: 24px; }
  .ec-section__head .ec-display { font-size: 26px; line-height: 1.15; max-width: none; }
  .ec-section__head .ec-body { font-size: 14px; }

  /* ---------- Hero — tighter ---------- */
  .ec-hero { min-height: 88vh; }
  .ec-hero__inner { padding: 96px var(--gutter) 32px; }
  .ec-hero__breadcrumb { font-size: 10px; gap: 4px; }
  .ec-hero__title { font-size: 36px; max-width: 13ch; }
  .ec-hero__tagline { font-size: 14px; margin: 0 0 24px; }
  .ec-hero__cta { gap: 8px; margin-bottom: 32px; }
  .ec-hero__cta .ec-btn { padding: 12px 18px; font-size: 11px; flex: 1; justify-content: center; }
  .ec-hero__stats { padding-top: 20px; gap: 16px 24px; grid-template-columns: 1fr 1fr; }
  .ec-hero__stats div { gap: 4px; padding: 0; }
  .ec-hero__stats div::before { display: none; }
  .ec-hero__stats dt { font-size: 9px; }
  .ec-hero__stats dd { font-size: 18px; }

  /* ---------- Homepage ---------- */
  .ec-home-hero {
    min-height: max(640px, 92svh);
  }
  .ec-home-hero__inner {
    padding-top: 92px;
    padding-bottom: 28px;
  }
  .ec-home-hero__content-wrap {
    min-height: 0;
    width: min(100%, 540px);
  }
  .ec-home-hero__title {
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1;
    max-width: 12ch;
    margin: 12px 0 16px;
  }
  .ec-home-hero__lede {
    font-size: 14px;
    line-height: 1.48;
    max-width: 32ch;
  }
  .ec-home-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
    max-width: 460px;
  }
  .ec-home-hero__actions .ec-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    justify-content: center;
  }
  .ec-home-hero__dots {
    margin-top: 24px;
  }
  .ec-home-hero__dots button {
    width: 36px;
  }
  .ec-home-feature__grid {
    gap: 24px;
  }
  .ec-home-feature__copy {
    max-width: none;
  }
  .ec-home-feature h2 { margin: 10px 0 14px; }
  .ec-home-feature__facts {
    gap: 12px;
    margin: 24px 0;
  }
  .ec-home-feature__facts dd {
    font-size: 18px;
  }
  .ec-home-feature__image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .ec-home-feature__copy > .ec-btn {
    justify-self: stretch;
    justify-content: center;
  }
  .ec-home-feature h2,
  .ec-home-reels h2,
  .ec-home-services .ec-section__head .ec-display,
  .ec-home-projects .ec-section__head .ec-display,
  .ec-home-report h2,
  .ec-home-contact .ec-display {
    font-size: 28px;
    line-height: 1.08;
    max-width: 18ch;
  }
  .ec-home-reels__copy {
    gap: 16px;
  }
  .ec-home-reels__copy .ec-btn {
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
  }
  .ec-home-reels__rail {
    --reel-card-width: clamp(150px, 42vw, 188px);
    --reel-gap: 12px;
    width: calc(100% + var(--gutter));
    margin-right: calc(var(--gutter) * -1);
    overflow: hidden;
    padding: 2px 0;
    mask-image: none;
  }
  .ec-home-reels__track,
  .ec-home-reels__group {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
  }
  .ec-reel-card {
    flex: 0 0 var(--reel-card-width);
    width: var(--reel-card-width);
    min-height: 0;
  }
  .ec-reel-card strong {
    font-size: 10px;
  }
  .ec-property-rail {
    padding-left: 0;
    padding-right: 0;
  }
  .ec-property-rail__track {
    gap: 12px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .ec-property-rail-card {
    width: clamp(220px, 76vw, 320px);
    min-width: clamp(220px, 76vw, 320px);
    max-width: clamp(220px, 76vw, 320px);
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 16px;
    transition: transform 180ms ease;
  }
  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    width: clamp(220px, 76vw, 320px);
    min-width: clamp(220px, 76vw, 320px);
    max-width: clamp(220px, 76vw, 320px);
  }
  .ec-property-rail-card__body strong,
  .ec-property-rail-card:hover .ec-property-rail-card__body strong,
  .ec-property-rail-card:focus-visible .ec-property-rail-card__body strong {
    font-size: clamp(18px, 5.2vw, 23px);
    max-width: 13ch;
  }
  .ec-property-rail-card__body small {
    max-height: 7em;
    opacity: 1;
    font-size: 12px;
    line-height: 1.38;
  }
  .ec-property-rail-card__body b {
    padding: 9px 14px;
  }
  .ec-property-rail-card__sold {
    right: 12px;
    bottom: 12px;
    font-size: clamp(26px, 11vw, 44px);
  }

  .ec-home-report__item {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 20px;
  }
  .ec-home-report__thumb {
    aspect-ratio: 16 / 9;
  }
  .ec-home-report__body {
    gap: 6px;
  }
  .ec-home-report__item em {
    font-size: 9px;
    line-height: 1.35;
  }
  .ec-home-report__item strong {
    font-size: 18px;
    line-height: 1.16;
  }

  .ec-home-contact__copy,
  .ec-home-contact__panel {
    padding-top: 0;
  }
  .ec-home-contact__panel {
    padding: 24px 18px;
  }
  .ec-home-contact__panel h3 {
    font-size: 24px;
    line-height: 1.12;
  }
  .ec-home-contact__form {
    margin-top: 22px;
  }
  .ec-home-contact__list {
    margin-top: 24px;
    padding-top: 20px;
  }

  /* ---------- Gallery ---------- */
  .ec-gallery2 { padding: 24px 0; }
  .ec-gallery2__bar { padding-top: 12px; gap: 12px; }
  .ec-gallery2__counter { font-size: 14px; }
  .ec-gallery2__thumb { width: 80px; }

  /* ---------- Overview stats — 2-col tighter ---------- */
  .ec-overview__copy { font-size: 14px; margin-bottom: 28px; }
  .ec-stats { padding: 20px 0; gap: 20px; grid-template-columns: 1fr 1fr; }
  .ec-stats div { gap: 4px; }
  .ec-stats__num { font-size: 24px; }
  .ec-overview__meta dl { gap: 16px 32px; }
  .ec-overview__meta dt { font-size: 9px; }
  .ec-overview__meta dd { font-size: 15px; }

  /* ---------- Lifestyle — 2-col compact ---------- */
  .ec-lifestyle__grid { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 0; }
  .ec-lifestyle__item {
    grid-template-columns: 28px 1fr;
    gap: 10px; padding: 12px 0; align-items: center;
  }
  .ec-lifestyle__icon { width: 28px; height: 28px; }
  .ec-lifestyle__icon svg { width: 20px; height: 20px; }
  .ec-lifestyle__num { display: none; }
  .ec-lifestyle__title { font-size: 13px; line-height: 1.25; }

  /* ---------- Compare slider ---------- */
  .ec-compare__slider { aspect-ratio: 4/3; }
  .ec-compare__knob { width: 36px; height: 36px; }
  .ec-compare__label { font-size: 9px; padding: 4px 8px; bottom: 8px; }
  .ec-compare__label--left { left: 8px; }
  .ec-compare__label--right { right: 8px; }

  /* ---------- Residences — mobile card layout ----------
     Each meta cell gets its own grid column on row 2 so beds/baths/size
     flow inline left-to-right instead of stacking in a shared grid area. */
  .ec-residences2__pills { gap: 6px; margin: 16px 0 20px; }
  .ec-residences2__pill { padding: 8px 14px; font-size: 12px; }
  .ec-residences2__pill-count { font-size: 10px; }
  .ec-residences2__row {
    display: grid;
    grid-template-columns: auto auto auto 1fr auto;
    grid-template-areas:
      "name  name  name  name  price"
      "beds  baths size  .     status"
      "view  view  view  view  view";
    column-gap: 6px;
    row-gap: 4px;
    padding: 18px 0;
    align-items: baseline;
  }
  .ec-residences2__row:hover {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ec-residences2__row > div::before { display: none; }
  .ec-residences2__row .col-residence { grid-area: name; }
  .ec-residences2__row .col-price     { grid-area: price; justify-self: end; text-align: right; }
  .ec-residences2__row .col-beds  { grid-area: beds;  font-size: 12px; color: var(--muted); white-space: nowrap; }
  .ec-residences2__row .col-baths { grid-area: baths; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .ec-residences2__row .col-size  { grid-area: size;  font-size: 12px; color: var(--muted); white-space: nowrap; }
  .ec-residences2__row .col-beds::after  { content: " bd"; color: var(--muted); margin-right: 4px; }
  .ec-residences2__row .col-baths::after { content: " ba"; color: var(--muted); margin-right: 4px; }
  .ec-residences2__row .col-beds::before,
  .ec-residences2__row .col-baths::before { content: "·"; color: var(--muted); margin-right: 4px; }
  /* No leading separator on the very first meta cell (beds). */
  .ec-residences2__row .col-beds::before { content: ""; margin-right: 0; }
  .ec-residences2__row .col-view      { grid-area: view; font-size: 12px; color: var(--muted); }
  .ec-residences2__row .col-status    { grid-area: status; justify-self: end; }
  .ec-residences2__row .col-arrow     { display: none; }
  .ec-residences2__name { font-size: 13px; }
  .ec-residences2__row .col-price [data-kes] { font-size: 16px; }

  /* ---------- Floor plans — scrollable tabs, tighter stats ---------- */
  .ec-floorplans__tabs {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .ec-floorplans__tabs::-webkit-scrollbar { display: none; }
  .ec-floorplans__tab { white-space: nowrap; padding: 10px 12px; font-size: 12px; }
  .ec-floorplans__panel { gap: 20px; }
  .ec-floorplans__drawing { aspect-ratio: 4/3; padding: 12px; }
  .ec-floorplans__placeholder { font-size: 11px; }
  .ec-floorplans__size { font-size: 26px; margin-top: 8px; }
  .ec-floorplans__stats { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; margin: 16px 0; }
  .ec-floorplans__stats dt { font-size: 9px; margin-bottom: 4px; }
  .ec-floorplans__stats dd { font-size: 22px; }
  .ec-floorplans__cta .ec-btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 11px; }

  /* ---------- Investment — tighter chart, 2x2 stats ---------- */
  .ec-invest__panel { padding: 20px; }
  .ec-invest__tags {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; gap: 6px;
  }
  .ec-invest__tags::-webkit-scrollbar { display: none; }
  .ec-invest__tag { white-space: nowrap; padding: 8px 12px; font-size: 11px; }
  .ec-invest__body { gap: 24px; }
  .ec-invest__chart svg { aspect-ratio: 4/3; }
  .ec-invest__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ec-invest__stats > div { padding: 16px; gap: 8px; }
  .ec-invest__num { font-size: 20px; }
  .ec-invest__sub { font-size: 11px; }
  .ec-invest__sources { font-size: 10px; }
  .ec-invest__display { font-size: 24px; }

  /* ---------- Payment — keep stacked, tighter cards ---------- */
  .ec-payment__step { padding: 20px; }
  .ec-payment__pct { font-size: 28px; }
  .ec-payment__step h4 { font-size: 16px; }
  .ec-payment__step p { font-size: 13px; }

  /* ---------- Location — map smaller, POI list 2-col ---------- */
  .ec-location__map { height: 320px; min-height: 320px; }
  .ec-location__list { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .ec-location__item {
    grid-template-columns: 20px 1fr;
    grid-template-areas: "num name" "num dist";
    gap: 2px 8px;
    padding: 10px 0;
  }
  .ec-location__item:hover { padding-left: 0; padding-right: 0; }
  .ec-location__num  { grid-area: num; font-size: 9px; }
  .ec-location__name { grid-area: name; font-size: 13px; line-height: 1.2; }
  .ec-location__dist { grid-area: dist; font-size: 11px; }

  /* ---------- Agents ---------- */
  .ec-agents__card { padding: 20px; }
  .ec-agents__photo { max-width: 120px; }
  .ec-agents__card h3 { font-size: 22px; }

  /* ---------- Reserve ---------- */
  .ec-reserve__left, .ec-reserve__right { padding: 28px 20px; }
  .ec-reserve__display { font-size: 24px; max-width: 100%; }
  .ec-reserve__lede { font-size: 14px; }

  /* ---------- WhatsApp sticky ---------- */
  .ec-wa-sticky { padding: 10px; }

  /* ---------- Archive cards ---------- */
  .ec-archive__title { font-size: 32px; }
  .ec-archive__lede { font-size: 14px; }
  .ec-archive__grid { gap: 34px; }
  .ec-card__media {
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
  }
  .ec-card__title {
    font-size: 22px;
  }
  .ec-card__tagline {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

/* =====================================================================
   FLUID + CONTAINER-AWARE LAYER (v0.4)
   Layered on top of the breakpoint stack above. Goals:
   - Smooth transitions between phone → tablet → desktop (no hard jumps)
   - Component-level responsiveness via container queries
   - Touch-grade tap targets on coarse pointers
   - Coverage for 480–640px (tablet portrait) and 1440px+ (wide desktop)
   ===================================================================== */

:root {
  /* Fluid gutter: 16px at 320 viewport → 32px at 1440 */
  --gutter: clamp(16px, 1vw + 12px, 32px);

  /* Fluid type ramp — base 16, scaled to viewport */
  --fs-xs:   clamp(0.6875rem, 0.65rem + 0.18vw, 0.8125rem);  /* 11→13 */
  --fs-sm:   clamp(0.8125rem, 0.78rem + 0.20vw, 0.9375rem);  /* 13→15 */
  --fs-md:   clamp(0.9375rem, 0.88rem + 0.30vw, 1.0625rem);  /* 15→17 */
  --fs-lg:   clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem);   /* 17→22 */
  --fs-xl:   clamp(1.25rem,  1.05rem + 1.0vw,  1.875rem);    /* 20→30 */
  --fs-2xl:  clamp(1.625rem, 1.20rem + 2.0vw,  2.75rem);     /* 26→44 */
  --fs-3xl:  clamp(2.0rem,   1.40rem + 3.0vw,  4.0rem);      /* 32→64 */
  --fs-hero: clamp(2.125rem, 1.35rem + 3.5vw,   4.0rem);      /* 34→64 */

  /* Fluid section rhythm */
  --ec-section-pad-y: clamp(44px, 5vw + 8px, 96px);
}

/* ---------- TAP TARGETS — coarse pointer only ---------- */
@media (pointer: coarse) {
  .ec-btn,
  .ec-residences2__pill,
  .ec-floorplans__tab,
  .ec-invest__tag,
  .ec-residences2__pager-btn,
  .ec-residences2__pager-page,
  .ec-currency button,
  .ec-nav__burger,
  .ec-gallery2__nav,
  .ec-gallery2__close {
    min-height: 44px;
    min-width: 44px;
  }
  .ec-field input,
  .ec-field select,
  .ec-field textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom-on-focus */
  }
}

/* ---------- TABLET PORTRAIT BAND (480–767px) ----------
   Smooths the jump from phone-tight to tablet-loose. Mostly bumps gutters,
   relaxes 2-col grids that look cramped at 480, keeps the tighter type. */
@media (min-width: 480px) and (max-width: 767px) {
  .ec-hero__title  { font-size: clamp(36px, 8vw, 48px); max-width: 14ch; }
  .ec-hero__tagline{ font-size: 15px; }
  .ec-hero__stats  { gap: 20px 28px; }
  .ec-hero__stats dd { font-size: 22px; }

  .ec-residences2__row {
    grid-template-columns: 1.4fr auto auto;
    grid-template-areas:
      "name      meta   price"
      "name      view   status";
    column-gap: 16px;
  }
  .ec-residences2__row .col-residence { grid-area: name; }
  .ec-residences2__row .col-price     { grid-area: price; }
  .ec-residences2__row .col-status    { grid-area: status; }

  .ec-archive__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ec-agents__grid  { grid-template-columns: 1fr 1fr; gap: 20px; }

  .ec-floorplans__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-invest__stats     { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- WIDE DESKTOP (1440px+) ---------- */
@media (min-width: 1440px) {
  :root { --container: 1440px; }
  .ec-hero__title { font-size: clamp(48px, 4.6vw, 72px); }
  .ec-archive__grid { grid-template-columns: repeat(3, 1fr); gap: 72px 56px; }
}

@media (min-width: 1720px) {
  :root { --container: 1560px; }
}

/* ---------- CONTAINER QUERIES — component-level responsiveness ---------- */

/* Residences table reflows on its OWN width, not the viewport.
   Means the table stays usable inside narrower wrappers (modals, sidebars). */
.ec-residences2__table { container-type: inline-size; container-name: residences; }
@container residences (min-width: 720px) {
  .ec-residences2__head,
  .ec-residences2__row {
    display: grid;
    grid-template-columns: minmax(160px, 2fr) 60px 60px minmax(120px, 1.4fr) 80px minmax(110px, 1.2fr) 110px 24px;
    gap: 16px;
    align-items: center;
  }
  .ec-residences2__head { display: grid; }
  .ec-residences2__row > div::before { content: none; }
  .ec-residences2--land .ec-residences2__head,
  .ec-residences2--land .ec-residences2__row {
    grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(110px, 1fr) minmax(130px, 1.2fr) 90px minmax(110px, 1fr) 110px 24px;
  }
}

/* Lifestyle grid: 1 → 2 → 3 cols based on its own width */
.ec-lifestyle { container-type: inline-size; container-name: lifestyle; }
@container lifestyle (min-width: 560px) {
  .ec-lifestyle__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@container lifestyle (min-width: 960px) {
  .ec-lifestyle__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Archive card grid — same idea */
.ec-archive { container-type: inline-size; container-name: archive; }
@container archive (min-width: 600px)  { .ec-archive__grid { grid-template-columns: repeat(2, 1fr); } }
@container archive (min-width: 1100px) { .ec-archive__grid { grid-template-columns: repeat(3, 1fr); } }

/* Investment stats reflow inside the panel */
.ec-invest__panel { container-type: inline-size; container-name: invest; }
@container invest (min-width: 520px) { .ec-invest__stats { grid-template-columns: repeat(2, 1fr); } }
@container invest (min-width: 880px) { .ec-invest__stats { grid-template-columns: repeat(4, 1fr); } }

/* Reserve form responds to its own container, not the viewport */
.ec-reserve__right { container-type: inline-size; container-name: reserve; }
@container reserve (min-width: 480px) {
  .ec-reserve__form { grid-template-columns: 1fr 1fr; }
  .ec-field--full   { grid-column: 1 / -1; }
}

/* ---------- IMAGE PERFORMANCE — let the browser size sensibly ---------- */
.ec-card__media img,
.ec-gallery2__hero-img img,
.ec-hero__img {
  content-visibility: auto;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- HORIZONTAL OVERFLOW GUARD ---------- */
html, body { overflow-x: hidden; }
img, video, svg { max-width: 100%; }

/* ---------- READ-MORE PATTERN (overview copy) ----------
   First paragraph visible, rest collapsed behind a fade. Click to expand. */
.ec-readmore { position: relative; }
.ec-readmore__inner {
  --ec-readmore-collapsed: 6.5em;
  max-height: var(--ec-readmore-collapsed);
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  /* Trim the second paragraph onward to the collapsed height. */
  position: relative;
}
.ec-readmore__inner > p:first-child { margin-top: 0; }
.ec-readmore.is-open .ec-readmore__inner {
  max-height: 4000px; /* arbitrary large; transitions out smoothly */
}
.ec-readmore__inner::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3.2em;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white) 90%);
  pointer-events: none;
  transition: opacity 220ms ease;
}
.ec-readmore.is-open .ec-readmore__inner::after { opacity: 0; }
.ec-readmore__btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
  transition: 150ms ease;
}
.ec-readmore__btn:hover { border-color: var(--navy); background: var(--paper); }
.ec-readmore__chev { transition: transform 220ms ease; }
.ec-readmore.is-open .ec-readmore__chev { transform: rotate(180deg); }

/* On the overview specifically, the parent has its own bottom margin already. */
.ec-overview__copy.ec-readmore { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- FLOOR-PLAN TABS — mobile fix for label/badge collision ----------
   On narrow screens the count badge ("/ 12") was overlapping the type label.
   Hide the count below 480px (still visible in the floor-plan stats panel),
   and ensure tabs scroll horizontally without squishing. */
.ec-floorplans__tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ec-floorplans__tab {
  flex: 0 0 auto; /* never shrink — let the row scroll instead */
}
@media (max-width: 480px) {
  .ec-floorplans__count { display: none; }
  .ec-floorplans__tab {
    padding: 9px 11px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  /* Container: scroll horizontally without overflowing the viewport. */
  .ec-floorplans__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Bleed gutter so a scroll-fade peeks at the right edge. */
    scroll-padding-right: 12px;
  }
}

/* ---------- LAND LISTINGS — final mobile table pass ----------
   Keeps plot type/access labels from inheriting bedroom/bathroom suffixes. */
/* ---------- SITE-WIDE COLUMN ALIGNMENT ----------
   Main two-column sections share one 5/7 grid so text, media, forms, and
   report lists begin and end on consistent vertical lines across pages. */
@media (min-width: 900px) {
  .ec-home-feature__grid,
  .ec-home-reels__layout,
  .ec-home-report__grid,
  .ec-home-contact__inner,
  .ec-home-rail-section__head,
  .ec-page-hero__grid,
  .ec-page-split__grid,
  .ec-report-hero__grid,
  .ec-report-daraja__inner,
  .ec-report-single__hero-grid {
    grid-template-columns: var(--ec-col-left) var(--ec-col-right);
    gap: var(--ec-col-gap);
  }

  .ec-home-feature__copy,
  .ec-home-reels__copy,
  .ec-home-report__grid > :first-child,
  .ec-home-contact__copy,
  .ec-page-hero__grid > :first-child,
  .ec-page-split__grid > :first-child,
  .ec-report-hero__grid > :first-child,
  .ec-report-daraja__inner > :first-child,
  .ec-report-single__hero-grid > :first-child {
    max-width: 100%;
  }

  .ec-home-feature .ec-body,
  .ec-home-reels__copy p,
  .ec-home-contact__copy p,
  .ec-page-hero__lede,
  .ec-page-copy p,
  .ec-report-hero__lede {
    max-width: var(--ec-copy-measure);
  }

  .ec-home-feature__image,
  .ec-home-reels__rail,
  .ec-home-report__list,
  .ec-home-contact__panel,
  .ec-page-hero__lede,
  .ec-page-copy,
  .ec-report-hero__lede,
  .ec-report-daraja__links {
    width: 100%;
    min-width: 0;
  }

  .ec-floorplans__panel {
    grid-template-columns: var(--ec-col-right) var(--ec-col-left);
    gap: var(--ec-col-gap);
  }
}

@media (min-width: 1180px) and (max-width: 1420px) {
  .ec-floorplans__panel {
    grid-template-columns: var(--ec-col-right) var(--ec-col-left);
  }
}

/* ---------- TEXT MEASURE + VERTICAL GRID LOCK ----------
   Section intros should not run wider than the media grid beneath them. */
.ec-archive__hero .container,
.ec-section__head,
.ec-home-rail-section__head,
.ec-report-hero__grid > :first-child,
.ec-report-single__hero-grid > :first-child {
  max-width: min(100%, 680px);
}

.ec-archive__lede,
.ec-report-hero__lede,
.ec-report-single__lede,
.ec-page-hero__lede,
.ec-page-copy,
.ec-home-rail-section__head p,
.ec-home-report .ec-body,
.ec-home-contact__copy p {
  max-width: var(--ec-copy-measure);
}

@media (min-width: 768px) {
  .ec-home-rail-section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .ec-home-rail-section__head {
    max-width: min(100%, 680px);
  }

  .ec-home-services .ec-section__head {
    max-width: min(100%, 680px);
  }
}

/* ---------- HOMEPAGE FUNNEL REFINEMENT ----------
   Keep the homepage alternating cleanly and reduce vertical drag. */
.ec-home-feature {
  background: var(--white);
}

.ec-home-feature__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(8px, 1.4vw, 18px);
}

.ec-home-feature__facts dt,
.ec-home-feature__facts dd {
  white-space: nowrap;
}

.ec-home-feature__facts dd {
  font-size: clamp(17px, 1.65vw, 25px);
}

.ec-home-rail-section--paper {
  background: var(--navy);
  color: rgba(255,255,255,0.76);
}

.ec-home-rail-section--paper .ec-display {
  color: var(--white);
}

.ec-home-rail-section--paper .ec-eyebrow,
.ec-home-rail-section--paper .ec-home-rail-section__head p {
  color: rgba(255,255,255,0.68);
}

.ec-property-rail-card {
  flex-basis: clamp(230px, 21vw, 326px);
  width: clamp(230px, 21vw, 326px);
  min-width: clamp(230px, 21vw, 326px);
  max-width: clamp(230px, 21vw, 326px);
  height: clamp(230px, 21vw, 326px);
  border-radius: 8px;
  padding: clamp(16px, 1.7vw, 24px);
}

.ec-property-rail-card:hover,
.ec-property-rail-card:focus-visible {
  width: clamp(410px, 42vw, 680px);
  min-width: clamp(410px, 42vw, 680px);
  max-width: clamp(410px, 42vw, 680px);
}

.ec-property-rail-card__body {
  max-width: min(100%, 34ch);
}

.ec-property-rail-card__body strong {
  font-size: clamp(17px, 1.35vw, 23px);
  max-width: 13ch;
}

.ec-property-rail-card:hover .ec-property-rail-card__body strong,
.ec-property-rail-card:focus-visible .ec-property-rail-card__body strong {
  max-width: 18ch;
}

.ec-property-rail-card__body small,
.ec-property-rail-card:hover .ec-property-rail-card__body small,
.ec-property-rail-card:focus-visible .ec-property-rail-card__body small {
  max-height: none;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.3;
  max-width: 22ch;
}

.ec-home-services {
  background: var(--white);
  color: var(--body);
}

.ec-home-services .ec-eyebrow {
  color: var(--muted);
}

.ec-home-services .ec-display {
  color: var(--navy);
}

.ec-home-services .ec-section__head .ec-btn {
  color: var(--navy);
  border-color: var(--rule);
}

.ec-home-services .ec-section__head .ec-btn:hover {
  background: var(--paper);
}

.ec-home-services__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
  max-width: min(100%, 760px);
}

.ec-home-services__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ec-home-services__link svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ec-home-services__link:hover,
.ec-home-services__link:focus-visible {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.ec-home-report {
  background: var(--navy);
  color: rgba(255,255,255,0.76);
}

.ec-home-report .ec-display,
.ec-home-report__item strong {
  color: var(--white);
}

.ec-home-report .ec-eyebrow,
.ec-home-report .ec-body,
.ec-home-report__item em {
  color: rgba(255,255,255,0.68);
}

.ec-home-report .ec-btn--primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.ec-home-report__list,
.ec-home-report__item {
  border-color: rgba(255,255,255,0.2);
}

.ec-home-report__item:hover strong {
  color: var(--white);
}

.ec-home-contact {
  background: var(--white);
}

/* ---------- SERVICE DETAIL PAGES ---------- */
.ec-service-detail__grid {
  display: grid;
  gap: var(--ec-col-gap);
  align-items: start;
}

.ec-service-detail__value {
  background: var(--white);
}

.ec-service-detail__value h2,
.ec-service-detail__process h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  max-width: 18ch;
}

.ec-service-detail__cards {
  display: grid;
  gap: 16px;
}

.ec-service-detail__cards article {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  border-radius: 8px;
}

.ec-service-detail__cards span,
.ec-service-detail__steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-service-detail__cards h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
  text-transform: uppercase;
}

.ec-service-detail__cards p,
.ec-service-detail__steps p {
  margin: 0;
  color: var(--body);
  line-height: 1.58;
}

.ec-service-detail__cards ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-service-detail__cards li {
  position: relative;
  padding-left: 18px;
  color: var(--body);
}

.ec-service-detail__cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.ec-service-detail__process {
  background: var(--navy);
  color: rgba(255,255,255,0.76);
}

.ec-service-detail__process .ec-display {
  color: var(--white);
}

.ec-service-detail__process .ec-eyebrow,
.ec-service-detail__process .ec-service-detail__steps span {
  color: rgba(255,255,255,0.64);
}

.ec-service-detail__steps {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.22);
}

.ec-service-detail__steps div {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.ec-service-detail__steps p {
  color: rgba(255,255,255,0.82);
  max-width: var(--ec-copy-measure);
}

@media (min-width: 900px) {
  .ec-service-detail__grid {
    grid-template-columns: var(--ec-col-left) var(--ec-col-right);
  }
}

/* ---------- DESKTOP GRID ALIGNMENT LOCK ----------
   Desktop sections share the same page edge, two-column split, and media edge. */
@media (min-width: 900px) {
  .ec-home > .ec-section > .container,
  .ec-page > .ec-section > .container,
  .ec-property > .ec-section > .container,
  .ec-property .ec-hero__inner,
  .ec-archive__hero > .container,
  .ec-report-hero > .container,
  .ec-report-single__hero > .container {
    max-width: none;
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-home-feature__grid,
  .ec-home-reels__layout,
  .ec-home-rail-section__head,
  .ec-home-report__grid,
  .ec-home-contact__inner,
  .ec-page-hero__grid,
  .ec-page-split__grid,
  .ec-service-detail__grid,
  .ec-report-hero__grid,
  .ec-report-daraja__inner,
  .ec-report-single__hero-grid {
    grid-template-columns: var(--ec-col-left) var(--ec-col-right);
    gap: var(--ec-col-gap);
    align-items: center;
  }

  .ec-overview__copy,
  .ec-gallery2__hero,
  .ec-gallery2__bar,
  .ec-lifestyle__grid,
  .ec-compare__slider,
  .ec-residences2__pills,
  .ec-residences2__table,
  .ec-floorplans__tabs,
  .ec-floorplans__panel,
  .ec-invest__body,
  .ec-payment__timeline,
  .ec-location__wrap,
  .ec-agents__grid,
  .ec-reserve {
    width: 100%;
  }

  .ec-overview__copy {
    max-width: var(--ec-copy-measure);
  }

  .ec-home-rail-section__head,
  .ec-section__head,
  .ec-archive__hero .container,
  .ec-report-hero__grid > :first-child,
  .ec-report-single__hero-grid > :first-child {
    max-width: none;
  }

  .ec-home-rail-section__head {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .ec-home-rail-section__head .ec-display,
  .ec-home-services .ec-section__head .ec-display,
  .ec-home-report h2,
  .ec-home-contact .ec-display {
    max-width: var(--ec-heading-measure);
  }

  .ec-home-rail-section__head p,
  .ec-home-reels__copy p,
  .ec-home-feature .ec-body,
  .ec-home-contact__copy p,
  .ec-page-hero__lede,
  .ec-page-copy p,
  .ec-report-hero__lede {
    max-width: var(--ec-copy-measure);
  }

  .ec-home-rail-section__head > :last-child,
  .ec-home-reels__rail,
  .ec-home-feature__image,
  .ec-home-report__list,
  .ec-home-contact__panel,
  .ec-page-hero__lede,
  .ec-page-copy,
  .ec-report-hero__lede,
  .ec-report-daraja__links {
    width: 100%;
    justify-self: stretch;
  }

  .ec-property-rail__track {
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-home-services .ec-section__head {
    display: grid;
    grid-template-columns: var(--ec-col-left) var(--ec-col-right);
    gap: var(--ec-col-gap);
    align-items: center;
    max-width: none;
  }

  .ec-home-services .ec-section__head .ec-btn {
    justify-self: start;
    align-self: end;
  }

  .ec-home-services__grid {
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ec-home-feature__facts {
    gap: 8px;
    margin: 20px 0;
  }

  .ec-home-feature__facts div {
    padding-top: 10px;
  }

  .ec-home-feature__facts dt {
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .ec-home-feature__facts dd {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  .ec-property-rail-card,
  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    width: clamp(210px, 72vw, 300px);
    min-width: clamp(210px, 72vw, 300px);
    max-width: clamp(210px, 72vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ec-property-rail-card__body small {
    max-width: 18ch;
  }

  .ec-home-services__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ec-home-services__link {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* ---------- FINAL SITE PASS ----------
   Wide desktop rails, portrait desktop listing cards, square mobile cards. */
.ec-home-featured-properties { background: var(--white); }

.ec-featured-grid {
  display: grid;
  gap: clamp(28px, 3.6vw, 56px) clamp(22px, 3vw, 42px);
}

.ec-featured-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.ec-featured-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--rule-soft);
  border-radius: 8px;
}

.ec-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.ec-featured-card__status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 13px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-featured-card__body {
  display: grid;
  gap: 5px;
}

.ec-featured-card__body strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.1;
}

.ec-featured-card__body span {
  color: var(--ink);
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1.25;
}

.ec-featured-card__body em,
.ec-featured-card__body small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.ec-featured-card__body em {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ec-featured-card__body small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ec-featured-card:hover .ec-featured-card__media img {
  transform: scale(1.04);
}

.ec-featured-grid__actions,
.ec-home-services__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 54px);
}

.ec-home-services__link {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.ec-home-services__link:hover,
.ec-home-services__link:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

@media (min-width: 900px) {
  .ec-home > .ec-section > .container,
  .ec-page > .ec-section > .container,
  .ec-archive > .ec-section > .container,
  .ec-report > .ec-section > .container,
  .ec-report-daraja > .container,
  .ec-report-single > .ec-section > .container,
  .ec-property > .ec-section > .container,
  .ec-property .ec-hero__inner {
    max-width: none;
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-home .ec-section__head,
  .ec-page .ec-section__head,
  .ec-home-feature__grid,
  .ec-home-reels__layout,
  .ec-home-rail-section__head,
  .ec-home-report__grid,
  .ec-home-contact__inner,
  .ec-page-hero__grid,
  .ec-page-split__grid,
  .ec-service-detail__grid,
  .ec-report-hero__grid,
  .ec-report-daraja__inner,
  .ec-report-single__hero-grid {
    display: grid;
    grid-template-columns: var(--ec-col-left) var(--ec-col-right);
    gap: var(--ec-col-gap);
    align-items: center;
    max-width: none;
  }

  .ec-home .ec-section__head > :last-child,
  .ec-page .ec-section__head > :last-child,
  .ec-home-reels__rail,
  .ec-home-feature__image,
  .ec-home-report__list,
  .ec-home-contact__panel,
  .ec-page-hero__lede,
  .ec-page-copy,
  .ec-report-hero__lede,
  .ec-report-daraja__links {
    width: 100%;
    justify-self: stretch;
  }

  .ec-home .ec-section__head .ec-display,
  .ec-page .ec-section__head .ec-display,
  .ec-home-report h2,
  .ec-home-contact .ec-display {
    max-width: var(--ec-heading-measure);
  }

  .ec-home .ec-section__head p,
  .ec-home-reels__copy p,
  .ec-home-feature .ec-body,
  .ec-home-contact__copy p,
  .ec-page-hero__lede,
  .ec-page-copy p,
  .ec-report-hero__lede {
    max-width: var(--ec-copy-measure);
  }

  .ec-property-rail__track {
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-property-rail-card {
    flex-basis: clamp(236px, 18vw, 315px);
    width: clamp(236px, 18vw, 315px);
    min-width: clamp(236px, 18vw, 315px);
    max-width: clamp(236px, 18vw, 315px);
    height: clamp(380px, 32vw, 540px);
    aspect-ratio: auto;
  }

  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    width: clamp(460px, 42vw, 720px);
    min-width: clamp(460px, 42vw, 720px);
    max-width: clamp(460px, 42vw, 720px);
  }

  .ec-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-home-services__grid {
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ec-page-card-grid,
  .ec-completed__grid,
  .ec-archive__grid,
  .ec-report-grid,
  .ec-case-grid {
    width: 100%;
  }
}

.ec-card__media,
.ec-page-card__media,
.ec-completed-card__media {
  border-radius: 8px;
}

.ec-page-card__body small,
.ec-completed-card__body small,
.ec-card__tagline {
  max-width: var(--ec-copy-measure-tight);
}

@media (min-width: 768px) and (max-width: 899px) {
  :root {
    --ec-page-margin: clamp(32px, 5vw, 56px);
  }

  .ec-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-property-rail-card,
  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    width: clamp(220px, 36vw, 300px);
    min-width: clamp(220px, 36vw, 300px);
    max-width: clamp(220px, 36vw, 300px);
    height: clamp(300px, 46vw, 410px);
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --ec-page-margin: var(--gutter);
  }

  .ec-featured-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ec-featured-card__media {
    aspect-ratio: 1 / 1;
  }

  .ec-home-services__actions .ec-btn,
  .ec-featured-grid__actions .ec-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Final rail correction: section copy, media, rails, and CTAs share one boundary. */
@media (min-width: 900px) {
  .ec-home > .ec-section > .container,
  .ec-page > .ec-section > .container,
  .ec-archive > .ec-section > .container,
  .ec-report > .ec-section > .container,
  .ec-report-daraja > .container,
  .ec-report-single > .ec-section > .container,
  .ec-property > .ec-section > .container,
  .ec-property .ec-hero__inner {
    max-width: none;
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-home .ec-section__head,
  .ec-page .ec-section__head,
  .ec-home-rail-section__head,
  .ec-page-hero__grid,
  .ec-page-split__grid,
  .ec-service-detail__grid,
  .ec-home-feature__grid,
  .ec-home-reels__layout,
  .ec-home-report__grid,
  .ec-home-contact__inner,
  .ec-report-hero__grid,
  .ec-report-daraja__inner,
  .ec-report-single__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--ec-col-gap);
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .ec-home .ec-section__head > :last-child,
  .ec-page .ec-section__head > :last-child,
  .ec-home-rail-section__head > :last-child,
  .ec-page-hero__lede,
  .ec-page-copy,
  .ec-home-reels__rail,
  .ec-home-feature__image,
  .ec-home-report__list,
  .ec-home-contact__panel,
  .ec-report-hero__lede,
  .ec-report-daraja__links {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .ec-home .ec-section__head p,
  .ec-home-rail-section__head p,
  .ec-page-hero__lede,
  .ec-page-copy p,
  .ec-report-hero__lede,
  .ec-home-reels__copy p,
  .ec-home-contact__copy p,
  .ec-home-feature .ec-body {
    max-width: none;
  }

  .ec-featured-grid__actions,
  .ec-home-services__actions,
  .ec-home-projects__actions,
  .ec-home-feature__copy > .ec-btn,
  .ec-home-reels__copy .ec-btn,
  .ec-home-report .ec-btn {
    justify-content: flex-start;
    justify-self: start;
  }

  .ec-property-rail {
    width: 100%;
  }

  .ec-property-rail__track {
    --rail-gap: clamp(18px, 1.7vw, 34px);
    display: flex;
    width: 100%;
    max-width: none;
    gap: var(--rail-gap);
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
    align-items: stretch;
    box-sizing: border-box;
  }

  .ec-property-rail-card {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: clamp(390px, 32vw, 560px);
    aspect-ratio: auto;
    transition:
      flex-grow 420ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 220ms ease;
  }

  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    flex-grow: 1.45;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .ec-featured-grid,
  .ec-page-card-grid,
  .ec-completed__grid,
  .ec-archive__grid,
  .ec-report-grid,
  .ec-case-grid {
    width: 100%;
  }
}

@media (max-width: 899px) {
  .ec-property-rail__track {
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-featured-grid__actions,
  .ec-home-services__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .ec-property-rail {
    width: 100%;
    margin: 0;
  }

  .ec-property-rail__track {
    width: max-content;
    gap: 12px;
    padding-left: var(--ec-page-margin);
    padding-right: var(--ec-page-margin);
  }

  .ec-property-rail-card,
  .ec-property-rail-card:hover,
  .ec-property-rail-card:focus-visible {
    flex: 0 0 clamp(220px, 76vw, 320px);
    width: clamp(220px, 76vw, 320px);
    min-width: clamp(220px, 76vw, 320px);
    max-width: clamp(220px, 76vw, 320px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ec-featured-grid__actions .ec-btn,
  .ec-home-services__actions .ec-btn {
    width: auto;
    justify-content: flex-start;
  }
}

/* Final blocker fixes: services readability, commercial cards, and no bottom sold badges. */
.ec-page-hero .ec-display,
.ec-service-detail .ec-display,
.ec-service-row strong {
  overflow-wrap: normal;
  word-break: normal;
}

.ec-service-list {
  border-top-color: var(--rule-soft);
}

.ec-service-row {
  border-bottom-color: var(--rule-soft);
}

.ec-service-row:hover strong,
.ec-service-row:focus-visible strong {
  color: var(--accent);
}

.ec-service-detail .ec-page-hero .ec-display {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  max-width: 11ch;
}

.ec-service-detail__value h2,
.ec-service-detail__process h2 {
  overflow-wrap: normal;
  word-break: normal;
}

.ec-home-commercial-projects {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
}

.ec-home-commercial-projects .ec-display,
.ec-home-commercial-projects .ec-section__head p {
  color: var(--white);
}

.ec-commercial-grid {
  display: grid;
  gap: clamp(22px, 2.5vw, 36px);
}

.ec-commercial-card {
  display: grid;
  gap: 18px;
  color: var(--white);
  text-decoration: none;
}

.ec-commercial-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.ec-commercial-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,14,32,0.04), rgba(3,14,32,0.46));
}

.ec-commercial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.ec-commercial-card:hover .ec-commercial-card__media img,
.ec-commercial-card:focus-visible .ec-commercial-card__media img {
  transform: scale(1.035);
}

.ec-commercial-card__media span {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ec-commercial-card__body {
  display: grid;
  gap: 8px;
}

.ec-commercial-card__body em,
.ec-commercial-card__body small {
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

.ec-commercial-card__body em,
.ec-commercial-card__body b {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-commercial-card__body strong {
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1;
  text-transform: uppercase;
}

.ec-commercial-card__body small {
  font-size: 15px;
  line-height: 1.55;
}

.ec-commercial-card__body b {
  color: var(--white);
}

.ec-completed-card__badge {
  display: none !important;
}

@media (min-width: 900px) {
  .ec-commercial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .ec-service-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ec-service-row small {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .ec-service-detail .ec-page-hero .ec-display,
  .ec-page-hero .ec-display {
    font-size: clamp(36px, 11vw, 56px);
    max-width: 9ch;
  }

  .ec-service-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ec-service-row small {
    grid-column: auto;
  }
}

/* Services and About rebuilds. */
.ec-services-hero,
.ec-about-hero {
  background: var(--white);
}

.ec-services-hero__grid,
.ec-about-hero__grid {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.ec-services-hero__copy,
.ec-about-hero__copy {
  display: grid;
  gap: 20px;
  align-content: center;
}

.ec-services-hero__copy .ec-display,
.ec-about-hero__copy .ec-display {
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.ec-services-hero__copy p,
.ec-about-hero__copy p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
}

.ec-services-hero__media,
.ec-about-hero__media {
  overflow: hidden;
  min-height: clamp(360px, 42vw, 620px);
  border-radius: 8px;
  background: var(--paper);
}

.ec-services-hero__media img,
.ec-about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-services-summary {
  background: var(--paper);
}

.ec-service-summary-grid {
  display: grid;
  gap: clamp(24px, 3vw, 42px);
}

.ec-service-summary-card {
  display: grid;
  gap: 18px;
  color: var(--body);
  text-decoration: none;
}

.ec-service-summary-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  background: var(--navy);
}

.ec-service-summary-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,14,32,0.02), rgba(3,14,32,0.48));
}

.ec-service-summary-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.ec-service-summary-card:hover img,
.ec-service-summary-card:focus-visible img {
  transform: scale(1.035);
}

.ec-service-summary-card__media span {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ec-service-summary-card__body {
  display: grid;
  gap: 9px;
}

.ec-service-summary-card__body em,
.ec-service-summary-card__body b {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-service-summary-card__body em,
.ec-service-summary-card__body small {
  color: var(--muted);
}

.ec-service-summary-card__body strong {
  color: var(--navy);
  font-family: var(--ff-display);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1;
  text-transform: uppercase;
}

.ec-service-summary-card__body small {
  font-size: 15px;
  line-height: 1.55;
}

.ec-service-summary-card__body b {
  color: var(--navy);
}

.ec-services-proof {
  background: var(--white);
}

.ec-about-media-band {
  padding-top: 0;
  background: var(--white);
}

.ec-about-media-band__grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.ec-about-media-band figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--paper);
}

.ec-about-media-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .ec-services-hero__grid,
  .ec-about-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .ec-service-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-about-media-band__grid {
    grid-template-columns: 1.1fr 0.9fr 1fr;
  }
}

@media (max-width: 899px) {
  .ec-service-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ec-services-hero__copy .ec-display,
  .ec-about-hero__copy .ec-display {
    max-width: none;
    font-size: clamp(38px, 11vw, 56px);
  }

  .ec-services-hero__media,
  .ec-about-hero__media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .ec-service-summary-grid,
  .ec-about-media-band__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- MASTER PLAN — interactive vector plan (land listings) ---------- */
.ec-masterplan {
  --mp-land: #f4f2ed;
  --mp-estate: #f4f2ed;
  --mp-road: #ffffff;
  --mp-road-edge: transparent;
  --mp-sand: #ede3cf;
  --mp-sea: #c9d8e1;
  --mp-lot: #e4ded2;
  --mp-lot-half: #d6dee8;
  --mp-lot-beach: #cfe0e4;
  --mp-lot-unlisted: #ece9e2;
  --mp-line: rgba(30, 58, 95, 0.32);
  --mp-teal: #3f7f8c;
}
.ec-masterplan__grid { display: grid; gap: 28px; margin-top: 8px; }
.ec-masterplan__stage {
  position: relative; min-width: 0;
  background: var(--mp-land);
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
}
.ec-masterplan__svg {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--mp-aspect, 0.88);
  max-height: 78vh;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}

/* context layers */
.mp-land   { fill: var(--mp-land); }
.mp-beach  { fill: var(--mp-sand); }
.mp-estate { fill: var(--mp-estate); }
.mp-roads  { fill: var(--mp-road); }
.mp-island { fill: var(--mp-estate); }
.mp-ocean  { fill: var(--mp-sea); }
.mp-wave {
  fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-opacity: 0.6;
  stroke-dasharray: 90 70;
  animation: mp-drift 22s linear infinite;
  animation-delay: calc(var(--i) * -3s);
}
@keyframes mp-drift { to { stroke-dashoffset: -640; } }
.mp-gate circle { fill: var(--navy); }
.mp-gate .mp-gate__halo { fill: rgba(30, 58, 95, 0.14); animation: mp-halo 2.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mp-halo { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.mp-label {
  font-family: var(--ff-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.32em; text-anchor: middle; dominant-baseline: central;
  pointer-events: none;
}
.mp-label--ocean { font-size: 30px; fill: rgba(255, 255, 255, 0.92); letter-spacing: 0.5em; }
.mp-label--beach { font-size: 18px; fill: #a8916a; }
.mp-label--road  { font-size: 15px; fill: #a39c8e; }
.mp-label--gate  { font-size: 16px; fill: var(--navy); letter-spacing: 0.22em; }
.mp-north path { fill: var(--navy); }
.mp-north text { font-family: var(--ff-body); font-size: 18px; font-weight: 700; fill: var(--navy); text-anchor: middle; }

/* lots */
.mp-lot path {
  fill: var(--mp-lot);
  stroke: none;
  transition: fill 320ms ease, opacity 320ms ease;
}
.mp-lot--half path  { fill: var(--mp-lot-half); }
.mp-lot--beach path { fill: var(--mp-lot-beach); }
.mp-lot--unlisted path { fill: var(--mp-lot-unlisted); }
.mp-lot text {
  font-family: var(--ff-body); font-size: 24px; font-weight: 600;
  fill: var(--navy); /* navy on every fill: 8.45–8.59:1 contrast */ text-anchor: middle; dominant-baseline: central;
  pointer-events: none; transition: fill 320ms ease, opacity 320ms ease;
}

.mp-lot[role="button"] { cursor: pointer; outline: none; }
.mp-lot[role="button"]:hover path { fill: #cdd6df; }
.mp-lot--half[role="button"]:hover path { fill: #c5d1de; }
.mp-lot--beach[role="button"]:hover path { fill: #bdd5db; }
.mp-lot[role="button"]:focus-visible path { stroke: var(--navy); stroke-width: 2.5; vector-effect: non-scaling-stroke; }


.mp-lot.is-selected path { fill: var(--navy); opacity: 1; }
.mp-lot.is-selected text { fill: #fff; opacity: 1; }

.mp-ring {
  fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0;
}
.mp-ring.is-drawing {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mp-draw 900ms cubic-bezier(0.65, 0, 0.35, 1) 250ms forwards, mp-pulse 2.4s ease-in-out 1.2s infinite;
}
@keyframes mp-draw  { 0% { opacity: 1; stroke-dashoffset: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes mp-pulse { 0%, 100% { opacity: 1; stroke-width: 2.5; } 50% { opacity: 0.25; stroke-width: 12; } }

/* first reveal: lots draw in, context fades up */
.ec-masterplan.is-waiting .mp-lot path { opacity: 0; }
.ec-masterplan.is-waiting .mp-lot text,
.ec-masterplan.is-waiting .mp-label,
.ec-masterplan.is-waiting .mp-gate { opacity: 0; }
.ec-masterplan.is-revealed .mp-lot path {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: mp-lot-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--n) * 24ms);
}
.ec-masterplan.is-revealed .mp-lot text { opacity: 0; animation: mp-fade 400ms ease forwards; animation-delay: calc(250ms + var(--n) * 10ms); }
.ec-masterplan.is-revealed .mp-label,
.ec-masterplan.is-revealed .mp-gate { opacity: 0; animation: mp-fade 900ms ease 900ms forwards; }
@keyframes mp-lot-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes mp-fade { to { opacity: 1; } }

/* overlay controls */
.ec-masterplan__zoom {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.08), 0 4px 16px rgba(16, 16, 16, 0.06);
  color: var(--navy); cursor: pointer;
  font-family: var(--ff-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.ec-masterplan__zoom[hidden] { display: none; }
.ec-masterplan__legend {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin: 0; padding: 9px 14px; list-style: none;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-radius: 999px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.02em;
}
.ec-masterplan__legend li { display: inline-flex; align-items: center; gap: 7px; }
.mp-swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--mp-lot); }
.mp-swatch--half { background: var(--mp-lot-half); }
.mp-swatch--beach { background: var(--mp-lot-beach); }
.mp-swatch--unlisted { background: var(--mp-lot-unlisted); }

/* floating plot chip — mobile only, the panel sits below the plan there */
.ec-masterplan__chip {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px;
  padding: 11px 16px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(16, 26, 40, 0.28);
  font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.ec-masterplan__chip-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.3); }
.ec-masterplan__chip.is-in { animation: mp-chip-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes mp-chip-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* side panel */
.ec-masterplan__panel { min-width: 0; position: relative; }
.ec-masterplan__view { opacity: 0; transform: translateY(8px); transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1); }
.ec-masterplan__view[hidden] { display: none; }
.ec-masterplan__view.is-active { opacity: 1; transform: none; }
.ec-masterplan__headline {
  margin: 8px 0 0;
  font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; color: var(--navy);
}
.ec-masterplan__headline span { font-size: 0.38em; font-weight: 500; color: var(--muted); letter-spacing: 0; vertical-align: 0.9em; margin-left: 4px; }
.ec-masterplan__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px; margin: 26px 0; padding: 24px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.ec-masterplan__stats dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ec-masterplan__stats dd { margin: 0; font-family: var(--ff-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
.ec-masterplan__stats dd small { font-size: 0.6em; font-weight: 500; color: var(--muted); }
.ec-masterplan__stats dd em { display: block; margin-top: 4px; font-style: normal; font-family: var(--ff-body); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.ec-masterplan__hint { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.ec-masterplan__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.ec-masterplan__back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 18px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--ff-body); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.ec-masterplan__back:hover { color: var(--navy); }
.ec-masterplan__plot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ec-masterplan__status {
  flex-shrink: 0; margin-top: 4px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(30, 58, 95, 0.08); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.ec-masterplan__status[data-status="sold"] { background: rgba(107, 122, 138, 0.14); color: var(--muted); }
.ec-masterplan__price { margin-top: 14px; font-family: var(--ff-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.ec-masterplan__price .ec-money__unit { font-size: 0.42em; letter-spacing: 0.14em; margin-right: 6px; vertical-align: 0.5em; color: var(--muted); }
.ec-masterplan__price-enquiry { font-size: 0.72em; font-weight: 600; }
.ec-masterplan__step { display: inline-flex; gap: 8px; }
.ec-masterplan__step-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--rule); background: transparent; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.ec-masterplan__step-btn:hover { border-color: var(--navy); }

.ec-residences2__row.is-selected { background: var(--paper); box-shadow: inset 3px 0 0 var(--navy); }

@media (min-width: 1024px) {
  .ec-masterplan__grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr); gap: 56px; align-items: center; }
  .ec-masterplan__svg { max-height: calc(100vh - 150px); margin-inline: auto; }
}
@media (max-width: 1023px) {
  .ec-masterplan__chip:not([hidden]) { display: inline-flex; }
  .ec-masterplan.has-selection .ec-masterplan__legend { opacity: 1; }
}
@media (max-width: 767px) {
  .mp-lot text { font-size: 40px; font-weight: 700; } /* ~10px on a 390px screen */
  .ec-masterplan__grid { gap: 20px; }
  .ec-masterplan__stage { margin-inline: -4px; border-radius: 4px; }
  .ec-masterplan__svg { max-height: 62vh; }
  .ec-masterplan__legend { position: static; justify-content: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 14px; padding: 10px 12px; font-size: 10px; border-radius: 0; background: transparent; backdrop-filter: none; }
  .ec-masterplan__legend::-webkit-scrollbar { display: none; }
  .ec-masterplan__legend li { white-space: nowrap; }
  .ec-masterplan__zoom { top: 10px; right: 10px; padding: 8px 12px; }
  .ec-masterplan__stats { gap: 16px; margin: 18px 0; padding: 18px 0; }
  .ec-masterplan__cta .ec-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mp-wave, .mp-gate .mp-gate__halo, .mp-ring.is-drawing { animation: none; }
  .mp-ring.is-drawing { opacity: 1; stroke-dasharray: none; }
}

/* ---------- Plot list — compact two-line rows below desktop ----------
   Line 1: plot + price. Line 2: type · size + status. Access and setting
   repeat on almost every plot, so they live in the master plan panel. */
@media (max-width: 1023px) {
  .ec-residences2--land .ec-residences2__row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "name name name price"
      "type size .    status";
    column-gap: 0; row-gap: 2px;
    padding: 12px 0;
    align-items: center;
    min-height: 0;
  }
  .ec-residences2--land .ec-residences2__row:hover { padding-left: 0; padding-right: 0; }
  .ec-residences2--land .ec-residences2__row.is-selected { padding-left: 12px; padding-right: 12px; }
  .ec-residences2--land .ec-residences2__row > div { display: block; gap: 0; }
  .ec-residences2--land .ec-residences2__row > div::before { content: none; display: none; }
  .ec-residences2--land .ec-residences2__row .col-residence { grid-area: name; }
  .ec-residences2--land .ec-residences2__name { font-size: 14px; }
  .ec-residences2--land .ec-residences2__row .col-price { grid-area: price; justify-self: end; text-align: right; }
  .ec-residences2--land .ec-residences2__row .col-price [data-kes],
  .ec-residences2--land .ec-residences2__row .col-price span { font-size: 15px; line-height: 1.2; }
  .ec-residences2--land .ec-residences2__row .col-price .ec-money__unit { font-size: 9px; letter-spacing: 0.12em; margin-right: 4px; }
  .ec-residences2--land .ec-residences2__row .col-beds {
    grid-area: type; font-size: 12px; color: var(--muted); white-space: nowrap;
  }
  .ec-residences2--land .ec-residences2__row .col-size {
    grid-area: size; font-size: 12px; color: var(--muted); white-space: nowrap;
  }
  .ec-residences2--land .ec-residences2__row .col-size::before {
    content: "·" !important; display: inline !important; margin: 0 6px; color: var(--muted); min-width: 0; font-size: 12px; letter-spacing: 0; text-transform: none;
  }
  .ec-residences2--land .ec-residences2__row .col-status { grid-area: status; justify-self: end; }
  .ec-residences2--land .ec-residences2__row .col-baths,
  .ec-residences2--land .ec-residences2__row .col-view,
  .ec-residences2--land .ec-residences2__row .col-arrow { display: none !important; }
  .ec-residences2--land .ec-residences2__badge { padding: 4px 10px; font-size: 9px; letter-spacing: 0.12em; }
}

/* ---------- ESTATE MILESTONES — homepage reels design (navy, copy + 9:16 cards) ---------- */
.ec-milestones__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; border-top: 1px solid rgba(255,255,255,0.14); max-width: 420px; width: 100%; }
.ec-milestones__list li { border-bottom: 1px solid rgba(255,255,255,0.14); }
.ec-milestones__list button {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; padding: 13px 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: rgba(255,255,255,0.66); font: inherit; transition: color 200ms ease;
}
.ec-milestones__list button:hover, .ec-milestones__list button.is-active { color: #fff; }
.ec-milestones__num { font-family: var(--ff-display); font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }
.ec-milestones__list button.is-active .ec-milestones__num { color: #fff; }
.ec-milestones__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ec-milestones__date { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); white-space: nowrap; }

.ec-milestones__track {
  display: flex; gap: var(--reel-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-padding-left: 8%;
}
.ec-milestones__track::-webkit-scrollbar { display: none; }
.ec-milestones__card { scroll-snap-align: none; }
.ec-milestones__item { position: relative; flex: 0 0 var(--reel-card-width); display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.ec-milestones__item:last-child { scroll-snap-align: end; }
.ec-milestones__item > .ec-reel-card { flex: 0 0 auto; width: 100%; }
.ec-milestones__card--text { background: #16263c; }
.ec-milestones__card video { opacity: 1; }
.ec-milestones__card .ec-milestones__body { position: absolute; top: 48px; left: 16px; right: 16px; margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.ec-milestones__latest {
  position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
/* Milestone line above the cards: one node per step, filled up to the current step */
.ec-milestones__node {
  position: relative; display: grid; gap: 4px; justify-items: start; width: 100%; padding: 0 0 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: rgba(255,255,255,0.6);
}
.ec-milestones__node::before, .ec-milestones__node::after { content: ""; position: absolute; top: 5px; height: 2px; }
.ec-milestones__node::before { left: 12px; right: calc(-1 * var(--reel-gap)); background: rgba(255,255,255,0.2); }
.ec-milestones__item.is-done .ec-milestones__node::before { background: #fff; }
.ec-milestones__item.is-current .ec-milestones__node::before { right: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.32) 0 4px, transparent 4px 9px); }
.ec-milestones__item:not(:last-child).is-current .ec-milestones__node::before { right: calc(-1 * var(--reel-gap)); }
.ec-milestones__dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-bottom: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--navy); }
.ec-milestones__item.is-current .ec-milestones__dot { background: #fff; box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px rgba(255,255,255,0.45); animation: ec-ms-pulse 2.4s ease-in-out infinite; }
@keyframes ec-ms-pulse { 50% { box-shadow: 0 0 0 3px var(--navy), 0 0 0 8px rgba(255,255,255,0.12); } }
@media (prefers-reduced-motion: reduce) { .ec-milestones__item.is-current .ec-milestones__dot { animation: none; } }
.ec-milestones__node-num { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ec-milestones__node-name { font-size: 13px; font-weight: 600; line-height: 1.25; color: rgba(255,255,255,0.78); min-height: 2.5em; hyphens: none; }
.ec-milestones__node:hover .ec-milestones__node-name, .ec-milestones__node.is-active .ec-milestones__node-name { color: #fff; }
.ec-milestones__node:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 899px) { .ec-milestones__node-name { font-size: 12px; } }

/* Mini player — centred play icon, then a thin bar docked at the bottom */
[data-mini-player] { --mp-fg: #fff; }
.ec-mp__unmute {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.92); color: var(--navy); box-shadow: 0 6px 18px rgba(9,18,32,0.28);
  transition: transform 200ms ease, opacity 200ms ease;
}
.ec-mp__unmute:hover { transform: scale(1.08); }
[data-mini-player] strong { padding-right: 44px; }
.ec-milestones__card strong { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
.ec-mp__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2px; background: rgba(255,255,255,0.22); pointer-events: none; transition: opacity 220ms ease; }
.ec-mp__progress i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
[data-mini-player].is-started:not(.is-idle) .ec-mp__progress,
[data-mini-player].is-started.is-paused .ec-mp__progress { opacity: 0; }
.ec-mp__unmute:focus-visible, .ec-mp__btn:focus-visible, .ec-mp__seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ec-mp__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding: 26px 6px 4px;
  background: linear-gradient(180deg, rgba(9,18,32,0) 0%, rgba(9,18,32,0.72) 100%);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.ec-mp__btn {
  flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--mp-fg); cursor: pointer;
}
.ec-mp__btn:hover { background: rgba(255,255,255,0.14); }
.ec-mp__i-play, .ec-mp__i-muted { display: none; }
[data-mini-player].is-paused .ec-mp__i-pause { display: none; }
[data-mini-player].is-paused .ec-mp__i-play { display: block; }
[data-mini-player].is-muted .ec-mp__i-vol { display: none; }
[data-mini-player].is-muted .ec-mp__i-muted { display: block; }
.ec-mp__seek {
  --mp-pct: 0%;
  order: -1; flex: 1 0 100%; min-width: 0; height: 16px; margin: 0 0 2px; padding: 0 6px; box-sizing: border-box; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.ec-mp__seek::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--mp-pct), rgba(255,255,255,0.3) var(--mp-pct)); }
.ec-mp__seek::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255,255,255,0.3); }
.ec-mp__seek::-moz-range-progress { height: 2px; background: #fff; }
.ec-mp__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; }
.ec-mp__seek::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; }
.ec-mp__time { flex: 1 1 auto; padding-left: 4px; min-width: 30px; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: rgba(255,255,255,0.86); }

[data-mini-player].is-started .ec-mp__unmute,
[data-mini-player].is-started .ec-reel-card__shade,
[data-mini-player].is-started .ec-reel-card__meta,
[data-mini-player].is-started .ec-milestones__latest,
[data-mini-player].is-started strong { opacity: 0; pointer-events: none; }
[data-mini-player].is-started img { display: none; }
[data-mini-player].is-started .ec-mp__bar { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 220ms ease, visibility 0s; }
[data-mini-player].is-started.is-idle:not(.is-paused) .ec-mp__bar { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 320ms ease, transform 320ms ease, visibility 0s linear 320ms; }
[data-mini-player].is-started.is-idle:not(.is-paused) { cursor: none; }
[data-mini-player].is-started video { cursor: pointer; }
[data-mini-player].is-started:hover video { transform: none; }
.ec-milestones__card .ec-reel-card__shade, .ec-milestones__card .ec-reel-card__meta, .ec-milestones__card strong, .ec-milestones__latest { transition: opacity 240ms ease; }
[data-mini-player]:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; background: #000; outline: 0; }
[data-mini-player]:fullscreen video { object-fit: contain; }
@media (max-width: 899px) {
  .ec-milestones__list { max-width: none; }
  .ec-milestones__latest { top: auto; right: auto; left: 14px; bottom: 58px; }
}
