/* ============================================================
   Stone Retreat — Design System CSS
   Shared stylesheet for index.html (homepage)
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --clay: #b86f45;
  --clay-dark: #8c4d2e;
  --clay-light: #d4906a;
  --sand: #e8d8bd;
  --cream: #fbf4e9;
  --stone: #2e2a24;
  --stone-soft: #50483d;
  --olive: #6f7a55;
  --sage: #9aa17a;
  --paper: #fffaf1;
  --muted: #85786a;
  --border: rgba(46, 42, 36, 0.14);
  --glass: rgba(255, 250, 241, 0.78);
  --dark-glass: rgba(46, 42, 36, 0.54);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

/* ── 2. RESET + BASE ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--stone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(184, 111, 69, 0.25); }
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: transparent; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ── 3. GRAIN TEXTURE OVERLAY ─────────────────────────────── */
.texture {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.085;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(46, 42, 36, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(184, 111, 69, 0.16) 0 1px, transparent 1px);
  background-size: 34px 34px, 48px 48px;
  animation: grainMove 14s steps(6) infinite alternate;
  mix-blend-mode: multiply;
}

/* ── 4. REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 1.05s var(--ease),
    transform 1.05s var(--ease),
    filter 1.05s var(--ease);
  will-change: opacity, transform;
}
.reveal         { transform: translateY(38px); }
.reveal-left    { transform: translateX(-44px); }
.reveal-right   { transform: translateX(44px); }
.reveal-scale   { transform: scale(0.94); filter: blur(4px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ── 5. KEYFRAMES ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.88); opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes grainMove {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-4%, 4%, 0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 6. NAVIGATION ────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Default: over dark hero — transparent + white text */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    transform 0.42s cubic-bezier(.25,.46,.45,.94),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    opacity 0.35s var(--ease),
    height 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* Hero mode: transparent, white text (over dark photo) */
nav.hero-mode {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
nav.hero-mode .logo-text strong { color: rgba(255,250,241,.95); }
nav.hero-mode .logo-text span   { color: rgba(255,250,241,.5); }
nav.hero-mode .nav-links a      { color: rgba(255,250,241,.78); }
nav.hero-mode .nav-links a:hover { color: #fff; }
nav.hero-mode .hamburger span   { background: #fff; }
nav.hero-mode .nav-cta {
  background: rgba(255,250,241,.18);
  color: rgba(255,250,241,.9) !important;
  border: 1px solid rgba(255,250,241,.3);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
nav.hero-mode .nav-cta:hover {
  background: rgba(255,250,241,.32);
  color: #fff !important;
}

/* Scrolled mode: no full banner — small glass islands for readability */
nav.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* Compact nav — shrinks when user scrolls past hero */
nav.compact {
  height: 54px;
}
nav.compact .logo-mark {
  width: 33px; height: 33px; font-size: 1rem;
}
nav.compact .logo-text span {
  display: none;
}
nav.compact .logo-text strong {
  font-size: 1.08rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 999px;
  transition:
    padding 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.logo-mark {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--olive));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(184, 111, 69, 0.23);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.22rem;
  letter-spacing: 0.2px;
  color: var(--stone);
}
.logo-text span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 6px;
  position: relative;
  border-radius: 999px;
  background: rgba(255,250,241,.66);
  border: 1px solid rgba(255,250,241,.34);
  box-shadow: 0 14px 34px rgba(46,42,36,.12);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  transition:
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.nav-links a {
  position: relative;
  z-index: 2;
  color: var(--stone-soft);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  transition:
    color 0.25s,
    text-shadow .25s;
}
.nav-links a:not(.nav-cta) {
  padding: 8px 12px;
}
.nav-links a:hover { color: var(--clay-dark); }
.nav-links a.nav-active {
  color: var(--clay-dark);
}
nav.hero-mode .nav-links a.nav-active {
  color: #fff;
}
nav.hero-mode .logo-text strong,
nav.hero-mode .logo-text span,
nav.hero-mode .nav-links a {
  text-shadow:
    0 1px 2px rgba(20,17,12,.55),
    0 0 18px rgba(20,17,12,.45);
}
nav.hero-mode .nav-links {
  background: rgba(20,17,12,.14);
  border-color: rgba(255,250,241,.22);
  box-shadow: 0 14px 34px rgba(0,0,0,.1);
}
.nav-section-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 32px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  background: rgba(255,250,241,.58);
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  border: 1.5px solid rgba(184,111,69,.3);
  box-shadow:
    inset 0 0 0 1px rgba(255,250,241,.5),
    0 8px 22px rgba(184,111,69,.12);
  transform: translate3d(0,-50%,0);
  will-change: transform, width;
  transition:
    transform .68s cubic-bezier(.19,1,.22,1),
    width .68s cubic-bezier(.19,1,.22,1),
    opacity .25s var(--ease),
    border-color .25s var(--ease),
    background .25s var(--ease);
}
nav.hero-mode .nav-section-indicator {
  background: rgba(255,250,241,.16);
  border-color: rgba(255,250,241,.5);
  box-shadow:
    inset 0 0 0 1px rgba(255,250,241,.08),
    0 10px 30px rgba(0,0,0,.16);
}
nav.scrolled .logo {
  padding: 6px 12px 6px 6px;
  background: rgba(255,250,241,.72);
  border: 1px solid rgba(46,42,36,.08);
  box-shadow: 0 14px 34px rgba(46,42,36,.12);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}
nav.scrolled .nav-links {
  gap: .55rem;
  padding: 6px;
  background: rgba(255,250,241,.66);
  border: 1px solid rgba(255,250,241,.34);
  box-shadow: 0 14px 34px rgba(46,42,36,.12);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}
nav.scrolled .nav-links a:not(.nav-cta) {
  text-shadow: none;
}
nav.scrolled .nav-section-indicator {
  background: rgba(255,250,241,.58);
  border-color: rgba(184,111,69,.3);
  box-shadow:
    inset 0 0 0 1px rgba(255,250,241,.5),
    0 8px 22px rgba(184,111,69,.12);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  line-height: 1;
  padding: 0 16px;
  margin-right: 0;
  border-radius: 999px;
  background: var(--stone);
  color: var(--paper) !important;
  box-shadow: 0 12px 28px rgba(46, 42, 36, 0.15);
  text-shadow: none !important;
  transition: transform 0.25s var(--spring), background 0.25s;
}
.nav-cta:hover { transform: scale(1.025); background: var(--clay-dark); }

/* Hamburger */
.hamburger {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  width: 23px;
  height: 2px;
  background: var(--stone);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(251, 244, 233, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.3s;
}
.mobile-menu.open { max-height: 360px; opacity: 1; }
.mobile-menu a {
  display: block;
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border);
  color: var(--stone);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--clay-dark); background: rgba(184, 111, 69, 0.06); }

/* ── 7. HERO — full-width cinematic (Harroway-inspired) ────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}

/* Photo background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: scaleIn 8s var(--ease) both;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,17,12,.42) 0%,
    rgba(20,17,12,.35) 50%,
    rgba(20,17,12,.68) 100%
  );
}

/* Eyebrow pill */
.hero-eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,250,241,.12);
  border: 1px solid rgba(255,250,241,.22);
  color: rgba(255,250,241,.8);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  margin-bottom: 2.2rem;
  animation: fadeUp .9s .1s var(--ease) both;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clay-light);
  flex-shrink: 0;
  position: relative;
}
.eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid var(--clay-light);
  animation: pulseRing 1.9s infinite;
}

/* Center text block */
.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
  animation: fadeUp 1s .15s var(--ease) both;
}
.hero-center h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.2rem, 9.5vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -3px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.hero-center h1 em {
  font-style: italic;
  color: var(--clay-light);
}
.hero-sub {
  color: rgba(255,250,241,.72);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Hero buttons (on photo background) */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--paper);
  color: var(--stone);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  transition: transform .25s var(--spring), box-shadow .25s, background .25s;
}
.btn-hero-primary:hover {
  background: var(--clay-light);
  color: var(--paper);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,250,241,.88);
  background: rgba(255,250,241,.1);
  border: 1.5px solid rgba(255,250,241,.3);
  backdrop-filter: blur(12px);
  transition: transform .25s var(--spring), background .25s, color .25s;
}
.btn-hero-ghost:hover {
  background: rgba(255,250,241,.2);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Shared button base kept for non-hero pages */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s,
    background 0.25s,
    color 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--stone);
  color: var(--paper);
  box-shadow: 0 16px 38px rgba(46, 42, 36, 0.20);
}
.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 20px 48px rgba(140, 77, 46, 0.28);
}
.btn-ghost {
  color: var(--stone);
  background: rgba(255, 250, 241, 0.45);
  border: 1px solid rgba(46, 42, 36, 0.13);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 241, 0.82);
}
.btn-clay {
  background: var(--clay);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(184, 111, 69, 0.30);
}
.btn-clay:hover {
  background: var(--clay-dark);
  transform: translateY(-2px) scale(1.025);
}
.btn-outline {
  color: var(--stone);
  background: transparent;
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: rgba(46, 42, 36, 0.05);
  border-color: var(--muted);
}

  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(46, 42, 36, 0.45);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(46, 42, 36, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--clay);
  animation: fadeUp 1.6s infinite;
}

/* ── 8. COMMON SECTION STYLES ─────────────────────────────── */
.section {
  padding: 7.5rem 5%;
  position: relative;
}
.section-tag {
  color: var(--clay-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  display: inline-block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -1.5px;
  font-weight: 600;
}
.section-sub {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.85;
  font-size: 1rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.2rem;
}

/* ── 9. STORY SECTION ─────────────────────────────────────── */
.story { background: var(--paper); }
.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
/* Keyframe for photo reveal zoom */
@keyframes photoReveal {
  from {
    opacity: 0;
    transform: scale(1.06);
    clip-path: inset(4% 4% 4% 4% round 32px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0% 0% 0% 0% round 32px);
  }
}

.story-photo {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 90px rgba(46, 42, 36, 0.14);
  border: 1px solid rgba(46, 42, 36, 0.10);
  /* Initial state before animation triggers */
  opacity: 0;
  transform: scale(1.06);
  transform-origin: left center;
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease), box-shadow 0.9s;
}
/* When reveal class fires (IntersectionObserver), animate in */
.story-photo.revealed {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 40px 110px rgba(46, 42, 36, 0.2);
}
.story-photo.scroll-expanding {
  transition: opacity 0.9s var(--ease), box-shadow 0.9s;
  will-change: transform;
}
.story-text {
  position: relative;
  z-index: 3;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* No CSS transition here — scroll zoom is driven by JS via style.transform */
  transform-origin: center center;
  will-change: transform;
}
/* JS adds scroll-zoom class when observer fires */
.story-photo.revealed img {
  /* scale set dynamically by JS, starts at 1 */
}
.story-text p {
  color: var(--stone-soft);
  line-height: 1.95;
  margin-top: 1.4rem;
}
.story-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2rem;
}
.point {
  padding: 1rem;
  border-radius: 18px;
  background: #f4e7d3;
  border: 1px solid rgba(46, 42, 36, 0.08);
}
.point strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  color: var(--clay-dark);
  display: block;
}
.point span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ── 10. HOUSES SECTION ───────────────────────────────────── */
.houses {
  background: linear-gradient(180deg, #f6ead7, #fbf4e9);
}
.booking-scroll-target {
  position: absolute;
  top: clamp(130px, 10vw, 175px);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.houses-grid {
  display: grid;
  grid-template-columns: repeat(var(--house-columns, 3), minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 20px);
}

/* ── House Card ── */
.house-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--stone);
  box-shadow: 0 20px 60px rgba(46, 42, 36, 0.14);
  isolation: isolate;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.house-card:hover {
  box-shadow: 0 34px 90px rgba(46, 42, 36, 0.22);
  transform: translateY(-4px);
}

/* Card image wrapper */
.house-card-img {
  position: absolute;
  inset: 0;
}
.house-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease), filter 0.6s;
}
.house-card:hover .house-card-img img {
  transform: scale(1.07);
  filter: saturate(1.05) brightness(0.92);
}

/* Persistent bottom gradient overlay */
.house-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Static gradient — always visible at bottom */
.house-card-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 25, 18, 0.90) 0%,
    rgba(30, 25, 18, 0.55) 30%,
    rgba(30, 25, 18, 0.10) 60%,
    transparent 100%
  );
  z-index: 0;
  transition: opacity 0.5s var(--ease);
}
/* On hover, darker gradient to support more overlay content */
.house-card:hover .house-card-overlay::before {
  background: linear-gradient(
    to top,
    rgba(30, 25, 18, 0.97) 0%,
    rgba(30, 25, 18, 0.78) 45%,
    rgba(30, 25, 18, 0.22) 72%,
    transparent 100%
  );
}

/* Main label (always visible) */
.house-card-main {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.4rem 0.4rem;
  transition: transform 0.45s var(--ease);
}
.house-card:hover .house-card-main {
  transform: translateY(-8px);
}
.house-card-main h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.3rem;
}
.house-tagline {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease) 0.05s, transform 0.35s var(--ease) 0.05s;
}
.house-card:hover .house-tagline {
  opacity: 1;
  transform: translateY(0);
}

/* Footer — amenity chips + meta + CTA */
.house-card-footer {
  position: relative;
  z-index: 1;
  padding: 0.8rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease) 0.08s, transform 0.4s var(--ease) 0.08s;
}
.house-card:hover .house-card-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Amenity chips */
.house-card-amenities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.amenity-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Price + guest meta row */
.house-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.house-guests {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.house-price {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* CTA button inside card */
.house-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.15);
  border: 1px solid rgba(255, 250, 241, 0.28);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--spring);
  text-decoration: none;
}
.house-cta:hover {
  background: rgba(184, 111, 69, 0.75);
  border-color: var(--clay-light);
  transform: scale(1.02);
}

/* ── Skeleton loading cards ── */
.skeleton-card {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e8dac9;
  position: relative;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 100%
  );
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

/* ── Error / empty state ── */
.houses-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: #f9efdf;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}
.houses-error p { font-size: 1rem; }

/* ── 11. EXPERIENCE / AMENITIES SECTION ───────────────────── */
.experience { background: var(--paper); }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 3rem;
}
.exp-card {
  padding: 2rem;
  min-height: 260px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 111, 69, 0.15), transparent 30%),
    #fff8ec;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s;
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(46, 42, 36, 0.10);
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 111, 69, 0.20), transparent 30%),
    #fff3df;
}
.exp-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  display: block;
}
.exp-num {
  color: var(--clay-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
  line-height: 1;
}
.exp-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.exp-card p {
  color: var(--muted);
  line-height: 1.75;
}

/* ── 12. GALLERY SECTION ──────────────────────────────────── */
.gallery {
  background: #efe0c9;
  padding: 7rem 0;
  overflow: hidden;
}
.gallery .section-head { padding: 0 5%; }
.gallery-row {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 0 5%;
  animation: marquee 42s linear infinite;
  margin-top: 2.5rem;
}
.gallery-row:hover { animation-play-state: paused; }
.g-photo {
  width: 360px;
  height: 260px;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(46, 42, 36, 0.11);
  cursor: pointer;
}
.g-photo.tall { height: 360px; }
.g-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.g-photo:hover img { transform: scale(1.06); }

/* ── 13. LOCATION SECTION ─────────────────────────────────── */
.location { background: var(--cream); }
.location-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: stretch;
}
.location-card {
  border-radius: 32px;
  background: var(--stone);
  color: var(--paper);
  padding: 2.6rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.location-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 111, 69, 0.28), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(111, 122, 85, 0.22), transparent 30%);
}
.location-card > * { position: relative; z-index: 1; }
.location-card .section-tag { color: var(--sand); }
.location-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.92;
  font-weight: 600;
  margin-top: 0.6rem;
}
.location-card p {
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.85;
  max-width: 520px;
  margin-top: 1.2rem;
}
.location-list {
  display: grid;
  gap: 12px;
  margin-top: 2rem;
}
.location-list span,
.location-list a.location-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 0.92rem;
}
.location-item-link {
  text-decoration: none;
  transition: color .2s;
  justify-content: space-between;
  flex-wrap: wrap;
}
.location-item-link:hover { color: var(--clay-light) !important; }
.loc-maps-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,250,241,.14);
  border: 1px solid rgba(255,250,241,.22);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: rgba(255,250,241,.7);
  transition: background .2s;
}
.location-item-link:hover .loc-maps-badge {
  background: rgba(184,111,69,.35);
  color: var(--clay-light);
}
.map-art {
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(111, 122, 85, 0.22), rgba(184, 111, 69, 0.22)),
    url('../../house_3/photo_8_2.webp') center / cover;
  min-height: 420px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(46, 42, 36, 0.12);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s;
  cursor: pointer;
}
.map-art:hover {
  transform: scale(1.018);
  box-shadow: 0 40px 100px rgba(46, 42, 36, 0.18);
}
.map-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(46, 42, 36, 0.44));
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.88);
  display: grid;
  place-items: center;
  color: var(--clay);
  font-size: 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
  animation: floatSoft 4s ease-in-out infinite;
}
.map-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.map-caption strong {
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}
.map-caption span {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.82rem;
}
.map-open-hint {
  display: inline-block;
  margin-top: .5rem;
  font-size: 0.78rem;
  color: rgba(255,250,241,.55);
  font-style: normal;
  transition: color .2s;
}
.map-art:hover .map-open-hint { color: var(--clay-light); }

/* ── 14. CTA / BOOKING SECTION ────────────────────────────── */
.cta-section {
  background:
    linear-gradient(rgba(46, 42, 36, 0.68), rgba(46, 42, 36, 0.68)),
    url('../../house_3/photo_1.webp') center / cover fixed;
  color: var(--paper);
  text-align: center;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.cta-inner .section-tag { color: var(--sand); }
.cta-inner .section-title { color: #fff; letter-spacing: -1.5px; }
.cta-inner .section-sub { color: rgba(255, 250, 241, 0.75); text-align: center; max-width: 560px; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ── 15. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--stone);
  color: var(--paper);
  padding: 2.25rem 5%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(320px, 1fr);
  align-items: center;
  gap: 2rem;
}
footer > .logo {
  min-width: 0;
}
footer p {
  color: rgba(255, 250, 241, 0.55);
  font-size: 0.84rem;
  text-align: center;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  color: rgba(255, 250, 241, 0.70);
  font-size: 0.84rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--sand); }
/* ── 16. LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 15, 12, 0.88);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5%;
}
.lightbox.open {
  display: flex;
  animation: fadeIn 0.25s var(--ease) both;
}
.lightbox img {
  max-height: 86vh;
  max-width: 100%;
  border-radius: 26px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.1);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-prev { left: 22px; }
.lightbox-next { right: 80px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.1);
}

/* ── 17. RESPONSIVE ───────────────────────────────────────── */

/* Tablet — max 1200px */
@media (max-width: 1200px) {
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet — max 1050px */
@media (max-width: 1050px) {
  .story-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  footer {
    grid-template-columns: 1fr auto;
  }
  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

/* Mobile — max 760px */
@media (max-width: 760px) {
  #nav { height: 64px; }
  nav.compact { height: 54px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 64px; }
  :root { --nav-h: 64px; }

  /* Hero on mobile */
  .hero-center h1 { letter-spacing: -1.5px; }
  .hero-eyebrow { font-size: 0.65rem; margin-bottom: 1.4rem; }
  .hero-sub { font-size: 0.92rem; display: none; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; max-width: 260px; justify-content: center; }

  .section { padding: 5.5rem 5%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .btn { width: 100%; justify-content: center; }

  .story-points { grid-template-columns: 1fr; }

  .houses-grid { grid-template-columns: 1fr; }
  .house-card { aspect-ratio: 4/3; }

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

  .gallery { padding: 5rem 0; }
  .g-photo { width: 285px; height: 220px; }
  .g-photo.tall { height: 300px; }

  .cta-section .section-title { font-size: clamp(2.2rem, 8vw, 4rem); }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }

  footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 1.2rem;
  }
  footer p {
    grid-column: auto;
    grid-row: auto;
    white-space: normal;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }
}

/* Small mobile — max 480px */
@media (max-width: 480px) {
  .hero-center h1 { letter-spacing: -1px; }
}

/* Large screens — min 1440px */
@media (min-width: 1440px) {
  .section { padding: 9rem 8%; }
  #nav { padding: 0 8%; }
  .gallery .section-head { padding: 0 8%; }
  .gallery-row { padding: 0 8%; }
  .footer { padding: 2.5rem 8%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
