:root {
  --cream: #f4efe6;
  --paper: #faf7f1;
  --ink: #1a1714;
  --muted: #5c564e;
  --line: rgba(26, 23, 20, 0.12);
  --terracotta: #9a4a2c;
  --terracotta-dark: #7c3a22;
  --sage: #3f4b3d;
  --gold: #c4a574;
  --white: #fff;
  --shadow: 0 18px 50px rgba(26, 23, 20, 0.18);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#gallery,
#production,
#amenities {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.logo,
.hero-kicker,
.stat-value {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--white);
  padding: 8px 12px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  color: var(--white);
  mix-blend-mode: normal;
}

.nav.is-scrolled {
  background: rgba(26, 23, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  text-decoration: none;
  font: 600 0.82rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--terracotta-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--ink);
}

.btn-dark:hover {
  background: #2c2723;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  overflow: hidden;
  display: grid;
  align-items: end;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 28s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.28) 0%, rgba(26, 23, 20, 0.12) 36%, rgba(26, 23, 20, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 42ch;
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--paper);
  padding: 28px 18px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  overflow: hidden;
  border-radius: 4px;
  min-height: 520px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.about-copy p {
  color: var(--muted);
}

.about-copy p + p {
  margin-top: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: 500 0.8rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.tile {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #ddd;
  cursor: zoom-in;
  min-height: 220px;
}

.tile:nth-child(1),
.tile:nth-child(8) {
  grid-column: span 8;
  min-height: 420px;
}

.tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile.is-hidden {
  display: none;
}

.notes {
  background: var(--ink);
  color: var(--cream);
}

.notes .section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.notes .section-kicker {
  color: var(--gold);
}

.notes h2 {
  color: var(--white);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.note {
  padding: 24px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.note h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 500;
}

.note p {
  margin: 0;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.96rem;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--white);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.review {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.stars {
  color: var(--terracotta);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.review p {
  margin: 12px 0 16px;
  color: var(--muted);
}

.review cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.cta {
  text-align: center;
  padding: 96px 28px 110px;
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.35), rgba(26, 23, 20, 0.62)),
    url("../images/40-exterior.jpg") center/cover no-repeat;
  color: var(--white);
}

.cta h2 {
  margin: 0 auto 12px;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.cta p {
  margin: 0 auto 28px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
}

.footer {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(12, 10, 8, 0.94);
  color: var(--white);
}

.lightbox.is-open {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 0.85rem;
}

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
}

.lightbox-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

body.lb-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .about,
  .note-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  .about-photo,
  .about-photo img {
    min-height: 280px;
  }

  .tile,
  .tile:nth-child(1),
  .tile:nth-child(8) {
    grid-column: span 12;
    min-height: 240px;
  }

  .section {
    padding: 64px 20px;
  }

  .hero-copy {
    padding: 0 20px 48px;
  }
}
