/* ==========================================================
   KS Properties — stylesheet
   Palette: paper / ink / moss / lime / stone
   ========================================================== */
:root {
  --paper: #f3f4ee;
  --sheet: #ffffff;
  --ink: #16201b;
  --ink-2: #2b3630;
  --moss: #3e5a46;
  --lime: #d3ee7a;
  --lime-deep: #b9d95a;
  --stone: #6f776f;
  --line: #e3e6dc;
  --dusk: #e9a65c;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --gutter: clamp(12px, 2.2vw, 28px);
  --wrap: 1320px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 1px 0 rgba(22, 32, 27, .04), 0 18px 40px -24px rgba(22, 32, 27, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(211, 238, 122, .55), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(211, 238, 122, .22), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 800px) { body { background-attachment: scroll; font-size: 16px; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--stone); }
.small { font-size: .9rem; }
.tag { font-size: .88rem; color: var(--stone); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.35em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(22,32,27,.6); }
.btn:active { transform: translateY(0); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { --bg: var(--lime-deep); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--wa { --bg: #1f7a4a; --fg: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--sm { padding: .6em 1em; font-size: .88rem; }

/* ---------- Header / nav ---------- */
.nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px clamp(18px, 3vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5em .9em; border-radius: 999px; transition: background-color .3s; }
.nav-links a:hover { background: rgba(255,255,255,.16); }
.nav-links a[aria-current="page"] { background: rgba(255,255,255,.2); }
.nav--light .nav-links a:hover, .nav--light .nav-links a[aria-current="page"] { background: rgba(22,32,27,.06); }
.nav--dark { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); cursor: pointer; place-items: center; }
.nav--light .menu-btn { background: var(--sheet); box-shadow: var(--shadow); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn--desk { display: none; }
  .menu-btn { display: grid; }
}

/* Mobile menu sheet */
.sheet-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 22px 24px 32px;
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path .7s var(--ease-io); visibility: hidden;
}
.sheet-menu.open { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
.sheet-menu .close { align-self: flex-end; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.sheet-menu nav { margin-top: 6vh; display: grid; gap: 4px; }
.sheet-menu nav a { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.4rem); text-decoration: none; letter-spacing: -.03em; line-height: 1.15; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.sheet-menu.open nav a { opacity: 1; transform: none; }
.sheet-menu.open nav a:nth-child(2) { transition-delay: .05s; } .sheet-menu.open nav a:nth-child(3) { transition-delay: .1s; }
.sheet-menu.open nav a:nth-child(4) { transition-delay: .15s; } .sheet-menu.open nav a:nth-child(5) { transition-delay: .2s; }
.sheet-menu .foot { margin-top: auto; display: grid; gap: 12px; }
.sheet-menu .foot .btn { justify-content: center; }

/* ---------- Hero ---------- */
.hero-shell { padding: var(--gutter) var(--gutter) 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); color: #fff;
  min-height: min(92vh, 900px); min-height: min(92svh, 900px);
  display: flex; flex-direction: column;
  background: #2a2a28;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,20,17,.55) 0%, rgba(14,20,17,0) 22%),
    linear-gradient(0deg, rgba(14,20,17,.82) 0%, rgba(14,20,17,.25) 45%, rgba(14,20,17,0) 70%);
}
.hero-body {
  margin-top: auto; padding: 0 clamp(18px, 3vw, 40px) clamp(22px, 3vw, 34px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px 60px; align-items: end;
}
.hero h1 { max-width: 13ch; }
.hero-side { max-width: 380px; justify-self: end; }
.hero-side p { color: rgba(255,255,255,.86); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-foot {
  margin: 0 clamp(18px, 3vw, 40px); padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.82);
}
.hero-foot a { text-decoration: none; }
.hero-shell + .finder { margin-top: -44px; }
.hero-shell .hero-foot { padding-bottom: 64px; }
@media (max-width: 900px) { .hero-shell .hero-foot { padding-bottom: 48px; } }
.hero-foot a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; }
}

/* Hero load sequence (the one orchestrated moment) */
.js .hero { clip-path: inset(9% 14% 9% 14% round 28px); }
.js .hero-media img { transform: scale(1.18); }
.js .hero [data-rise] { opacity: 0; transform: translateY(26px); }
.js .hero .nav { opacity: 0; }
.js .hero .split .w > span { transform: translateY(110%); }
.loaded .hero { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.25s var(--ease-io); }
.loaded .hero-media img { transform: scale(1); transition: transform 2.2s var(--ease); }
.loaded .hero .nav { opacity: 1; transition: opacity .8s .7s; }
.loaded .hero [data-rise] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(.75s + var(--d, 0s)); }
.loaded .hero .split .w > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(.5s + var(--i) * 55ms); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
@media (max-width: 700px) { .js:not(.loaded) .hero { clip-path: inset(6% 6% 6% 6% round 24px); } }

/* ---------- Search bar (under hero) ---------- */
.finder {
  position: relative; z-index: 5;
  margin: -44px auto 0; width: min(100% - 2 * var(--gutter) - 32px, 1040px);
  background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0; padding: 10px;
}
.finder label { display: grid; gap: 2px; padding: 8px 18px; border-right: 1px solid var(--line); cursor: pointer; }
.finder label:nth-child(4) { border-right: 0; }
.finder .lbl { font-size: .8rem; color: var(--stone); font-weight: 500; }
.finder select, .finder input { border: 0; background: transparent; padding: 0; font-weight: 600; font-size: 1rem; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%; }
.finder .btn { align-self: stretch; border-radius: var(--r-md); padding-inline: 1.8em; }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .finder label { border-right: 0; border-bottom: 1px solid var(--line); }
  .finder .btn { grid-column: 1 / -1; justify-content: center; margin-top: 8px; padding-block: 1em; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.sheet { background: var(--sheet); border-radius: var(--r-xl); }
.sheet-pad { padding: clamp(28px, 5vw, 72px); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.head-row h2 { max-width: 18ch; }
.head-row .lede { margin: 0; max-width: 42ch; }

/* About statement — words light up as it scrolls through */
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px 60px; }
.statement { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.14; letter-spacing: -.025em; font-weight: 400; margin: 0; }
.statement .wd { transition: color .35s; color: #c7ccc2; }
.statement .wd.on { color: var(--ink); }
.no-js .statement .wd, .reduce .statement .wd { color: var(--ink); }
@media (max-width: 800px) { .statement-grid { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.fact { padding: 26px 24px 4px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.8rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 10px; color: var(--stone); font-size: .93rem; }
@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Services */
.services { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.services-intro { position: sticky; top: 40px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.service { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 28px; padding-right: 0; }
.service svg { width: 30px; height: 30px; color: var(--moss); margin-bottom: 18px; }
.service h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service p { color: var(--stone); font-size: .97rem; margin: 0; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; }
  .service:nth-child(even) { padding-left: 0; }
}

/* ---------- Property cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 1000px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cards { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--sheet); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3d6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .no-photo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--moss); background: linear-gradient(135deg, #e8ecdf, #d9e2c9); font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: .78rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; }
.badge--lime { background: var(--lime); }
.badge--sold { background: var(--ink); color: #fff; }
.card-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.card-price { font-family: var(--display); font-size: 1.55rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.card-price small { font-family: var(--text); font-size: .85rem; color: var(--stone); letter-spacing: 0; font-weight: 500; }
.card-title { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.card-area { color: var(--stone); font-size: .92rem; }
.card-specs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.card-specs span { display: inline-flex; gap: 6px; align-items: center; }
.card-specs svg { width: 16px; height: 16px; color: var(--stone); }
.card.is-sold .card-media img { filter: grayscale(.6) brightness(.92); }

/* Image reveal used on cards & feature images */
.js .reveal-img { clip-path: inset(12% 0 0 0); }
.js .reveal-img img { transform: scale(1.12); }
.js .reveal-img.in { clip-path: inset(0); transition: clip-path 1.2s var(--ease); }
.js .reveal-img.in img { transform: scale(1); transition: transform 1.6s var(--ease); }
.js .card:hover .reveal-img.in img { transform: scale(1.05); transition-duration: 1.1s; }

.js .fade { opacity: 0; transform: translateY(18px); }
.js .fade.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Process: stacking cards ---------- */
.process { position: relative; border-radius: var(--r-xl); overflow: hidden; overflow: clip; color: #fff; isolation: isolate; background: #1b2a33; }
.process-bg { position: absolute; inset: 0; z-index: -2; }
.process-bg .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.process-bg img { width: 100%; height: 100%; object-fit: cover; }
.process::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,20,17,.78), rgba(14,20,17,.35)); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; padding: clamp(32px, 6vw, 80px); }
.process-intro { position: sticky; top: 80px; align-self: start; }
.process-intro p { color: rgba(255,255,255,.82); max-width: 40ch; }
.steps { display: grid; gap: 0; }
.step {
  position: sticky; top: calc(80px + var(--n) * 22px);
  background: var(--sheet); color: var(--ink); border-radius: var(--r-lg);
  padding: 28px 30px 30px; margin-bottom: 18vh; min-height: 240px;
  box-shadow: 0 -10px 40px -20px rgba(0,0,0,.45);
}
.step:last-child { margin-bottom: 0; }
.step-no { display: flex; justify-content: space-between; align-items: center; color: var(--stone); font-size: .9rem; font-weight: 500; margin-bottom: 26px; }
.step-no b { font-family: var(--display); font-weight: 400; font-size: 2.4rem; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--stone); margin: 0; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .step { position: relative; top: 0; margin-bottom: 14px; min-height: 0; }
}

/* ---------- Areas marquee & list ---------- */
.areas-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 34px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 8px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee + .marquee .marquee-track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: .7em 1.2em; border-radius: 999px; background: var(--sheet); text-decoration: none; font-weight: 500; white-space: nowrap; transition: background-color .3s, color .3s; }
.chip:hover { background: var(--ink); color: #fff; }
.chip em { font-style: normal; font-size: .8rem; color: var(--stone); background: var(--paper); border-radius: 999px; padding: .1em .6em; transition: background-color .3s; }
.chip:hover em { background: var(--lime); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee { mask-image: none; } .marquee-track > [aria-hidden] { display: none; } }

/* Types */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.type { background: var(--sheet); border-radius: var(--r-lg); padding: 22px 22px 20px; text-decoration: none; display: grid; gap: 30px; transition: background-color .4s, color .4s, transform .5s var(--ease); }
.type:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.type b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.type span { font-weight: 600; }
.type:hover small { color: rgba(255,255,255,.7); }
.type small { display: block; color: var(--stone); font-size: .88rem; font-weight: 400; transition: color .4s; }
@media (max-width: 900px) { .types { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA / Contact ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.cta-copy h2 { max-width: 14ch; margin-bottom: 18px; }
.contact-lines { margin-top: 32px; display: grid; gap: 4px; }
.contact-line { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.contact-line span { color: var(--stone); }
.contact-line a { text-decoration: none; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--sheet); border-radius: var(--r-sm);
  padding: .8em .95em; font-size: 1rem; transition: border-color .3s, box-shadow .3s; outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(62,90,70,.15); }
.field .err { color: #a3361f; font-size: .82rem; min-height: 0; }
.form .btn { justify-content: center; }
.form-note { font-size: .85rem; color: var(--stone); margin: 0; }
.form-done { display: none; grid-column: 1 / -1; background: var(--lime); border-radius: var(--r-md); padding: 16px 18px; font-weight: 500; }
.form.sent .form-done { display: block; animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin: 0 var(--gutter) var(--gutter); background: var(--ink); color: #e9ece4; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px) 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--text); font-size: .92rem; font-weight: 600; letter-spacing: 0; color: rgba(233,236,228,.6); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer .brand { color: #fff; }
.footer-big { font-family: var(--display); font-size: clamp(3.2rem, 13vw, 12rem); letter-spacing: -.05em; line-height: .85; margin: clamp(40px, 7vw, 90px) 0 18px; color: #fff; white-space: nowrap; }
.footer-big span { color: var(--lime); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: rgba(233,236,228,.6); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1f7a4a; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  box-shadow: 0 16px 30px -12px rgba(16, 70, 40, .6);
  transform: translateY(120px); transition: transform .7s var(--ease), background-color .3s;
}
.wa-float.show { transform: none; }
.wa-float:hover { background: #18663d; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; } }

/* ---------- Inner page header ---------- */
.page-top { padding: var(--gutter) var(--gutter) 0; }
.page-head { background: var(--sheet); border-radius: var(--r-xl); overflow: hidden; }
.page-head-body { padding: clamp(28px, 5vw, 64px) clamp(18px, 3vw, 40px) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 60px; align-items: end; }
.page-head-body h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.page-head-body .lede { margin: 0; }
@media (max-width: 800px) { .page-head-body { grid-template-columns: 1fr; } }
.js .page-head [data-rise] { opacity: 0; transform: translateY(20px); }
.loaded .page-head [data-rise] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, .1s); }

/* ---------- Listings page ---------- */
.filters { position: sticky; top: 10px; z-index: 15; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); margin-bottom: 26px; }
.filters .search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 0 14px; }
.filters .search svg { width: 18px; height: 18px; color: var(--stone); flex: none; }
.filters input[type="search"] { border: 0; background: transparent; padding: .7em 0; width: 100%; outline: none; }
.filters select { border: 0; background: var(--paper); border-radius: 999px; padding: .7em 2.2em .7em 1em; font-weight: 500; font-size: .93rem; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316201b' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: .5em 1em; border-radius: 999px; font-weight: 500; font-size: .93rem; cursor: pointer; transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar p { margin: 0; color: var(--stone); }
.empty { text-align: center; padding: 70px 20px; background: var(--sheet); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: 8px; }
.card.enter { animation: cardIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 700px) {
  .filters { position: static; }
  .filters > label:not(.search) { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filters > label select { width: 100%; }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1; }
}

/* ---------- Property page ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--stone); margin: 8px 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 58vw, 620px); border-radius: var(--r-xl); overflow: hidden; }
.gallery button { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: #dfe3d6; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; right: 14px; bottom: 14px; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: .5em 1em; font-weight: 600; font-size: .9rem; }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one button:first-child { grid-row: auto; }
.gallery.two { grid-template-rows: 1fr; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 4/3; }
  .gallery button:not(:first-child) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}

.prop { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); align-items: start; }
.prop-main h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 10px; }
.prop-loc { color: var(--stone); font-size: 1.05rem; margin-bottom: 26px; }
.prop-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; background: var(--sheet); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; }
.prop-specs div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-specs dt { font-size: .84rem; color: var(--stone); }
.prop-specs dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.prop-desc { background: var(--sheet); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); }
.prop-desc h2 { font-size: 1.5rem; margin-bottom: 14px; }
.prop-desc .text { white-space: pre-line; color: var(--ink-2); max-width: 68ch; }
.aside { position: sticky; top: 20px; display: grid; gap: 14px; }
.price-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px; }
.price-card .lbl { color: rgba(255,255,255,.66); font-size: .9rem; }
.price-card .big { font-family: var(--display); font-size: clamp(2.2rem, 3.4vw, 2.9rem); letter-spacing: -.04em; line-height: 1.05; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.price-card .psf { color: rgba(255,255,255,.66); font-size: .9rem; margin-bottom: 20px; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.agent-mini { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; flex: none; }
.agent-mini small { display: block; color: rgba(255,255,255,.6); }
.prop-price-m { display: none; }
@media (max-width: 1000px) {
  .prop { grid-template-columns: 1fr; } .aside { position: static; }
  .prop-price-m { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -10px 0 22px; font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .prop-price-m .btn { font-family: var(--text); letter-spacing: 0; }
}

/* Loan calculator */
.calc { background: var(--sheet); border-radius: var(--r-lg); padding: 24px; }
.calc h3 { font-size: 1.2rem; margin-bottom: 4px; }
.calc .row { display: grid; gap: 6px; margin-top: 16px; }
.calc .row label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; }
.calc .row label output { font-weight: 500; color: var(--stone); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--moss) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--moss); box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: grab; }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--moss); cursor: grab; }
.calc-out { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-out b { font-family: var(--display); font-weight: 500; font-size: 2rem; letter-spacing: -.03em; display: block; font-variant-numeric: tabular-nums; }
.calc-out span { color: var(--stone); font-size: .86rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(12,16,14,.96); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .92rem; }
.lb-top button, .lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px 20px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; transition: opacity .3s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 700px) { .lb-stage { padding: 0 8px 20px; } .lb-nav { top: auto; bottom: 24px; transform: none; } }

/* Bio page */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(28px, 5vw, 80px); align-items: end; padding: 6px clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px); }
.bio-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #a7abaa; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.bio-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-radius: 999px; padding: .35em .9em; font-size: .82rem; font-weight: 600; }
.bio-intro { padding-bottom: clamp(8px, 2vw, 28px); padding-right: clamp(0px, 2vw, 24px); }
.bio-role { color: var(--stone); font-weight: 500; margin-bottom: 14px; }
.bio-name { font-size: clamp(3.2rem, 8.4vw, 7.6rem); letter-spacing: -.05em; line-height: .9; margin-bottom: 26px; }
.bio-intro .lede { margin-bottom: 30px; }
.bio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 30px; border-top: 1px solid var(--line); max-width: 560px; }
.bio-facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.bio-facts dt { font-size: .84rem; color: var(--stone); }
.bio-facts dd { margin: 2px 0 0; font-weight: 600; }
.bio-text { columns: 2 280px; column-gap: 40px; margin-top: 34px; color: var(--ink-2); }
.bio-text p { break-inside: avoid; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; padding-top: 0; }
  .bio-photo { aspect-ratio: 4 / 4.4; }
}
/* Bio load sequence: portrait opens upward, name rises */
.js .bio-photo { clip-path: inset(100% 0 0 0 round 20px); }
.js .bio-photo img { transform: scale(1.14); }
.loaded .bio-photo { clip-path: inset(0 0 0 0 round 20px); transition: clip-path 1.2s var(--ease-io) .1s; }
.loaded .bio-photo img { transform: none; transition: transform 1.8s var(--ease) .1s; }
.js .bio .split .w > span { transform: translateY(110%); }
.loaded .bio .split .w > span { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(.4s + var(--i) * 90ms); }
.avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-row { display: flex; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  .js .bio-photo { clip-path: none !important; }
  .js .bio-photo img, .js .bio .split .w > span { transform: none !important; }
}

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(160deg, #3e5a46, #16201b); color: #fff; display: grid; place-items: center; }
.portrait .mono { font-family: var(--display); font-size: clamp(5rem, 14vw, 10rem); letter-spacing: -.06em; color: var(--lime); line-height: 1; }
.portrait .note { position: absolute; left: 18px; right: 18px; bottom: 18px; font-size: .85rem; color: rgba(255,255,255,.7); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value { background: var(--sheet); border-radius: var(--r-lg); padding: 28px; }
.value h3 { margin-bottom: 10px; font-size: 1.3rem; }
.value p { color: var(--stone); margin: 0; }
@media (max-width: 900px) { .about-grid, .values { grid-template-columns: 1fr; } }

.map { border-radius: var(--r-xl); overflow: hidden; height: 380px; background: #dfe3d6; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* View transitions between pages (progressive) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero, .js .reveal-img { clip-path: none !important; }
  .js .hero-media img, .js .reveal-img img { transform: none !important; }
  .js .fade, .js .hero [data-rise], .js .hero .nav { opacity: 1 !important; transform: none !important; }
  .js .hero .split .w > span { transform: none !important; }
}
