/*
 * Homepage hero + homepage theme, in the logo palette:
 * deep navy #00112d, aqua #22e3f3, sky #03bdf9, azure #0283de,
 * window-light #fcfeaa as a small warm accent.
 */

/* Homepage sections below the hero: swap the old gold/teal for the logo colours. */
.home2 {
  --h2-ink: #0a1a33;
  --h2-navy: #00112d;
  --h2-gold: #22e3f3;
  --h2-muted: #5b6b80;
  --h2-paper: #f3f8fc;
}
.home2 .h2-eyebrow { color: #0283de; }
.home2 .h2-light { color: #7ee8f5; }
.home2 :is(a, button, input, select, summary):focus-visible { outline-color: #03bdf9; }
.home2 .h2-button { background: linear-gradient(135deg, #22e3f3, #03bdf9); color: #00112d; }
.home2 .h2-button.h2-dark { background: #00112d; color: #fff; }
.home2 .h2-button.h2-outline { background: transparent; color: #00112d; box-shadow: inset 0 0 0 1.5px #00112d; }
.home2 .h2-text-link { color: #0283de; }

/* The hero runs under the floating header. */
main.main-content:has(> .home2) { padding-top: 0; }

/* ------------------------------------------------------------------ hero */
.hx {
  --hx-navy: #00112d;
  --hx-aqua: #22e3f3;
  --hx-sky: #03bdf9;
  --hx-azure: #0283de;
  --hx-warm: #fcfeaa;
  --hx-gutter: clamp(18px, 4vw, 40px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding: calc(var(--nav-height) + clamp(28px, 5vw, 64px)) 0 clamp(72px, 8vw, 110px);
  color: #fff;
  background: var(--hx-navy);
  font-family: var(--font-family);
}

/* Background: mesh gradient, fading grid, two drifting light orbs. */
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 50% at 88% 12%, rgba(3, 189, 249, 0.32), transparent 62%),
    radial-gradient(45% 45% at 6% 96%, rgba(34, 227, 243, 0.16), transparent 62%),
    radial-gradient(38% 40% at 60% 60%, rgba(2, 131, 222, 0.22), transparent 72%),
    linear-gradient(160deg, #00112d 0%, #021b45 55%, #00112d 100%);
}
.hx-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 227, 243, 0.6), rgba(2, 131, 222, 0.6), transparent);
}
.hx-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 78%);
}
.hx-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: hx-drift 18s ease-in-out infinite alternate; }
.hx-orb--1 { width: 420px; height: 420px; right: 6%; top: 10%; background: radial-gradient(circle, rgba(34, 227, 243, 0.55), transparent 70%); }
.hx-orb--2 { width: 360px; height: 360px; left: -6%; bottom: -12%; background: radial-gradient(circle, rgba(2, 131, 222, 0.6), transparent 70%); animation-delay: -6s; }

.hx-wrap {
  width: min(1260px, calc(100% - 2 * var(--hx-gutter)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

/* ---------------------------------------------------------------- copy */
.hx-copy > * { animation: hx-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hx-copy > :nth-child(2) { animation-delay: 70ms; }
.hx-copy > :nth-child(3) { animation-delay: 140ms; }
.hx-copy > :nth-child(4) { animation-delay: 210ms; }
.hx-copy > :nth-child(n+5) { animation-delay: 280ms; }

.hx-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin-bottom: 22px;
  border: 1px solid rgba(34, 227, 243, 0.32); border-radius: 999px;
  background: rgba(34, 227, 243, 0.08);
  color: #a5f3fc; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.hx-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-aqua); box-shadow: 0 0 12px var(--hx-aqua); }
.hx-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--hx-aqua); animation: hx-ping 2.4s ease-out infinite; }

.hx h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}
.hx h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #a5f3fc 0%, var(--hx-aqua) 30%, var(--hx-sky) 60%, #3b9cf0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(3, 189, 249, 0.35));
}
.home2 .hx-lead { margin: 22px 0 0; max-width: 33rem; color: rgba(222, 236, 252, 0.8); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.7; }

/* Search card */
.hx-search {
  margin-top: 34px; max-width: 660px;
  background: rgba(255, 255, 255, 0.97); color: #0a1a33;
  border-radius: 22px; padding: 6px;
  box-shadow: 0 30px 70px rgba(0, 8, 24, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.hx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 6px; border: 0; }
.hx-tabs label { position: relative; cursor: pointer; }
.hx-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.hx-tabs span, .hx-tabs a {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: 999px; color: #3b4b63; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.hx-tabs span:hover, .hx-tabs a:hover { background: #eef7fd; color: #00112d; }
.hx-tabs input:checked + span { background: #00112d; color: #fff; box-shadow: 0 6px 16px rgba(0, 17, 45, 0.25); }
.hx-tabs input:focus-visible + span { box-shadow: 0 0 0 3px rgba(3, 189, 249, 0.55); }
.hx-tabs a { margin-left: auto; color: var(--hx-azure); }

.hx-fields {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(190px, 1fr) auto; align-items: stretch;
  border-top: 1px solid #e6eef6; padding: 6px;
}
.hx-field {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 14px; border-radius: 14px; cursor: text;
  transition: background-color 0.2s ease;
}
.hx-field + .hx-field { border-left: 1px solid #e6eef6; border-radius: 0 14px 14px 0; }
.hx-field:hover, .hx-field:focus-within { background: #f3f9fe; }
.hx-field > i { color: var(--hx-sky); font-size: 1rem; }
.hx-field > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hx-field small { color: #6b7c93; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; white-space: nowrap; text-transform: uppercase; }
.hx-field select {
  padding-right: 22px !important; text-overflow: ellipsis;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230283de' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center !important;
}
.hx-field input, .hx-field select {
  width: 100%; min-width: 0; margin-top: 2px; padding: 2px 0; border: 0 !important; outline: 0; box-shadow: none !important;
  background: transparent; color: #0a1a33; font: 600 0.98rem/1.4 var(--font-family); appearance: none; cursor: pointer;
}
.hx-field input { cursor: text; }
.hx-field--where:focus-within { box-shadow: inset 0 0 0 2px rgba(3, 189, 249, 0.45); }
.hx-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: 16px; white-space: nowrap;
  background: linear-gradient(135deg, var(--hx-aqua), var(--hx-sky) 55%, #08a3ec);
  color: #00112d; font: 700 0.98rem/1 var(--font-family); cursor: pointer;
  box-shadow: 0 12px 30px rgba(3, 189, 249, 0.38);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
}
.hx-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(3, 189, 249, 0.5); filter: saturate(1.15); }
.hx-submit:active { transform: scale(0.98); }
.hx-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--hx-sky); }

.hx-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; color: rgba(222, 236, 252, 0.62); font-size: 0.85rem; }
.hx-popular a {
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: #e6f6ff; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.hx-popular a:hover { border-color: rgba(34, 227, 243, 0.6); background: rgba(34, 227, 243, 0.12); transform: translateY(-1px); }

/* Register / list-property buttons under the search */
.hx-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 660px; margin-top: 26px; }
.hx-cta {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px 10px 10px;
  border-radius: 16px; text-decoration: none; transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.hx-cta__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; }
.hx-cta__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hx-cta__text strong { font: 700 1rem/1.25 var(--font-family); }
.hx-cta__text small { margin-top: 2px; font-size: 0.8rem; font-weight: 500; line-height: 1.3; }
.hx-cta__arrow { font-size: 0.85rem; transition: transform 0.2s ease; }
.hx-cta:hover { transform: translateY(-2px); }
.hx-cta:hover .hx-cta__arrow { transform: translateX(3px); }
.hx-cta:focus-visible { outline: 3px solid var(--hx-aqua); outline-offset: 3px; }
.hx-cta--primary { background: #fff; color: #00112d; box-shadow: 0 14px 34px rgba(0, 8, 24, 0.35); }
.hx-cta--primary .hx-cta__icon { background: linear-gradient(135deg, var(--hx-aqua), var(--hx-sky)); color: #00112d; }
.hx-cta--primary small { color: #52627a; }
.hx-cta--primary .hx-cta__arrow { color: var(--hx-azure); }
.hx-cta--ghost { border: 1.5px solid rgba(165, 243, 252, 0.38); background: rgba(255, 255, 255, 0.06); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hx-cta--ghost:hover { border-color: rgba(34, 227, 243, 0.75); background: rgba(34, 227, 243, 0.12); }
.hx-cta--ghost .hx-cta__icon { background: rgba(34, 227, 243, 0.14); color: #a5f3fc; }
.hx-cta--ghost small { color: rgba(222, 236, 252, 0.75); }

.hx-stats { display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3vw, 40px); margin: 38px 0 0; padding: 0; }
.hx-stats div { position: relative; display: flex; flex-direction: column-reverse; }
.hx-stats div + div::before { content: ""; position: absolute; left: calc(-1 * clamp(11px, 1.5vw, 20px)); top: 8px; bottom: 6px; width: 1px; background: rgba(255, 255, 255, 0.14); }
.hx-stats dd { margin: 0; font: 700 clamp(24px, 2.4vw, 32px)/1 var(--font-heading); letter-spacing: -0.02em; color: #fff; }
.hx-stats dt { margin-top: 6px; color: rgba(222, 236, 252, 0.6); font-size: 0.8rem; font-weight: 500; }

/* -------------------------------------------------------------- visual */
.hx-visual { position: relative; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; justify-self: end; animation: hx-rise 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hx-photo {
  position: absolute; inset: 0 0 0 9%; margin: 0; overflow: hidden;
  /* Arched top echoes the pin in the logo. */
  border-radius: 999px 999px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 8, 24, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.03);
}
.hx-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 17, 45, 0.55)); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; animation: hx-kenburns 24s ease-out both; }
.hx-ring {
  position: absolute; top: -18px; right: -14px; width: 150px; height: 150px; border-radius: 50%; z-index: 2;
  background: conic-gradient(from 0deg, var(--hx-aqua), var(--hx-sky), var(--hx-azure), transparent 70%, var(--hx-aqua));
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 60%, #000 61%, #000 66%, transparent 67%);
  animation: hx-spin 16s linear infinite; opacity: 0.85;
}

.hx-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(8, 26, 60, 0.62); color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 50px rgba(0, 8, 24, 0.45);
  animation: hx-float 7s ease-in-out infinite alternate;
}
.hx-float small { display: block; color: rgba(222, 236, 252, 0.68); font-size: 0.72rem; font-weight: 600; }
.hx-float strong { display: block; font-size: 0.9rem; font-weight: 700; line-height: 1.3; }

.hx-float--agents { top: 13%; left: -4%; animation-delay: -2s; }
.hx-avatars { display: flex; }
.hx-avatars img, .hx-avatars span {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #06224f; background: #0b3a80;
  display: grid; place-items: center; color: #a5f3fc; font-size: 0.85rem;
}
.hx-avatars > * + * { margin-left: -10px; }

.hx-float--listing { bottom: 14%; left: 0; max-width: 300px; animation-delay: -4s; transition: border-color 0.3s ease, transform 0.3s ease; }
.hx-float--listing:hover { border-color: rgba(34, 227, 243, 0.6); }
.hx-thumb { flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 12px; background: #0b3a80; }
.hx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hx-listing-text { min-width: 0; }
.hx-listing-text strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.hx-listing-text em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; color: var(--hx-aqua); }

.hx-float--note { right: -3%; bottom: -3%; max-width: 270px; animation-delay: -1s; }
.hx-note-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--hx-aqua), var(--hx-azure)); color: var(--hx-warm);
  box-shadow: 0 8px 20px rgba(2, 131, 222, 0.45);
}
.hx-float--note p { margin: 0; font-size: 0.86rem; font-weight: 700; line-height: 1.35; }
.hx-float--note p span { color: rgba(222, 236, 252, 0.7); font-weight: 500; }

/* Scroll cue */
.hx-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(222, 236, 252, 0.6); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.hx-scroll span { width: 20px; height: 32px; border: 1.5px solid rgba(222, 236, 252, 0.45); border-radius: 12px; position: relative; }
.hx-scroll span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--hx-aqua); animation: hx-wheel 1.8s ease-in-out infinite; }
.hx-scroll:hover { color: #fff; }

/* -------------------------------------------------------------- motion */
@keyframes hx-rise { from { transform: translateY(22px); } to { transform: none; } }
@keyframes hx-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes hx-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hx-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes hx-wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(9px); opacity: 0; } }

/* Entrances only move (never fade from invisible): content stays readable if animations are paused. */

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; }
}

/* ---------------------------------------------------------- responsive */
/* Two fields side by side, the search button full width below: the type name is never cut. */
@media (min-width: 641px) {
  .hx-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 0; }
  .hx-submit { grid-column: 1 / -1; width: 100%; min-height: 52px; }
}
@media (max-width: 1100px) {
  .hx { min-height: 0; }
  .hx-wrap { grid-template-columns: 1fr; }
  .hx-copy { max-width: 680px; }
  .hx-visual { justify-self: center; max-width: 560px; aspect-ratio: 5 / 4; max-height: none; margin-top: 12px; }
  .hx-photo { inset: 0 4%; border-radius: 280px 280px 28px 28px; }
  .hx-float--agents { left: 0; top: 8%; }
  .hx-float--note { right: 0; }
  .hx-scroll { display: none; }
}
@media (max-width: 640px) {
  .hx { padding-bottom: 56px; }
  .hx-search { border-radius: 20px; }
  .hx-tabs { flex-wrap: nowrap; gap: 2px; padding: 4px; }
  .hx-tabs span, .hx-tabs a { height: 36px; padding: 0 11px; font-size: 0.84rem; white-space: nowrap; }
  .hx-tabs a { margin-left: auto; }
  .hx-fields { grid-template-columns: 1fr; gap: 6px; }
  .hx-field + .hx-field { border-left: 0; border-top: 1px solid #e6eef6; border-radius: 14px; }
  .hx-submit { width: 100%; }
  .hx-ctas { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .hx-cta { min-height: 58px; }
  .hx-stats { gap: 14px 26px; }
  .hx-visual { aspect-ratio: 1 / 1; }
  /* Phones: the big card plus three homes; "Explore all" opens the rest. */
  .hf-bento > .hf-card:nth-child(n+5) { display: none; }
  .hx-photo { inset: 0; }
  .hx-ring { width: 110px; height: 110px; right: -10px; top: -10px; }
  .hx-float { padding: 10px 12px; border-radius: 14px; }
  .hx-float--agents { top: auto; bottom: 34%; left: -2px; }
  .hx-float--listing { left: 10px; right: 10px; bottom: 12px; max-width: none; }
  .hx-float--note { display: none; }
}

/* =====================================================================
 * Homepage sections below the hero.
 * Rhythm: navy hero → white (ribbon, marquee, homes) → ice (journey) →
 * navy (services) → white (about) → navy (partners) → white (steps) →
 * navy (cities) → white (agents) → ice (review) → white (app, FAQ) → brand (CTA).
 * ===================================================================== */
.home2 .h2-heading p { font-size: 0.98rem; color: var(--ds-text-muted); max-width: 30rem; }
.home2 .h2-heading h2 { color: var(--ds-text-strong); }
.home2 :is(.h2-neighborhoods, .hsv) .h2-heading h2 { color: #fff; }
.home2 .h2-neighborhoods .h2-heading p { color: var(--ds-text-on-dark-muted); }
/* Tighter rhythm between homepage sections (was up to 120px each side). */
.home2 .h2-section { padding-block: clamp(60px, 6.5vw, 92px); }

/* Pointer spotlight on any [data-spot] card (position set by HomeEffects). */
.home2 [data-spot] { position: relative; isolation: isolate; }
/* z-index -1 inside the isolated card: above the card background, below all of its content. */
.home2 [data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(3, 189, 249, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.35s ease;
}
.home2 [data-spot]:hover::before { opacity: 1; }

/* ------------------------------------------------------- stats ribbon */
.hs-ribbon { position: relative; z-index: 6; margin-top: -58px; padding-inline: clamp(16px, 4vw, 40px); }
.hs-ribbon__inner {
  max-width: 1180px; margin: 0 auto; padding: 10px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ds-border); border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 17, 45, 0.16), 0 6px 18px rgba(0, 17, 45, 0.06);
}
.hs-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  margin: 0; padding: 20px 22px; border-radius: 18px;
}
.hs-stat + .hs-stat { box-shadow: -1px 0 0 var(--ds-border); }
.hs-stat__icon {
  grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #e3fbfe, #e6f2fd); color: var(--ds-azure); font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(3, 189, 249, 0.18);
}
.hs-stat dd { margin: 0; font: 800 clamp(26px, 2.4vw, 34px)/1 var(--font-heading); letter-spacing: -0.03em; color: var(--ds-text-strong); }
.hs-stat dt { margin-top: 4px; color: var(--ds-text-muted); font-size: 0.86rem; font-weight: 500; }

/* ------------------------------------------------------------ marquee */
.hm-marquee {
  overflow: hidden; padding: clamp(48px, 6vw, 80px) 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-marquee__track { display: flex; width: max-content; animation: hm-scroll 48s linear infinite; }
.hm-marquee:hover .hm-marquee__track { animation-play-state: paused; }
.hm-marquee__group { display: flex; align-items: center; }
.hm-marquee__group span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font: 800 clamp(40px, 6.4vw, 96px)/1.05 var(--font-heading); letter-spacing: -0.045em; color: var(--ds-text-strong);
}
.hm-marquee__group span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ds-azure); }
.hm-marquee__group i { margin: 0 0.45em; font-size: 0.32em; color: var(--ds-sky); -webkit-text-stroke: 0; }
@keyframes hm-scroll { to { transform: translateX(-50%); } }

/* ------------------------------------------------ featured homes bento */
.hf-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hf-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ds-text-strong); text-decoration: none;
  border: 1px solid var(--ds-border); border-radius: 22px;
  transition: transform 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease), border-color 0.35s ease;
}
.hf-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 17, 45, 0.14); border-color: rgba(3, 189, 249, 0.35); }
.hf-card__photo { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ds-bg-ice-2); }
.hf-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ds-ease); }
.hf-card:hover .hf-card__photo img { transform: scale(1.07); }
.hf-tag {
  position: absolute; align-self: flex-start; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ds-navy-800);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Price pill overlapping the photo edge. */
.hf-pill {
  align-self: flex-start; z-index: 2; margin: -20px 0 0 16px; padding: 9px 16px; border-radius: 999px;
  background: var(--ds-navy-900); color: #fff; font: 800 1.02rem/1 var(--font-heading); letter-spacing: -0.02em;
  box-shadow: 0 10px 24px rgba(0, 17, 45, 0.28), 0 0 0 4px #fff;
}
.hf-card__body { padding: 14px 18px 18px; }
.hf-card__body h3 { margin: 0; font-size: 1.02rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.hf-card__body p, .hf-card__overlay p { margin: 4px 0 0; color: var(--ds-text-muted); font-size: 0.86rem; }
.hf-card__body p i { color: var(--ds-sky); }
.hf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hf-meta span { padding: 5px 10px; border-radius: 999px; background: var(--ds-bg-ice); color: var(--ds-text); font-size: 0.76rem; font-weight: 600; }

.hf-card--big { grid-column: span 2; grid-row: span 2; position: relative; min-height: 540px; justify-content: flex-end; border: 0; }
.hf-card--big .hf-card__photo { position: absolute; inset: 0; aspect-ratio: auto; }
.hf-card--big .hf-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 17, 45, 0) 35%, rgba(0, 17, 45, 0.75)); }
.hf-card__overlay {
  position: relative; z-index: 2; margin: 18px; padding: 22px 24px; border-radius: 20px; color: #fff;
  background: rgba(0, 17, 45, 0.5); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.hf-card__overlay h3 { margin: 6px 0 0; color: #fff; font-size: clamp(1.2rem, 1.6vw, 1.6rem); }
.hf-card__overlay p { color: rgba(222, 236, 252, 0.8); }
.hf-card__overlay p i { color: var(--ds-aqua); }
.hf-card__overlay .hf-meta span { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hf-card__overlay .hf-meta i { color: var(--ds-aqua); margin-right: 4px; }
.hf-price { font: 800 clamp(1.6rem, 2.4vw, 2.2rem)/1 var(--font-heading); letter-spacing: -0.03em; background: linear-gradient(100deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hf-arrow {
  position: absolute; top: 18px; right: 18px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ds-azure); box-shadow: 0 10px 24px rgba(0, 17, 45, 0.25); transition: transform 0.35s var(--ds-ease-spring);
}
.hf-arrow i { transform: rotate(-45deg); transition: transform 0.35s var(--ds-ease-spring); }
.hf-card--big:hover .hf-arrow { transform: scale(1.08); }
.hf-card--big:hover .hf-arrow i { transform: rotate(0deg); }

/* ---------------------------------------------------- journey bento */
.hj-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hj-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; min-height: 260px; padding: 28px; overflow: hidden;
  background: #fff; color: var(--ds-text); text-decoration: none;
  border: 1px solid var(--ds-border); border-radius: 24px;
  transition: transform 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease), border-color 0.35s ease;
}
.hj-card:hover { transform: translateY(-6px); box-shadow: 0 26px 56px rgba(0, 17, 45, 0.12); border-color: rgba(3, 189, 249, 0.35); }
.hj-card--1, .hj-card--6 { grid-column: span 2; }
.hj-num {
  position: absolute; top: 14px; right: 22px; z-index: -1;
  font: 800 76px/1 var(--font-heading); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(2, 131, 222, 0.18);
}
.hj-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 16px;
  background: linear-gradient(135deg, #e3fbfe, #e6f2fd); color: var(--ds-azure); font-size: 1.25rem;
  transition: transform 0.4s var(--ds-ease-spring);
}
.hj-card:hover .hj-icon { transform: rotate(-8deg) scale(1.06); }
.hj-card h3 { margin: 0; font-size: 1.22rem; color: var(--ds-text-strong); }
.hj-card p { margin: 0; color: var(--ds-text-muted); font-size: 0.95rem; }
.hj-cta { margin-top: auto; padding-top: 12px; color: var(--ds-link); font-weight: 700; font-size: 0.92rem; }
.hj-cta i { margin-left: 4px; transition: transform 0.3s var(--ds-ease); }
.hj-card:hover .hj-cta i { transform: translateX(4px); }
/* The two wide cards are dark feature tiles. */
.hj-card--1, .hj-card--6 {
  color: #fff; border-color: transparent;
  background: radial-gradient(70% 90% at 100% 0%, rgba(3, 189, 249, 0.32), transparent 60%), linear-gradient(135deg, var(--ds-navy-700), var(--ds-navy-900));
}
.hj-card--1 :is(h3), .hj-card--6 :is(h3) { color: #fff; font-size: 1.5rem; }
.hj-card--1 p, .hj-card--6 p { color: var(--ds-text-on-dark-muted); max-width: 30rem; }
.hj-card--1 .hj-icon, .hj-card--6 .hj-icon { background: rgba(34, 227, 243, 0.14); color: var(--ds-aqua); box-shadow: 0 0 30px rgba(34, 227, 243, 0.25); }
.hj-card--1 .hj-num, .hj-card--6 .hj-num { -webkit-text-stroke-color: rgba(34, 227, 243, 0.25); }
.hj-card--1 .hj-cta, .hj-card--6 .hj-cta { color: var(--ds-aqua); }

/* ------------------------------------------------- services for agents */
.hsv {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(34, 227, 243, 0.16), transparent 60%),
    radial-gradient(50% 60% at 100% 100%, rgba(2, 131, 222, 0.3), transparent 60%),
    var(--ds-navy-900);
}
.hsv::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000, transparent 75%);
}
.home2 .hsv .h2-heading h2 { color: #fff; }
.home2 .hsv .h2-heading p { color: var(--ds-text-on-dark-muted); }
.hsv-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hsv-feature {
  position: relative; isolation: isolate;
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 14px; padding: 36px; overflow: hidden;
  border: 1px solid transparent; border-radius: 26px;
  background: linear-gradient(160deg, #06295f, #021b45) padding-box, linear-gradient(135deg, rgba(34, 227, 243, 0.8), rgba(2, 131, 222, 0.2), rgba(34, 227, 243, 0.6)) border-box;
}
.hsv-feature__glow { position: absolute; z-index: -1; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 227, 243, 0.45), transparent 70%); filter: blur(10px); }
.hsv-feature__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: var(--ds-gradient-brand); color: var(--ds-navy-900); font-size: 1.6rem; box-shadow: 0 14px 34px rgba(3, 189, 249, 0.4);
}
.hsv-feature h3 { margin: 10px 0 0; color: #fff; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.03em; }
.hsv-feature p { margin: 0; color: var(--ds-text-on-dark-muted); max-width: 30rem; }
.hsv-feature__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 10px; }
.hsv-link { color: var(--ds-aqua); font-weight: 700; text-decoration: none; }
.hsv-link i { margin-left: 4px; transition: transform 0.3s var(--ds-ease); }
.hsv-link:hover i { transform: translateX(4px); }
.hsv-tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 20px;
  border-radius: 20px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ds-ease), border-color 0.35s ease, background-color 0.35s ease;
}
.hsv-tile:hover { transform: translateY(-5px); border-color: rgba(34, 227, 243, 0.5); background: rgba(34, 227, 243, 0.06); }
.hsv-tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(34, 227, 243, 0.12); color: var(--ds-aqua); font-size: 1.1rem; }
.hsv-tile__title { font: 700 1.02rem/1.3 var(--font-heading); letter-spacing: -0.01em; padding-right: 26px; }
.hsv-tile__arrow { position: absolute; right: 20px; bottom: 22px; color: var(--ds-aqua); transition: transform 0.3s var(--ds-ease); }
.hsv-tile:hover .hsv-tile__arrow { transform: translateX(4px); }

/* --------------------------------------------- about: layered collage */
.ha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.ha-collage { position: relative; min-height: 580px; }
.ha-main { position: absolute; inset: 0 16% 10% 0; margin: 0; overflow: hidden; border-radius: 30px; box-shadow: 0 30px 70px rgba(0, 17, 45, 0.18); }
.ha-main img { width: 100%; height: 100%; object-fit: cover; }
.ha-main figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 24px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 17, 45, 0.85)); font: 700 1.25rem/1.3 var(--font-heading);
}
.ha-main figcaption em { font-style: normal; color: var(--ds-aqua); }
/* Second photo overlapping the corner of the first. */
.ha-small {
  position: absolute; right: 0; bottom: 0; z-index: 2; width: 46%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden;
  border-radius: 24px; border: 8px solid #fff; box-shadow: 0 30px 60px rgba(0, 17, 45, 0.25);
}
.ha-small img { width: 100%; height: 100%; object-fit: cover; }
.ha-badge {
  position: absolute; left: -22px; top: 10%; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 250px;
  padding: 16px 20px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px rgba(0, 17, 45, 0.18);
  animation: hx-float 6s ease-in-out infinite alternate;
}
.ha-badge strong { font: 800 2rem/1 var(--font-heading); letter-spacing: -0.03em; background: var(--ds-gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-badge span { color: var(--ds-text-muted); font-size: 0.84rem; font-weight: 600; line-height: 1.35; }
.ha-ring { position: absolute; right: 6%; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 2px dashed rgba(2, 131, 222, 0.35); animation: hx-spin 30s linear infinite; }
.ha-dots { position: absolute; left: 28%; bottom: -26px; z-index: -1; width: 160px; height: 110px; background-image: radial-gradient(rgba(2, 131, 222, 0.35) 1.6px, transparent 1.7px); background-size: 14px 14px; }
.home2 .ha-lead { margin: 18px 0 26px; color: var(--ds-text-muted); font-size: 1.02rem; }
.ha-steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 22px; }
.ha-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.ha-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: -18px; width: 2px; background: linear-gradient(var(--ds-sky), rgba(3, 189, 249, 0.1)); }
.ha-steps li > span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ds-azure); font: 800 0.9rem/1 var(--font-heading);
  box-shadow: inset 0 0 0 2px rgba(3, 189, 249, 0.45), 0 8px 18px rgba(2, 131, 222, 0.12);
}
.ha-steps h3 { margin: 0; font-size: 1.08rem; color: var(--ds-text-strong); }
.home2 .ha-steps p { margin: 4px 0 0; color: var(--ds-text-muted); font-size: 0.93rem; }

/* ------------------------------------------- how it works (sticky story) */
.hw { background: linear-gradient(180deg, #fff, var(--ds-bg-ice)); }
.hw-wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 100px); padding-block: clamp(64px, 7vw, 100px); }
.hw-intro { position: sticky; top: calc(var(--nav-height) + 48px); align-self: start; }
.hw-intro h2 { color: var(--ds-text-strong); font-size: var(--ds-fs-4xl) !important; }
.home2 .hw-intro p { margin: 18px 0 0; color: var(--ds-text-muted); font-size: 1.05rem; max-width: 26rem; }
.hw-progress { margin-top: 34px; width: 240px; height: 5px; border-radius: 999px; background: var(--ds-border); overflow: hidden; }
.hw-progress span { display: block; height: 100%; background: var(--ds-gradient-brand); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.2s linear; }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.hw-step {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px 30px 30px 28px; overflow: hidden;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 26px;
  transition: opacity 0.5s ease, transform 0.5s var(--ds-ease), border-color 0.5s ease, box-shadow 0.5s ease;
}
.hw-steps.is-ready .hw-step { opacity: 0.5; transform: scale(0.97); }
.hw-steps.is-ready .hw-step.is-active { opacity: 1; transform: none; border-color: rgba(3, 189, 249, 0.45); box-shadow: 0 30px 60px rgba(2, 131, 222, 0.14); }
.hw-step__num { position: absolute; right: 24px; top: 14px; z-index: -1; font: 800 68px/1 var(--font-heading); color: transparent; -webkit-text-stroke: 1.5px rgba(2, 131, 222, 0.2); }
.hw-step__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--ds-gradient-brand); color: var(--ds-navy-900); font-size: 1.35rem; box-shadow: 0 12px 26px rgba(3, 189, 249, 0.35); }
.hw-step h3 { margin: 4px 0 0; font-size: 1.3rem; color: var(--ds-text-strong); }
.home2 .hw-step p { margin: 6px 0 0; color: var(--ds-text-muted); max-width: 28rem; }

/* ---------------------------------------------------- cities (photos) */
.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.hc-card {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 260px; overflow: hidden;
  border-radius: 24px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ds-ease);
}
.hc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ds-ease), filter 0.6s ease; filter: saturate(1.05); }
.hc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 17, 45, 0.05) 25%, rgba(0, 17, 45, 0.88)); transition: background 0.4s ease; }
.hc-card:hover { border-color: rgba(34, 227, 243, 0.6); box-shadow: 0 30px 60px rgba(0, 8, 24, 0.5); transform: translateY(-4px); }
.hc-card:hover img { transform: scale(1.08); filter: saturate(1.2); }
.hc-card--1 { grid-row: span 2; }
.hc-card--4 { grid-column: span 2; }
.hc-num { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 17, 45, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hc-text { padding: 26px; }
.hc-text h3 { margin: 0; color: #fff; font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; }
.home2 .hc-text p { margin: 4px 0 0; color: rgba(222, 236, 252, 0.8); }
.hc-cta { display: inline-block; margin-top: 12px; color: var(--ds-aqua); font-weight: 700; font-size: 0.9rem; transition: transform 0.35s var(--ds-ease), opacity 0.35s ease; }
.hc-cta i { margin-left: 4px; }
@media (hover: hover) {
  .hc-cta { opacity: 0; transform: translateY(8px); }
  .hc-card:hover .hc-cta { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- agents */
.hag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hag-card {
  position: relative; isolation: isolate;
  overflow: hidden; padding: 0 24px 26px; text-align: center; text-decoration: none; color: var(--ds-text);
  background: #fff; border: 1px solid var(--ds-border); border-radius: 26px;
  transition: transform 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease), border-color 0.35s ease;
}
.hag-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 17, 45, 0.12); border-color: rgba(3, 189, 249, 0.35); }
.hag-banner {
  display: block; height: 104px; margin: 0 -24px;
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(34, 227, 243, 0.55), transparent 60%),
    linear-gradient(135deg, var(--ds-navy-700), var(--ds-navy-900));
}
.hag-photo {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: -54px auto 14px; border-radius: 50%;
  border: 5px solid #fff; background: var(--ds-bg-ice-2); color: var(--ds-azure); font-size: 2rem;
  box-shadow: 0 14px 30px rgba(0, 17, 45, 0.18);
}
.hag-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hag-verified { position: absolute; right: -2px; bottom: 4px; font-size: 1.3rem; color: var(--ds-sky); background: #fff; border-radius: 50%; }
.hag-card h3 { margin: 0; font-size: 1.15rem; color: var(--ds-text-strong); }
.home2 .hag-card p { margin: 4px 0 0; color: var(--ds-text-muted); font-size: 0.9rem; }
.hag-cta { display: inline-block; margin-top: 16px; padding: 9px 16px; border-radius: 999px; background: var(--ds-bg-ice); color: var(--ds-link); font-weight: 700; font-size: 0.86rem; transition: background-color 0.3s ease, color 0.3s ease; }
.hag-card:hover .hag-cta { background: var(--ds-navy-900); color: #fff; }

/* ----------------------------------------------------------- review */
.hr { padding-block: clamp(64px, 6.5vw, 92px); background: var(--ds-bg-ice); }
.hr-card {
  position: relative; isolation: isolate;
  max-width: 940px; margin: 0 auto; overflow: hidden; padding: clamp(40px, 6vw, 64px); text-align: center;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 34px; box-shadow: 0 30px 70px rgba(0, 17, 45, 0.1);
}
.hr-card::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(3, 189, 249, 0.18), transparent 70%); z-index: -1; }
.hr-mark { position: absolute; z-index: -1; top: -46px; left: 24px; font: 800 260px/1 var(--font-heading); background: var(--ds-gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.2; }
.hr-stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 14px; color: var(--ds-sky); }
.hr-stars .is-empty { color: #cbd5e1; }
.hr-card blockquote { margin: 0 auto 28px; max-width: 46rem; font: 600 clamp(1.2rem, 2vw, 1.75rem)/1.45 var(--font-heading); letter-spacing: -0.02em; color: var(--ds-text-strong); }
.hr-card figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; text-align: left; }
.hr-card figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(3, 189, 249, 0.4); }
.hr-card figcaption strong { display: block; color: var(--ds-text-strong); }
.hr-card figcaption small { color: var(--ds-text-muted); }

/* --------------------------------------------- app (phones overlap the card) */
.home2 .hp {
  position: relative; overflow: visible !important; margin-top: 150px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; gap: 30px;
  padding: 64px 64px 0;
}
.hp-orb { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hp-orb::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 227, 243, 0.25), transparent 70%); }
.hp-copy { position: relative; padding-bottom: 64px; }
.home2 .hp p { font-size: 1rem; color: var(--ds-text-on-dark-muted); max-width: 26rem; }
.home2 .hp h2 { color: #fff; }
.hp-phones { position: relative; height: 400px; }
.hp-device {
  position: absolute; bottom: 0; width: 210px; aspect-ratio: 1170 / 2532; overflow: hidden;
  border-radius: 36px; border: 8px solid #071630; background: #000;
  box-shadow: 0 40px 80px rgba(0, 8, 24, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hp-device::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 2; width: 34%; height: 18px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.home2 .hp-device img { position: static; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
/* Centre phone: taller than the card, so it rises above the card's top edge. */
.hp-device--center { left: 50%; width: 270px; z-index: 3; transform: translateX(-50%); bottom: -2px; animation: hp-rise 7s ease-in-out infinite alternate; }
.hp-device--left { left: 2%; bottom: 24px; z-index: 1; transform: rotate(-12deg); opacity: 0.92; animation: hp-sway 8s ease-in-out infinite alternate; }
.hp-device--right { right: 2%; bottom: 40px; z-index: 2; transform: rotate(10deg); opacity: 0.92; animation: hp-sway2 9s ease-in-out infinite alternate; }
@keyframes hp-rise { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-12px); } }
@keyframes hp-sway { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(-9deg) translateY(-14px); } }
@keyframes hp-sway2 { from { transform: rotate(10deg) translateY(0); } to { transform: rotate(7deg) translateY(-18px); } }

/* --------------------------------------------------- final call to action */
.hz {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(72px, 8vw, 116px);
  background:
    radial-gradient(45% 80% at 15% 20%, rgba(34, 227, 243, 0.35), transparent 60%),
    radial-gradient(50% 80% at 90% 85%, rgba(2, 131, 222, 0.55), transparent 60%),
    linear-gradient(135deg, #021b45, #00112d);
  border-bottom: 1px solid rgba(34, 227, 243, 0.2);
}
.hz-inner { position: relative; z-index: 1; }
.hz h2 { color: #fff; font-size: var(--ds-fs-5xl) !important; letter-spacing: -0.045em; max-width: 14ch; margin: 0 auto; }
.home2 .hz p { margin: 20px auto 0; max-width: 34rem; color: var(--ds-text-on-dark-muted); font-size: 1.1rem; }
.hz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.home2 .hz-ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.home2 .hz-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ds-aqua); color: var(--ds-aqua) !important; }
.hz-bg { position: absolute; inset: 0; pointer-events: none; }
.hz-shape {
  position: absolute; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ds-aqua); font-size: 1.6rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: hx-float 7s ease-in-out infinite alternate;
}
.hz-shape--1 { left: 9%; top: 22%; transform: rotate(-10deg); }
.hz-shape--2 { right: 11%; top: 16%; width: 70px; height: 70px; animation-delay: -2s; color: var(--ds-warm); }
.hz-shape--3 { right: 18%; bottom: 14%; width: 60px; height: 60px; animation-delay: -4s; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hs-ribbon__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-stat:nth-child(3) { box-shadow: 0 -1px 0 var(--ds-border); }
  .hs-stat:nth-child(4) { box-shadow: -1px 0 0 var(--ds-border), 0 -1px 0 var(--ds-border); }
  .hf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-card--big { grid-row: span 1; min-height: 460px; }
  .hj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsv-feature { grid-row: span 1; }
  .ha { grid-template-columns: 1fr; }
  .ha-collage { min-height: 480px; max-width: 640px; width: 100%; margin-inline: auto; }
  .hw-wrap { grid-template-columns: 1fr; }
  .hw-intro { position: static; }
  .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-card--1 { grid-row: span 1; }
  .home2 .hp { grid-template-columns: 1fr; padding: 48px 40px 0; }
  .hp-copy { padding-bottom: 0; }
  .hp-phones { height: 400px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hp-device--center { width: 220px; }
  .hp-device { width: 180px; }
}
@media (max-width: 640px) {
  .hs-ribbon { margin-top: -40px; }
  .hs-stat { padding: 16px 12px; column-gap: 10px; }
  .hs-stat__icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
  .hf-bento, .hj-grid, .hag-grid { grid-template-columns: 1fr; }
  .hf-card--big { grid-column: span 1; min-height: 420px; }
  .hj-card--1, .hj-card--6 { grid-column: span 1; }
  .hsv-feature { grid-column: span 2; padding: 26px; }
  .hsv-tile { min-height: 128px; padding: 16px; }
  .ha-collage { min-height: 380px; }
  .ha-main { inset: 0 8% 14% 0; }
  .ha-badge { left: 8px; top: auto; bottom: 0; }
  .ha-small { width: 50%; }
  .ha-ring { display: none; }
  .hw-step { grid-template-columns: 1fr; padding: 24px; }
  .hc-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(230px, auto); }
  .hc-card--4 { grid-column: span 1; }
  .hr-mark { font-size: 180px; }
  .home2 .hp { padding: 36px 24px 0; margin-top: 60px; }
  .hp-phones { height: 360px; }
  .hp-device { width: 140px; border-width: 6px; border-radius: 28px; }
  .hp-device--center { width: 180px; }
  .hz-shape { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-marquee__track, .ha-badge, .ha-ring, .hp-device, .hz-shape { animation: none !important; }
}

/* =====================================================================
 * Reviews: live rating summary (navy), featured quote (white, overlapping
 * the summary), and a slow-scrolling wall of review cards.
 * ===================================================================== */
.hr2 { position: relative; overflow: hidden; padding-block: clamp(64px, 6.5vw, 92px); background: linear-gradient(180deg, var(--ds-bg-ice), #fff); }
.hr2::before {
  content: ""; position: absolute; right: -12%; top: -20%; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(3, 189, 249, 0.14), transparent 65%);
}
.hr2 .trust-stars { display: inline-flex; gap: 3px; color: #fbbf24; font-size: 0.95rem; }
.hr2 .trust-stars__empty { color: #cbd5e1; }

.hr2-top { position: relative; display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr); align-items: center; }

/* Rating summary */
.hr2-score {
  position: relative; isolation: isolate; z-index: 1; display: flex; flex-direction: column; gap: 10px;
  padding: 36px 74px 36px 34px; border-radius: 28px; color: #fff; overflow: hidden;
  background: radial-gradient(80% 70% at 100% 0%, rgba(34, 227, 243, 0.28), transparent 60%), linear-gradient(160deg, var(--ds-navy-700), var(--ds-navy-900));
  box-shadow: 0 30px 70px rgba(0, 17, 45, 0.25);
}
.hr2-score__label { color: var(--ds-text-on-dark-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hr2-score__value { display: flex; align-items: baseline; gap: 6px; }
.hr2-score__value strong { font: 800 clamp(56px, 6vw, 78px)/0.95 var(--font-heading); letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hr2-score__value span { color: var(--ds-text-on-dark-muted); font: 700 1.3rem/1 var(--font-heading); }
.home2 .hr2-score p { margin: 0; color: var(--ds-text-on-dark-muted); font-size: 0.9rem; }
.hr2-bars { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; gap: 8px; }
.hr2-bars li { display: grid; grid-template-columns: 74px 1fr 30px; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ds-text-on-dark-muted); }
.hr2-bars b { text-align: right; color: #fff; font-weight: 700; }
.hr2-bar { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.hr2-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ds-gradient-brand); box-shadow: 0 0 12px rgba(34, 227, 243, 0.5); }
.hr2-score .h2-button { align-self: flex-start; }

/* Featured quote overlaps the summary card. */
.hr2-feature {
  position: relative; isolation: isolate; z-index: 2; margin: 0 0 0 -40px; padding: clamp(34px, 4vw, 54px) clamp(30px, 4vw, 56px);
  background: #fff; border: 1px solid var(--ds-border); border-radius: 30px;
  box-shadow: 0 40px 90px rgba(0, 17, 45, 0.14);
}
.hr2-feature__mark {
  position: absolute; z-index: -1; right: 28px; top: -30px;
  font: 800 220px/1 var(--font-heading); background: var(--ds-gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.18;
}
.hr2-feature__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hr2-tag { padding: 6px 12px; border-radius: 999px; background: var(--ds-bg-ice-2); color: var(--ds-navy-700); font-size: 0.74rem; font-weight: 700; }
.hr2-verified { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 0.74rem; font-weight: 700; }
.hr2-feature blockquote { margin: 14px 0 26px; font: 600 clamp(1.25rem, 2vw, 1.75rem)/1.45 var(--font-heading); letter-spacing: -0.02em; color: var(--ds-text-strong); }
.hr2-feature figcaption { display: flex; align-items: center; gap: 14px; }
.hr2-feature figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(3, 189, 249, 0.45); }
.hr2-feature figcaption strong { display: block; color: var(--ds-text-strong); font-size: 1.02rem; }
.hr2-feature figcaption small { color: var(--ds-text-muted); font-size: 0.86rem; }

/* Wall of reviews (pauses on hover). */
.hr2-wall {
  margin-top: 46px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hr2-wall__track { display: flex; width: max-content; animation: hm-scroll 70s linear infinite; }
.hr2-wall:hover .hr2-wall__track { animation-play-state: paused; }
.hr2-wall__group { display: flex; gap: 18px; padding-right: 18px; }
.hr2-card {
  display: flex; flex-direction: column; gap: 12px; width: 320px; padding: 22px 22px 20px;
  background: #fff; border: 1px solid var(--ds-border); border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0, 17, 45, 0.06);
  transition: transform 0.35s var(--ds-ease), box-shadow 0.35s var(--ds-ease), border-color 0.35s ease;
}
.hr2-card:hover { transform: translateY(-4px); border-color: rgba(3, 189, 249, 0.4); box-shadow: 0 20px 44px rgba(0, 17, 45, 0.12); }
.home2 .hr2-card p { margin: 0; color: var(--ds-text); font-size: 0.93rem; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.hr2-card footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ds-border); }
.hr2-card footer img, .hr2-card__initial { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.hr2-card__initial { display: grid; place-items: center; background: var(--ds-gradient-brand); color: var(--ds-navy-900); font-weight: 800; }
.hr2-card footer strong { display: block; color: var(--ds-text-strong); font-size: 0.88rem; }
.hr2-card footer small { color: var(--ds-text-muted); font-size: 0.76rem; }

@media (max-width: 1000px) {
  .hr2-top { grid-template-columns: 1fr; }
  .hr2-score { padding: 32px 28px 56px; }
  .hr2-feature { margin: -30px 16px 0; }
}
@media (max-width: 640px) {
  .hr2-feature { margin: -24px 8px 0; }
  .hr2-feature__mark { font-size: 150px; }
  .hr2-card { width: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  .hr2-wall { overflow-x: auto; }
  .hr2-wall__track { animation: none; }
}

/* ---------- reviews: single client review spans the row; agent network when there are no client reviews yet ---------- */
.hr2-top:not(:has(.hr2-score)) { grid-template-columns: minmax(0, 1fr); max-width: 880px; margin-inline: auto; }
.hr3 { position: relative; display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.hr3-promise {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: 28px; color: #fff;
  background: radial-gradient(90% 70% at 100% 0%, rgba(34, 227, 243, 0.28), transparent 60%), linear-gradient(160deg, #00112d, #062a5c);
  box-shadow: 0 30px 70px rgba(0, 17, 45, 0.25);
}
.hr3-promise__stars { display: inline-flex; align-self: flex-start; gap: 5px; padding: 8px 14px; border-radius: 999px; background: rgba(252, 211, 77, 0.14); color: #fcd34d; font-size: 0.95rem; }
.hr3-promise h3 { margin: 4px 0 0; font: 800 clamp(1.4rem, 2.2vw, 1.8rem)/1.2 var(--font-heading); letter-spacing: -0.02em; color: #fff; }
.home2 .hr3-promise p { margin: 0; color: rgba(226, 238, 252, 0.78); line-height: 1.65; }
.hr3-promise ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 10px; }
.hr3-promise li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.hr3-promise li i { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(34, 227, 243, 0.14); color: #22e3f3; font-size: 0.85rem; }
.hr3-promise .h2-button { margin-top: auto; align-self: flex-start; }
.hr3-agents { display: flex; flex-direction: column; gap: 14px; }
.home2 .hr3-agents__title { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 0.8rem/1 var(--font-body, inherit); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ds-text-muted); }
.hr3-agents__title i { color: var(--ds-azure, #03bdf9); }
.hr3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; flex: 1; }
.hr3-agent {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--ds-border);
  box-shadow: 0 10px 28px rgba(0, 17, 45, 0.05); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hr3-agent:hover { transform: translateY(-3px); border-color: rgba(3, 189, 249, 0.4); box-shadow: 0 20px 44px rgba(0, 17, 45, 0.1); }
.hr3-agent .rv-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(3, 189, 249, 0.35); font-size: 1rem; }
.hr3-agent > div { min-width: 0; display: grid; gap: 2px; }
.hr3-agent strong { color: var(--ds-text-strong); font-size: 0.98rem; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr3-agent small { color: var(--ds-text-muted); font-size: 0.82rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hr3-agent a { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--ds-link, #0283de); text-decoration: none; }
.hr3-agent a i { font-size: 0.72rem; transition: transform 0.2s ease; }
.hr3-agent:hover a i { transform: translateX(3px); }
@media (max-width: 991px) { .hr3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hr3-grid { grid-template-columns: minmax(0, 1fr); } }
html[data-theme="dark"] .hr3-agent { background: #0f1c2e; border-color: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .hr3-agent .rv-avatar { box-shadow: 0 0 0 3px #0f1c2e, 0 0 0 5px rgba(34, 227, 243, 0.35); }

/* ---------- FAQ ---------- */
.hfq { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.hfq-intro {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: 28px; color: #fff;
  background: radial-gradient(90% 70% at 0% 0%, rgba(34, 227, 243, 0.25), transparent 60%), linear-gradient(160deg, #00112d, #062a5c);
  box-shadow: 0 30px 70px rgba(0, 17, 45, 0.22);
}
.hfq-intro h2 { margin: 0; font: 800 clamp(1.8rem, 3vw, 2.5rem)/1.1 var(--font-heading); letter-spacing: -0.03em; color: #fff; }
.home2 .hfq-intro p { margin: 0; color: rgba(226, 238, 252, 0.78); }
.hfq-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.hfq-intro__talk { display: inline-flex; align-items: center; gap: 8px; color: #a5f3fc; font-weight: 700; text-decoration: none; }
.hfq-intro__talk:hover { color: #fff; }
.hfq-list { display: grid; gap: 12px; align-content: start; }
.home2 .hfq .fq-item p { margin: 0; }
@media (max-width: 991px) { .hfq { grid-template-columns: minmax(0, 1fr); } }
