/* ---------- Tokens ---------- */
:root {
  --bg: #F7F4EE;
  --bg-alt: #EFEAE0;
  --ink: #1B1A17;
  --ink-2: #35322D;
  --muted: #6B6558;
  --line: rgba(27,26,23,.12);
  --line-2: rgba(27,26,23,.06);
  --gold: #7A6438;
  --gold-2: #C9A55B;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.25);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --w: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .3em;
}
h1 { font-size: clamp(2.2rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.75rem, 5vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 500; }

p { margin: 0 0 1em; color: var(--ink-2); }

.overline {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(247,244,238,0);
  backdrop-filter: saturate(1.2) blur(0px);
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(247,244,238,.86);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--line-2);
}
.nav__inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; color: var(--bg); }
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav__mono {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.65rem;
  color: var(--gold-2);
  line-height: 1;
}
.nav.is-scrolled .nav__mono { color: var(--gold); }
.nav__word {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: rgba(247,244,238,.92);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav.is-scrolled .nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--gold-2); }
.nav.is-scrolled .nav__links a:hover { color: var(--gold); }
.nav__cta {
  border: 1px solid rgba(247,244,238,.6);
  padding: 10px 18px;
  border-radius: 999px;
}
.nav.is-scrolled .nav__cta { border-color: var(--ink); }
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.nav__toggle { display: none; background: transparent; border: 0; padding: 8px; width: 40px; height: 40px; }
.nav__toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--bg); margin: 5px auto;
  transition: background .3s;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav__mobile { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile:not([hidden]) {
    display: block;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
  }
  .nav__mobile a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .nav__mobile a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  min-height: 92vh;
  color: #fff;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
@media (max-width: 820px) {
  .hero { min-height: 78svh; min-height: 78vh; }
}
.hero__media {
  position: absolute; inset: 0;
  background: #2a2822 center/cover no-repeat;
  transform: scale(1.02);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 20% 90%, rgba(0,0,0,.55), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55) 100%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 8vw, 100px);
  z-index: 2;
}
.hero__inner .overline { color: var(--gold-2); }
.hero__title {
  color: #fff;
  max-width: 16ch;
  margin-bottom: .35em;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-2);
  font-weight: 400;
}
.hero__lede {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 52ch;
  margin-bottom: 2em;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 2;
  width: 30px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px;
  display: block;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; background: #fff;
  transform: translateX(-50%);
  animation: sc 1.8s ease-in-out infinite;
}
@keyframes sc { 0%{opacity:1;transform:translate(-50%,0)} 100%{opacity:0;transform:translate(-50%,14px)} }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--primary:hover { background: #927638; border-color: #927638; color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Facts strip ---------- */
.facts {
  background: var(--ink);
  color: #fff;
}
.facts ul {
  list-style: none;
  margin: 0; padding: 0;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.facts li {
  padding: 24px 10px;
  border-right: 1px solid rgba(255,255,255,.09);
  text-align: center;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.facts li:last-child { border-right: 0; }
.fact__k {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.fact__v {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-2);
}
@media (max-width: 780px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(3n) { border-right: 0; }
  .facts li:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.09); }
}
@media (max-width: 420px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { border-right: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
  .facts li:nth-child(2n) { border-right: 0; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 140px) 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
}
.section-head {
  max-width: var(--w);
  margin: 0 auto clamp(28px, 5vw, 64px);
  padding: 0 var(--pad);
  max-width: 900px;
}
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .overline { justify-content: center; }
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Estate ---------- */
.estate { background: var(--bg); }
.estate__grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.estate__copy p { color: var(--ink-2); font-size: 1.05rem; }
.estate__figure { margin: 0; }
.estate__img {
  aspect-ratio: 4/5;
  background: var(--bg-alt) center/cover no-repeat;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .estate__grid { grid-template-columns: 1fr; }
  .estate__img { aspect-ratio: 4/3; }
}

/* ---------- Amenities ---------- */
.amenities { background: var(--bg-alt); }
.amenity-grid {
  list-style: none; margin: 0; padding: 0;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.amenity-grid li {
  background: var(--bg-alt);
  padding: 36px 32px;
}
.amenity-grid li h3 { margin: 6px 0 8px; }
.amenity-grid li p { color: var(--muted); font-size: .95rem; margin: 0; }
.a__ic {
  display: inline-block;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}
@media (max-width: 820px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid li { padding: 22px 18px; }
  .amenity-grid li h3 { font-size: 1.1rem; }
  .amenity-grid li p { font-size: .88rem; line-height: 1.45; }
}
@media (max-width: 360px) { .amenity-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery__grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.g-item {
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-alt);
  cursor: zoom-in;
  position: relative;
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
  display: block;
}
.g-item:hover img { transform: scale(1.03); }
/* Grid spans by pattern class */
.g-item.g--big     { grid-column: span 8; aspect-ratio: 16/10; }
.g-item.g--small   { grid-column: span 4; aspect-ratio: 4/5; }
.g-item.g--tall    { grid-column: span 4; aspect-ratio: 3/4; }
.g-item.g--wide    { grid-column: span 8; aspect-ratio: 16/9; }
.g-item.g--sq      { grid-column: span 4; aspect-ratio: 1/1; }
.g-item.g--half    { grid-column: span 6; aspect-ratio: 4/3; }
@media (max-width: 820px) {
  .gallery__grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .g-item.g--big, .g-item.g--wide { grid-column: span 6; }
  .g-item.g--small, .g-item.g--tall, .g-item.g--sq, .g-item.g--half { grid-column: span 3; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-item { grid-column: span 1 !important; aspect-ratio: 1/1 !important; }
  .g-item.g--big, .g-item.g--wide { grid-column: span 2 !important; aspect-ratio: 4/3 !important; }
}

/* ---------- Location ---------- */
.location { background: var(--bg-alt); }
.location__grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.dist { list-style: none; margin: 24px 0 0; padding: 0; }
.dist li {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.dist li b { font-weight: 500; color: var(--ink); }
.dist li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.location__mark {
  display: grid; place-items: center;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.15));
}
.location__mark svg { max-width: 180px; }
@media (max-width: 820px) {
  .location__grid { grid-template-columns: 1fr; }
  .location__mark { order: -1; }
  .location__mark svg { max-width: 120px; }
}

/* ---------- Inquire ---------- */
.inquire { background: var(--bg); padding-bottom: clamp(48px, 8vw, 96px); }
.inquire__frame {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.inquire__frame iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  background: var(--bg-alt);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.form-placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 48px;
  text-align: center;
}
.form-placeholder p { color: var(--muted); margin: 0 auto; max-width: 52ch; }
.form-placeholder h3 { margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg); padding-top: 0; }
.contact__card {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact__name { font-size: 2rem; margin: .1em 0 .4em; }
.contact__lines {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.contact__lines a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact__lines a:hover { color: var(--gold); border-color: var(--gold); }
.contact__lines span { margin: 0 14px; color: var(--muted); }
.contact__note { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 36px var(--pad);
}
.foot__inner {
  max-width: var(--w);
  margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: .84rem;
  flex-wrap: wrap;
}
.foot__fine { color: rgba(255,255,255,.5); margin: 0; }
.foot p { color: inherit; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,10,8,.94);
  z-index: 60;
  display: grid; place-items: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lb__stage { margin: 0; max-width: 100%; max-height: 100%; }
.lb__stage img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lb__close, .lb__prev, .lb__next {
  position: absolute;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
}
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: rgba(255,255,255,.16); }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  margin: 0;
}

/* ---------- Motion & prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
