:root {
  --ink-900: #0A0A0A;
  --ink-600: #4A4A4A;
  --ink-200: #DCDCDC;
  --paper-warm: #FAF9F7;
  --accent: #A85B33;
  --line-inv: rgba(255, 255, 255, .55);
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink-900);
  font-family: var(--font-sans); font-size: 16px; font-weight: 300; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 24px; }
h4 { font-size: 19px; }
p { margin: 0 0 16px; }
img { display: block; max-width: 100%; }
a { color: var(--ink-900); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; text-align: center; }
.section { padding-block: var(--section-y); }
.warm { background: var(--paper-warm); }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-600); }
.eyebrow.light { color: #fff; opacity: .85; }
.key { width: 64px; height: 2px; background: var(--accent); margin: 16px 0 28px; }
.key.center { margin-inline: auto; }
.section-head .key { margin-bottom: 0; }
.lede { font-size: 18px; color: var(--ink-600); line-height: 1.8; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0));
  transition: background .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(0,0,0,.88); padding-block: 12px; }
.nav-brand { font-family: var(--font-display); font-size: 16px; letter-spacing: .08em; color: #fff; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.navlink { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .78; transition: opacity .25s ease; }
.navlink:hover { opacity: 1; }
.navlink-box { border: 1px solid var(--line-inv); padding: 8px 16px; }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; height: 96vh; min-height: 620px; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.6) 100%); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 7vw, 88px); color: #fff; }
.hero-tag { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.badge { border: 1px solid var(--line-inv); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 7px 14px; }
.hero-price { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); margin-bottom: 10px; }
.hero-city { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 36px; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); border-top: 1px solid var(--line-inv); padding-top: 24px; max-width: 760px; }
.stat-v { font-family: var(--font-display); font-size: 28px; }
.stat-k { opacity: .75; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }

/* Features */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ink-200); }
.features span { font-family: var(--font-display); font-size: 14px; color: var(--accent); flex: 0 0 auto; }
.features p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.g-item { padding: 0; border: 0; background: #eee; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.g-large { grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .g-large { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Floor plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: clamp(24px, 4vw, 48px); }
.plans figure { margin: 0; }
.plans h4 { margin-bottom: 16px; text-align: center; }
.plans img { width: 100%; background: #fff; border: 1px solid var(--ink-200); transition: box-shadow .25s ease; }
.plans a:hover img { box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.fineprint { text-align: center; margin: 32px 0 0; font-size: 12px; color: var(--ink-600); }

/* Facts */
.facts-wrap { max-width: 760px; }
.facts { margin: 0; border-bottom: 1px solid var(--ink-200); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-top: 1px solid var(--ink-200); font-size: 15px; }
.facts dt { color: var(--ink-600); }
.facts dd { margin: 0; text-align: right; }

/* Backyard */
.backyard { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.backyard-shade { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.backyard-inner { position: relative; z-index: 2; padding-block: 80px; color: #fff; }
.backyard .lede { color: #fff; opacity: .9; }

/* Contact */
.contact { background: #000; color: #fff; }
.agent-photo { width: 120px; height: 120px; object-fit: cover; object-position: center 20%; border-radius: 50%; margin: 0 auto 24px; filter: grayscale(1); }
.agent-logo { width: 140px; height: auto; margin: 0 auto 20px; }
.contact h2 { margin-bottom: 12px; }
.agent-line { opacity: .75; margin-bottom: 28px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 48px; }
.contact-links a { color: #fff; border-bottom: 1px solid var(--line-inv); font-size: 15px; letter-spacing: .04em; }
.contact-links span { opacity: .4; }

.showing-form { text-align: left; display: grid; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-inv); border-radius: 0; padding: 10px 0;
  color-scheme: dark;
}
.field select option { color: #000; }
.field textarea { resize: vertical; border: 1px solid var(--line-inv); padding: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; }
.showing-form .btn-inv { justify-self: center; margin-top: 12px; }
.form-status { text-align: center; min-height: 1.5em; margin: 0; font-size: 14px; }

.btn-inv {
  display: inline-block; padding: 18px 40px; background: #fff; color: var(--ink-900); border: 0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: opacity .25s ease;
}
.btn-inv:hover { opacity: .85; }
.btn-inv:disabled { opacity: .5; cursor: wait; }

/* Footer */
.footer { background: #000; border-top: 1px solid var(--line-inv); padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.kw-logo { height: 28px; width: auto; filter: invert(1); }
.footer p { margin: 0; color: #fff; opacity: .5; font-size: 11px; letter-spacing: .04em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 86vw; max-height: 84vh; object-fit: contain; }
.ibtn { position: absolute; width: 44px; height: 44px; border: 1px solid var(--line-inv); background: transparent; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ibtn:hover { background: rgba(255,255,255,.1); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
