/* ─────────────────────────────────────────────────────────────
   TATIANA KNOUT · moveUP Realty
   Palette: cream + deep forest + warm gold
   Type: Fraunces (display) + Inter (body)
   ───────────────────────────────────────────────────────────── */

:root {
  --cream:        #f5f1ea;
  --cream-deep:   #ece5d6;
  --paper:        #ffffff;
  --ink:          #1a1f1c;
  --ink-soft:     #4a534b;
  --muted:        #807c73;
  --line:         #e6e0d1;
  --forest:       #0e4b3e;
  --forest-deep:  #0a3a31;
  --forest-darker:#072a23;
  --gold:         #b08855;
  --gold-bright:  #c89a64;
  --gold-soft:    #dec6a3;

  --container:    1280px;
  --gutter:       clamp(20px, 4vw, 72px);
  --radius:       14px;
  --radius-sm:    8px;

  --ease-out:     cubic-bezier(.2, .65, .2, 1);
  --ease-in-out:  cubic-bezier(.6, 0, .2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--forest); color: var(--cream); }

/* ─── Type ─── */
h1, h2, h3 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 350;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: 'opsz' 80;
  color: var(--ink);
}
em {
  font-style: italic;
  font-weight: 350;
  color: var(--forest);
}

/* ─────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  transition: background .35s ease, backdrop-filter .35s ease,
              padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  padding: 14px var(--gutter);
}
.nav.is-hero:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0));
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.nav__brand-mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--forest);
  transition: color .35s ease;
}
.nav__brand-divider {
  width: 1px; height: 18px;
  background: var(--line);
  transition: background .35s ease;
}
.nav__brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color .35s ease;
}
.nav.is-hero:not(.is-scrolled) .nav__brand-mark { color: var(--gold-soft); }
.nav.is-hero:not(.is-scrolled) .nav__brand-divider { background: rgba(255,255,255,0.35); }
.nav.is-hero:not(.is-scrolled) .nav__brand-text { color: #fff; }

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  margin-left: auto;
}
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: color .35s ease;
}
.nav.is-hero:not(.is-scrolled) .nav__links a { color: #fff; }

.nav__cta { white-space: nowrap; }

/* Icon-button cluster (phone / email) — circular ghost buttons */
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}
.nav__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid rgba(26, 31, 28, 0.18);
  background-color: transparent;
  box-shadow:
    rgba(255, 255, 255, 0.6) 0 1px 0 0 inset,
    rgba(26, 31, 28, 0.05)   0 1px 2px,
    rgba(26, 31, 28, 0.05)   0 6px 18px -8px;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s ease,
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease;
}
.nav__icon:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow:
    rgba(255, 255, 255, 0.7)  0 1px 0 0 inset,
    rgba(26, 31, 28, 0.10)    0 1px 2px,
    rgba(26, 31, 28, 0.12)    0 14px 30px -10px;
}
.nav__icon svg { display: block; }
.nav.is-hero:not(.is-scrolled) .nav__icon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    rgba(255, 255, 255, 0.18) 0 1px 0 0 inset,
    rgba(0, 0, 0, 0.18)       0 6px 24px -12px;
}
.nav.is-hero:not(.is-scrolled) .nav__icon:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    rgba(255, 255, 255, 0.26) 0 1px 0 0 inset,
    rgba(0, 0, 0, 0.30)       0 18px 40px -14px;
}

/* ─────────────────────────────────────────────────────────────
   LETTER HOVER  (from Portfolio reference, two-line slot reveal)
   Built by JS — see [data-letters] elements
   ───────────────────────────────────────────────────────────── */
[data-letters] {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.letters-slot {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  line-height: 1.1;
  white-space: pre;
}
.letters-up,
.letters-down {
  display: inline-flex;
  white-space: pre;
}
.letters-down {
  position: absolute;
  top: 100%; left: 0;
}
.letter {
  display: inline-block;
  transition: transform .55s var(--ease-in-out);
  transition-delay: calc(var(--i) * 22ms);
  will-change: transform;
}
@media (hover: hover) {
  [data-letters]:hover .letter,
  [data-letters]:focus-visible .letter {
    transform: translateY(-100%);
  }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS  (shaded / light-up, from DPWebsite reference)
   ───────────────────────────────────────────────────────────── */
.btn {
  --btn-pad-y: 17px;
  --btn-pad-x: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition:
    transform .35s var(--ease-out),
    box-shadow .35s ease,
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease;
}
.btn--sm {
  --btn-pad-y: 12px;
  --btn-pad-x: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* Primary — deep forest with layered shadow + inset top-light */
.btn--primary {
  background-color: var(--forest);
  color: var(--cream);
  box-shadow:
    rgba(255, 255, 255, 0.20)  0 3px 1px 0 inset,
    rgba(7, 42, 35, 0.16)      0 0.84px 0.50px -0.31px,
    rgba(7, 42, 35, 0.16)      0 1.99px 1.19px -0.63px,
    rgba(7, 42, 35, 0.16)      0 3.63px 2.18px -0.94px,
    rgba(7, 42, 35, 0.16)      0 6.04px 3.62px -1.25px,
    rgba(7, 42, 35, 0.16)      0 9.75px 5.85px -1.56px,
    rgba(7, 42, 35, 0.16)      0 15.96px 9.57px -1.88px,
    rgba(7, 42, 35, 0.16)      0 27.48px 16.49px -2.19px,
    rgba(7, 42, 35, 0.18)      0 50px 30px -2.5px;
}
.btn--primary:hover {
  background-color: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow:
    rgba(255, 255, 255, 0.26)  0 3px 1px 0 inset,
    rgba(7, 42, 35, 0.22)      0 0.84px 0.50px -0.31px,
    rgba(7, 42, 35, 0.22)      0 1.99px 1.19px -0.63px,
    rgba(7, 42, 35, 0.22)      0 3.63px 2.18px -0.94px,
    rgba(7, 42, 35, 0.22)      0 6.04px 3.62px -1.25px,
    rgba(7, 42, 35, 0.22)      0 9.75px 5.85px -1.56px,
    rgba(7, 42, 35, 0.22)      0 15.96px 9.57px -1.88px,
    rgba(7, 42, 35, 0.22)      0 27.48px 16.49px -2.19px,
    rgba(7, 42, 35, 0.26)      0 64px 38px -2.5px;
}

/* Gold — for dark backgrounds (contact CTA) */
.btn--gold {
  background-color: var(--gold);
  color: #1a140a;
  box-shadow:
    rgba(255, 255, 255, 0.32)  0 3px 1px 0 inset,
    rgba(82, 56, 22, 0.22)     0 0.84px 0.50px -0.31px,
    rgba(82, 56, 22, 0.22)     0 1.99px 1.19px -0.63px,
    rgba(82, 56, 22, 0.22)     0 3.63px 2.18px -0.94px,
    rgba(82, 56, 22, 0.22)     0 6.04px 3.62px -1.25px,
    rgba(82, 56, 22, 0.22)     0 9.75px 5.85px -1.56px,
    rgba(82, 56, 22, 0.22)     0 15.96px 9.57px -1.88px,
    rgba(82, 56, 22, 0.26)     0 50px 30px -2.5px;
}
.btn--gold:hover {
  background-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow:
    rgba(255, 255, 255, 0.38)  0 3px 1px 0 inset,
    rgba(82, 56, 22, 0.28)     0 0.84px 0.50px -0.31px,
    rgba(82, 56, 22, 0.28)     0 1.99px 1.19px -0.63px,
    rgba(82, 56, 22, 0.28)     0 3.63px 2.18px -0.94px,
    rgba(82, 56, 22, 0.28)     0 6.04px 3.62px -1.25px,
    rgba(82, 56, 22, 0.28)     0 9.75px 5.85px -1.56px,
    rgba(82, 56, 22, 0.28)     0 15.96px 9.57px -1.88px,
    rgba(82, 56, 22, 0.32)     0 64px 38px -2.5px;
}

/* Ghost — transparent with subtle border + hairline inset */
.btn--ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 31, 28, 0.18);
  box-shadow:
    rgba(255, 255, 255, 0.6)  0 1px 0 0 inset,
    rgba(26, 31, 28, 0.05)    0 1px 2px,
    rgba(26, 31, 28, 0.05)    0 6px 18px -8px;
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow:
    rgba(255, 255, 255, 0.7)  0 1px 0 0 inset,
    rgba(26, 31, 28, 0.10)    0 1px 2px,
    rgba(26, 31, 28, 0.12)    0 14px 30px -10px;
}

/* Ghost on dark backgrounds */
.btn--ghost.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    rgba(255, 255, 255, 0.18) 0 1px 0 0 inset,
    rgba(0, 0, 0, 0.20)       0 6px 24px -12px;
}
.btn--ghost.btn--on-dark:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    rgba(255, 255, 255, 0.26) 0 1px 0 0 inset,
    rgba(0, 0, 0, 0.32)       0 18px 40px -12px;
}

/* nav ghost - smaller on hero */
.nav.is-hero:not(.is-scrolled) .nav__cta.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background-color: rgba(255, 255, 255, 0.04);
}
.nav.is-hero:not(.is-scrolled) .nav__cta.btn--ghost:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────────────────────
   HERO  — scroll-driven clip-path reveal
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: #000;
}
.hero__driver {
  position: relative;
  height: calc(100vh + 1000px); /* 100vh sticky + 1000px scroll budget */
  background: #000;
}
.hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
  color: #fff;
  /* Starts as a centered 50%×50% window; JS expands to inset(0 0 0 0) */
  clip-path: inset(25% 25% 25% 25% round 20px);
  -webkit-clip-path: inset(25% 25% 25% 25% round 20px);
  will-change: clip-path, -webkit-clip-path;
}
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06); /* JS interpolates to 1.0 */
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    /* Soft pool of extra shade behind the title block (bottom-left) */
    radial-gradient(ellipse 70% 50% at 28% 88%,
      rgba(7, 20, 16, 0.45) 0%,
      rgba(7, 20, 16, 0)   70%),
    /* Top-to-bottom shading: lighter middle, much darker base */
    linear-gradient(180deg,
      rgba(7, 20, 16, 0.55) 0%,
      rgba(7, 20, 16, 0.15) 25%,
      rgba(7, 20, 16, 0.40) 55%,
      rgba(7, 20, 16, 0.78) 80%,
      rgba(7, 20, 16, 0.92) 100%),
    /* Subtle green-tinted side wash */
    linear-gradient(100deg,
      rgba(14, 75, 62, 0.40) 0%,
      rgba(14, 75, 62, 0.05) 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 16vh, 160px);
  /* Hidden until JS-driven reveal completes */
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-bottom: 26px;
  font-weight: 500;
}
.hero__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(176, 136, 85, 0.20);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(176, 136, 85, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(176, 136, 85, 0.06); }
}

.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3.6rem, 11vw, 9rem);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0 0 22px;
  color: #fff;
}
.hero__title-line { display: block; }
.hero__title-line--italic {
  font-style: italic;
  font-weight: 350;
  color: var(--gold-soft);
  margin-left: clamp(20px, 6vw, 80px);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 40px;
  max-width: 600px;
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll cue — fixed during the hero phase */
.hero__scroll {
  position: fixed;
  bottom: 28px;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 5;
  pointer-events: auto;
  mix-blend-mode: difference; /* legible over light or dark area */
  will-change: opacity;
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 70px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, var(--gold-soft));
  animation: scrollLine 2.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0); }
  100% { transform: translateY(280%); }
}

/* ─────────────────────────────────────────────────────────────
   SECTIONS — base
   ───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(90px, 16vh, 180px) 0;
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
  margin-bottom: 26px;
  position: relative;
  padding-left: 38px;
}
.section__label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: var(--gold);
}
.section__label--light {
  color: var(--gold-soft);
}
.section__label--light::before { background: var(--gold-soft); }

.section__heading {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 900px;
}
.section__heading--light { color: #fff; }
.section__heading--light em { color: var(--gold-soft); }
.section__sub {
  margin-top: 22px;
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}
.section__head--center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.section__head--center .section__heading { margin-inline: auto; }
.section__head--center .section__label { padding-left: 28px; padding-right: 28px; }
.section__head--center .section__label::before {
  left: 50%; transform: translateX(-50%);
  width: 18px;
}

/* ─────────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────────── */
.section--about {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about__body p {
  margin: 0 0 1.1em;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.about__body p:last-child { margin-bottom: 0; }
.about__body strong {
  color: var(--ink);
  font-weight: 500;
}

.stats {
  margin-top: clamp(60px, 10vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--cream);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .35s ease;
}
.stat:hover { background: var(--cream-deep); }
.stat__num {
  font-family: 'Fraunces', serif;
  font-weight: 350;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1;
}
.stat__num span {
  color: var(--gold);
  font-style: italic;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────
   HOMES (featured gallery)
   ───────────────────────────────────────────────────────────── */
.section--homes {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.section--homes .section__head {
  margin-bottom: clamp(50px, 8vh, 90px);
}
.homes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 260px);
  gap: 14px;
}
.home {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  grid-column: span 2;
  grid-row: span 1;
  isolation: isolate;
  transition: transform .5s var(--ease-out);
}
.home--tall  { grid-column: span 2; grid-row: span 2; }
.home--wide  { grid-column: span 4; grid-row: span 1; }

.home__media {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 1;
}
.home__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.18, .65, .2, 1),
              filter .9s ease;
  filter: saturate(0.95);
}
.home::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0)   30%,
    rgba(0,0,0,0.20) 60%,
    rgba(0,0,0,0.75) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity .5s ease;
}
.home:hover .home__media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.home__caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  transform: translateY(8px);
  transition: transform .5s var(--ease-out);
}
.home:hover .home__caption { transform: translateY(0); }
.home__tag {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}
.home__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────────────────────── */
.section--services {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.services {
  margin-top: clamp(50px, 8vh, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 38px);
}
.service {
  position: relative;
  background: var(--paper);
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition:
    transform .45s var(--ease-out),
    box-shadow .45s ease,
    border-color .45s ease;
}
.service::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-in-out);
}
.service:hover {
  transform: translateY(-8px);
  border-color: rgba(176, 136, 85, 0.5);
  box-shadow:
    0 1px 2px rgba(20,20,20,0.05),
    0 30px 60px -22px rgba(20,20,20,0.22);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.service__title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: -0.015em;
}
.service__copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────── */
.section--contact {
  background: var(--forest-darker);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(176, 136, 85, 0.22), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(176, 136, 85, 0.12), transparent 55%);
  pointer-events: none;
}
.section--contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.section--contact .section__inner { position: relative; z-index: 1; }

.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__copy {
  margin: 24px 0 38px;
  font-size: 1.05rem;
  color: rgba(245, 241, 234, 0.78);
  max-width: 480px;
  line-height: 1.7;
}
.contact__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.08),
    0 30px 60px -30px rgba(0,0,0,0.6);
}
.contact__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.contact__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact__row--block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact__key {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}
.contact__val {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 400;
  color: #fff;
  text-align: right;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.contact__row--block .contact__val { text-align: left; }
a.contact__val { transition: color .3s ease; }
a.contact__val:hover { color: var(--gold-soft); }

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--forest-darker);
  color: rgba(245, 241, 234, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 360px;
  min-width: 0;
}
.footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.footer__mark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
}
.footer__name {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.footer__copy {
  margin: 0;
  font-size: 0.74rem;
  max-width: 600px;
  text-align: left;
  line-height: 1.55;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out), opacity .35s ease;
}
.footer__logo:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.footer__logo img {
  display: block;
  height: 112px;
  width: auto;
}

/* ─────────────────────────────────────────────────────────────
   REVEAL on scroll
   ───────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   LENIS
   ───────────────────────────────────────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .homes {
    grid-template-columns: repeat(4, 1fr);
  }
  .home, .home--tall, .home--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  .home--tall { grid-row: span 2; }
  .home--wide { grid-column: span 4; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { gap: 14px; }
  .nav__actions { margin-left: auto; }

  .about__grid { grid-template-columns: 1fr; gap: 28px; }

  .services { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .contact__val { text-align: left; }

  .hero__scroll { display: none; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 32px var(--gutter);
  }
  .footer__left {
    flex: 0 0 auto;
    width: 100%;
    order: 2;
  }
  .footer__logo {
    order: 1;
  }
  .footer__logo img { height: 84px; }
}

@media (max-width: 640px) {
  /* Hero: shorter scroll budget + wider/shallower start window on portrait */
  .hero__driver { height: calc(100vh + 600px); }
  .hero__sticky {
    clip-path: inset(28% 8% 28% 8% round 14px);
    -webkit-clip-path: inset(28% 8% 28% 8% round 14px);
  }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 22px; }

  .homes {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .home, .home--tall, .home--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .home--tall { grid-row: span 1; }

  .hero { min-height: 580px; }
  .hero__title-line--italic { margin-left: 16px; }
  .hero__content { padding-bottom: clamp(60px, 12vh, 100px); }

  .btn { --btn-pad-x: 22px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; min-width: 140px; }

  .section__label { padding-left: 28px; }

  .contact__card { border-radius: 14px; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__driver { height: 100vh; }
  .hero__sticky {
    clip-path: inset(0 0 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0) !important;
  }
  .hero__bg img { transform: scale(1); }
  .hero__content { opacity: 1 !important; transform: none !important; }
  .letter { transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
