/* ==========================================================================
   Finer Lands — public site styles
   Design tokens → base → layout → components → sections → pages → responsive
   ========================================================================== */

/* ---------- Self-hosted fonts (SIL Open Font License, see assets/fonts) ---------- */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-var.woff2") format("woff2-variations"), url("../fonts/source-serif-4-var.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  /* Brand palette (from approved homepage design) */
  --green-900: #143427;
  --green-800: #173a2c;   /* primary buttons, headings accents */
  --green-700: #22503c;
  --green-600: #2e5e44;   /* badges */
  --olive:     #8f9b3f;   /* active nav underline, small accents */
  --olive-100: #eef0dc;
  --cream:     #f7f5f0;   /* benefits bar */
  --beige:     #f2ede3;   /* how-it-works background */
  --beige-300: #e7dfcf;   /* icon circles */
  --sand:      #b98a4b;
  --ink:       #161a17;
  --text:      #2b2f2c;
  --muted:     #5e645f;
  --line:      #e3ddd1;
  --white:     #ffffff;

  /* Typography */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-h1:      clamp(2.6rem, 1.2rem + 3.6vw, 4.5rem);
  --fs-h2:      clamp(2rem, 1.3rem + 1.9vw, 3.1rem);
  --fs-h2-md:   clamp(1.85rem, 1.3rem + 1.5vw, 2.7rem);
  --fs-lead:    clamp(1.2rem, 1rem + .6vw, 1.75rem);
  --fs-body:    1.0625rem;  /* 17px */
  --fs-small:   .9375rem;
  --fs-label:   .8125rem;   /* 13px */

  /* Layout */
  --container:  1290px;
  --gutter:     clamp(1rem, 3vw, 2.5rem);
  --header-h:   82px;
  --radius:     4px;
  --radius-lg:  6px;
  --section-y:  clamp(3.5rem, 2rem + 4vw, 5.5rem);

  --shadow-card: 0 1px 2px rgba(20, 30, 24, .06), 0 6px 18px rgba(20, 30, 24, .06);
  --shadow-card-hover: 0 2px 4px rgba(20, 30, 24, .08), 0 14px 30px rgba(20, 30, 24, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--green-800); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  margin: 0 0 .7rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green-800);
}
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -.012em;
  font-optical-sizing: auto;
}
.section-title--md { font-size: var(--fs-h2-md); }
.section-lead { margin: .9rem 0 0; font-size: 1.125rem; color: var(--muted); max-width: 50rem; }
.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem);
  color: var(--ink);
  line-height: 1.3;
}
.tagline em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.6rem;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg); border-radius: var(--radius);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--green-700); }
.btn--outlined { border-color: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(10, 24, 16, .25); }
.btn--outlined:hover { border-color: #fff; }
.btn--lg { min-height: 58px; padding: .9rem 1.9rem; font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn--block { display: flex; width: 100%; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--light:hover { --btn-bg: var(--cream); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); border-color: var(--green-800); }
.btn--ghost:hover { --btn-bg: var(--green-800); --btn-fg: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.link-arrow > :not(.icon) { text-decoration: none; }
.link-arrow { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.link-arrow .icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20, 30, 24, .06); }
.site-header__inner { display: flex; align-items: center; height: var(--header-h); gap: 2rem; }

.brand { display: flex; align-items: center; gap: .9rem; flex: none; }
.brand__emblem { width: 104px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; }
.brand__wordmark { width: 196px; height: auto; }
.brand__tagline {
  font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; line-height: 1;
  color: var(--green-800); letter-spacing: .005em;
}

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: stretch; gap: clamp(1.2rem, 2.4vw, 2.4rem); height: var(--header-h); }
.primary-nav__list a {
  position: relative; display: flex; align-items: center; height: 100%;
  font-size: .95rem; font-weight: 500; color: var(--ink);
  transition: color .2s var(--ease);
}
.primary-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 2px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav__list a:hover { color: var(--green-800); }
.primary-nav__list a:hover::after { transform: scaleX(.5); }
.primary-nav__list a.is-active::after { transform: scaleX(1); }
.primary-nav__cta-mobile { display: none; }
.site-header__cta { flex: none; min-height: 50px; padding-inline: 1.9rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(470px, 40vw, 720px);
  display: flex; align-items: flex-start;
  background: #caa27a;
}
.hero__media, .hero__media picture, .hero__media img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img, .hero__video { object-fit: cover; object-position: 50% 72%; }
.hero::before {           /* soft warm light behind the headline for legibility */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at 22% 30%, rgba(255, 244, 226, .62) 0%, rgba(255, 240, 220, .28) 55%, rgba(255, 240, 220, 0) 80%),
    linear-gradient(180deg, rgba(255, 245, 230, .22) 0%, rgba(255, 245, 230, 0) 45%);
}
.hero__inner { position: relative; display: flex; justify-content: space-between; gap: 2rem; padding-top: clamp(2.5rem, 4.2vw, 4.25rem); padding-bottom: 3rem; }
.hero__content { max-width: 40rem; padding-left: clamp(0rem, 3vw, 3rem); }
.hero__title {
  font-family: var(--font-serif); font-size: var(--fs-h1); font-weight: 700;
  line-height: 1.02; letter-spacing: -.02em; color: var(--ink);
  font-optical-sizing: auto;
}
.hero__lead {
  margin: 1.1rem 0 .15rem; font-family: var(--font-serif); font-size: var(--fs-lead); line-height: 1.3; color: var(--ink);
}
.hero__tagline { margin: 0 0 1.6rem; font-family: var(--font-serif); font-size: var(--fs-lead); line-height: 1.3; color: var(--ink); }
.hero__aside {
  margin: 2.8rem 0 0; flex: none; text-align: right;
  font-size: .95rem; font-weight: 500; line-height: 1.9; letter-spacing: .32em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 18px rgba(255, 245, 230, .55);
}

/* ---------- Benefits bar ---------- */
.benefits { background: var(--cream); border-bottom: 1px solid #efebe3; }
.benefits__list { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 1.55rem; }
.benefit {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  padding: .35rem 1rem; color: var(--ink);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; line-height: 1.75; text-transform: uppercase;
}
.benefit + .benefit { border-left: 1px solid #d9d3c6; }
.benefit__icon { width: 40px; height: 40px; color: var(--ink); }
.benefit__icon--wide { width: 54px; height: 32px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: 1.6rem; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.section-head--split .link-arrow { margin-bottom: .35rem; flex: none; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.featured { padding-top: clamp(2.5rem, 1.5rem + 2.5vw, 3.6rem); }

/* ---------- Property cards ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.property-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid #ebe7df; border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.property-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.property-card__media { position: relative; display: block; aspect-ratio: 2.16 / 1; overflow: hidden; background: var(--beige); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: .32rem .8rem; border-radius: 999px;
  background: var(--green-600); color: #f3f1e6;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.badge--sold { background: var(--ink); }
.badge--pending { background: var(--sand); }
.property-card.is-sold .property-card__media img { filter: saturate(.55); }
.property-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.property-card__title { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.property-card__title a:hover { color: var(--green-700); }
.property-card__meta { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }
.property-card__meta span { margin-inline: .45rem; color: #b9b3a7; }
.property-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1rem 0 1rem; margin-top: auto; padding-top: 1rem; }
.property-card__price strong { font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.property-card__price span { font-size: .95rem; font-weight: 500; color: var(--ink); }
.property-card .btn { min-height: 50px; font-size: .98rem; }

.empty-state {
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
  background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state a { color: var(--green-800); font-weight: 600; text-decoration: underline; }

/* ---------- How it works ---------- */
.how { background: var(--beige); padding-block: clamp(2.75rem, 1.8rem + 2.4vw, 3.75rem); }
.how .section-head { margin-bottom: 1.4rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1060px; margin-inline: auto; }
.step { position: relative; text-align: center; }
.step__icon {
  display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--beige-300); color: var(--ink);
}
.step__icon .icon { width: 40px; height: 40px; }
.step__title { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.step p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.step__arrow {
  position: absolute; top: 36px; right: calc(-1rem - 22px);
  width: 44px; color: #6c716d;
}
.step__arrow .icon { width: 44px; height: 18px; }

/* ---------- Split (image / text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 36vw, 600px); background: var(--white); }
.split__media { position: relative; overflow: hidden; }
.split__media picture, .split__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.split__media img { object-fit: cover; object-position: 55% 55%; }
.split__content { align-self: center; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5.5vw, 5.5rem); max-width: 44rem; }
.split__content .section-title { margin-bottom: 1.1rem; }
.split__content p { color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.split__content .tagline { margin: .2rem 0 1.4rem; color: var(--ink); font-size: clamp(1.35rem, 1.15rem + .5vw, 1.65rem); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; background: var(--green-900); }
.cta-band__media, .cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band__media { z-index: -2; }
.cta-band__media img { object-fit: cover; object-position: 50% 62%; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 24, 20, .35) 0%, rgba(18, 24, 20, .5) 60%, rgba(20, 52, 39, .92) 100%);
}
.cta-band__inner { padding-block: clamp(2.6rem, 2rem + 2vw, 3.6rem) clamp(2.8rem, 2rem + 2.4vw, 4rem); }
.cta-band__title { font-family: var(--font-serif); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 600; color: #fff; letter-spacing: -.01em; }
.cta-band p { margin: .4rem 0 1.3rem; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.cta-band .btn { min-width: 210px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(244, 238, 226, .78); font-size: .97rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.25rem) 2.75rem;
}
.footer-logo { display: flex; align-items: center; gap: .85rem; }
.footer-logo img:first-child { width: 92px; }
.footer-logo img:last-child { width: 178px; }
.site-footer__tagline { margin: .9rem 0 .6rem; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: #f4eee2; }
.site-footer__intro { max-width: 22rem; line-height: 1.65; }
.site-footer__heading {
  margin-bottom: 1rem; font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: #f4eee2;
}
.site-footer__col ul li + li { margin-top: .55rem; }
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: .65rem; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: .22em; color: var(--olive); }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social li + li { margin-top: 0 !important; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(244, 238, 226, .25);
}
.social a:hover { background: rgba(244, 238, 226, .1); border-color: rgba(244, 238, 226, .5); }
.social .icon { width: 18px; height: 18px; }
.site-footer__cta p { line-height: 1.65; }
.site-footer__cta .btn { margin-top: .4rem; }
.site-footer__bottom { border-top: 1px solid rgba(244, 238, 226, .12); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 1.6rem; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--cream);
  padding-block: clamp(2.8rem, 2rem + 3vw, 4.5rem) clamp(4.5rem, 3rem + 5vw, 7.5rem);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(60px, 9vw, 150px); z-index: -1;
  background: url("../images/waves.webp") center bottom / cover no-repeat;
  opacity: .9;
}
.page-hero__title { font-family: var(--font-serif); font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -.018em; }
.page-hero .section-lead { font-size: 1.2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--green-800); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #b7b0a2; }

.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-serif); font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { color: var(--text); line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose a { color: var(--green-800); text-decoration: underline; }

/* ---------- Listing filters ---------- */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .9rem; align-items: end;
  padding: 1.25rem; margin-bottom: 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; color: var(--muted); font-size: .95rem; }
.results-bar a { color: var(--green-800); font-weight: 600; text-decoration: underline; }
.listing { margin-top: calc(-1 * clamp(3rem, 2rem + 3vw, 5rem)); position: relative; padding-top: 0; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; background: #fff;
}
.pagination a:hover { border-color: var(--green-800); color: var(--green-800); }
.pagination .is-current { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pagination .icon { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: #fff; border: 1px solid #d8d2c5; border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161a17' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(143, 155, 63, .25); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #a4402e; }
.field-error { font-size: .84rem; color: #a4402e; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .98rem; border: 1px solid; }
.alert--success { background: #eef3e6; border-color: #c9d8b4; color: #2d4a1f; }
.alert--error { background: #f8ece8; border-color: #e7c3b9; color: #7a2e1f; }

/* ---------- Property detail ---------- */
.property-detail { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) var(--section-y); }
.property-detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.5rem; }
.property-detail__title { font-family: var(--font-serif); font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 700; letter-spacing: -.015em; }
.property-detail__loc { display: flex; align-items: center; gap: .45rem; margin: .6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.property-detail__loc .icon { width: 18px; height: 18px; color: var(--olive); }
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--olive-100); color: var(--green-800);
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--pending { background: #f5ead8; color: #8a5f23; }
.status-pill--sold { background: #e9e7e3; color: var(--ink); }
.status-pill--hidden { background: #eee; color: #666; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.gallery__main {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--beige);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .badge { top: 18px; left: 18px; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav .icon { width: 20px; height: 20px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .75rem; }
.gallery__thumb {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none;
  aspect-ratio: 4 / 3; opacity: .75; transition: opacity .2s, border-color .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--green-800); opacity: 1; }

.summary-card {
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.summary-card__price { font-size: 2.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.summary-card__monthly { margin: .35rem 0 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.summary-card__monthly small { display: block; margin-top: .2rem; font-size: .88rem; color: var(--muted); font-weight: 400; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 1.4rem 0; border-top: 1px solid var(--line); }
.facts div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: .75rem; }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.summary-card .btn + .btn { margin-top: .6rem; }
.summary-card__note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); text-align: center; }

.detail-section { margin-top: 2.6rem; }
.detail-section h2 { font-family: var(--font-serif); font-size: 1.75rem; margin-bottom: 1rem; }
.detail-section .prose p { color: var(--text); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; color: var(--ink); }
.map-embed { aspect-ratio: 16 / 9; border: 0; width: 100%; border-radius: var(--radius-lg); background: var(--beige); }
.inquiry-box { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--beige); border-radius: var(--radius-lg); }
.inquiry-box h2 { margin-bottom: .4rem; }
.inquiry-box > p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info h2 { font-family: var(--font-serif); font-size: 1.9rem; margin-bottom: .8rem; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; }
.contact-list { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--beige); color: var(--green-800);
}
.contact-list .ci .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--green-800); }
.form-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.form-actions { margin-top: 1.5rem; }
.form-note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- How it works page / about ---------- */
.detail-steps { display: grid; gap: 1.25rem; counter-reset: s; }
.detail-step {
  display: grid; grid-template-columns: 82px 1fr; gap: 1.5rem; align-items: start;
  padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.detail-step .step__icon { margin: 0; }
.detail-step h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: .5rem; }
.detail-step p { color: var(--muted); margin-bottom: .6rem; }
.checklist li { position: relative; padding-left: 1.7rem; color: var(--text); }
.checklist li + li { margin-top: .4rem; }
.checklist .icon { position: absolute; left: 0; top: .3em; width: 18px; height: 18px; color: var(--olive); }

.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--green-800); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 46rem; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value {
  padding: 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.value .icon { width: 40px; height: 40px; color: var(--green-800); margin-bottom: 1rem; }
.value .icon.benefit__icon--wide { width: 52px; }
.value h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: .4rem; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }
.bg-beige { background: var(--beige); }
.bg-cream { background: var(--cream); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .site-header__inner { gap: 1.5rem; }
  .brand__emblem { width: 90px; }
  .brand__wordmark { width: 170px; }
  .brand__tagline { font-size: 1rem; }
  .site-header__cta { padding-inline: 1.3rem; }
  .primary-nav__list { gap: 1.4rem; }
}

@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    overflow-y: auto; overscroll-behavior: contain;
    padding: .5rem var(--gutter) 1.5rem; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 30, 24, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .primary-nav__list { flex-direction: column; height: auto; gap: 0; }
  .primary-nav__list a { height: auto; padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .primary-nav__list a::after { bottom: -1px; }
  .primary-nav__cta-mobile { display: flex; width: 100%; margin-top: 1.25rem; }
  body.nav-open { overflow: hidden; }

  .hero__aside { display: none; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits__list { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit { justify-content: flex-start; padding-left: 12%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .property-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 641px) and (max-width: 1080px) {
  /* Odd last card in a 2-column grid: show it full width, image beside text */
  .property-grid > .property-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .property-grid > .property-card:last-child:nth-child(odd) .property-card__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 250px; }
  .property-grid > .property-card:last-child:nth-child(odd) .property-card__body { justify-content: center; padding: 1.5rem 1.75rem; }
  .property-grid > .property-card:last-child:nth-child(odd) .property-card__price { margin-top: 1rem; }
}

@media (max-width: 860px) {
  .step__title { font-size: 1.1rem; }
  .step p { font-size: .95rem; }
  .step p br { display: none; }
  .step__arrow { right: calc(-1rem - 18px); width: 36px; }
  .step__arrow .icon { width: 36px; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16 / 10; }
  .split__content { max-width: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .property-detail__head { flex-direction: column; align-items: flex-start; gap: .8rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand { gap: .6rem; }
  .brand__emblem { width: 70px; }
  .brand__wordmark { width: 138px; }
  .brand__tagline { font-size: .9rem; }

  .hero { min-height: 640px; align-items: flex-start; }
  .hero__media img, .hero__video { object-position: 50% 100%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(255, 244, 228, .72) 0%, rgba(255, 244, 228, .45) 38%, rgba(255, 244, 228, 0) 62%);
  }
  .hero__inner { padding-top: 2.4rem; }
  .hero__content { padding-left: 0; }
  .hero__title br { display: none; }
  .btn--lg { min-height: 54px; padding-inline: 1.5rem; font-size: 1rem; }

  .benefits__list { grid-template-columns: 1fr 1fr; padding-block: 1.1rem; column-gap: .5rem; }
  .benefit { flex-direction: column; justify-content: flex-start; text-align: center; gap: .6rem; padding: .6rem .25rem; font-size: .72rem; letter-spacing: .12em; line-height: 1.55; }
  .benefit + .benefit { border-left: 0; }
  .benefit:nth-child(2n) { border-left: 1px solid #d9d3c6; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; max-width: 420px; }
  .step__arrow { position: static; display: flex; justify-content: center; width: auto; margin: 1.1rem auto 0; transform: rotate(90deg); }
  .step__arrow .icon { width: 34px; height: 16px; }
  .property-grid { grid-template-columns: 1fr; }
  .step p br, .split__content .section-title br { display: none; }
  .cta-band .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters .btn { width: 100%; }
  .values { grid-template-columns: 1fr; }
  .detail-step { grid-template-columns: 1fr; padding: 1.4rem; gap: 1rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .summary-card { padding: 1.3rem; }
}

@media (max-width: 380px) {
  .brand__emblem { width: 58px; }
  .brand__wordmark { width: 122px; }
  .brand__tagline { font-size: .82rem; }
  .benefit { font-size: .68rem; letter-spacing: .1em; }
}


/* ==========================================================================
   Motion & effects
   Everything here respects prefers-reduced-motion. Scroll reveals only hide
   content when JavaScript is running (html.js), so nothing is ever lost.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* ---------- Scroll progress + header glass ---------- */
.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; z-index: 2;
  background: linear-gradient(90deg, var(--olive), #b7a24f);
  transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}

/* ---------- Buttons: light sweep + press ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-20deg); transition: left .75s var(--ease-out); pointer-events: none;
}
.btn--light::before, .btn--ghost::before { background: linear-gradient(100deg, transparent, rgba(143, 155, 63, .22), transparent); }
.btn:hover::before { left: 125%; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary:hover, .btn--light:hover { box-shadow: 0 10px 24px -10px rgba(20, 52, 39, .55); }
.btn--outlined:hover { box-shadow: 0 14px 30px -8px rgba(10, 24, 16, .5); }

/* Submit loading state */
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; opacity: .92; }
.btn--submit.is-loading .icon { display: none; }
.btn--submit.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Links ---------- */
.link-arrow { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease-out); }
.link-arrow:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
.site-footer__col ul a { display: inline-block; transition: color .2s var(--ease), transform .25s var(--ease-out); }
.site-footer__col ul a:hover { transform: translateX(4px); }

/* ---------- Cards & tiles ---------- */
.property-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(12, 28, 20, .28) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.property-card:hover .property-card__media::after { opacity: 1; }
.property-card .badge { transition: transform .35s var(--ease-out); }
.property-card:hover .badge { transform: translateY(-2px); }
.property-card__price strong { transition: color .3s var(--ease); }
.property-card:hover .property-card__price strong { color: var(--green-700); }

.benefit__icon { transition: transform .45s var(--ease-out), color .3s var(--ease); }
.benefit:hover .benefit__icon { transform: translateY(-4px) scale(1.06); color: var(--green-700); }

.step__icon { position: relative; transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease-out); }
.step__icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--olive); opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.step:hover .step__icon { background: var(--green-800); color: #fff; transform: translateY(-4px); }
.step:hover .step__icon::after { opacity: .7; transform: scale(1); }
.step__arrow .icon { transition: transform .4s var(--ease-out); }
.step:hover .step__arrow .icon { transform: translateX(6px); }

.value, .detail-step, .contact-list li .ci { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.value:hover, .detail-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.contact-list li:hover .ci { background: var(--green-800); color: #fff; transform: rotate(-6deg) scale(1.05); }
.social a { transition: background-color .2s, border-color .2s, transform .3s var(--ease-out); }
.social a:hover { transform: translateY(-3px); }

/* Form fields */
.input, .select, .textarea { transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease-out); }
.field:focus-within > label { color: var(--green-700); }

/* ---------- Gallery crossfade ---------- */
.gallery__main img { transition: opacity .35s var(--ease), transform .8s var(--ease-out); }
.gallery__main img.is-switching { opacity: 0; transform: scale(1.02); }
.gallery__main:hover img { transform: scale(1.02); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 80;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-800); color: #fff; box-shadow: 0 10px 26px -8px rgba(20, 52, 39, .6);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s linear .35s, background-color .2s;
}
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--green-700); transform: translateY(-3px); }

@media (prefers-reduced-motion: no-preference) {
  /* ---------- Page load: header, hero, inner page heroes ---------- */
  .site-header { animation: header-in .8s var(--ease-out) both; }
  .hero__media img { animation: hero-zoom 2.6s var(--ease-out) both; }
  .hero__media { will-change: transform; }
  .hero__title   { animation: rise-in 1s var(--ease-out) .15s both; }
  .hero__lead    { animation: rise-in 1s var(--ease-out) .35s both; }
  .hero__tagline { animation: rise-in 1s var(--ease-out) .5s both; }
  .hero__content .btn { animation: rise-in 1s var(--ease-out) .68s both; }
  .hero__aside   { animation: fade-in 1.4s var(--ease) .9s both; }
  .hero__content .btn .icon { animation: nudge 2.4s var(--ease) 2s infinite; }

  .page-hero .eyebrow, .page-hero .breadcrumb { animation: rise-in .9s var(--ease-out) .1s both; }
  .page-hero__title { animation: rise-in .9s var(--ease-out) .22s both; }
  .page-hero .section-lead, .page-hero p:not(.eyebrow) { animation: rise-in .9s var(--ease-out) .36s both; }
  .page-hero::after { animation: waves-drift 16s ease-in-out infinite alternate; left: -3%; right: -3%; }
  .property-detail__head, .property-detail .breadcrumb { animation: rise-in .9s var(--ease-out) .1s both; }
  .gallery { animation: rise-in 1s var(--ease-out) .25s both; }
  .summary-card { animation: rise-in 1s var(--ease-out) .4s both; }

  .step__arrow .icon { animation: nudge 2.8s var(--ease) infinite; }
  .step:nth-child(2) .step__arrow .icon { animation-delay: .4s; }
  .step:hover .step__arrow .icon { animation-play-state: paused; }

  /* ---------- Scroll reveals ---------- */
  .js [data-reveal]:not(.is-visible),
  .js [data-reveal-stagger]:not(.is-visible) > * { opacity: 0; }

  .js [data-reveal].is-visible { animation: reveal-up .95s var(--ease-out) var(--d, 0s) backwards; }
  .js [data-reveal="left"].is-visible  { animation-name: reveal-left; }
  .js [data-reveal="right"].is-visible { animation-name: reveal-right; }
  .js [data-reveal="zoom"].is-visible  { animation-name: reveal-zoom; }

  .js [data-reveal="wipe"]:not(.is-visible) { opacity: 1; clip-path: inset(0 100% 0 0); }
  .js [data-reveal="wipe"].is-visible { animation: reveal-wipe 1.3s var(--ease-out) backwards; }
  .js [data-reveal="wipe"].is-visible img { animation: wipe-zoom 2s var(--ease-out) backwards; }

  .js [data-reveal-stagger].is-visible > * {
    animation: reveal-up .85s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 110ms);
  }
  .js .benefits__list[data-reveal-stagger].is-visible > * { animation-name: reveal-zoom-up; }

  /* Parallax targets are moved by JS (transform), keep them smooth */
  .cta-band__media img { transform: translate3d(0, var(--parallax, 0), 0) scale(1.18); will-change: transform; }
}

@keyframes header-in   { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes hero-zoom   { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise-in     { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade-in     { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge       { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } 90% { transform: translateX(0); } }
@keyframes waves-drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes reveal-up   { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right{ from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom-up { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes reveal-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-zoom   { from { transform: scale(1.18); } to { transform: scale(1); } }

@media (max-width: 860px) {
  .js [data-reveal="left"].is-visible, .js [data-reveal="right"].is-visible { animation-name: reveal-up; }
}

/* ==========================================================================
   Hero background video
   ========================================================================== */
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
@media (max-width: 640px) { .hero__video { display: none; } }

/* ==========================================================================
   Video showcase ("Land in Motion")
   ========================================================================== */
.videos { position: relative; overflow: hidden; background: var(--green-900); color: rgba(244, 238, 226, .82); }
.videos::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(143, 155, 63, .22), transparent 60%),
              radial-gradient(ellipse 50% 60% at 0% 100%, rgba(185, 138, 75, .16), transparent 60%);
}
.videos .container { position: relative; }
.videos .section-title { color: #f6f1e6; }
.videos .section-lead { color: rgba(244, 238, 226, .75); }
.eyebrow--light { color: var(--olive); }
.link-arrow--light { color: #f6f1e6; }

.video-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.video-grid--single { grid-template-columns: 1fr; }
.video-grid__side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.video-card {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 0; border-radius: var(--radius-lg); background: #0e241b; color: #fff;
  aspect-ratio: 16 / 9; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.video-card--featured { aspect-ratio: auto; min-height: 100%; }
.video-grid--single .video-card--featured { aspect-ratio: 21 / 9; }
.video-card__media, .video-card__media video, .video-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-card__media video, .video-card__media img { object-fit: cover; transition: transform 1.2s var(--ease-out); }
.video-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 20, 14, 0) 45%, rgba(8, 20, 14, .78) 100%);
  transition: opacity .4s var(--ease);
}
.video-card:hover .video-card__media video, .video-card:hover .video-card__media img { transform: scale(1.06); }
.video-card:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.video-card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--green-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .45s var(--ease-out), background-color .3s;
}
.video-card__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card__play::before, .video-card__play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7);
  animation: play-pulse 2.6s var(--ease) infinite;
}
.video-card__play::after { animation-delay: 1.3s; }
.video-card__play--sm { width: 58px; height: 58px; }
.video-card__play--sm svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.video-card__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: .2rem; padding: clamp(1rem, 2.4vw, 1.75rem); }
.video-card__text strong { font-family: var(--font-serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.7rem); font-weight: 600; line-height: 1.2; color: #fff; }
.video-card:not(.video-card--featured) .video-card__text strong { font-size: 1.15rem; }
.video-card__text span { font-size: .95rem; color: rgba(255, 255, 255, .82); }
@keyframes play-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* Modal player */
.video-modal { width: min(1120px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.video-modal::backdrop { background: rgba(6, 14, 10, .86); backdrop-filter: blur(6px); }
.video-modal[open] { animation: modal-in .45s var(--ease-out); }
.video-modal__inner { position: relative; }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.video-modal__frame video, .video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__title { margin: .9rem 0 0; font-family: var(--font-serif); font-size: 1.25rem; color: #f6f1e6; text-align: center; }
.video-modal__close {
  position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.video-modal__close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.video-modal__close .icon { width: 20px; height: 20px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* Property video */
.property-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0e241b; }
.property-video video, .property-video iframe, .property-video__facade, .property-video__facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.property-video video { object-fit: cover; background: #000; }
.property-video__facade { padding: 0; cursor: pointer; background: none; }
.property-video__facade img { object-fit: cover; transition: transform 1s var(--ease-out); }
.property-video__facade:hover img { transform: scale(1.04); }
.property-video__facade:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); }
.card-chip {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; border-radius: 999px; background: rgba(12, 28, 20, .72); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.card-chip svg { width: 11px; height: 11px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--cream); position: relative; overflow: hidden; }
.testimonials::after {
  content: "\201C"; position: absolute; right: 4%; top: -40px; font-family: var(--font-serif);
  font-size: 22rem; line-height: 1; color: rgba(143, 155, 63, .08); pointer-events: none;
}
.t-carousel { position: relative; z-index: 1; }
.t-carousel__viewport { overflow: hidden; margin: -1rem; padding: 1rem; }
.t-carousel__track { display: flex; gap: 1.5rem; transition: transform .7s var(--ease-out); will-change: transform; }
.t-card { flex: 0 0 calc((100% - 3rem) / 3); display: flex; }
.t-card figure {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0;
  padding: 2rem 1.9rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
}
.t-card figure:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.t-card__mark { position: absolute; right: 1.4rem; top: .2rem; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--olive); opacity: .35; }
.t-card__stars { display: flex; gap: .15rem; margin-bottom: 1rem; font-size: 1.05rem; color: #ddd6c7; }
.t-card__stars .on { color: #c9a227; }
.t-card blockquote { margin: 0 0 1.5rem; flex: 1; }
.t-card blockquote p { margin: 0; font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.6; color: var(--ink); }
.t-card figcaption { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.t-card__avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--green-800); color: #fff; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
}
.t-card__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.t-card__who strong { color: var(--ink); font-size: 1rem; }
.t-card__who span { color: var(--muted); font-size: .88rem; }
.t-card__sample {
  margin-left: auto; padding: .2rem .55rem; border-radius: 999px; border: 1px dashed #c8b98f;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8a6d2c; background: #fbf6e8;
}
.t-carousel__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.t-carousel__btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid #d5cebf; background: #fff; color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.t-carousel__btn:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; transform: scale(1.06); }
.t-carousel__btn .icon { width: 20px; height: 20px; }
.t-carousel__btn:disabled { opacity: .35; pointer-events: none; }
.t-carousel__dots { display: flex; gap: .5rem; }
.t-carousel__dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: #d5cebf;
  transition: width .4s var(--ease-out), background-color .3s;
}
.t-carousel__dots button[aria-selected="true"] { width: 28px; background: var(--green-800); }

@media (max-width: 1080px) {
  .t-card { flex-basis: calc((100% - 1.5rem) / 2); }
  .video-grid { grid-template-columns: 1fr; }
  .video-card--featured { aspect-ratio: 16 / 9; min-height: 0; }
  .video-grid__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .t-card { flex-basis: 100%; }
  .t-card figure { padding: 1.6rem 1.4rem 1.3rem; }
  .video-grid__side { grid-template-columns: 1fr; }
  .video-card__play { width: 64px; height: 64px; }
  .video-modal__close { top: -50px; }
  .testimonials::after { font-size: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-card__play::before, .video-card__play::after { animation: none; display: none; }
  .t-carousel__track { transition: none; }
}

/* Two listings: use two wider columns instead of leaving an empty third slot */
@media (min-width: 1081px) {
  .property-grid:has(> .property-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
