:root {
  --ink: #22272a;
  --muted: #6c7373;
  --paper: #f6f2ea;
  --paper-deep: #ebe3d6;
  --white: #fff;
  --charcoal: #353b3f;
  --charcoal-2: #262b2e;
  --gold: #b79a73;
  --gold-dark: #917553;
  --line: rgba(34, 39, 42, 0.13);
  --shadow: 0 28px 70px rgba(24, 28, 31, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.modal-lock { overflow: hidden; }

img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(48, 54, 58, 0.98);
  color: var(--white);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  max-width: 180px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  word-break: break-word;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  padding: 30px 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 0.22s ease;
}

.nav a:hover,
.nav a:focus,
.nav a.active { color: var(--white); }

.nav a:hover::after,
.nav a:focus::after,
.nav a.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: var(--white); }
.button-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.button-outline { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--charcoal); }
.button-dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.button-dark:hover { background: var(--charcoal-2); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 22, 0.78), rgba(16, 20, 22, 0.35) 48%, rgba(16, 20, 22, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8vw 0 10vw;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.7rem);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  margin-top: 14px;
  font-family: "Montserrat", Inter, system-ui, sans-serif;
  font-size: 0.34em;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero p,
.page-hero p {
  max-width: 580px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(246, 242, 234, 0.96);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  width: 100%;
}

.hero-strip .wrap {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(var(--max), calc(100% - 40px));
}

.strip-item {
  padding: 16px 14px;
  border-left: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
}

.strip-item:last-child { border-right: 1px solid var(--line); }
.strip-item strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-item span { color: var(--muted); font-size: 0.82rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section {
  padding: clamp(72px, 8vw, 118px) 0;
}

.section-alt { background: var(--white); }
.section-deep { background: var(--charcoal); color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split.reverse { grid-template-columns: 1.12fr 0.88fr; }

.section-title {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5vw, 5.2rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0;
}

.section-title span {
  display: block;
  margin-top: 14px;
  font-family: "Montserrat", Inter, system-ui, sans-serif;
  font-size: 0.28em;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-deep .lede { color: rgba(255, 255, 255, 0.78); }

.section .eyebrow,
.section .section-title,
.section .lede,
.section .button,
.feature-list,
.residence-card,
.contact-form,
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.contact-details div {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="up"] { transform: translateY(34px); }

.is-visible,
.is-visible[data-reveal],
.is-visible .eyebrow,
.is-visible .section-title,
.is-visible .lede,
.is-visible .button,
.is-visible.feature-list,
.is-visible.residence-card,
.is-visible.contact-form {
  opacity: 1;
  transform: translate(0, 0);
}

.section.is-visible .eyebrow { --reveal-delay: 40ms; }
.section.is-visible .section-title { --reveal-delay: 120ms; }
.section.is-visible .lede { --reveal-delay: 190ms; }
.section.is-visible .button { --reveal-delay: 260ms; }

.media-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  align-items: end;
}

.media-stack img,
.feature-image,
.gallery-grid img {
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-stack img:first-child { aspect-ratio: 4 / 5; }
.media-stack img:last-child { aspect-ratio: 4 / 3; transform: translateY(34px); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
}

.feature-list li {
  list-style: none;
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--charcoal);
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.feature-list.is-visible li {
  animation: featureFade 0.64s ease both;
  animation-delay: calc(var(--item-index, 0) * 55ms);
}

.residence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
  width: 100%;
}

.residence-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(25, 29, 31, 0.08);
}

.residence-card:nth-child(2) { --reveal-delay: 110ms; }
.residence-card:nth-child(3) { --reveal-delay: 220ms; }

.residence-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.residence-card-body {
  padding: 26px;
}

.residence-card h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.specs {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.specs strong { color: var(--ink); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
  margin-top: 42px;
  width: 100%;
}

.gallery-grid img { aspect-ratio: 1 / 1; width: 100%; min-width: 0; }
.gallery-grid img:nth-child(2) { aspect-ratio: 1 / 1.35; }

.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.page-hero .hero-content { padding: 7vw 0; }

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.contact-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: stretch;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.contact-details div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-details div:nth-child(2) { --reveal-delay: 120ms; }
.contact-details div:nth-child(3) { --reveal-delay: 240ms; }

.contact-details strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-showcase,
.contact-showcase * {
  color: var(--ink);
}

.contact-details a {
  color: var(--ink);
}

.contact-details a:hover,
.contact-details a:focus {
  color: var(--gold-dark);
}

.phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.phone-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}

.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--gold-dark);
}

.phone-icon svg {
  margin-top: 10px;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  display: block;
}

.map-panel {
  min-height: 400px;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
  display: block;
}

.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.84);
  flex-wrap: wrap;
}

.map-caption strong {
  display: block;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.map-caption a {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(34, 39, 42, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 132px; resize: vertical; }

/* ── Contact page: info + map row ── */
.contact-info-map {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-map-col {
  min-height: 460px;
}

/* contact-list: stacked phone links */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.contact-list a {
  color: var(--ink);
  font-size: 0.96rem;
  transition: color 0.18s ease;
}

.contact-list a:hover,
.contact-list a:focus {
  color: var(--gold-dark);
}

.contact-details span:not(.contact-list) {
  display: block;
  margin-top: 4px;
  font-size: 0.96rem;
  color: var(--muted);
}

/* ── Contact page: wide form section ── */
.contact-form-section {
  background: var(--paper-deep);
}

.contact-form-header {
  max-width: 640px;
  margin-bottom: 42px;
}

.contact-form-wide {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 52px);
  gap: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 4vw, 56px);
}

.form-full {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.form-submit {
  margin-top: 28px;
}

.site-footer {
  background: var(--charcoal-2);
  color: rgba(255, 255, 255, 0.8);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  margin: 0 0 6px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 24, 0.72);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 0;
}

.modal-header h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 500;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  font-size: 1.5rem;
}

.modal .contact-form {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding-top: 12px;
  opacity: 1;
  transform: none;
}

@keyframes featureFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .section .eyebrow,
  .section .section-title,
  .section .lede,
  .section .button,
  .feature-list,
  .feature-list li,
  .residence-card,
  .contact-form,
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .header-inner { min-height: 72px; gap: 16px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(48, 54, 58, 0.98);
    width: 100%;
  }

  .nav.open { display: flex; }
  .nav a { padding: 16px 0; }
  .nav a::after { bottom: 10px; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .header-actions { margin-left: auto; }
  .header-actions .button { display: none; }
  .hero { min-height: 760px; }
  .hero-strip .wrap,
  .split,
  .split.reverse,
  .contact-panel,
  .contact-showcase,
  .contact-info-map { grid-template-columns: 1fr; }
  .strip-item { border-right: 1px solid var(--line); }
  .media-stack { grid-template-columns: 1fr 1fr; }
  .residence-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:nth-child(3) { display: none; }
  .map-panel { min-height: 360px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .brand { font-size: 0.72rem; letter-spacing: 0.1em; max-width: 140px; }
  .hero { min-height: 640px; }
  .hero-content { padding-top: 5vw; padding-bottom: 200px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(16, 20, 22, 0.78), rgba(16, 20, 22, 0.32)); }

  /* Hero strip — stack vertically on small screens */
  .hero-strip .wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .strip-item {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 14px 0;
  }
  .strip-item:first-child { border-top: none; }

  /* Grids — single column */
  .feature-list,
  .media-stack,
  .residence-grid,
  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-grid img:nth-child(3) { display: block; }
  .gallery-grid img:nth-child(2) { aspect-ratio: 1 / 1; }

  .media-stack img:last-child { transform: none; }

  /* Section spacing */
  .section { padding: 56px 0; }

  /* Residence cards */
  .residence-card-body { padding: 20px; }
  .residence-card h3 { font-size: 1.6rem; }

  /* Contact section */
  .contact-showcase { gap: 36px; }
  .contact-info-map { gap: 32px; }
  .contact-map-col { min-height: 320px; }
  .form-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 300px; }
  .map-panel iframe { min-height: 260px; }
  .map-caption { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Phone list — prevent overflow */
  .phone-list li { flex-wrap: wrap; gap: 0.6rem; }

  /* Buttons — full width on mobile */
  .section .button { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Modal */
  .modal { padding: 12px; }
  .modal-header { padding: 20px 20px 0; }
  .modal .contact-form { padding: 16px 20px 24px; }
  .modal-header h2 { font-size: 1.8rem; }

  /* Section title sizing */
  .section-title { font-size: clamp(2rem, 7vw, 3.5rem); }

  /* Reveal animations — use translateY only, no translateX which can cause horizontal overflow */
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(28px); }
}

@media (max-width: 400px) {
  .brand { font-size: 0.65rem; letter-spacing: 0.08em; max-width: 120px; }
  .header-inner { gap: 10px; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero { min-height: 580px; }
  .hero-content { padding-bottom: 180px; }
  .section-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .feature-list li { font-size: 0.82rem; padding: 12px 14px; }
  .strip-item strong { font-size: 0.68rem; }
  .strip-item span { font-size: 0.76rem; }
}