/* ============================================================
   UPSIDE PROPERTY — Components
   ============================================================ */

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.92em 1.5em;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease,
    color 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn__ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__ico { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0); }

/* primary peach */
.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  box-shadow: 0 6px 22px rgba(217, 149, 92, 0.28);
}
.btn--accent:hover { --btn-bg: var(--accent-2); }

/* dark on light */
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #262626; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--sh-sm); }
.btn--light:hover { --btn-bg: #f1efec; }

/* ghost / outline */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--outline:hover { --btn-bg: rgba(10, 10, 10, 0.05); }

.btn--outline-inv {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--line-inv-2);
}
.btn--outline-inv:hover { --btn-bg: rgba(255, 255, 255, 0.1); }

.btn--sm { padding: 0.7em 1.15em; font-size: 0.78rem; }
.btn--lg { padding: 1.06em 1.85em; font-size: 0.9rem; }

/* text link with rule + arrow, e.g. "Explore Properties ↗" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.88rem;
  font-weight: 500;
  color: inherit;
  padding-bottom: 0.32em;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.22s ease, gap 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-arrow:hover { opacity: 0.68; gap: 0.9em; }
.link-arrow svg { width: 0.95em; height: 0.95em; flex: none; }

.link-arrow--plain { border-bottom: 0; padding-bottom: 0; opacity: 0.75; }
.link-arrow--plain:hover { opacity: 1; }

/* circular icon button (carousel arrows) */
.ico-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--tx);
  flex: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease,
    border-color 0.22s ease;
}
.ico-btn svg { width: 17px; height: 17px; }
.ico-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px); }
.ico-btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.ico-btn--solid:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ico-btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ico-btn--inv { border-color: var(--line-inv-2); color: #fff; background: var(--glass-dark); backdrop-filter: blur(8px); }
.ico-btn--inv:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ico-btn--sm { width: 38px; height: 38px; }
.ico-btn--sm svg { width: 14px; height: 14px; }
.ico-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ============================================================
   Header / pill nav
   ============================================================ */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 70;
  padding: 24px var(--gut);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* interior pages: header floats over the light page hero, then sticks on scroll */
.header:not([data-variant="hero"]).is-stuck {
  position: fixed;
  padding: 12px var(--gut);
  background: rgba(246, 245, 243, 0.88);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(10, 10, 10, 0.05);
  animation: headerDrop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes headerDrop {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

.header__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* logo lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__glyph {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand__glyph small {
  display: block;
  font-family: var(--f-body);
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2px;
}
.brand__img { height: 40px; width: auto; }

/* the floating pill */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.08);
}

.nav-pill a,
.nav-pill__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  color: var(--tx);
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.nav-pill a:hover { background: rgba(10, 10, 10, 0.06); }
.nav-pill a[aria-current="page"] { background: rgba(10, 10, 10, 0.09); font-weight: 600; }

/* dot before active item */
.nav-pill a[aria-current="page"]::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

.header__cta { flex: none; }

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--glass);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex: none;
}
.burger span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s ease, background 0.2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .burger span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* while the drawer is open, hide the light-theme header logo so it does not
   sit unreadably on the dark overlay */
body.nav-open .header .brand { opacity: 0; pointer-events: none; }
.header .brand { transition: opacity 0.25s ease; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--ink);
  color: #fff;
  padding: 104px var(--gut) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s;
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }

/* primary nav rows only — .drawer__foot links must not inherit this size */
.drawer > a {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-inv);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.drawer > a .idx { color: var(--tx-inv-3); }

.drawer .brand { color: #fff; }
.drawer .brand__glyph small { opacity: 0.55; }

.drawer__foot {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.drawer__foot .btn { align-self: flex-start; }

.drawer__meta {
  color: var(--tx-inv-2);
  font-size: 0.88rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.drawer__meta a,
.drawer__meta span {
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0;
  border: 0;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.drawer__meta a { color: #fff; }
.drawer__meta a:hover { color: var(--accent); }
.drawer__meta span { color: var(--tx-inv-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 0; }

.hero__stage {
  position: relative;
  margin: 0 var(--gut);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.30) 0%, rgba(12, 12, 12, 0.03) 34%, rgba(12, 12, 12, 0.52) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.22) 0%, rgba(12, 12, 12, 0) 46%);
}

/* giant wordmark behind the imagery */
.hero__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 15.2vw, 13.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  padding: clamp(6px, 1.4vh, 20px) 0 0;
  mix-blend-mode: soft-light;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.hero__word span { display: inline-block; }

.hero__body {
  margin-top: auto;
  padding: clamp(20px, 3vw, 40px) clamp(24px, 3vw, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero__tagline {
  max-width: 34ch;
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hero__stats {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.hero__stat { min-width: 0; }
.hero__stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stat span {
  font-size: clamp(0.58rem, 0.8vw, 0.7rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.hero__kicker {
  position: absolute;
  left: clamp(24px, 3vw, 44px);
  top: clamp(140px, 26vh, 260px);
  z-index: 2;
  color: #fff;
  max-width: 26ch;
}
.hero__kicker .micro { color: rgba(255, 255, 255, 0.7); }

.hero__socials {
  position: absolute;
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(112px, 15vh, 148px);
  z-index: 4;
  display: flex;
  gap: 9px;
}
.hero__socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 16, 0.30);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.30);
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.hero__socials a svg { width: 15px; height: 15px; color: #fff; }
.hero__socials a:hover { background: #fff; transform: translateY(-2px); }
.hero__socials a:hover svg { color: var(--ink); }

/* hotspot annotations on the hero */
.hotspot {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
}
.hotspot__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hotspot__dot::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}
.hotspot__card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: #fff;
  font-size: 0.73rem;
  line-height: 1.45;
  max-width: 230px;
}
.hotspot--left { flex-direction: row-reverse; }
.hotspot--left .hotspot__card { text-align: right; }
.hotspot:hover .hotspot__dot { transform: scale(1.16); }

.hotspot__line {
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
  height: 1px;
  transform-origin: left center;
}

/* hero scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue svg { width: 17px; height: 17px; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ============================================================
   Section headers
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
}
.sec-head__aside { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

.sec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.dark .sec-bar { border-color: var(--line-inv); }

/* ============================================================
   Property card (image-fill with overlay meta)
   ============================================================ */
.p-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--mist-2);
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.p-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.p-card:hover .p-card__img { transform: scale(1.06); }

.p-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.72) 100%);
}

.p-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-card__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.p-card__name {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}
.p-card__price {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}

.p-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
}
.p-card__specs li { display: flex; align-items: center; gap: 0.4em; }
.p-card__specs li + li::before {
  content: "";
  width: 1px; height: 10px;
  background: rgba(255, 255, 255, 0.3);
  margin-right: 12px;
}
.p-card__specs { row-gap: 2px; }

.p-card__loc {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
}
.p-card__loc svg { width: 12px; height: 12px; flex: none; }

.p-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-card__fav {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: background 0.22s ease;
}
.p-card__fav svg { width: 15px; height: 15px; color: #fff; }
.p-card__fav:hover { background: rgba(255, 255, 255, 0.4); }
.p-card__fav.is-on svg { fill: var(--accent); color: var(--accent); }

/* grid of cards */
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}

/* ============================================================
   Horizontal scroller (featured / insights)
   ============================================================ */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 1fr);
  gap: 22px;
  overflow-x: auto;
  /* never a vertical scroll container: a nested one swallows the page's
     vertical swipes on touch devices */
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* area tiles as a swipe row on phones */
.area-rail { grid-auto-columns: 62vw; gap: 14px; }
.area-rail .area-tile { aspect-ratio: 3 / 3.6; }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.stat {
  border: 1px solid var(--line-inv);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  transition: background 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-4px); }

.stat__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.stat__note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--tx-inv-3);
  margin-top: auto;
}

/* stat tile on a light background */
.stat--flat {
  border-color: var(--line);
  background: none;
  min-height: auto;
  padding: clamp(16px, 1.7vw, 22px);
  gap: 6px;
}
.stat--flat .stat__num {
  color: var(--accent-deep);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}
.stat--flat .stat__label { font-size: 0.88rem; }
.stat--flat .stat__note { color: var(--tx-3); }

/* ============================================================
   Pathway gateway — the four customer paths
   Buy a Home · Sell a Home · Rent a Home · Manage My Property
   ============================================================ */
.gateway {
  background: var(--ink);
  color: var(--tx-inv);
  padding: clamp(40px, 5vw, 66px) 0 clamp(48px, 6vw, 78px);
}

.gateway__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.gateway__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 22ch;
}

.gateway__note {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--tx-inv-2);
  max-width: 34ch;
}

.gateway__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.2vw, 30px);
  min-height: clamp(200px, 22vw, 268px);
  border: 1px solid var(--line-inv);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.path::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 190, 143, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.path:hover,
.path:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--accent);
  transform: translateY(-5px);
}
.path:hover::after, .path:focus-visible::after { opacity: 1; }

.path__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.path__ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  flex: none;
}
.path__ico svg { width: 21px; height: 21px; }

.path__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--tx-inv-3);
}

.path__label {
  font-family: var(--f-display);
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: auto;
}

.path__desc {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--tx-inv-2);
}

.path__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.path__cta svg { width: 14px; height: 14px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.path:hover .path__cta svg { transform: translate(3px, -3px); }

/* ============================================================
   Service tiles (Why clients trust us)
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.services > *:nth-child(2) { margin-top: clamp(28px, 5vw, 68px); }
.services > *:nth-child(3) { margin-top: clamp(12px, 2.2vw, 30px); }

.svc { display: flex; flex-direction: column; gap: 16px; }

.svc__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--mist-2);
}
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc:hover .svc__media img { transform: scale(1.05); }

.svc__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.svc__title { font-weight: 600; font-size: 1.04rem; letter-spacing: -0.015em; }

/* ============================================================
   Insights slider (large image with thumbs)
   ============================================================ */
.insight {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  background: var(--mist-2);
  isolation: isolate;
}
.insight__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.insight__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, 0.62) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.34) 0%, rgba(10, 10, 10, 0) 58%);
}
.insight__thumbs {
  position: absolute;
  left: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.insight__thumbs img {
  width: clamp(86px, 11vw, 132px);
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.62;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.insight__thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.insight__thumbs img.is-active { opacity: 1; }

.insight__body {
  position: absolute;
  left: clamp(16px, 2.4vw, 30px);
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  margin-left: clamp(180px, 24vw, 290px);
  color: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.insight__title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.insight__text { font-size: 0.87rem; color: rgba(255, 255, 255, 0.78); line-height: 1.6; }

.insight__nav {
  position: absolute;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
}
.insight__count { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); margin-right: 6px; }

/* ============================================================
   Testimonials
   ============================================================ */
.tst-wrap { overflow: hidden; }

.tst-track {
  display: flex;
  gap: 26px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tst {
  flex: 0 0 clamp(560px, 62vw, 880px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
}
.tst__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
  background: var(--mist-2);
}
.tst__media img { width: 100%; height: 100%; object-fit: cover; }

.tst__quote { font-size: clamp(0.95rem, 1.35vw, 1.18rem); line-height: 1.62; color: var(--tx); }
.tst__mark {
  font-family: var(--f-serif);
  font-size: 3.4rem;
  line-height: 0.7;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 6px;
}
.tst__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tst__who img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.tst__name { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; }
.tst__role { font-size: 0.78rem; color: var(--tx-3); }

.tst__ctl { display: flex; gap: 10px; }

/* ============================================================
   Big CTA
   ============================================================ */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(400px, 56vh, 580px);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  margin: 0 var(--gut);
}
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.44) 0%, rgba(10, 10, 10, 0.30) 45%, rgba(10, 10, 10, 0.66) 100%);
}
.cta__inner {
  color: #fff;
  padding: clamp(30px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 780px;
}
.cta__title { font-size: clamp(2rem, 4.8vw, 3.9rem); }
.cta__sub { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: var(--tx-inv); padding-top: clamp(48px, 6vw, 76px); }

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: clamp(28px, 4vw, 60px);
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a {
  font-size: 0.95rem;
  color: var(--tx-inv-2);
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}
.footer__links a:hover { color: #fff; transform: translateX(3px); }

.footer__mail { font-size: 0.95rem; color: #fff; width: fit-content; }
.footer__mail:hover { color: var(--accent); }

.footer__news {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px) 0;
  margin-top: clamp(34px, 4.5vw, 60px);
  border-top: 1px solid var(--line-inv);
  border-bottom: 1px solid var(--line-inv);
}
.footer__news-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.footer__field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-inv-2);
  padding-bottom: 10px;
}
.footer__field input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  padding: 4px 0;
  min-width: 0;
}
.footer__field input::placeholder { color: var(--tx-inv-3); }
.footer__field .btn { flex: none; }

/* giant brand wordmark with corner brackets */
.footer__word-wrap {
  position: relative;
  padding: clamp(30px, 5vw, 66px) clamp(10px, 3vw, 54px);
  margin: clamp(20px, 3vw, 34px) 0;
}
.footer__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 17.4vw, 15.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}
.bracket {
  position: absolute;
  width: clamp(26px, 3.2vw, 46px);
  height: clamp(26px, 3.2vw, 46px);
  border: 1px solid var(--line-inv-2);
}
.bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bracket--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bracket--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bracket--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-inv-3);
}
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: #fff; }

.footer__badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.footer__badges img { height: 34px; width: auto; opacity: 0.6; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-inv);
  display: grid;
  place-items: center;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.footer__socials svg { width: 15px; height: 15px; color: var(--tx-inv-2); }
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer__socials a:hover svg { color: var(--ink); }

/* ============================================================
   Dot rail (fixed left progress dots)
   ============================================================ */
.rail {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rail button {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.18);
  transition: background 0.25s ease, transform 0.25s ease;
  position: relative;
}
.rail button:hover { background: rgba(10, 10, 10, 0.45); transform: scale(1.3); }
.rail button.is-active { background: var(--ink); transform: scale(1.35); }
.rail button::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.rail button:hover::after { opacity: 0.6; }

@media (max-width: 1180px) { .rail { display: none; } }

/* ============================================================
   AI lead assistant (replaces the old passive chat widget)
   ============================================================ */
.ai__bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.ai__bubble svg { width: 23px; height: 23px; }
.ai__bubble:hover { transform: scale(1.06); background: var(--navy); }
.ai__dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.ai {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 121;
  width: min(378px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}
.ai.is-open { opacity: 1; visibility: visible; transform: none; }

.ai__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  flex: none;
}
.ai__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex: none;
}
.ai__id { display: flex; flex-direction: column; line-height: 1.25; }
.ai__id b { font-size: 0.88rem; letter-spacing: -0.01em; }
.ai__id small { font-size: 0.7rem; color: var(--tx-inv-3); }
.ai__close {
  margin-left: auto;
  color: var(--tx-inv-2);
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 6px;
}
.ai__close:hover { color: #fff; }

.ai__log {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  background: var(--paper);
}
.ai__msg {
  font-size: 0.83rem;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 14px;
  max-width: 88%;
  overflow-wrap: anywhere;
}
.ai__msg--bot {
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.ai__msg--you {
  background: var(--ink);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.ai__msg em { font-style: italic; opacity: 0.75; }

.ai__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 16px;
  flex: none;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: 168px;
  overflow-y: auto;
}
.ai__quick:empty { display: none; }
.ai__chip {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-size: 0.78rem;
  font-weight: 500;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.ai__chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.ai__form {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: 320px;
  overflow-y: auto;
}
.ai__form .field { gap: 4px; }
.ai__form .field label { font-size: 0.64rem; }
.ai__form .field input { padding: 10px 12px; font-size: 0.85rem; }

.ai__foot {
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--tx-3);
  padding: 9px 16px 12px;
  background: #fff;
  border-top: 1px solid var(--line);
  flex: none;
}

@media (max-width: 560px) {
  .ai {
    left: 10px;
    right: 10px;
    bottom: 84px;
    width: auto;
    max-height: min(74vh, 560px);
  }
  .ai__bubble { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .ai__msg { max-width: 94%; }
}

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.07);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23101010' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 11px;
  padding-right: 38px;
}
.field--inv input,
.field--inv select,
.field--inv textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-inv-2);
  color: #fff;
}
.field--inv input::placeholder, .field--inv textarea::placeholder { color: var(--tx-inv-3); }
.field--inv label { color: var(--tx-inv-3); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }

.form-note { font-size: 0.72rem; color: var(--tx-3); line-height: 1.55; }

/* form failure path (Doc 3): retry + a human contact, never a dead end */
.form-fail {
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: rgba(212, 72, 59, 0.07);
  border: 1px solid rgba(212, 72, 59, 0.3);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #8f2f24;
}
.form-fail.is-on { display: flex; }
.form-fail strong { font-size: 0.88rem; }
.form-fail span { color: var(--tx-2); font-size: 0.8rem; }
.form-fail .btn { margin-top: 2px; }

.form-ok {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}
.form-ok.is-on { display: flex; }

/* ============================================================
   Filter bar (listings page)
   ============================================================ */
.filters {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 18px;
  position: sticky;
  top: 16px;
  z-index: 40;
}
.filters__row {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.filters__more {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.filters__result { font-size: 0.82rem; color: var(--tx-2); margin-left: auto; }

.filters__more .micro { flex: none; }
.filters__more .micro:not(:first-child) { margin-left: clamp(10px, 1.6vw, 20px); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-size: 0.78rem;
  font-weight: 500;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ============================================================
   Property detail
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: 2.05fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  height: clamp(340px, 52vh, 520px);
}
.gallery__main {
  grid-row: span 2;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--mist-2);
  cursor: zoom-in;
}
.gallery__thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--mist-2);
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery__main:hover img, .gallery__thumb:hover img { transform: scale(1.05); }
.gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-list li {
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec-list b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.spec-list span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3); }

.aside-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 20px;
}
.aside-card__agent { display: flex; align-items: center; gap: 13px; }
.aside-card__agent img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.aside-card__agent b { display: block; font-size: 0.95rem; letter-spacing: -0.01em; }
.aside-card__agent span { font-size: 0.74rem; color: var(--tx-3); }

.fact-rows { display: flex; flex-direction: column; }
.fact-rows li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.fact-rows li:last-child { border-bottom: 0; }
.fact-rows b { font-weight: 600; text-align: right; }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.phero {
  padding: clamp(120px, 15vh, 168px) 0 clamp(38px, 5vw, 62px);
  background: var(--paper);
}
.phero--dark { background: var(--ink); color: var(--tx-inv); }
.phero__row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 20px;
}
.crumbs a:hover { color: var(--ink); }
.phero--dark .crumbs { color: var(--tx-inv-3); }
.phero--dark .crumbs a:hover { color: #fff; }

/* ============================================================
   Text + media split rows
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.4vw, 66px);
  align-items: center;
}
.split--rev .split__media { order: -1; }
.split__media { border-radius: var(--r-lg); overflow: hidden; background: var(--mist-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 4 / 4.4; }
.split__media--wide { aspect-ratio: 4 / 3; }

/* numbered process steps */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2.4vw, 34px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:first-child { border-top: 1px solid var(--line); }
.step__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
  color: var(--accent-deep);
  min-width: 2.6em;
}
.step__body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(18px, 2.6vw, 40px); align-items: start; }

/* feature list with check marks */
.ticks { display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; gap: 11px; font-size: 0.88rem; line-height: 1.55; color: var(--tx-2); }
.ticks svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent-deep); }
.dark .ticks li, .on-dark .ticks li { color: var(--tx-inv-2); }

/* card grid generic */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.mini-card__ico {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.mini-card__ico svg { width: 19px; height: 19px; color: var(--accent-deep); }
.dark .mini-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-inv);
}
.dark .mini-card p { color: var(--tx-inv-2); }

/* area tiles */
.area-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.area-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.7) 100%);
}
.area-tile:hover img { transform: scale(1.06); }
.area-tile__body { padding: 20px; color: #fff; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.area-tile__name { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.area-tile__count { font-size: 0.72rem; opacity: 0.75; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq__q svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; max-width: 72ch; color: var(--tx-2); font-size: 0.92rem; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.09s; }
[data-reveal][data-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-delay="3"] { transition-delay: 0.27s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }
[data-reveal][data-delay="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1120px) {
  .gateway__grid { grid-template-columns: 1fr 1fr; }
  .path { min-height: 210px; }
  .services { grid-template-columns: 1fr 1fr; }
  .services > *:nth-child(3) { margin-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Keep the first card row clear of the browser's lazy-load buffer on phones.
   Cards sitting just below the fold preload and steal bandwidth from the LCP
   image; this guarantees the hero gets the connection first. */
@media (max-width: 960px) {
  /* ---- scrolling performance on phones ---------------------------------
     Blurred (backdrop-filter) layers force a full-layer recomposite on every
     scroll frame. Replacing them with solid translucent fills keeps the same
     look at a fraction of the cost. */
  .nav-pill,
  .account__btn,
  .burger,
  .hero__socials a,
  .hotspot__card,
  .hotspot__dot,
  .ico-btn--inv,
  .p-card__fav,
  .chat-panel,
  .filters,
  .account__menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-pill { background: rgba(250, 249, 247, 0.96); }
  .account__btn { background: rgba(250, 249, 247, 0.96); }
  .burger { background: rgba(250, 249, 247, 0.96); }
  .hero__socials a { background: rgba(16, 16, 16, 0.62); }
  .hotspot__card { background: rgba(16, 16, 16, 0.55); }
  .hotspot__dot { background: rgba(255, 255, 255, 0.3); }
  .ico-btn--inv { background: rgba(16, 16, 16, 0.6); }
  .p-card__fav { background: rgba(16, 16, 16, 0.45); }

  /* promote only what actually animates, and only while it animates */
  [data-reveal].is-in { will-change: auto; }

  .hero + .section { padding-top: clamp(88px, 12vw, 120px); }

  .header { padding: 18px var(--gut); }
  .nav-pill, .header__cta { display: none; }
  .burger { display: flex; }

  .hero__stage { min-height: min(78vh, 640px); margin: 10px var(--gut) 0; }
  .hero__kicker { position: static; padding: 0 clamp(24px, 3vw, 44px); margin-top: 16px; }
  .hero__word { padding-top: 88px; white-space: normal; text-align: left; padding-left: clamp(24px,3vw,44px); text-align: left; }
  .hero__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-width: 0;
  }
  .hero__socials {
    position: static;
    flex-direction: row;
    padding: 0 clamp(24px, 3vw, 44px) 4px;
  }
  .hero__stats { width: 100%; justify-content: space-between; }
  .hotspot { display: none; }

  .sec-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .sec-head__aside { align-items: flex-start; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: 0 !important; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; height: auto; }
  .gallery__main { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .gallery__thumb { aspect-ratio: 4 / 3; }
  .insight__body { margin-left: 0; }
  .insight__thumbs { bottom: auto; top: 16px; }
  .insight__body { bottom: 16px; }
  .insight { aspect-ratio: 4 / 3.6; }
  .insight__nav { bottom: 16px; }
  .tst { flex: 0 0 86vw; grid-template-columns: 1fr; }
  .tst__media { aspect-ratio: 16 / 9; }
  .filters { position: static; }
  .filters__row { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .step__body { grid-template-columns: 1fr; gap: 10px; }
  .footer__news { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step__num { min-width: 0; }
}

@media (max-width: 700px) {
  .p-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .scroller { grid-auto-columns: 78vw; }
  /* two-up compact tiles: four full-width service blocks cost ~3.6 screens */
  .gateway__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .path { min-height: 0; padding: 16px; gap: 10px; }
  .path__ico { width: 36px; height: 36px; }
  .path__ico svg { width: 17px; height: 17px; }
  .path__label { font-size: 1rem; }
  .path__desc { font-size: 0.76rem; }
  .services { grid-template-columns: 1fr 1fr; gap: 14px; }
  .services > *:nth-child(2) { margin-top: 0; }
  .svc__media { aspect-ratio: 4 / 3.4; border-radius: var(--r-md); }
  .svc__title { font-size: 0.92rem; }
  .svc .body-sm { font-size: 0.78rem; line-height: 1.5; }
  .sec-bar .micro { display: none; }
  .cards-3, .cards-4, .cards-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 160px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__word { white-space: normal; }
  .filters__row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { margin: 0 var(--gut); border-radius: var(--r-lg); }
  .phero__row { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}

@media (max-width: 460px) {
  .p-grid { grid-template-columns: 1fr; }
  /* keep stats 2-up: four stacked tiles added ~1.5 screens of scroll on phones */
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { min-height: 140px; }
  .stat__num { font-size: 2.1rem; }
  .hero__stats { gap: 22px; }
}
