/* ============================================================
   Orvessa Estates — design system
   Midnight-green base · champagne gold accent · editorial serif
   ============================================================ */

:root {
  /* color */
  --ink: #0A0F0C;
  --forest: #0E1613;
  --panel: #141E19;
  --panel-2: #1B2821;
  --bone: #F2EEE4;
  --mist: #9BA49C;
  --gold: #C6A664;
  --gold-200: #E6D3A3;
  --gold-600: #A4824A;
  --line: rgba(242, 238, 228, .12);
  --line-strong: rgba(242, 238, 228, .22);
  --scrim: linear-gradient(to top, rgba(5, 8, 6, .92) 0%, rgba(5, 8, 6, .45) 38%, rgba(5, 8, 6, .12) 70%, rgba(5, 8, 6, 0) 100%);

  /* 8px spacing scale */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px;
  --s-12: 96px; --s-16: 128px;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --rhythm: clamp(5.5rem, 10vw, 9rem);

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Ethiopic faces only supply Ge'ez glyphs (Latin falls through to the primary face) */
  --font-serif: "Fraunces", "Noto Serif Ethiopic", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", "Noto Sans Ethiopic", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, select, button { font-family: var(--font-sans); }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography ---- */
.display {
  font-family: var(--font-serif);
  font-weight: 460;
  line-height: 1.0;
  letter-spacing: -.025em;
  font-optical-sizing: auto;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 460; line-height: 1.04; letter-spacing: -.02em; font-optical-sizing: auto; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.serif-italic { font-style: italic; }
.muted { color: var(--mist); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--rhythm); }
.section--forest { background: var(--forest); }

/* ---- Numbered section header (signature detail #1) ---- */
.sec-head { margin-bottom: var(--s-8); }
.sec-head__rule {
  display: flex; align-items: baseline; gap: var(--s-3);
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
}
.sec-head__no { font-family: var(--font-serif); font-size: 1rem; color: var(--gold); font-style: italic; }
.sec-head__label { flex: 1; }
.sec-head__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-top: var(--s-4);
  max-width: 16ch;
}
.sec-head__title .u { position: relative; }
.sec-head__title .u::after {
  content: ""; position: absolute; left: 0; bottom: .08em; height: 2px;
  width: 0; background: var(--gold); transition: width 1s var(--ease) .2s;
}
.reveal.in .sec-head__title .u::after { width: 100%; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; transition: all .4s var(--ease); white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-200); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(198, 166, 100, .6); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(198, 166, 100, .06); }
.btn-text { padding: 0; border-radius: 0; color: var(--gold); letter-spacing: .12em; }
.btn-text .arw { transition: transform .4s var(--ease); }
.btn-text:hover .arw { transform: translateX(6px); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---- Navbar ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  isolation: isolate;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* top scrim keeps the brand + links legible over bright hero imagery while transparent */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180%; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 8, 6, .78) 0%, rgba(5, 8, 6, .42) 45%, rgba(5, 8, 6, 0) 100%);
  pointer-events: none; opacity: 1; transition: opacity .5s var(--ease);
}
.nav.scrolled::before { opacity: 0; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-3); gap: var(--s-4);
}
.nav.scrolled {
  background: rgba(10, 15, 12, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.scrolled .nav__inner { padding-block: var(--s-2); }

/* scroll-progress hairline along the nav's bottom edge */
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.nav__progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--gold-600), var(--gold), var(--gold-200)); }

.brand { display: flex; align-items: center; gap: .72em; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: .005em; color: var(--bone); text-shadow: 0 1px 20px rgba(0, 0, 0, .5); }
.brand .mark { width: 32px; height: 32px; color: var(--gold); flex: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); transition: transform .6s var(--ease); }
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); }
.brand span { display: block; line-height: 1; }
.brand small { display: block; font-family: var(--font-sans); font-size: .58rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-200); margin-top: 5px; }
.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a { font-size: .82rem; font-weight: 500; letter-spacing: .06em; color: var(--bone); position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: var(--s-2); }
/* Language switch — a small pill echoing the hero's Buy/Rent toggle */
.lang-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10,15,12,.35); backdrop-filter: blur(6px); }
.lang-toggle button { padding: .42em .85em; font-size: .72rem; font-weight: 600; letter-spacing: .08em; line-height: 1.2; border-radius: 999px; color: var(--bone); transition: all .35s var(--ease); }
.lang-toggle button:hover { color: var(--gold); }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--bone); }
.nav__toggle svg { width: 24px; height: 24px; }
/* mobile menu is hidden on desktop; the 760px breakpoint turns it into the overlay */
.mobile-menu { display: none; }

/* ---- Kinetic marquee band ---- */
.marquee-band { padding-block: var(--s-5); border-block: 1px solid var(--line); background: var(--forest); overflow: hidden; }
.marquee { display: flex; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: var(--s-4); white-space: nowrap; padding-left: var(--s-4); animation: marquee 36s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-serif); font-weight: 460; font-size: clamp(1.8rem, 4.5vw, 3.4rem); letter-spacing: -.02em; color: var(--bone); opacity: .9; }
.marquee__track em { color: var(--gold); font-style: normal; font-size: clamp(1rem, 2vw, 1.5rem); transform: translateY(-.12em); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; left: 0; right: 0; top: -9%; height: 118%; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.hero__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(5,8,6,.7) 0%, rgba(5,8,6,.2) 45%, rgba(5,8,6,0) 70%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: var(--s-8); padding-top: 128px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .8em; margin-bottom: var(--s-3); animation: heroFade .9s var(--ease-out) .15s both; }
.hero__eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--gold); transform-origin: left; animation: heroLine 1s var(--ease-out) .5s both; }

/* word-by-word mask reveal — pure CSS so it never depends on JS */
.hero__title { font-size: clamp(3rem, 9vw, 7rem); max-width: 15ch; margin-bottom: var(--s-3); }
.hero__title .hl { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em; margin: -.14em -.04em; }
.hero__title .hw { display: inline-block; transform: translateY(118%); animation: wordUp 1.05s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 95ms + .3s); }
.hero__title .hw.em { color: var(--gold-200); font-style: italic; }
.hero__title em { color: var(--gold-200); }
@keyframes wordUp { to { transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { max-width: 44ch; color: var(--bone); font-size: 1.05rem; opacity: .9; margin-bottom: var(--s-5); animation: heroFade 1s var(--ease-out) .85s both; }
.hero__scroll { position: absolute; right: var(--pad); bottom: var(--s-5); z-index: 2; display: flex; align-items: center; gap: .8em; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); writing-mode: vertical-rl; }
.hero__scroll span { height: 48px; width: 1px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- Floating search bar (signature detail #2) ---- */
.searchbar {
  position: relative; z-index: 3; margin-top: var(--s-5);
  background: rgba(20, 30, 25, .55);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--s-3);
  max-width: 920px;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
  animation: heroFade 1s var(--ease-out) 1.05s both;
}
.searchbar:focus-within { transform: translateY(-3px); box-shadow: 0 30px 70px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(198,166,100,.3); }
.seg { display: inline-flex; background: rgba(10,15,12,.55); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: var(--s-3); }
.seg button { padding: .5em 1.4em; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; color: var(--mist); transition: all .35s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 600; }
.searchbar__fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: var(--s-2); align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); padding-left: 2px; }
.field select, .field input {
  width: 100%; background: rgba(10,15,12,.5); border: 1px solid var(--line);
  color: var(--bone); padding: .8em .9em; border-radius: var(--radius);
  font-size: .92rem; transition: border-color .3s var(--ease), background .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field.sel { position: relative; }
.field.sel::after { content: ""; position: absolute; right: 14px; bottom: 18px; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
.field select:hover, .field input:hover { border-color: var(--line-strong); }
.field select:focus, .field input:focus { border-color: var(--gold); background: rgba(10,15,12,.75); outline: none; }
.field option { background: var(--panel); color: var(--bone); }
.searchbar .btn { height: 48px; }

/* ---- Property grid & cards (signature detail #3) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-3); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1b2821, #0e1613); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,6,.55), transparent 55%); }
/* gold corner frame draws in on hover */
.card__frame { position: absolute; inset: 12px; pointer-events: none; z-index: 2; }
.card__frame::before, .card__frame::after { content: ""; position: absolute; width: 26px; height: 26px; transition: all .5s var(--ease); opacity: 0; }
.card__frame::before { top: 0; left: 0; border-top: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.card__frame::after { bottom: 0; right: 0; border-bottom: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.card:hover .card__frame::before, .card:hover .card__frame::after { opacity: 1; width: 40px; height: 40px; }

.card__tag { position: absolute; top: 16px; left: 16px; z-index: 3; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px; background: rgba(10,15,12,.7); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.card__tag--featured { color: var(--gold); border-color: rgba(198,166,100,.5); }
.card__tag--new { color: var(--bone); }
.fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: rgba(10,15,12,.6); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--bone); transition: all .35s var(--ease); }
.fav svg { width: 19px; height: 19px; transition: all .35s var(--ease); }
.fav:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
.fav[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.fav[aria-pressed="true"] svg { fill: var(--gold); animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.card__body { padding-top: var(--s-2); }
.card__loc { display: flex; align-items: center; gap: .5em; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.card__loc svg { width: 13px; height: 13px; color: var(--gold); }
.card__title { font-size: 1.5rem; margin-top: 6px; transition: color .3s var(--ease); }
.card:hover .card__title { color: var(--gold-200); }
.card__price { display: flex; align-items: baseline; gap: .6em; margin-top: 10px; }
.card__price b { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.card__price .usd { font-size: .82rem; color: var(--mist); }
.card__price .per { font-size: .72rem; color: var(--mist); }
.card__meta { display: flex; gap: var(--s-3); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: .82rem; color: var(--mist); }
.card__meta span { display: flex; align-items: center; gap: .45em; }
.card__meta svg { width: 15px; height: 15px; color: var(--gold-600); }
.card__link { position: absolute; inset: 0; z-index: 4; }
/* keep the favourite button clickable above the full-card overlay */
.fav { z-index: 5; }

/* list view */
.cards.is-list { grid-template-columns: 1fr; gap: var(--s-3); }
.cards.is-list .card { flex-direction: row; gap: var(--s-4); align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-2); }
.cards.is-list .card__media { aspect-ratio: 16 / 10; flex: 0 0 38%; }
.cards.is-list .card__body { padding: var(--s-2) var(--s-3) var(--s-2) 0; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.cards.is-list .card__blurb { color: var(--mist); font-size: .92rem; margin-top: 10px; max-width: 52ch; }
.card__blurb { display: none; }

/* ---- Listings controls ---- */
.filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: var(--s-2); align-items: end; padding: var(--s-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: var(--s-4); }
.filters .field.range { gap: 10px; }
.range__row { display: flex; align-items: center; gap: 10px; }
.range__row span { color: var(--mist); }
.btn-reset { align-self: end; height: 46px; }
.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.listing-count { font-size: .9rem; color: var(--mist); }
.listing-count b { color: var(--bone); font-family: var(--font-serif); font-size: 1.3rem; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.view-toggle button { width: 42px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--mist); transition: all .3s var(--ease); }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: var(--panel-2); color: var(--gold); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort select { background: var(--panel); border: 1px solid var(--line); color: var(--bone); padding: .6em 2.2em .6em .9em; border-radius: var(--radius); -webkit-appearance: none; appearance: none; }

.empty { text-align: center; padding: var(--s-10) var(--s-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty svg { width: 54px; height: 54px; color: var(--gold-600); margin: 0 auto var(--s-3); opacity: .7; }
.empty h3 { font-size: 1.8rem; margin-bottom: 10px; }
.empty p { color: var(--mist); margin-bottom: var(--s-3); }

/* skeleton loading */
.skeleton .card__media, .skeleton .sk-line { position: relative; overflow: hidden; }
.sk-line { height: 14px; border-radius: 4px; background: var(--panel-2); margin-top: 10px; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.skeleton .card__media::before, .sk-line::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(242,238,228,.06), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---- Property modal ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,7,5,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.modal.open .modal__overlay { opacity: 1; }
.modal__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(960px, 100%);
  background: var(--ink); border-left: 1px solid var(--line); overflow-y: auto;
  transform: translateX(40px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
  box-shadow: -40px 0 80px -30px rgba(0,0,0,.8);
}
.modal.open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: sticky; top: 0; margin-left: auto; z-index: 5; display: flex; align-items: center; gap: .6em; padding: var(--s-2) var(--s-3); background: rgba(10,15,12,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); width: 100%; justify-content: flex-end; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.modal__close svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.modal__close:hover { color: var(--gold); }
.modal__close:hover svg { transform: rotate(90deg); }
.pm { padding: var(--s-4) var(--s-5) var(--s-10); }
.pm__gallery { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
.pm__hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, #1b2821, #0e1613); }
.pm__hero img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.pm__thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 1px solid transparent; opacity: .6; transition: all .35s var(--ease); background: var(--panel); }
.pm__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumb:hover { opacity: 1; }
.pm__thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.pm__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }
.pm__title { font-size: clamp(2rem, 4vw, 2.8rem); }
.pm__loc { color: var(--mist); display: flex; align-items: center; gap: .5em; margin-top: 6px; }
.pm__loc svg { width: 15px; height: 15px; color: var(--gold); }
.pm__price b { font-family: var(--font-serif); font-size: 2rem; display: block; text-align: right; }
.pm__price .usd { color: var(--mist); font-size: .9rem; }

.pm__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-5); border-block: 1px solid var(--line); padding-block: var(--s-3); }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact .k { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.fact .v { font-family: var(--font-serif); font-size: 1.5rem; display: flex; align-items: center; gap: .4em; }
.fact .v svg { width: 18px; height: 18px; color: var(--gold); }
.pm__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
.pm h3.sub { font-size: 1.4rem; margin-bottom: var(--s-2); }
.pm__desc p { color: var(--mist); margin-bottom: var(--s-3); }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); }
.amenity { display: flex; align-items: center; gap: .7em; font-size: .92rem; }
.amenity svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.map { margin-top: var(--s-5); position: relative; aspect-ratio: 16/7; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background:
  radial-gradient(circle at 60% 40%, rgba(198,166,100,.08), transparent 60%),
  repeating-linear-gradient(0deg, rgba(242,238,228,.04) 0 1px, transparent 1px 44px),
  repeating-linear-gradient(90deg, rgba(242,238,228,.04) 0 1px, transparent 1px 44px),
  var(--forest); display: grid; place-items: center; }
.map__pin { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gold); }
.map__pin svg { width: 34px; height: 34px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); animation: bob 3s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.map__pin span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }

/* aside: agent card + calculator */
.pm__aside { position: sticky; top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-3); }
.agent-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-3); }
.agent-card__top { display: flex; align-items: center; gap: var(--s-2); }
.agent-card__top img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.agent-card__top .r { font-size: .74rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.agent-card__top b { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; }
.agent-card__actions { display: grid; gap: 10px; margin-top: var(--s-3); }
.agent-card__actions .btn { width: 100%; }

/* mortgage calculator */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-3); }
.calc h4 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; margin-bottom: var(--s-2); }
.calc .field { margin-bottom: var(--s-2); }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--line-strong); border-radius: 999px; margin-top: 10px; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px rgba(198,166,100,.18); transition: transform .2s var(--ease); }
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 999px; background: var(--gold); cursor: pointer; }
.calc .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.calc .lbl b { color: var(--bone); font-family: var(--font-serif); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.calc__out { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.calc__out .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.calc__out .v { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-200); }
.calc__note { font-size: .7rem; color: var(--mist); margin-top: 10px; opacity: .8; }

/* ---- Neighborhoods ---- */
.hoods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.hood { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 340px; display: flex; align-items: flex-end; padding: var(--s-3); border: 1px solid var(--line); isolation: isolate; }
.hood:nth-child(3n+2) { transform: translateY(var(--s-6)); }
.hood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.hood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,8,6,.94), rgba(5,8,6,.3) 70%); }
.hood:hover img { transform: scale(1.07); }
.hood__name { font-size: 1.9rem; }
.hood__blurb { color: var(--mist); font-size: .9rem; margin-top: 8px; max-width: 34ch; }
.hood__avg { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.hood__avg b { color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0; }

/* ---- Stats band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; color: var(--gold-200); font-weight: 500; }
.stat__label { color: var(--mist); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-top: var(--s-2); }

/* ---- Services (numbered reveal rows) ---- */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 90px 1fr 1.4fr auto; gap: var(--s-3); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease); }
.svc__row::before { content: ""; position: absolute; left: -100%; right: 100%; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(198,166,100,.08), transparent); transition: inset .6s var(--ease); z-index: -1; }
.svc__row:hover::before { left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); }
.svc__row:hover { padding-left: var(--s-3); }
.svc__no { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.svc__title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 500; transition: color .4s var(--ease); }
.svc__row:hover .svc__title { color: var(--gold-200); }
.svc__text { color: var(--mist); font-size: .95rem; max-width: 46ch; }
.svc__arw { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mist); transition: all .4s var(--ease); }
.svc__arw svg { width: 20px; height: 20px; }
.svc__row:hover .svc__arw { border-color: var(--gold); color: var(--gold); transform: rotate(-45deg); }

/* ---- Agents ---- */
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.agent { position: relative; }
.agent__photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3/4; background: linear-gradient(135deg, #1b2821, #0e1613); }
.agent__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: transform 1s var(--ease), filter .6s var(--ease); }
.agent:hover .agent__photo img { transform: scale(1.05); filter: grayscale(0); }
.agent__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,8,6,.7), transparent 50%); }
.agent__name { font-size: 1.5rem; margin-top: var(--s-2); }
.agent__role { color: var(--gold); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.agent__langs { color: var(--mist); font-size: .84rem; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.agent__langs span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .72rem; }

/* ---- Testimonials slider ---- */
.quotes { position: relative; max-width: 980px; margin-inline: auto; text-align: center; }
.quote-mark { font-family: var(--font-serif); font-size: 7rem; line-height: .5; color: var(--gold); opacity: .35; height: 48px; }
.slides { position: relative; min-height: 300px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.slide.active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.slide blockquote { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.28; font-weight: 500; letter-spacing: -.01em; }
.slide__by { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-4); }
.slide__by img { width: 54px; height: 54px; border-radius: 999px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-2); }
.slide__by b { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; }
.slide__by .d { color: var(--mist); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }
.quotes__dots { display: flex; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); transition: all .35s var(--ease); }
.dot[aria-pressed="true"] { background: var(--gold); width: 26px; }
.q-arrow { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--bone); transition: all .35s var(--ease); }
.q-arrow:hover { border-color: var(--gold); color: var(--gold); }
.q-arrow svg { width: 18px; height: 18px; }

/* ---- Sell CTA ---- */
.sell { position: relative; overflow: hidden; }
.sell__bg { position: absolute; left: 0; right: 0; top: -9%; height: 118%; z-index: -2; }
.sell__bg img { width: 100%; height: 100%; object-fit: cover; }
.sell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5,8,6,.95) 30%, rgba(5,8,6,.6) 70%, rgba(5,8,6,.4)); }
.sell__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.sell h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 12ch; }
.sell p { color: var(--mist); max-width: 42ch; margin-top: var(--s-3); }
.vform { background: rgba(20,30,25,.6); backdrop-filter: blur(16px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--s-4); box-shadow: var(--shadow); }
.vform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.vform .field { margin-bottom: var(--s-2); }
.vform .btn { width: 100%; margin-top: var(--s-2); }
.vform__success { text-align: center; padding: var(--s-4) var(--s-2); }
.vform__success .ok { width: 64px; height: 64px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; margin: 0 auto var(--s-3); }
.vform__success .ok svg { width: 30px; height: 30px; }
.vform__success h3 { font-size: 1.9rem; margin-bottom: 10px; }
.vform__success p { color: var(--mist); margin-inline: auto; }

/* ---- Footer ---- */
.footer { background: var(--forest); border-top: 1px solid var(--line); padding-top: var(--s-10); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.footer__brand .brand { font-size: 1.8rem; }
.footer__brand p { color: var(--mist); max-width: 32ch; margin-top: var(--s-3); font-size: .92rem; }
.footer h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); font-family: var(--font-sans); font-weight: 600; }
.footer__col a, .footer__col li { color: var(--mist); font-size: .92rem; margin-bottom: 12px; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--gold); }
.news { display: flex; gap: 8px; margin-top: var(--s-2); }
.news input { flex: 1; min-width: 0; background: rgba(10,15,12,.6); border: 1px solid var(--line); color: var(--bone); padding: .85em 1em; border-radius: var(--radius); }
.news input:focus { border-color: var(--gold); outline: none; }
.news button { width: 50px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border-radius: var(--radius); transition: background .3s var(--ease); }
.news button:hover { background: var(--gold-200); }
.news button svg { width: 20px; height: 20px; }
.news__ok { color: var(--gold); font-size: .84rem; margin-top: 10px; min-height: 20px; }
.socials { display: flex; gap: 10px; margin-top: var(--s-3); }
.socials a { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mist); transition: all .35s var(--ease); }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: var(--s-4); color: var(--mist); font-size: .8rem; flex-wrap: wrap; gap: var(--s-2); }
.footer__hours { font-size: .9rem; color: var(--mist); line-height: 1.9; }
.footer__hours b { color: var(--bone); }

.toast { position: fixed; bottom: var(--s-3); left: 50%; transform: translateX(-50%) translateY(120%); z-index: 120; background: var(--panel-2); border: 1px solid var(--gold-600); color: var(--bone); padding: .9em 1.4em; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow); transition: transform .5s var(--ease); display: flex; align-items: center; gap: .6em; }
.toast svg { width: 18px; height: 18px; color: var(--gold); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Amharic ---- */
/* Ge'ez has no case and reads poorly with wide tracking; tighten the uppercase labels. */
html[lang="am"] :is(.eyebrow, .btn, .field label, .card__tag, .card__loc, .fact .k, .map__pin span, .agent-card__top .r, .calc .lbl, .calc__out .k, .hood__avg, .stat__label, .agent__role, .slide__by .d, .footer h4, .modal__close, .seg button, .brand small, .nav__links a, .hero__scroll) { letter-spacing: .03em; }
html[lang="am"] :is(h1, h2, h3, .display) { letter-spacing: 0; line-height: 1.16; }
html[lang="am"] .hero__title { font-size: clamp(2.6rem, 7.4vw, 5.8rem); }
/* Ge'ez needs a little more size than Latin caps to stay legible at label scale */
html[lang="am"] .field label, html[lang="am"] .fact .k { font-size: .76rem; }
html[lang="am"] .eyebrow, html[lang="am"] .card__loc, html[lang="am"] .card__tag, html[lang="am"] .map__pin span { font-size: .8rem; }
html[lang="am"] .brand small { font-size: .7rem; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  /* nav collapses here: brand + links + language switch + CTA need ~1060px */
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); transform: translateX(100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; padding: 96px var(--pad) var(--s-5); gap: var(--s-2); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { font-family: var(--font-serif); font-size: 2rem; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: var(--s-3); }
  .cards, .hoods, .agents, .stats { grid-template-columns: repeat(2, 1fr); }
  .hood:nth-child(3n+2) { transform: none; }
  .pm__grid { grid-template-columns: 1fr; }
  .pm__aside { position: static; }
  .sell__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .filters { grid-template-columns: 1fr 1fr; }
  .searchbar__fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .cards, .hoods, .agents, .stats, .searchbar__fields, .filters, .vform__row, .pm__facts { grid-template-columns: 1fr; }
  .pm__thumbs { grid-template-columns: repeat(4, 1fr); }
  .cards.is-list .card { flex-direction: column; }
  .cards.is-list .card__media { flex-basis: auto; aspect-ratio: 4/3; }
  .svc__row { grid-template-columns: 48px 1fr; row-gap: 10px; }
  .svc__text { grid-column: 1 / -1; }
  .svc__arw { display: none; }
  .pm { padding: var(--s-3) var(--s-3) var(--s-8); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .listing-bar { gap: var(--s-2); }
  .hero__scroll { display: none; }
  .modal__panel { width: 100%; border-left: none; }
}

@media (max-width: 420px) {
  .card__meta { gap: var(--s-2); flex-wrap: wrap; }
  .seg button { padding: .5em 1em; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { animation: none; }
}

/* ---- Final polish ---- */
/* custom chevron for the sort dropdown (native indicator is suppressed) */
.sort select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C6A664' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort select:hover { border-color: var(--line-strong); }
.sort select:focus { border-color: var(--gold); outline: none; }
/* lease summary rows reuse .calc__out spacing cleanly */
.calc .calc__out:first-of-type { margin-top: var(--s-2); }
/* fine-tune the detail price block alignment on wide panels */
.pm__head .pm__price { text-align: right; white-space: nowrap; }

/* ============================================================
   Motion layer — scroll-driven polish ($100K feel)
   All of it degrades under prefers-reduced-motion (block below).
   ============================================================ */

/* staggered card entrance — replays on every filter/sort re-render */
@keyframes cardIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.cards .card { animation: cardIn .85s var(--ease-out) both; }
.cards .card:nth-child(1) { animation-delay: .02s; }
.cards .card:nth-child(2) { animation-delay: .09s; }
.cards .card:nth-child(3) { animation-delay: .16s; }
.cards .card:nth-child(4) { animation-delay: .23s; }
.cards .card:nth-child(5) { animation-delay: .30s; }
.cards .card:nth-child(6) { animation-delay: .37s; }
.cards .card:nth-child(7) { animation-delay: .44s; }
.cards .card:nth-child(8) { animation-delay: .50s; }
.cards .card:nth-child(n+9) { animation-delay: .56s; }

/* section headlines wipe up from a clipped baseline as they enter */
.sec-head__title { clip-path: inset(0 0 103% 0); transition: clip-path 1.1s var(--ease-out) .08s; }
.reveal.in .sec-head__title { clip-path: inset(0 0 -12% 0); }

/* parallax containers transformed by JS on scroll */
.hero__bg, .sell__bg { will-change: transform; }

/* magnetic buttons follow the cursor a few px, then spring back */
[data-magnetic] { will-change: transform; transition: transform .45s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .cards .card { animation: none; opacity: 1; transform: none; }
  .sec-head__title { clip-path: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__title .hw { animation: none; transform: none; }
  .hero__eyebrow, .hero__eyebrow::before, .hero__sub, .searchbar { animation: none; opacity: 1; transform: none; }
  [data-magnetic] { transform: none !important; }
}











