:root {
  --bg: #f7f5f1;
  --ink: #17181a;
  --ink-soft: #4c4e52;
  --navy: #1f3a5f;
  --line: #e3dfd7;
  --white: #ffffff;
  --serif: "Libre Baskerville", Georgia, serif;
  --brand: "Cinzel", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--brand);
  font-size: 17px; letter-spacing: 0.18em; font-weight: 700;
  text-transform: uppercase;
}
.wordmark span { color: var(--navy); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
nav.main a:hover { color: var(--ink); }
nav.main a.cta {
  color: var(--white); background: var(--navy);
  padding: 10px 18px; border-radius: 2px;
}
nav.main a.cta:hover { background: #16293f; color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; }
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 17, 19, 0.72) 0%, rgba(16, 17, 19, 0.12) 55%);
}
.hero .content { position: relative; z-index: 1; color: var(--white); padding: 64px 0 72px; width: 100%; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); font-weight: 600; margin-bottom: 14px;
}
.hero .eyebrow { color: #b8c8de; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18;
  max-width: 17em;
}
.hero p.sub { margin-top: 18px; font-size: 17px; max-width: 34em; color: rgba(255,255,255,0.85); }
.btn-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px; font-weight: 600;
}
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: #16293f; }
.btn.ghost { border: 1px solid rgba(255,255,255,0.55); color: var(--white); }
.btn.ghost:hover { border-color: var(--white); }
.btn.dark-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn.dark-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin-bottom: 10px;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); max-width: 36em; }

/* property cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 14px 40px rgba(23, 24, 26, 0.10); transform: translateY(-2px); }
.card .photo { aspect-ratio: 4 / 2.9; background-size: cover; background-position: center; position: relative; }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 6px 10px; border-radius: 2px; background: var(--white); color: var(--ink);
}
.badge.avail { background: #123d23; color: #ffffff; }
.badge.soon { background: var(--navy); color: #ffffff; }
.badge.uc { background: #8a6d1d; color: #ffffff; }
.card .body { padding: 22px 22px 24px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.card .meta { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.card .price { margin-top: 12px; font-size: 15px; font-weight: 600; }
.card .link {
  margin-top: 16px; display: inline-block; font-size: 12px; letter-spacing: 0.13em;
  text-transform: uppercase; font-weight: 600; color: var(--navy);
  border-bottom: 1px solid var(--navy); padding-bottom: 3px;
}

/* availability table */
.units { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.units th {
  text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.units td { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.units tr:last-child td { border-bottom: none; }
.pill {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 5px 10px; border-radius: 2px; white-space: nowrap;
}
.pill.avail { background: #e3efe7; color: #123d23; }
.pill.uc { background: #f3ead0; color: #6e5716; }
.pill.sold { background: #e9e7e2; color: #6d6f73; text-decoration: none; }
.units .book { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--navy); }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.gallery .g { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: 3px; }
.gallery .g.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

/* finishes / mood board */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mood { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 3px; position: relative; overflow: hidden; }
.mood .tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(to top, rgba(16,17,19,0.75), transparent);
}
.mood.placeholder {
  background: repeating-linear-gradient(45deg, #eceae4, #eceae4 12px, #f2f0ea 12px, #f2f0ea 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 12px;
}

/* two-col info */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--ink-soft); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* form card */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 30px 28px 28px;
}
.form-card.sticky { position: sticky; top: 88px; }
.form-card h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 4px; }
.form-card p.hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.form-card label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 15px; background: #fbfaf8; color: var(--ink);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.form-card .btn { width: 100%; text-align: center; margin-top: 20px; border: none; cursor: pointer; font-family: var(--sans); }
.form-card .fine { margin-top: 12px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.direct { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); text-align: center; }
.direct a { color: var(--navy); font-weight: 600; }

/* VIP band */
.vip-band { background: var(--ink); color: var(--white); }
.vip-band h2 { color: var(--white); }
.vip-band p { color: rgba(255,255,255,0.75); max-width: 38em; }
.vip-inline { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.vip-inline input {
  flex: 1 1 220px; padding: 14px 14px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06); color: var(--white); border-radius: 2px; font-size: 15px;
}
.vip-inline input::placeholder { color: rgba(255,255,255,0.5); }
.vip-inline .btn { border: none; cursor: pointer; font-family: var(--sans); }

/* quiet strip */
.quiet { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f1eee8; }
.quiet .inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.quiet p { color: var(--ink-soft); max-width: 40em; }

/* footer */
footer.site { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 40px; margin-top: 0; }
footer.site .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer.site .wordmark { color: var(--white); }
footer.site a:hover { color: var(--white); }
footer.site .fine { margin-top: 34px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* demo ribbon */
.demo-ribbon {
  background: var(--navy); color: #dbe6f5; text-align: center;
  font-size: 12px; letter-spacing: 0.08em; padding: 8px 12px;
}

/* toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 14px 22px; border-radius: 3px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 99;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  nav.main a:not(.cta) { display: none; }
  .split { grid-template-columns: 1fr; }
  .moods { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .form-card.sticky { position: static; }
}
