:root {
  --char: #161513;
  --paper: #f4f0ea;
  --stone: #cfc6b6;
  --ink: #2a2723;
  --muted: #6f6a62;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--char);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.nav {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.nav nav { display: flex; gap: 1.8rem; font-size: 0.88rem; }
.nav nav a:hover { color: var(--stone); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(244, 240, 234, 0.35);
  color: var(--paper);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 5.5rem 1.4rem 2rem;
  overflow: hidden;
}
.feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.feature-meta {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem 1.6rem;
  border-radius: 1.35rem;
  background: rgba(22, 21, 19, 0.24);
  border: 1px solid rgba(244, 240, 234, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  max-width: 40rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.feature-meta p {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--stone);
}
.feature h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1.2rem;
}
.feature ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  color: var(--stone);
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}
.btn {
  align-self: flex-start;
  border: 1px solid var(--paper);
  padding: 0.8rem 1.3rem;
  font-size: 0.88rem;
}
.btn:hover { background: var(--paper); color: var(--char); }

.list { background: var(--paper); color: var(--ink); padding: 5rem 0 2rem; }
.list header {
  padding: 0 2.4rem 3rem;
  max-width: 36rem;
}
.list h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.list header p { color: var(--muted); }

.listing {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 1px solid #ddd6c8;
}
.listing.reverse { grid-template-columns: 0.8fr 1.2fr; }
.listing.reverse figure { order: 2; }
.listing figure {
  overflow: hidden;
  min-height: 0;
}
.listing figure img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  object-position: center;
}
.listing div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.place {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}
.listing h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0.5rem 0 1rem;
}
.listing .price {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.diaspora {
  padding: 6rem 2.4rem;
  max-width: 42rem;
}
.label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--stone);
}
.diaspora h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  margin: 0.8rem 0 1.2rem;
  line-height: 1.15;
}
.diaspora p:last-child { color: #b9b2a6; max-width: 34rem; }

.viewing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2.4rem 5rem;
  background: #1e1c1a;
}
.viewing h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.viewing p { color: var(--stone); }
form { display: flex; flex-direction: column; gap: 1rem; }
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--stone);
}
input, select {
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a3732;
  padding: 0.6rem 0;
  color: var(--paper);
}
select option { color: var(--char); }
form button {
  margin-top: 0.6rem;
  align-self: flex-start;
  background: var(--paper);
  color: var(--char);
  border: none;
  padding: 0.85rem 1.3rem;
  cursor: pointer;
}

footer {
  padding: 1.3rem 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--stone);
  border-top: 1px solid #2c2a27;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.powered {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.55;
}
.powered a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .menu-btn { display: block; }
  .nav { padding: 1rem 1.15rem; }
  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--char);
    flex-direction: column;
    padding: 1rem 1.15rem 1.4rem;
    gap: 0.8rem;
    text-shadow: none;
  }
  .nav.open nav { display: flex; }
  .feature {
    min-height: 100svh;
    padding: 4.8rem 1rem 1.2rem;
    align-items: flex-end;
  }
  .feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
  .feature-meta {
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 1.4rem 1.2rem;
    background: rgba(22, 21, 19, 0.28);
  }
  .feature h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .feature ul {
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
  }
  .list { padding: 3.2rem 0 1rem; }
  .list header { padding: 0 1.15rem 2rem; }
  .listing, .listing.reverse, .viewing { grid-template-columns: 1fr; }
  .listing.reverse figure { order: 0; }
  .listing figure img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .listing div, .viewing { padding: 1.8rem 1.15rem; }
  .listing h3 { font-size: 1.55rem; }
  .diaspora { padding: 3.5rem 1.15rem; }
  .viewing { gap: 1.6rem; }
  .foot-row { flex-direction: column; gap: 0.35rem; }
  .btn, form button { width: 100%; text-align: center; }
  form button { align-self: stretch; }
}

/* Motion */
.feature-meta > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.feature-meta > *:nth-child(1) { animation-delay: 0.12s; }
.feature-meta > *:nth-child(2) { animation-delay: 0.26s; }
.feature-meta > *:nth-child(3) { animation-delay: 0.4s; }
.feature-meta > *:nth-child(4) { animation-delay: 0.54s; }

.feature,
.listing figure {
  overflow: hidden;
}
.feature > img {
  animation: kenburns 26s ease-out forwards;
  will-change: transform;
}
.listing figure img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing:hover figure img {
  transform: scale(1.06);
}

.btn,
form button {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn:hover,
form button:hover {
  transform: translateY(-2px);
}

.diaspora h2 {
  background: linear-gradient(90deg, var(--paper) 0%, #b9b2a6 50%, var(--paper) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-meta > *,
  .feature > img,
  .diaspora h2,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    color: var(--paper);
    background: none;
  }
}
