/* =========================================================
   RK REALITY — Design system & styles
   Palette: cream / beige / sand + olive / brass
   ========================================================= */

:root {
  --bg: #f3eee4;
  --bg-2: #ebe3d4;
  --sand: #d9cbb1;
  --sand-2: #c8b693;
  --paper: #fbf8f2;
  --olive: #3f4a2a;
  --olive-2: #5b6639;
  --olive-soft: #8a916a;
  --olive-deep: #1d2215;
  --olive-night: #151910;
  --ink: #1b1d15;
  --muted: #6f6b5e;
  --muted-2: #9a9483;
  --brass: #a9834e;
  --brass-2: #c9a46c;
  --line: rgba(14, 20, 40, 0.12);
  --line-light: rgba(252, 251, 249, 0.14);
  --danger: #9b3b2e;

  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(16px, 5.2vw, 100px);
  --max: 1520px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 92px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--olive); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.brass { color: var(--brass); }

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--olive-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--brass-2); }
.h-display {
  font-size: clamp(48px, 9.4vw, 168px);
  line-height: 0.92; letter-spacing: -0.045em; font-weight: 700;
}
.h1 { font-size: clamp(42px, 6.6vw, 112px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 700; }
.h2 { font-size: clamp(34px, 4.6vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.h3 { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.h4 { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.5; color: var(--muted); letter-spacing: -0.01em; }
.h1 .serif, .h2 .serif, .h-display .serif { font-weight: 400; letter-spacing: -0.02em; }

/* line/word split helpers */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--olive-deep); --fg-btn: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 100px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--olive-2); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 34px -14px rgba(15, 29, 69, 0.55); }
.btn:active { transform: scale(0.97); }
.btn .arrow { width: 20px; height: 20px; transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { --bg-btn: var(--paper); --fg-btn: var(--ink); }
.btn--light::before { background: var(--sand); }
.btn--brass { --bg-btn: var(--brass); --fg-btn: var(--paper); }
.btn--brass::before { background: var(--olive-deep); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--olive-deep); }
.btn--ghost:hover { color: var(--paper); }
.btn--ghost-light { --bg-btn: transparent; --fg-btn: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); }
.btn--ghost-light::before { background: var(--paper); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }

.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  padding-bottom: 4px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(1); transition: transform 0.5s var(--ease-out);
}
.link-u:hover::after { animation: line-swipe 0.8s var(--ease-out); }
@keyframes line-swipe {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.link-u .arrow { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.link-u:hover .arrow { transform: translateX(4px); }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.icon-btn:hover { background: var(--olive-deep); color: var(--paper); border-color: var(--olive-deep); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Preloader & page transition ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__logo { width: clamp(120px, 18vw, 200px); color: var(--olive-deep); overflow: hidden; }
.preloader__logo svg { width: 100%; height: auto; }
.preloader__bar { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar span { position: absolute; inset: 0; background: var(--olive); transform-origin: left; transform: scaleX(0); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-size: clamp(64px, 12vw, 180px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8; color: var(--sand);
}
.preloader__word { position: absolute; left: var(--gutter); bottom: 34px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.page-wipe {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  display: grid; place-items: center; background: var(--olive-deep);
  transform: translateY(100%);
}
.page-wipe.is-covering { transform: translateY(0); }
.page-wipe__logo { width: 92px; color: var(--paper); opacity: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none; display: none; }
.cursor__dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--olive-deep); transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background 0.3s;
  display: grid; place-items: center; color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.cursor__dot span { opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.is-hover .cursor__dot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(27, 49, 112, 0.18); }
.cursor.is-view .cursor__dot { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--olive-deep); }
.cursor.is-view .cursor__dot span { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: transform 0.6s var(--ease-out), background 0.4s, box-shadow 0.4s, height 0.4s;
}
.header::before {
  content: ""; position: absolute; inset: 0; background: rgba(245, 244, 241, 0.78);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  opacity: 0; transition: opacity 0.4s; border-bottom: 1px solid var(--line);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { --header-h: 76px; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--olive-deep); flex-shrink: 0; }
.logo svg { height: 34px; width: auto; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__word b { font-size: 15px; letter-spacing: 0.22em; font-weight: 700; }
.logo__word small { font-size: 9.5px; letter-spacing: 0.34em; color: var(--muted); margin-top: 5px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 38px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease-out); }
.nav__item:hover .nav__link svg, .nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; min-width: 300px; padding-top: 14px;
  transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0.35s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__panel {
  background: var(--paper); border-radius: 18px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(15, 29, 69, 0.28), 0 0 0 1px var(--line);
}
.dropdown__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  transition: background 0.25s;
}
.dropdown__link:hover { background: var(--bg-2); }
.dropdown__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center;
  color: var(--olive); flex-shrink: 0; transition: background 0.25s, color 0.25s;
}
.dropdown__link:hover .dropdown__icon { background: var(--olive-deep); color: var(--paper); }
.dropdown__icon svg { width: 18px; height: 18px; }
.dropdown__text b { display: block; font-size: 15px; font-weight: 600; }
.dropdown__text small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__saved {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background 0.3s;
}
.header__saved:hover { background: rgba(15, 29, 69, 0.06); }
.header__saved svg { width: 22px; height: 22px; }
.header__saved .badge {
  position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px;
  background: var(--brass); color: var(--paper); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform 0.35s var(--ease-out);
}
.header__saved .badge.is-on { transform: scale(1); }

.burger { display: none; width: 48px; height: 48px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; }
.menu-open .burger span { background: var(--paper); }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.menu-open .header .logo { color: var(--paper); }
.menu-open .header .logo__word small { color: var(--olive-soft); }
.menu-open .header::before { opacity: 0 !important; }
.menu-open .header__saved { color: var(--paper); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--olive-deep); color: var(--paper);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 16px) var(--gutter) 28px;
  clip-path: inset(0 0 100% 0); visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu__list { flex: 1; }
.mobile-menu__item { border-bottom: 1px solid var(--line-light); overflow: hidden; }
.mobile-menu__row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; font-size: clamp(28px, 8vw, 40px); font-weight: 600; letter-spacing: -0.03em; text-align: left;
}
.mobile-menu__row svg { width: 22px; height: 22px; transition: transform 0.4s var(--ease-out); }
.mobile-menu__item.is-open .mobile-menu__row svg { transform: rotate(45deg); }
.mobile-menu__sub { height: 0; overflow: hidden; transition: height 0.5s var(--ease-out); }
.mobile-menu__sub a { display: block; padding: 8px 0 8px 2px; font-size: 18px; color: rgba(252, 251, 249, 0.72); }
.mobile-menu__sub a:last-child { padding-bottom: 20px; }
.mobile-menu__sub a:hover { color: var(--brass-2); }
.mobile-menu__foot { padding-top: 28px; display: grid; gap: 18px; }
.mobile-menu__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: rgba(252, 251, 249, 0.7); }
.mobile-menu__contact a:hover { color: var(--paper); }

/* HERO (home) → see luxe.css */

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 180px) 0; }
.section--tight { padding: clamp(60px, 7vw, 110px) 0; }
.section--beige { background: var(--bg-2); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--olive-deep); color: var(--paper); }
.section--dark .lead, .section--dark .muted { color: rgba(252, 251, 249, 0.62); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head__title { max-width: 900px; }
.section-head__title .eyebrow { margin-bottom: 20px; }
.section-head p { max-width: 460px; }

/* Statement */
.statement { padding: clamp(40px, 6vw, 100px) 0 clamp(70px, 9vw, 150px); }
.statement__text {
  font-size: clamp(30px, 4.4vw, 74px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; max-width: 1280px;
}
.statement__text .word { color: rgba(14, 20, 40, 0.14); transition: none; }
.statement__text .serif { font-weight: 400; }
.statement__meta { margin-top: clamp(40px, 5vw, 70px); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -14px; }
.avatars img:first-child { margin-left: 0; }

/* Search bar */
.searchbar {
  position: relative; display: grid; grid-template-columns: auto 1.2fr 1fr 1fr auto; align-items: center;
  background: var(--paper); border-radius: 100px; padding: 8px; gap: 4px;
  box-shadow: 0 30px 70px -30px rgba(15, 29, 69, 0.35), 0 0 0 1px var(--line);
}
.searchbar__tabs { display: flex; background: var(--bg-2); border-radius: 100px; padding: 4px; position: relative; }
.searchbar__tab {
  position: relative; z-index: 1; padding: 0 20px; height: 48px; border-radius: 100px; font-weight: 600; font-size: 15px;
  color: var(--muted); transition: color 0.3s;
}
.searchbar__tab.is-active { color: var(--paper); }
.searchbar__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 100px; background: var(--olive-deep); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.searchbar__field { position: relative; padding: 8px 22px; border-left: 1px solid var(--line); min-width: 0; }
.searchbar__field:first-of-type { border-left: 0; }
.searchbar__field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.searchbar__field input, .searchbar__field select {
  width: 100%; border: 0; background: transparent; outline: none; font-size: 16px; font-weight: 500; padding: 2px 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.searchbar__field input { cursor: text; }
.searchbar__field input::placeholder { color: var(--ink); opacity: 0.85; }
.searchbar .btn { height: 60px; padding: 0 30px; }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 32px); }
.pcard { position: relative; display: block; }
.pcard__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand); }
.pcard__media img { width: 100%; height: 100%; transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 13px; border-radius: 100px;
  background: rgba(252, 251, 249, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.pcard__status {
  position: absolute; bottom: 16px; left: 16px; z-index: 2; padding: 7px 13px; border-radius: 100px;
  background: var(--olive-deep); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(252, 251, 249, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-out), background 0.3s;
}
.fav:hover { transform: scale(1.08); }
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill 0.3s, stroke 0.3s; }
.fav.is-on svg { fill: var(--brass); stroke: var(--brass); }
.pcard__body { padding: 18px 4px 0; }
.pcard__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pcard__price { font-size: clamp(20px, 1.6vw, 24px); font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.pcard__type { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.pcard__title { margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pcard__addr { font-size: 14px; color: var(--muted); }
.pcard__specs { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.pcard__specs span { display: inline-flex; align-items: center; gap: 6px; }
.pcard__specs svg { width: 16px; height: 16px; color: var(--olive-2); }

/* Horizontal featured rail */
.rail { position: relative; overflow: hidden; }
.rail__track { display: flex; gap: clamp(18px, 2vw, 32px); padding: 0 var(--gutter); width: max-content; }
.rail .pcard { width: clamp(300px, 30vw, 470px); flex-shrink: 0; }
.rail__progress { margin: 40px var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.rail__progress span { position: absolute; inset: 0; background: var(--olive-deep); transform-origin: left; transform: scaleX(0); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 38px 28px 8px 0; border-right: 1px solid var(--line-light); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(46px, 6vw, 96px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.stat__num small { font-size: 0.45em; letter-spacing: -0.02em; color: var(--brass-2); margin-left: 4px; }
.stat__label { margin-top: 12px; color: rgba(252, 251, 249, 0.62); font-size: 15px; }

/* Split image section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 120%; position: absolute; top: -10%; left: 0; }
.split__badge {
  position: absolute; left: 24px; bottom: 24px; right: 24px; z-index: 2;
  background: rgba(252, 251, 249, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.split__badge img { width: 48px; height: 48px; border-radius: 50%; position: static; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); isolation: isolate;
}
.service__bg { position: absolute; inset: 0; z-index: -2; }
.service__bg img { width: 100%; height: 100%; transition: transform 1.2s var(--ease-out); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 47, 0.15) 0%, rgba(10, 20, 47, 0.25) 45%, rgba(10, 20, 47, 0.85) 100%); transition: background 0.5s; }
.service:hover .service__bg img { transform: scale(1.07); }
.service__num { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.8; }
.service h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1; font-weight: 650; }
.service p { margin-top: 12px; font-size: 15px; color: rgba(252, 251, 249, 0.78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.5s; }
.service:hover p, .service:focus-visible p { max-height: 140px; opacity: 1; }
.service__go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.service__go svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.service:hover .service__go svg { transform: translateX(5px); }

/* Neighborhood list (hover reveal) */
.hoods { border-top: 1px solid var(--line); }
.hood-row {
  position: relative; display: grid; grid-template-columns: 70px 1.2fr 1fr auto; gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease-out), color 0.4s;
}
.hood-row__num { font-size: 14px; color: var(--muted); font-weight: 600; }
.hood-row__name { font-size: clamp(30px, 4.2vw, 68px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; transition: transform 0.6s var(--ease-out), color 0.4s; }
.hood-row__tag { color: var(--muted); font-size: 16px; }
.hood-row__go { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out); }
.hood-row__go svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform 0.5s var(--ease-out); }
.hood-row:hover .hood-row__name { transform: translateX(18px); color: var(--olive); }
.hood-row:hover .hood-row__go { background: var(--olive-deep); color: var(--paper); }
.hood-row:hover .hood-row__go svg { transform: rotate(0); }
.hood-preview {
  position: fixed; top: 0; left: 0; z-index: 50; width: 300px; height: 380px; border-radius: 18px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.6); box-shadow: 0 40px 80px -30px rgba(15, 29, 69, 0.5);
}
.hood-preview img { width: 100%; height: 100%; position: absolute; inset: 0; }

/* Agents strip */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.acard { display: block; position: relative; }
.acard__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.acard__media img { width: 100%; height: 100%; filter: grayscale(0.3); transition: transform 1.2s var(--ease-out), filter 0.6s; }
.acard:hover .acard__media img { transform: scale(1.05); filter: none; }
.acard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 47, 0.55)); }
.acard__chips { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  background: rgba(252, 251, 249, 0.9); color: var(--ink);
}
.chip--dark { background: var(--olive-deep); color: var(--paper); }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.acard__body { padding: 16px 4px 0; }
.acard__name { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.acard__role { font-size: 14px; color: var(--muted); }

/* Testimonials */
.testi { position: relative; }
.testi__wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.testi__slides { position: relative; min-height: 340px; }
.testi__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.testi__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.testi__quote { font-size: clamp(26px, 3.3vw, 52px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; }
.testi__quote::before { content: "“"; font-family: var(--f-serif); color: var(--brass); font-size: 1.4em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; }
.testi__who { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.testi__who b { display: block; font-size: 17px; }
.testi__who small { color: var(--muted); font-size: 14px; }
.testi__controls { display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.testi__count { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 10px; color: var(--muted); }
.stars { display: flex; gap: 3px; color: var(--brass); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Journal cards */
.jcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 32px); }
.jcard { display: block; }
.jcard__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.jcard__media img { width: 100%; height: 100%; transition: transform 1.2s var(--ease-out); }
.jcard:hover .jcard__media img { transform: scale(1.06); }
.jcard__meta { display: flex; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); font-weight: 500; align-items: center; }
.jcard__meta .chip { padding: 4px 10px; font-size: 12px; }
.jcard__title { margin-top: 10px; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 600; transition: color 0.3s; }
.jcard:hover .jcard__title { color: var(--olive-2); }
.jcard__excerpt { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* CTA banner */
.cta-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: clamp(460px, 62vh, 680px); display: flex; align-items: flex-end; color: var(--paper); isolation: isolate; }
.cta-banner__bg { position: absolute; inset: -12% 0; z-index: -2; }
.cta-banner__bg img { width: 100%; height: 100%; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 20, 47, 0.82) 0%, rgba(10, 20, 47, 0.35) 60%, rgba(10, 20, 47, 0.1) 100%); }
.cta-banner__inner { padding: clamp(28px, 5vw, 80px); max-width: 820px; }
.cta-banner__inner p { margin: 20px 0 32px; color: rgba(252, 251, 249, 0.75); font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; }
.cta-banner__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track { display: inline-flex; gap: 48px; align-items: center; will-change: transform; }
.marquee__item { font-size: clamp(36px, 5.5vw, 88px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: center; gap: 48px; }
.marquee__item .serif { color: var(--olive-2); }
.marquee__item i { width: 16px; height: 16px; border-radius: 50%; background: var(--brass); display: inline-block; }

/* ---------- Footer ---------- */
.footer { background: var(--olive-night); color: var(--paper); padding: clamp(70px, 8vw, 120px) 0 0; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 0.6fr 0.35fr; gap: clamp(30px, 5vw, 80px); }
.footer__news h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.05; }
.footer__form { margin-top: 30px; position: relative; max-width: 860px; border-bottom: 1px solid rgba(252, 251, 249, 0.3); display: flex; align-items: center; transition: border-color 0.3s; }
.footer__form:focus-within { border-color: var(--brass-2); }
.footer__form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 16px 0; font-size: 17px; color: var(--paper); }
.footer__form input::placeholder { color: rgba(252, 251, 249, 0.5); }
.footer__form button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: background 0.3s, color 0.3s; }
.footer__form button:hover { background: var(--paper); color: var(--ink); }
.footer__form button svg { width: 22px; height: 22px; }
.footer__info { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__info small { display: block; font-size: 13px; color: rgba(252, 251, 249, 0.5); margin-bottom: 14px; font-weight: 500; }
.footer__info a, .footer__info p { font-size: 17px; font-weight: 500; line-height: 1.5; }
.footer__info a:hover { color: var(--brass-2); }
.footer__nav a { display: block; font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.55; transition: color 0.3s, transform 0.4s var(--ease-out); }
.footer__nav a:hover { color: var(--brass-2); transform: translateX(6px); }
.footer__social a { display: block; font-size: 18px; font-weight: 500; line-height: 2.4; transition: color 0.3s; }
.footer__social a:hover { color: var(--brass-2); }
.footer__logo { margin-top: clamp(60px, 8vw, 120px); color: var(--paper); }
.footer__logo svg { width: 100%; height: auto; }
.footer__logo .ftr-letter { transform-box: fill-box; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 26px; padding: 30px 0 34px;
  font-size: 14px; color: rgba(252, 251, 249, 0.5);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer__legal a:hover { color: var(--paper); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(50px, 8vw, 120px)) 0 clamp(40px, 5vw, 70px); position: relative; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-hero p.lead { max-width: 520px; }
.page-hero__media { margin-top: clamp(40px, 5vw, 70px); border-radius: var(--radius); overflow: hidden; height: clamp(320px, 62vh, 720px); position: relative; }
.page-hero__media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: 0.5; }

/* ---------- Listings page ---------- */
.filters {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; background: rgba(245, 244, 241, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
  transition: top 0.6s var(--ease-out);
}
body.header-hidden .filters { top: 0; }
.filters__inner { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 100px; padding: 4px; }
.seg button { height: 40px; padding: 0 18px; border-radius: 100px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background 0.3s, color 0.3s; }
.seg button.is-active { background: var(--olive-deep); color: var(--paper); }
.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select, .input {
  height: 48px; padding: 0 40px 0 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--paper);
  font-size: 14.5px; font-weight: 500; appearance: none; -webkit-appearance: none; outline: none; cursor: pointer; transition: border-color 0.3s;
}
.select select:hover, .select select:focus, .input:focus { border-color: var(--olive-2); }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.input { padding: 0 18px; cursor: text; }
.filters__search { position: relative; flex: 1; min-width: 200px; }
.filters__search input { width: 100%; padding-left: 44px; }
.filters__search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.filters__toggle { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 34px 0 26px; flex-wrap: wrap; }
.results-bar b { font-size: 18px; }
.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--sand-2); border-radius: var(--radius); }
.empty h3 { font-size: 26px; letter-spacing: -0.02em; }
.empty p { color: var(--muted); margin: 8px 0 24px; }

/* ---------- Property detail ---------- */
.pd-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(380px, 70vh, 760px); border-radius: var(--radius); overflow: hidden; }
.pd-gallery button { position: relative; overflow: hidden; background: var(--sand); }
.pd-gallery button:first-child { grid-row: span 2; }
.pd-gallery img { width: 100%; height: 100%; transition: transform 1s var(--ease-out); }
.pd-gallery button:hover img { transform: scale(1.04); }
.pd-gallery__more { position: absolute; right: 16px; bottom: 16px; }
.pd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.pd-price { font-size: clamp(34px, 4vw, 60px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.pd-specs { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 36px; overflow: hidden; }
.pd-spec { padding: 22px; border-right: 1px solid var(--line); }
.pd-spec:last-child { border-right: 0; }
.pd-spec small { display: block; color: var(--muted); font-size: 13px; }
.pd-spec b { font-size: 22px; letter-spacing: -0.02em; }
.pd-layout { display: grid; grid-template-columns: 1fr 420px; gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 5vw, 70px); align-items: start; }
.pd-section { padding: 36px 0; border-top: 1px solid var(--line); }
.pd-section:first-child { border-top: 0; padding-top: 0; }
.pd-section h3 { margin-bottom: 18px; }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.amenities li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.amenities li svg { width: 20px; height: 20px; color: var(--olive-2); flex-shrink: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 380px; background: var(--bg-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.sidecard { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(15, 29, 69, 0.4); }
.sidecard__agent { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sidecard__agent img { width: 64px; height: 64px; border-radius: 50%; }
.sidecard__agent b { display: block; font-size: 18px; }
.sidecard__agent small { color: var(--muted); }
.sidecard__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10, 20, 47, 0.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; color: var(--paper); border-color: var(--line-light); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--paper); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  font-size: 15.5px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none;
}
.field textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive-2); box-shadow: 0 0 0 4px rgba(36, 73, 160, 0.12); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field__err { display: none; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.field.is-error .field__err { display: block; }
.field--select::after { content: ""; position: absolute; right: 18px; bottom: 22px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--olive); margin-top: 2px; flex-shrink: 0; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-on { display: block; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--olive-deep); color: var(--paper); display: grid; place-items: center; }
.form-success__icon svg { width: 28px; height: 28px; }
.section--dark .field label { color: var(--paper); }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: rgba(252, 251, 249, 0.06); border-color: var(--line-light); color: var(--paper); }
.section--dark .field select option { color: var(--ink); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 47, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 26px; display: grid; grid-template-columns: 0.9fr 1fr;
}
.modal__dialog--sm { max-width: 540px; grid-template-columns: 1fr; }
.modal__media { position: relative; min-height: 100%; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 20, 47, 0.7)); }
.modal__media-text { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; color: var(--paper); }
.modal__body { padding: clamp(26px, 4vw, 44px); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--paper); }
.tabs { display: flex; gap: 4px; background: var(--bg-2); border-radius: 100px; padding: 4px; margin: 22px 0 24px; }
.tabs button { flex: 1; height: 44px; border-radius: 100px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background 0.3s, color 0.3s; }
.tabs button.is-active { background: var(--olive-deep); color: var(--paper); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 500; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 100px; background: var(--olive-deep); color: var(--paper);
  box-shadow: 0 20px 40px -14px rgba(10, 20, 47, 0.5); font-size: 15px; font-weight: 500;
}
.toast i { width: 30px; height: 30px; border-radius: 50%; background: var(--brass); display: grid; place-items: center; flex-shrink: 0; }
.toast i svg { width: 16px; height: 16px; }

/* ---------- Agents page ---------- */
.agent-hero { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.agent-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.agent-hero__media img { width: 100%; height: 100%; }
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0; }
.agent-stats div { padding: 20px 0; }
.agent-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.agent-stats b { display: block; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.agent-stats small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Neighborhoods page ---------- */
.hood-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 30px); }
.hood-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: clamp(380px, 46vw, 620px); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 3vw, 40px); isolation: isolate; }
.hood-card:nth-child(4n+2), .hood-card:nth-child(4n+3) { min-height: clamp(380px, 38vw, 520px); }
.hood-card__bg { position: absolute; inset: 0; z-index: -2; }
.hood-card__bg img { width: 100%; height: 100%; transition: transform 1.4s var(--ease-out); }
.hood-card:hover .hood-card__bg img { transform: scale(1.06); }
.hood-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 47, 0) 30%, rgba(10, 20, 47, 0.85)); }
.hood-card h3 { font-size: clamp(36px, 4.4vw, 72px); letter-spacing: -0.045em; line-height: 0.95; font-weight: 650; }
.hood-card p { margin-top: 10px; color: rgba(252, 251, 249, 0.78); max-width: 460px; }
.hood-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hood-card__meta .chip { background: rgba(252, 251, 249, 0.14); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hood-card__top { position: absolute; top: clamp(22px, 3vw, 40px); left: clamp(22px, 3vw, 40px); right: clamp(22px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); position: relative; min-height: 260px; display: flex; flex-direction: column; }
.step__num { font-family: var(--f-serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--brass); }
.step h4 { margin-top: auto; padding-top: 30px; font-size: 22px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.section--dark .step { background: rgba(252, 251, 249, 0.05); box-shadow: 0 0 0 1px var(--line-light); }
.section--dark .step p { color: rgba(252, 251, 249, 0.62); }

/* Value grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 36px 30px 36px 0; border-bottom: 1px solid var(--line); }
.value + .value { padding-left: 30px; border-left: 1px solid var(--line); }
.value svg { width: 34px; height: 34px; color: var(--olive-2); }
.value h4 { margin: 26px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.value p { color: var(--muted); }

/* Timeline */
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line-light); }
.tl-item b { font-size: clamp(40px, 4.6vw, 72px); letter-spacing: -0.05em; font-weight: 650; line-height: 1; color: var(--brass-2); }
.tl-item h4 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
.tl-item p { color: rgba(252, 251, 249, 0.62); max-width: 640px; }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.02em; }
.acc__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: transform 0.5s var(--ease-out), background 0.3s, color 0.3s; }
.acc__icon svg { width: 16px; height: 16px; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--olive-deep); color: var(--paper); border-color: var(--olive-deep); }
.acc__panel { height: 0; overflow: hidden; transition: height 0.55s var(--ease-out); }
.acc__panel p { padding: 0 60px 28px 0; color: var(--muted); max-width: 820px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.calc__panel { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: 0 0 0 1px var(--line); }
.range { margin-bottom: 30px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.range__top label { font-weight: 600; }
.range__top output { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.range input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--olive) var(--p, 50%), var(--sand) var(--p, 50%)); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 6px solid var(--olive-deep); cursor: grab; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 6px solid var(--olive-deep); cursor: grab; }
.calc__result { background: var(--olive-deep); color: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.calc__emi { font-size: clamp(44px, 5vw, 76px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; margin: 10px 0 30px; }
.calc__rows div { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-light); }
.calc__rows span { color: rgba(252, 251, 249, 0.62); }
.calc__bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin: 24px 0 10px; background: var(--brass); }
.calc__bar span { background: var(--paper); transition: width 0.6s var(--ease-out); }
.calc__legend { display: flex; gap: 18px; font-size: 13px; color: rgba(252, 251, 249, 0.62); }
.calc__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* Doc cards (paperwork) */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc { background: var(--paper); border-radius: var(--radius); padding: 30px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.doc:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(15, 29, 69, 0.35); }
.doc__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; color: var(--olive); }
.doc__icon svg { width: 24px; height: 24px; }
.doc h4 { font-size: 21px; letter-spacing: -0.02em; }
.doc ul { color: var(--muted); font-size: 14.5px; display: grid; gap: 6px; }
.doc ul li { display: flex; gap: 8px; }
.doc ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-top: 9px; flex-shrink: 0; }
.doc__actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Article */
.article { max-width: 780px; margin: 0 auto; }
.article p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; color: #2c3346; margin-bottom: 24px; }
.article h2 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.03em; margin: 48px 0 16px; line-height: 1.1; }
.article p:first-child::first-letter { font-family: var(--f-serif); font-size: 4.4em; float: left; line-height: 0.85; margin: 6px 12px 0 0; color: var(--olive); }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Account */
.account-empty { padding: 60px 30px; text-align: center; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.list-rows { display: grid; gap: 10px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--paper); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); flex-wrap: wrap; }

/* Legal */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 4px; }
.legal__nav a { padding: 10px 14px; border-radius: 10px; font-weight: 500; color: var(--muted); transition: background 0.3s, color 0.3s; }
.legal__nav a:hover, .legal__nav a.is-active { background: var(--bg-2); color: var(--ink); }
.legal__body section { padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.legal__body h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; margin-bottom: 18px; }
.legal__body p { color: #2c3346; margin-bottom: 14px; max-width: 760px; }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 30px; border-radius: var(--radius); background: rgba(252, 251, 249, 0.05); box-shadow: 0 0 0 1px var(--line-light); }
.perk b { font-size: clamp(36px, 3.4vw, 54px); letter-spacing: -0.04em; color: var(--brass-2); display: block; line-height: 1; }
.perk h4 { margin: 18px 0 8px; font-size: 20px; }
.perk p { color: rgba(252, 251, 249, 0.62); font-size: 15px; }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.job h4 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; }
.job p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 100px); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.contact-card:hover { transform: translateX(6px); box-shadow: 0 0 0 1px var(--olive-soft); }
.contact-card .doc__icon { flex-shrink: 0; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card b { font-size: 17px; word-break: break-word; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: var(--brass); color: var(--paper); display: grid; place-items: center;
  box-shadow: 0 16px 34px -12px rgba(10, 20, 47, 0.6), 0 0 0 4px rgba(252, 251, 249, 0.25); transition: transform 0.4s var(--ease-out), background 0.3s;
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); background: var(--olive-2); }
.wa-float svg { width: 26px; height: 26px; }

/* Reveal defaults (JS adds animation; without JS content stays visible) */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .reveal-img { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav { gap: 20px; }
  .nav__link { font-size: 15px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 380px; }
  .service p { max-height: none; opacity: 1; }
  .pd-specs { grid-template-columns: repeat(3, 1fr); }
  .pd-spec:nth-child(3) { border-right: 0; }
  .pd-spec:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .nav, .header__signin { display: none; }
  .burger { display: block; }
  .cards, .jcards { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .searchbar { grid-template-columns: 1fr 1fr; border-radius: 28px; padding: 12px; gap: 10px; }
  .searchbar__tabs { grid-column: 1 / -1; justify-self: start; }
  .searchbar__field { border: 1px solid var(--line) !important; border-radius: 16px; padding: 10px 16px; }
  .searchbar__field--wide { grid-column: 1 / -1; }
  .searchbar .btn { grid-column: 1 / -1; width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
  .pd-layout { grid-template-columns: 1fr; }
  .sidecard { position: relative; top: 0; }
  .split, .agent-hero, .contact-grid, .testi__wrap, .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .doc-grid, .perks { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: relative; top: 0; display: flex; flex-wrap: wrap; }
  .modal__dialog { grid-template-columns: 1fr; max-width: 560px; }
  .modal__media { display: none; }
  .hood-row { grid-template-columns: 50px 1fr auto; }
  .hood-row__tag { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .header__saved { width: 44px; height: 44px; }
  .logo svg { height: 30px; }
  .logo__word b { font-size: 13px; }
  .cards, .jcards, .agents-grid, .hood-cards, .services, .steps, .doc-grid, .perks, .values { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .acard__name { font-size: 17px; }
  .acard__role { font-size: 13px; }
  .acard__chips { display: none; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar__tabs { justify-self: stretch; }
  .searchbar__tab { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 22px 0 !important; border-bottom: 1px solid var(--line-light); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .stat:nth-child(2n+1) { padding-left: 0 !important; }
  .rail .pcard { width: 82vw; }
  .rail__track { overflow-x: auto; scroll-snap-type: x mandatory; width: auto; padding-bottom: 6px; scrollbar-width: none; }
  .rail__track::-webkit-scrollbar { display: none; }
  .rail .pcard { scroll-snap-align: center; }
  .rail__progress { display: none; }
  .service { min-height: 340px; }
  .value, .value + .value { padding: 28px 0; border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer__info { grid-template-columns: 1fr; gap: 22px; }
  .footer__legal { flex-direction: column; }
  .filters__toggle { display: inline-flex; }
  .filters__more { display: none; width: 100%; gap: 10px; flex-wrap: wrap; }
  .filters__more.is-open { display: flex; }
  .filters__more .select, .filters__more .select select { width: 100%; }
  .filters__search { min-width: 0; flex-basis: 100%; order: -1; }
  .pd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; }
  .pd-gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .pd-gallery button:nth-child(n+4) { display: none; }
  .pd-specs { grid-template-columns: repeat(2, 1fr); }
  .pd-spec { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .pd-spec:nth-child(2n) { border-right: 0 !important; }
  .pd-spec:nth-last-child(-n+2) { border-bottom: 0; }
  .amenities { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .agent-stats { grid-template-columns: 1fr 1fr 1fr; }
  .agent-stats div + div { padding-left: 12px; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .hood-row { grid-template-columns: 34px 1fr auto; gap: 14px; }
  .hood-row__go { width: 44px; height: 44px; }
  .testi__slides { min-height: 380px; }
  .cta-banner::after { background: linear-gradient(180deg, rgba(10, 20, 47, 0.2) 0%, rgba(10, 20, 47, 0.85) 70%); }
  .cta-banner__btns .btn { flex: 1; }
  .acc__panel p { padding-right: 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog { border-radius: 24px 24px 0 0; max-height: 92svh; }
}
@media (max-width: 420px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__nav a { font-size: 22px; }
  .agent-stats b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
}

/* word mask (split headings) */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; padding-right: 0.02em; }
.wm__in { display: inline-block; will-change: transform; }
.footer__logo { display: block; }
.rail .pcard__media { aspect-ratio: 4 / 3.7; }
.rail .pcard { width: clamp(290px, 27vw, 430px); }
@media (max-width: 760px) { .rail .pcard { width: 82vw; } }
@media (min-width: 761px) { .filters__more { display: flex; gap: 10px; flex-wrap: wrap; } }
.select select:disabled { opacity: 0.55; cursor: not-allowed; }
a.split { color: inherit; }
a.split:hover .h2 { color: var(--olive-2); }
a.split .split__media img { transition: transform 1.2s var(--ease-out); }
