/* ============================================================
   MAISON - נכסי יוקרה · "Warm Modern Luxury" theme (RTL Hebrew).
   Based on the scroll-cinematic-site skill; re-themed + extended with
   the house-to-house transition overlay. UX/accessibility pass retained.
   ============================================================ */

:root {
  --bg:        #14100b;
  --bg-2:      #191309;
  --bg-3:      #201811;
  --ink:       #f6efe1;
  --ink-dim:   rgba(246, 239, 225, 0.76);
  --ink-faint: rgba(246, 239, 225, 0.54);
  --gold:      #c9a24b;
  --gold-2:    #e4c67e;
  --bronze:    #b0794a;
  --line:      rgba(246, 239, 225, 0.14);

  --display: "Cormorant Garamond", "Frank Ruhl Libre", Georgia, serif;
  --heb:     "Frank Ruhl Libre", "Cormorant Garamond", Georgia, serif;
  --body:    "Assistant", system-ui, sans-serif;

  --maxw: 1180px;
  --nav-h: 78px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.7);
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(20, 16, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-main {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.22em;
}
.nav__brand-sub {
  font-family: var(--body);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  margin-top: 5px;
}
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.nav__links > a:not(.btn) {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #221703;
  box-shadow: 0 6px 22px rgba(201, 162, 75, 0.26);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201, 162, 75, 0.5);
}
.btn--ghost {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.btn--lg { padding: 17px 40px; font-size: 1rem; }

/* ---------- the film (one clip, scrubbed by scroll) ---------- */
.film { position: relative; height: 760vh; background: #000; }
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
  filter: brightness(0.82) saturate(1.08) contrast(1.03);
}
.film__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,11,6,0.58) 0%, rgba(15,11,6,0.10) 30%,
                    rgba(15,11,6,0.26) 64%, rgba(15,11,6,0.84) 100%);
}

/* captions crossfade as the film scrubs */
.caps { position: absolute; inset: 0; z-index: 2; }
.cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.cap.is-active { opacity: 1; pointer-events: auto; }
.cap__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.cap__text { max-width: 640px; }
.cap--center { text-align: center; }
.cap--center .cap__text { max-width: 880px; margin: 0 auto; }
.cap--center .scene__body,
.cap--center .hero__tagline { margin-inline: auto; }
/* RTL: --start hugs the right, --end hugs the left */
.cap--start .cap__text { margin-inline-end: auto; text-align: start; }
.cap--end   .cap__text { margin-inline-start: auto; text-align: start; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.cap--end .eyebrow { color: var(--gold-2); }

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 0 70px rgba(201,162,75,0.14);
}
.hero__script {
  font-family: var(--heb);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.6vw, 3.1rem);
  color: var(--gold-2);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--ink-dim);
  max-width: 34ch;
  margin-top: 1.5rem;
  margin-bottom: 2.2rem;
}

.scene__title {
  font-family: var(--heb);
  font-weight: 700;
  font-size: clamp(2.8rem, 8.4vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 36px rgba(0,0,0,0.7);
}
.scene__title--xl { font-size: clamp(3.6rem, 12vw, 9.5rem); }
.scene__body {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 48ch;
  margin-top: 1.2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue__label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ---------- scene dots ---------- */
.dots {
  position: fixed;
  left: 26px;                 /* RTL: dots on the left edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dots a {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  transition: all 0.3s var(--ease);
  position: relative;
}
.dots a::after { content: ""; position: absolute; inset: -17px; }
.dots a:hover { border-color: var(--ink); }
.dots a.is-active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.8);
  transform: scale(1.25);
}

/* ---------- section shell ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; }
.section-title {
  font-family: var(--heb);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.04;
}
.section-sub { color: var(--ink-dim); margin-top: 0.8rem; }

/* ---------- properties (house-to-house) ---------- */
.section-rule {
  display: block; width: 64px; height: 1px; margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head .section-sub { margin-top: 1.2rem; }
.properties {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(201,162,75,0.09), transparent 62%),
    var(--bg-2);
  padding: clamp(80px, 12vh, 150px) clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.properties__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.estate {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.estate::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0);
  transition: box-shadow 0.5s var(--ease); pointer-events: none;
}
.estate:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,75,0.5);
  box-shadow: 0 30px 64px rgba(0,0,0,0.55);
}
.estate:hover::after { box-shadow: inset 0 0 0 1px rgba(201,162,75,0.6); }

.estate__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.estate__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.estate:hover .estate__img { transform: scale(1.07); filter: saturate(1.08) brightness(1.03); }
.estate__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,11,6,0.30) 0%, transparent 28%, transparent 58%, rgba(15,11,6,0.58) 100%);
}
.estate__index {
  position: absolute; top: 12px; right: 18px; z-index: 2;
  font-family: var(--display); font-weight: 500; font-size: 2.4rem; line-height: 1;
  color: rgba(246,239,225,0.92); text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.estate__badge {
  position: absolute; bottom: 14px; right: 16px; z-index: 2;
  font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink);
  background: rgba(20,16,11,0.5); border: 1px solid rgba(246,239,225,0.18);
  border-radius: 999px; padding: 6px 15px; backdrop-filter: blur(6px);
}
.estate__hover {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  background: rgba(15,11,6,0.34); opacity: 0; transition: opacity 0.5s var(--ease);
}
.estate:hover .estate__hover { opacity: 1; }
.estate__hover-txt {
  font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--gold-2);
  border: 1px solid rgba(228,198,126,0.7); border-radius: 999px; padding: 13px 28px;
  background: rgba(20,16,11,0.4); backdrop-filter: blur(4px);
  transform: translateY(10px); transition: transform 0.5s var(--ease);
}
.estate:hover .estate__hover-txt { transform: none; }

.estate__body { padding: 24px 24px 26px; }
.estate__loc { font-size: 0.74rem; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 0.5rem; }
.estate__title { font-family: var(--heb); font-weight: 700; font-size: 1.7rem; line-height: 1.12; margin-bottom: 0.9rem; }
.estate__specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.7rem;
  color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 1.3rem;
}
.estate__specs li { position: relative; padding-inline-start: 0.85rem; }
.estate__specs li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--gold); }
.estate__specs li:first-child { padding-inline-start: 0; }
.estate__specs li:first-child::before { content: none; }
.estate__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.estate__price { font-family: var(--display); font-weight: 600; font-size: 1.55rem; color: var(--gold-2); white-space: nowrap; }
.estate__enter {
  display: inline-flex; align-items: center; gap: 0.5em; background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; color: var(--ink);
  padding: 6px 2px; transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.estate__enter span { color: var(--gold); display: inline-block; transition: transform 0.3s var(--ease); }
.estate__enter:hover { color: var(--gold-2); gap: 0.8em; }
.estate__enter:hover span { transform: translateX(-4px); }

/* ---------- about ---------- */
.about {
  background: var(--bg);
  padding: clamp(80px, 12vh, 150px) clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about__portrait {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2a2013, #14100b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.about__portrait-inner {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.85;
}
.about__lead {
  font-family: var(--heb);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin-top: 1.4rem;
}
.about__body { color: var(--ink-dim); margin-top: 1rem; max-width: 52ch; }
.stats {
  list-style: none;
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.stats__num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--gold-2);
}
.stats__label { font-size: 0.85rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ---------- contact ---------- */
.contact {
  background: var(--bg-2);
  padding: clamp(80px, 12vh, 150px) clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__lead { color: var(--ink-dim); margin-top: 1rem; max-width: 42ch; }
.contact__block { margin-top: 1.6rem; }
.contact__block h3 {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.contact__block a:hover { color: var(--gold-2); }

.contact__form {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  background: rgba(20,16,11,0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  padding: 11px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
}
.contact__form .btn { width: 100%; margin-top: 0.4rem; }
.form__note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.9rem; text-align: center; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  padding: 56px clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__main { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.22em; }
.footer__sub { font-size: 0.68rem; letter-spacing: 0.28em; color: var(--gold); }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 0.82rem; color: var(--ink-faint); }

/* ============================================================
   HOUSE-TO-HOUSE cinematic transition overlay
   ============================================================ */
.house {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.house.is-open { opacity: 1; visibility: visible; }
/* image mini-tour stage - cross-fading stills with a slow Ken Burns push */
.house__stage {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: brightness(0.86) saturate(1.06);
}
.house__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.house__img.is-shown { opacity: 1; animation: kenburns 6.5s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.13); } }

/* the "warp" - a fast zoom/blur flash that sells the fly-into-the-house */
.house__warp {
  position: absolute; inset: 0;
  z-index: 4;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(228,198,126,0.0) 40%, rgba(20,16,11,0.9) 100%),
    var(--warp-thumb, #14100b);
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
}
.house.is-warping .house__warp {
  animation: warp 0.85s var(--ease) forwards;
}
@keyframes warp {
  0%   { opacity: 1; transform: scale(1);   filter: blur(0px); }
  60%  { opacity: 1; transform: scale(2.4); filter: blur(6px); }
  100% { opacity: 0; transform: scale(4.2); filter: blur(16px); }
}
.house__scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 80% 90%, rgba(15,11,6,0.65), transparent 55%),
    linear-gradient(180deg, rgba(15,11,6,0.55), rgba(15,11,6,0.08) 38%, rgba(15,11,6,0.4) 70%, rgba(15,11,6,0.92) 100%);
}
.house__caption {
  position: absolute;
  bottom: clamp(56px, 10vh, 120px);
  right: clamp(24px, 6vw, 96px);
  max-width: 620px;
  z-index: 3;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}
.house.is-open .house__caption { opacity: 1; transform: none; }
.house__caption .eyebrow { margin-bottom: 0.9rem; }
.house__title {
  font-family: var(--heb); font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.02;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.house__specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem 1rem;
  margin: 1.2rem 0 0.4rem; color: var(--ink);
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
}
.house__specs li { position: relative; padding-inline-start: 1.15rem; }
.house__specs li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.house__specs li:first-child { padding-inline-start: 0; }
.house__specs li:first-child::before { content: none; }
.house__body {
  font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--ink-dim);
  max-width: 52ch; margin-top: 1rem; text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.house__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; }
.house__price {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--gold-2); white-space: nowrap;
}

/* scene progress bars */
.house__progress {
  position: absolute; z-index: 3;
  top: clamp(24px, 4vh, 40px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  opacity: 0; transition: opacity 0.6s var(--ease) 0.5s;
}
.house.is-open .house__progress { opacity: 1; }
.house__progress i {
  display: block; width: 46px; height: 3px; border-radius: 3px;
  background: rgba(246,239,225,0.28); overflow: hidden; position: relative;
}
.house__progress i.is-active::after {
  content: ""; position: absolute; inset: 0; transform-origin: right center;
  background: var(--gold-2); animation: prog var(--tour, 3.5s) linear forwards;
}
.house__progress i.is-done::after { content: ""; position: absolute; inset: 0; background: var(--gold-2); }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* prev/next property navigation */
.house__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(246,239,225,0.28); background: rgba(20,16,11,0.4);
  color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s var(--ease) 0.6s, background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.house.is-open .house__nav { opacity: 0.85; }
.house__nav:hover { background: rgba(201,162,75,0.28); border-color: var(--gold-2); opacity: 1; }
.house__nav--prev { right: clamp(16px, 3vw, 40px); }   /* RTL: prev on the right */
.house__nav--next { left: clamp(16px, 3vw, 40px); }
.house__close {
  position: absolute;
  top: clamp(18px, 3vh, 30px);
  left: clamp(18px, 3vw, 34px);   /* RTL: close on the left */
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20,16,11,0.6);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.house__close:hover { background: rgba(201,162,75,0.25); transform: rotate(90deg); }

/* ---------- reveal (gated on JS) ---------- */
.reveal-on .estate,
.reveal-on .stats li,
.reveal-on .contact__block {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-on .estate.is-in,
.reveal-on .stats li.is-in,
.reveal-on .contact__block.is-in { opacity: 1; transform: none; }
.properties__grid .estate:nth-child(2) { transition-delay: 0.08s; }
.properties__grid .estate:nth-child(3) { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .dots { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 24px clamp(20px, 6vw, 40px) 34px;
    background: rgba(20, 16, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav__links .btn--gold { margin-top: 10px; width: 100%; }

  .cap--end .cap__text { margin-inline-start: 0; }
  .cap--end .eyebrow { color: var(--gold); }
  .properties__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__portrait { max-width: 300px; }
  .contact__inner { grid-template-columns: 1fr; }
  .house__caption { right: clamp(20px, 6vw, 40px); left: clamp(20px, 6vw, 40px); }
}

@media (min-width: 821px) and (max-width: 1040px) {
  .properties__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__line::after { animation: none; }
  .house.is-warping .house__warp { animation: none; opacity: 0; }
  .cap, .progress, .nav, .btn, .estate, .dots a { transition: none; }
}

/* ---------- accessibility & touch polish ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.nav__brand:focus-visible { outline-offset: 5px; }
.nav__toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.btn:active { transform: scale(0.97); }

/* ---------- landscape phones ---------- */
@media (orientation: landscape) and (max-height: 600px) {
  .hero__title { font-size: clamp(2.6rem, 13vh, 6rem); }
  .scene__title { font-size: clamp(2rem, 10vh, 4.5rem); }
  .scene__title--xl { font-size: clamp(2.6rem, 14vh, 6rem); }
  .hero__script { font-size: clamp(1.2rem, 5vh, 2rem); }
  .hero__tagline, .scene__body { font-size: clamp(0.95rem, 3.4vh, 1.2rem); }
}
