/* ---------- SELF-HOSTED FONTS (Montserrat, latin) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/montserrat-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================
   MALIBU VALLEY ESTATES — STYLES v2
   Full-bleed, photography-led, faithful to the original design.
   Type: Montserrat throughout (as on the live site).
   ============================================================ */

:root {
  --ink:        #1c1f1d;
  --ink-soft:   #4a4f4a;
  --paper:      #ffffff;
  --mist:       #f5f5f3;
  --line:       #e3e2dd;
  --sage:       #5f7355;   /* available tag */
  --gold:       #b98a3c;   /* coming soon tag */
  --stone-deep: #a8a294;   /* sold tag */
  --accent:     #AC8C5E;   /* champagne bronze */

  --font: "Montserrat", system-ui, sans-serif;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  text-transform: uppercase;
  line-height: 1.14;
}
h1 { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: .055em; }
h2 { font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: .05em; }
h3 { font-weight: 500; font-size: 1.02rem; letter-spacing: .12em; }
h1 strong, h2 strong { font-weight: 600; }

.eyebrow {
  font-size: .66rem; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.dark { background: var(--ink); color: var(--paper); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0; transition: background .35s ease, padding .35s ease;
}
.site-header.scrolled { background: rgba(28,31,29,.93); backdrop-filter: blur(8px); padding: 12px 0; }
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 36px; width: auto; transition: height .35s ease; }
.site-header.scrolled .brand img { height: 28px; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block; padding: 10px 16px; color: #fff;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
.has-sub > .nav-link::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .85;
  transition: transform .25s ease;
}
.nav-item:hover > .nav-link::after { transform: rotate(180deg); }
.nav-link:hover { opacity: .75; }
.sub {
  position: absolute; top: 100%; left: 8px; min-width: 196px;
  background: rgba(28,31,29,.97); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease;
}
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a {
  display: block; padding: 10px 20px; color: #fff;
  font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.sub a:hover { opacity: 1; color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; z-index: 60; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }

/* ---------- HERO SLIDESHOW ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero.compact { min-height: 56svh; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-bg .slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-bg .slide.on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-bg .slide.on { animation: kenburns 8s ease-out forwards; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,22,20,.38) 0%, rgba(20,22,20,.08) 45%, rgba(20,22,20,.45) 100%);
}
.hero-content { width: 100%; }
.hero-grid {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0, 620px);
}
.hero-text { grid-column: 2; }
.hero-text p {
  margin-top: 1.1rem; font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.65; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero h1 { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero.compact .hero-grid { display: block; padding-bottom: 56px; }

.hero-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: background .3s;
}
.hero-dots button.on { background: #fff; }

/* ---------- FULL-BLEED SECTIONS ---------- */
.bleed {
  position: relative; min-height: 92svh; display: flex; align-items: flex-start;
  color: #fff; isolation: isolate; overflow: hidden;
}
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bleed::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(20,22,20,.52) 0%, rgba(20,22,20,.18) 46%, rgba(20,22,20,0) 70%);
}
.bleed.align-bottom { align-items: flex-end; }
.bleed.align-bottom::after {
  background: linear-gradient(0deg, rgba(20,22,20,.55) 0%, rgba(20,22,20,.12) 45%, rgba(20,22,20,0) 70%);
}
.bleed-text {
  max-width: 1400px; margin: 0 auto; width: 100%;
  padding: clamp(72px, 11vh, 130px) var(--pad);
}
.bleed-text .inner { max-width: 560px; }
.bleed-text p {
  margin-top: 1.1rem; font-size: .98rem; line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.bleed-text h2 { text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; margin-top: 1.8rem; padding: 13px 30px;
  background: #fff; color: var(--ink); border: 1px solid #fff;
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- PROPERTY GRID ---------- */
.prop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px; margin-top: 2.2rem;
}
.prop-card { background: var(--paper); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.prop-card:not(.static):hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(28,31,29,.13); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.prop-card:not(.static):hover .card-media img { transform: scale(1.04); }
.card-tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px;
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff;
}
.tag-available { background: var(--sage); }
.tag-coming-soon { background: var(--gold); }
.tag-sold { background: var(--stone-deep); }
.card-body { padding: 18px 22px 22px; }
.card-body h3 { font-size: .95rem; }
.card-label, .card-lot { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.empty-note { color: var(--ink-soft); margin-top: 2rem; }
.status-anchor { scroll-margin-top: 110px; }

/* ---------- GALLERY ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 2.2rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,22,20,.96);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox button {
  position: absolute; top: 20px; right: 26px; background: none; border: 0;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- VIDEO GRID ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; margin-top: 2.2rem; }
.video-card { background: var(--mist); border: 1px solid var(--line); }
.video-card .frame { aspect-ratio: 16/9; background: var(--ink); display: flex; align-items: center; justify-content: center; color: #fff; }
.video-card .frame iframe { width: 100%; height: 100%; border: 0; }
.video-card h3 { padding: 16px 20px; }

/* ---------- PROPERTY DETAIL ---------- */
.prop-stats { font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 1rem; }
.prop-copy { max-width: 78ch; margin-top: 2rem; color: var(--ink-soft); }
.prop-copy p + p { margin-top: 1.1rem; }

/* ---------- SITE MAP ---------- */
.sitemap-wrap { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); }
.sitemap-svg { width: 100%; height: auto; }
.sitemap-svg .lot { cursor: pointer; }
.sitemap-svg .lot polygon {
  stroke: #fff; stroke-width: 3; stroke-linejoin: round;
  transition: filter .2s ease;
}
.sitemap-svg .lot:hover polygon, .sitemap-svg .lot:focus polygon { filter: brightness(1.14); }
.sitemap-svg .lot text { font-family: var(--font); font-size: 17px; font-weight: 600; fill: #fff; pointer-events: none; }
.sitemap-svg .fac-label { font-size: 15px; letter-spacing: .04em; }
.map-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 1.6rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.map-legend i { display: inline-block; width: 13px; height: 13px; margin-right: 9px; vertical-align: -1px; }

/* ---------- CONTACT ---------- */
.contact-card { background: var(--mist); border: 1px solid var(--line); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card .map-embed { aspect-ratio: 4/3; }
.contact-card iframe { width: 100%; height: 100%; border: 0; }
.contact-lines p { margin-top: .9rem; color: var(--ink-soft); }
.contact-lines a { font-weight: 600; color: var(--ink); }
.contact-lines a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #d8d7d2; padding: 44px 0 34px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.footer-logo { height: 30px; width: auto; margin: 0 auto 18px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-meta a:hover { opacity: 1; color: var(--accent); }
.footer-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #d8d7d2; opacity: .6; }
.footer-fine { margin-top: 18px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #8e8d88; }

/* ---------- REVEALS ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Hero text enters via CSS animation, not the JS-gated .in class, so the LCP
   element paints as soon as styles are ready instead of waiting for shared.js. */
.hero .reveal { animation: hero-reveal .7s ease .12s both; }
@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-bg .slide.on { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1; max-width: 560px; }
  .contact-card { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(28,31,29,.98); flex-direction: column;
    justify-content: center; gap: 10px; display: none; text-align: center;
  }
  .main-nav.open { display: flex; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; min-width: 0; }
  .sub a { font-size: .82rem; padding: 8px; }
  .nav-link { font-size: .9rem; }
  .has-sub > .nav-link::after { display: none; }
  .bleed { min-height: 76svh; }
}

/* ---------- SPLIT (inner pages) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split .text p { margin-top: 1.2rem; color: var(--ink-soft); }
.section.dark .split .text p { color: #d8d7d2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* hero eyebrow on imagery */
.hero .eyebrow { color: #fff; opacity: .85; }

/* ---------- SOLID (LIGHT) HEADER for pages without a hero ---------- */
.site-header.solid { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.site-header.solid.scrolled { background: #fff; box-shadow: 0 4px 18px rgba(28,31,29,.06); }
.site-header.solid .nav-link { color: var(--ink); }
.site-header.solid .sub { background: #fff; border: 1px solid var(--line); border-top: 0; }
.site-header.solid .sub a { color: var(--ink); }
.site-header.solid .nav-toggle span { background: var(--ink); }
@media (max-width: 920px) {
  .site-header.solid .main-nav { background: rgba(255,255,255,.98); }
  .site-header.solid .main-nav .nav-link, .site-header.solid .main-nav .sub a { color: var(--ink); }
}

/* ---------- SECTION HEADING RULE (About) ---------- */
.h-rule { display: flex; align-items: center; gap: 22px; }
.h-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.h-rule.right { flex-direction: row-reverse; }
.lede-block { max-width: 70ch; margin-top: 1.6rem; color: var(--ink-soft); }
.lede-block p + p { margin-top: 1.1rem; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 2.4rem; }
.duo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ---------- EXPLORE CARDS (About) ---------- */
.explore-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 2.4rem; }
.explore-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: opacity .3s ease; }
.explore-card:hover img { opacity: .85; }
.explore-card h3 { margin-top: 18px; }
.explore-card p { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- LIFESTYLE SPLIT PANELS ---------- */
.panel-split { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 74svh; }
.panel-split.flip { grid-template-columns: 7fr minmax(320px, 5fr); }
.panel-split .panel {
  background: var(--mist); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 96px);
}
.panel-split.flip .panel { order: 2; }
.panel-split .panel p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.panel-split .photo { position: relative; min-height: 380px; }
.panel-split .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-list { margin-top: 1.4rem; }
.area-list h4 { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--stone-deep); margin-top: 1.3rem; }
.area-list ul { list-style: none; margin-top: .5rem; }
.area-list li { padding: 3px 0; color: var(--ink-soft); }
@media (max-width: 880px) {
  .panel-split, .panel-split.flip { grid-template-columns: 1fr; }
  .panel-split.flip .panel { order: 0; }
  .duo, .explore-cards { grid-template-columns: 1fr; }
}

/* ---------- INTRO OFFSET BLOCK (Lifestyle) ---------- */
.intro-offset { display: grid; grid-template-columns: 1fr minmax(0, 640px); }
.intro-offset .text { grid-column: 2; color: var(--ink-soft); }
.intro-offset .text p + p { margin-top: 1.1rem; }
@media (max-width: 880px) { .intro-offset { grid-template-columns: 1fr; } .intro-offset .text { grid-column: 1; } }

/* ---------- VIDEO GALLERY ---------- */
.video-feature { max-width: 920px; margin: 2.4rem auto 0; }
.video-feature .frame, .video-grid .frame { aspect-ratio: 16/9; background: #000; }
.video-feature iframe, .video-grid iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-feature h3, .video-grid h3 { text-align: center; margin-top: 16px; letter-spacing: .14em; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 26px; margin-top: 3rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- CLOSING BLEED CTA ---------- */
.bleed.closing { min-height: 86svh; align-items: flex-end; }
.bleed.closing::after { background: linear-gradient(0deg, rgba(20,22,20,.55) 0%, rgba(20,22,20,.1) 50%, rgba(20,22,20,0) 75%); }

/* ---------- SOLD = GRAYSCALE, color on hover ---------- */
.prop-card.status-sold .card-media img { filter: grayscale(1) contrast(.96) brightness(1.02); }
.prop-card.status-sold:hover .card-media img { filter: none; }
.prop-card.status-sold .card-media img { transition: filter .5s ease, transform .6s ease; }

/* ---------- 3) FEATURED AVAILABLE RESIDENCE ---------- */
.feature-card {
  display: grid; grid-template-columns: 7fr 5fr; background: var(--paper);
  border: 1px solid var(--line); margin-top: 2.2rem; overflow: hidden;
}
.feature-card .media { position: relative; min-height: 420px; }
.feature-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature-card:hover .media img { transform: scale(1.03); }
.feature-card .media .card-tag { position: absolute; top: 18px; left: 18px; }
.feature-card .body { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.feature-card .body h3 { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: .05em; }
.feature-card .stats { margin-top: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.feature-card .body .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) { .feature-card { grid-template-columns: 1fr; } .feature-card .media { min-height: 280px; } }

/* ---------- 4) SCROLL CHOREOGRAPHY ---------- */
/* Page fade-in is CSS-driven (not JS-gated .loaded) so the first paint
   happens as soon as styles are ready instead of waiting for shared.js. */
body { animation: page-fade .55s ease .08s both; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
.bleed > img { transform: scale(1.14); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .bleed > img { transform: none; }
}

/* ---------- LIGHTBOX NAVIGATION ---------- */
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; z-index: 2; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .25s ease, border-color .25s ease; z-index: 2;
}
.lightbox .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .3em; }
@media (max-width: 700px) {
  .lightbox .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox .lb-prev { left: 10px; } .lightbox .lb-next { right: 10px; }
}

/* ---------- SITE MAP PANEL ---------- */
.sitemap-flex { display: grid; grid-template-columns: 1fr 300px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.lot-panel { border: 1px solid var(--line); background: var(--mist); min-height: 320px; position: sticky; top: 96px; display: flex; flex-direction: column; }
.lot-panel .lp-hint { margin: auto; padding: 24px; color: var(--stone-deep); font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; text-align: center; }
.lot-panel .lp-media { aspect-ratio: 16/10; overflow: hidden; }
.lot-panel .lp-media img { width: 100%; height: 100%; object-fit: cover; }
.lot-panel .lp-body { padding: 22px 24px 26px; }
.lot-panel .lp-body .eyebrow { margin-bottom: .5rem; }
.lot-panel .lp-body h3 { font-weight: 400; font-size: 1.2rem; }
.lot-panel .lp-chip { display: inline-block; margin-top: 12px; padding: 6px 12px; color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.lot-panel .btn { margin-top: 1.4rem; padding: 11px 22px; font-size: .78rem; }
.sitemap-svg .lot.active polygon { stroke: var(--accent); stroke-width: 5; }
@media (max-width: 880px) {
  .sitemap-flex { grid-template-columns: 1fr; }
  .lot-panel { position: static; min-height: 0; }
  .lot-panel .lp-hint { padding: 16px; }
}

/* ---------- BRANDED LOADER ---------- */
.mve-loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s ease;
}
.mve-loader img { width: 84px; height: 84px; opacity: .92; animation: loaderPulse 1.2s ease-in-out infinite; }
.mve-loader.done { opacity: 0; pointer-events: none; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- VIDEO FACADE ---------- */
.frame.yt { position: relative; cursor: pointer; overflow: hidden; }
.frame.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.frame.yt:hover img { transform: scale(1.03); }
.frame.yt .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  background: rgba(20,22,20,.45); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.frame.yt:hover .play { background: var(--accent); border-color: var(--accent); }
.frame.yt .play::after { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* ---------- SIGNATURE MICRO-TOUCHES ---------- */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #c9c5bb; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 120; }

/* nav: current page indicator */
.nav-link { position: relative; }
.nav-link.active::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--accent); }

/* ---------- STATS BAND ---------- */
.stats-band { background: var(--ink); color: var(--paper); padding: clamp(34px, 5vw, 56px) 0; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .num { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: .04em; }
.stat .num sup { font-size: .45em; vertical-align: super; letter-spacing: 0; }
.stat .lbl { margin-top: 8px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #9d9c96; }
@media (max-width: 760px) { .stats-band .wrap { grid-template-columns: 1fr 1fr; gap: 30px 16px; } }

/* ---------- GALLERY HOVER AFFORDANCE ---------- */
.gallery .g-item { position: relative; cursor: zoom-in; overflow: hidden; }
.gallery .g-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .55s ease; display: block; }
.gallery .g-item::after {
  content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  background: rgba(20,22,20,.35); color: #fff; font-size: 1.5rem; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease, transform .3s ease, background .3s ease;
  pointer-events: none;
}
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-item:hover::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.gallery .g-item:hover::after { background: var(--accent); border-color: var(--accent); }

/* ---------- INQUIRE BAND (pre-footer) ---------- */
.inquire-band { background: var(--mist); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0; }
.inquire-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inquire-band h3 { font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: .06em; }
.inquire-band .ib-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.inquire-band .ib-phone { font-size: .82rem; font-weight: 600; letter-spacing: .2em; }
.inquire-band .ib-phone:hover { color: var(--accent); }
.inquire-band .btn { margin-top: 0; }

/* ---------- CONTINUE THE COLLECTION (property prev/next) ---------- */
.prop-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.prop-nav a { padding: clamp(28px, 4vw, 48px) var(--pad); transition: background .3s ease; }
.prop-nav a:hover { background: var(--mist); }
.prop-nav .pn-label { font-size: .6rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.prop-nav .pn-name { margin-top: 8px; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .05em; text-transform: uppercase; }
.prop-nav .pn-status { margin-top: 6px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.prop-nav .next { text-align: right; border-left: 1px solid var(--line); }
@media (max-width: 700px) { .prop-nav { grid-template-columns: 1fr; } .prop-nav .next { border-left: 0; border-top: 1px solid var(--line); } }

/* single-photo galleries: no nav chrome */
.lightbox.single .lb-nav, .lightbox.single .lb-count { display: none; }
