:root {
  --sand: #f5efe6;
  --sand-deep: #ece3d3;
  --ink: #1a1f2a;
  --ink-soft: #4a5160;
  --gold: #c9a35a;
  --gold-deep: #a8823b;
  --sea: #204a5a;
  --white: #ffffff;
  --shadow-lg: 0 30px 80px -30px rgba(15, 25, 40, 0.35);
  --shadow-md: 0 12px 40px -18px rgba(15, 25, 40, 0.25);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ───────── HERO ───────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: #000;
}
.hero__video { background: #000; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 45% 45% at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.hero__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.2s 0.2s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__headline::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  background: rgba(255,255,255,0.7);
  margin: 28px auto 0;
}
.hero__logo {
  width: clamp(180px, 20vw, 300px);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.45));
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  animation: reveal 1.6s 0.35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__sub {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: rise 1.2s 0.85s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 2px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll 1.8s infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(-4px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ───────── HOMES ───────── */
.homes {
  padding: clamp(60px, 7vw, 90px) 24px clamp(50px, 6vw, 70px);
  max-width: 1280px;
  margin: 0 auto;
}
.homes__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(32px, 4vw, 50px);
}
.homes__header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.homes__header p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; gap: 24px; } }

.card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.55s cubic-bezier(.2,.7,.2,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-deep);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body {
  padding: 28px 28px 30px;
}
.card__tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 10px;
}
.card__titlerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
}
.card__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.card__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--gold-deep);
  white-space: nowrap;
}
.card__body p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 18px;
}
.card__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.card:hover .card__cta { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ───────── MODAL ───────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.modal__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateY(12px);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.modal.is-open .modal__inner { transform: translateY(0); }

.modal__header {
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}
.modal__header .eyebrow { color: var(--gold); }
.modal__header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 54px);
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}
.modal__listing {
  display: inline-block;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.modal__listing:hover { color: var(--gold); }
.modal__hint {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 0.9; }
}

.modal__figure {
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.modal__figure--plan {
  background: #fff;
  padding: 0;
}

.modal__close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.modal__close:hover { background: rgba(0,0,0,0.6); transform: rotate(90deg); }

body.modal-open { overflow: hidden; }

/* ───────── ABOUT ───────── */
.about {
  background: #faf6ee;
  padding: clamp(30px, 4vw, 50px) 24px clamp(50px, 6vw, 70px);
}
.about__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 34px;
  color: var(--ink);
}
.about__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--gold-deep);
  margin-bottom: 40px;
}
.about__divider {
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin: 0 0 40px;
  opacity: 0.8;
}
.about__body {
  text-align: left;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.about__body p { margin: 0 0 1.3em; }
.about__body p:last-child { margin-bottom: 0; }

/* ───────── CAROUSEL ───────── */
.carousel {
  background: #faf6ee;
  padding: clamp(40px, 5vw, 70px) 0 clamp(30px, 4vw, 50px);
  overflow: hidden;
}
.carousel__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  padding: 0 24px;
}
.carousel__header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.carousel__viewport {
  position: relative;
  padding: 0 clamp(16px, 4vw, 60px);
}
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  cursor: grab;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.carousel__slide {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 520px);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand-deep);
  scroll-snap-align: center;
  user-select: none;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(26,31,42,0.12);
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.carousel__btn:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.05); }
.carousel__btn--prev { left: clamp(4px, 1.5vw, 20px); }
.carousel__btn--next { right: clamp(4px, 1.5vw, 20px); }
@media (max-width: 640px) { .carousel__btn { display: none; } }

/* ───────── FOOTER ───────── */
.footer {
  background: var(--ink);
  color: #e6e3dc;
  padding: clamp(70px, 9vw, 110px) 24px 40px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 780px) {
  .footer__inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .footer__col--brand { justify-items: center; }
}
.footer__col--brand { display: grid; gap: 24px; }
.footer__logo {
  width: 150px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer__addr {
  font-size: 14px;
  line-height: 1.7;
  color: #b8b3a8;
  letter-spacing: 0.02em;
}
.footer__col--contact .eyebrow {
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2px;
}
.footer__role {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8b3a8;
  margin-bottom: 6px;
}
.footer__firm-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #e6e3dc;
  margin-bottom: 22px;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.footer__list li { margin: 6px 0; }
.footer__list a {
  color: #e6e3dc;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__list a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.footer__firm {
  max-width: 200px;
  height: auto;
  margin-top: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer__base {
  text-align: center;
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7568;
}
