/* =========================================================
   Matus Building Group — mobile-first styles
   Black / off-white / gold. Sharp corners. Lots of air.
   ========================================================= */

:root {
  --black: #0b0b0b;
  --ink: #161616;
  --white: #ffffff;
  --paper: #f6f4f0;
  --line: rgba(255,255,255,.14);
  --line-dark: rgba(0,0,0,.12);
  --muted: rgba(255,255,255,.62);
  --muted-dark: #5d5a55;
  --gold: #c9a463;
  --gold-light: #e6cc92;
  --gold-dark: #9c7739;
  --gold-grad: linear-gradient(100deg, #9c7739 0%, #e6cc92 50%, #9c7739 100%);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --pad: 22px;
  --section: 88px;
  --header-h: 64px;
  --ease: cubic-bezier(.22,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.eyebrow--gold { color: var(--gold); }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 10vw, 56px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 14px 0 18px;
}
.h2 em { color: var(--gold-light); font-weight: 400; }
.muted { color: var(--muted); font-weight: 300; font-size: 16px; }
.muted + .muted { margin-top: 14px; }
.section-head { margin-bottom: 34px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  transition: background .3s, color .3s, border-color .3s;
}
.btn--light { background: var(--white); color: var(--black); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--outline-light:active, .btn--outline-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--gold { background: var(--gold-grad); background-size: 200% 100%; color: var(--black); }
.btn--gold:hover { background-position: 100% 0; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(11,11,11,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__logo img { height: 34px; width: auto; }
.menu-btn { width: 44px; height: 44px; position: relative; margin-right: -10px; z-index: 60; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--white);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Curtain menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px + env(safe-area-inset-top)) var(--pad) calc(36px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open { overflow: hidden; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--serif); font-size: 44px; line-height: 1.15;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s, transform .5s var(--ease), color .3s;
}
.menu__links a:active { color: var(--gold-light); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.menu__phone { font-family: var(--serif); font-size: 28px; color: var(--gold-light); }

/* =========================================================
   HERO — sticky canvas, scroll drives the build
   ========================================================= */
.hero { position: relative; height: 420vh; background: var(--black); }
@supports (height: 100svh) { .hero { height: 420svh; } }
.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(to top, rgba(0,0,0,var(--shade-bottom, .25)) 0%, rgba(0,0,0,0) 55%);
}

.hero__captions { position: absolute; inset: 0; pointer-events: none; }
.hero__cap {
  position: absolute; left: var(--pad); right: var(--pad);
  top: calc(var(--header-h) + 8vh + env(safe-area-inset-top));
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .6s var(--ease);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__cap.is-on { opacity: 1; transform: none; }
.hero__cap-big {
  display: block; margin-top: 10px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 13vw, 84px); line-height: .98;
}

.hero__final {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad) calc(48px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .7s ease, transform .8s var(--ease);
}
.hero__final.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 15vw, 104px); line-height: .95; letter-spacing: -.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title em { color: var(--gold-light); font-weight: 400; }
.hero__sub { margin: 14px 0 24px; max-width: 30ch; font-weight: 300; color: rgba(255,255,255,.88); }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__actions .btn { padding: 0 10px; letter-spacing: .14em; }

.hero__progress {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: calc(18px + env(safe-area-inset-bottom));
  height: 1px; background: rgba(255,255,255,.2);
}
.hero__progress span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }

.hero__hint {
  position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.8);
  transition: opacity .4s;
}
.hero__hint i { width: 1px; height: 34px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__hint i::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 1px; height: 100%;
  background: var(--gold-light); animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }
.hero.is-started .hero__hint { opacity: 0; }

/* Loading veil until the first frame is ready */
.hero__stage::after {
  content: ''; position: absolute; inset: 0; background: var(--black);
  transition: opacity .8s ease; pointer-events: none;
}
.hero.is-ready .hero__stage::after { opacity: 0; }

/* =========================================================
   WHY US — vertical video
   ========================================================= */
.why { padding: var(--section) 0; background: var(--black); }
.why__head { margin-bottom: 28px; }
.vplayer {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  aspect-ratio: 9 / 16; background: #000; overflow: hidden;
  border: 1px solid var(--line);
}
.vplayer::before {
  /* thin gold frame corner accent */
  content: ''; position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; z-index: 2;
  border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); pointer-events: none;
}
.vplayer__video { width: 100%; height: 100%; object-fit: cover; }
.vplayer__play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; gap: 16px;
  padding: 24px; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.05) 50%);
}
.vplayer__icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad); color: var(--black);
  box-shadow: 0 0 0 0 rgba(201,164,99,.5);
  animation: pulse 2.4s ease-out infinite;
}
.vplayer__icon svg { margin-left: 3px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(201,164,99,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,99,0); } }
.vplayer__label { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.vplayer__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.vplayer.is-playing .vplayer__play { display: none; }
.vplayer__soon {
  position: absolute; top: 18px; right: 18px; z-index: 4;
  padding: 6px 10px; background: rgba(0,0,0,.7); border: 1px solid var(--line);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light);
}

.why__points { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.why__points li {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: rgba(255,255,255,.8); font-weight: 300; font-size: 15px;
}
.why__points span { font-family: var(--serif); color: var(--gold); font-size: 18px; line-height: 1.4; }

/* =========================================================
   FOCUS strip (light)
   ========================================================= */
.focus { background: var(--paper); color: var(--ink); padding: 76px 0; }
.focus__lead {
  font-family: var(--serif); font-size: clamp(28px, 7.6vw, 44px); line-height: 1.15;
}
.focus__lead em { color: var(--gold-dark); }
.focus__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; border-top: 1px solid var(--line-dark); padding-top: 26px; }
.focus__stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 54px; line-height: 1; }
.focus__stats sup { font-size: .45em; color: var(--gold-dark); vertical-align: top; position: relative; top: .3em; }
.focus__stats span { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }

/* =========================================================
   HOMES
   ========================================================= */
.homes { padding: var(--section) 0; background: var(--black); }
.tabs {
  display: flex; gap: 22px; margin: 0 calc(var(--pad) * -1) 28px; padding: 0 var(--pad);
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 12px 0; margin-bottom: -1px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); border-bottom: 1px solid transparent;
}
.tab.is-active { color: var(--white); border-bottom-color: var(--gold); }

.homes__list { display: grid; gap: 44px; }
.home[hidden] { display: none; }
.home__media {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1);
  background: var(--ink);
}
.home__media::-webkit-scrollbar { display: none; }
.home__media img {
  flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start;
}
.home__dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 12px; height: 2px; }
.home__dots i { width: 18px; height: 2px; background: rgba(255,255,255,.2); transition: background .3s; }
.home__dots i.on { background: var(--gold); }
.home__body { margin-top: 8px; }
.home__tag { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.home__tag--live::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%;
  background: var(--gold); vertical-align: 1px; animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3; } }
.home__name { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 6px 0 8px; }
.home__desc { color: var(--muted); font-weight: 300; font-size: 15px; margin-bottom: 12px; }
.home__price { font-family: var(--serif); font-size: 24px; color: var(--gold-light); }
.home__price span, .home__price small {
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); vertical-align: 4px;
}
.home__price span { margin-right: 8px; }
.home__price small { margin-left: 6px; }
.home__note { color: var(--muted); font-size: 13px; font-weight: 300; margin-top: 2px; }
.home__link {
  display: inline-block; margin-top: 12px; padding-bottom: 3px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
}

/* =========================================================
   WHAT WE BUILD (light)
   ========================================================= */
.build { padding: var(--section) 0; background: var(--paper); color: var(--ink); }
.build .h2 em { color: var(--gold-dark); }
.build__cards { display: grid; gap: 14px; }
.build__card { background: var(--white); padding: 30px 24px; border: 1px solid var(--line-dark); }
.build__num { font-family: var(--serif); color: var(--gold-dark); font-size: 18px; }
.build__card h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 4px 0 10px; }
.build__card p { color: var(--muted-dark); font-weight: 300; font-size: 15px; }

.steps { list-style: none; counter-reset: s; margin-top: 44px; border-left: 1px solid var(--gold); padding-left: 22px; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: ''; position: absolute; left: -26.5px; top: 9px; width: 8px; height: 8px;
  background: var(--paper); border: 1px solid var(--gold-dark); transform: rotate(45deg);
}
.steps strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.steps span { color: var(--muted-dark); font-size: 14px; font-weight: 300; }

/* =========================================================
   FAMILY
   ========================================================= */
.family { background: var(--black); padding-bottom: var(--section); }
.family__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% 35%; }
.family .wrap { margin-top: -60px; position: relative; }
.family__intro { background: var(--black); padding: 30px 0 0; }
.license {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: var(--section) 0 calc(var(--section) + 20px); background: var(--ink); border-top: 1px solid var(--line); }
.contact__quick { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 28px 0 40px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field em { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 12px;
  font: inherit; font-size: 17px; font-weight: 300; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { color: #000; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field ::placeholder { color: rgba(255,255,255,.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--gold-light); text-align: center; }
.form__status.is-error { color: #ff9b8f; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 56px 0 calc(110px + env(safe-area-inset-bottom)); text-align: center; }
.footer__logo { width: 220px; height: auto; margin: 0 auto 18px; }
.footer__line { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.footer__contact { display: flex; flex-direction: column; gap: 4px; margin: 18px 0; font-size: 15px; }
.footer__contact a:first-child { font-family: var(--serif); font-size: 24px; color: var(--gold-light); }
.footer__fine { color: rgba(255,255,255,.38); font-size: 11px; letter-spacing: .08em; line-height: 1.9; }

/* =========================================================
   MOBILE ACTION BAR
   ========================================================= */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 2fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--black); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.actionbar.is-on { transform: none; }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.actionbar__call { border-right: 1px solid var(--line); color: var(--gold-light); }
.actionbar__inquire { background: var(--gold-grad); color: var(--black); }

/* =========================================================
   HOME CARDS — links
   ========================================================= */
a.home__media { color: inherit; }
.home__name a { color: inherit; }
.home__links { display: flex; gap: 22px; margin-top: 14px; }
.home__links .home__link { margin-top: 0; }
.home__link--gold { color: var(--gold-light); }
.focus__stats { grid-template-columns: 1fr; }

/* =========================================================
   MAP
   ========================================================= */
.map-sec { padding: 0 0 var(--section); background: var(--black); }
.map { position: relative; height: 72svh; height: 72vh; min-height: 420px; max-height: 720px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map__canvas { position: absolute; inset: 0; background: #111; }
.map__canvas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9) saturate(.35); }
.map__shield {
  position: absolute; inset: 0; z-index: 500; display: grid; place-items: center;
  background: linear-gradient(to bottom, rgba(11,11,11,.0), rgba(11,11,11,.25));
}
.map__shield-btn {
  padding: 14px 22px; background: rgba(11,11,11,.82); border: 1px solid var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.map.is-active .map__shield { display: none; }
.map__legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 450;
  display: flex; gap: 14px; padding: 8px 12px; background: rgba(11,11,11,.8); border: 1px solid var(--line);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 1px solid var(--gold); vertical-align: 0; }
.dot--live { background: var(--gold); }

.pin { background: none; border: 0; }
.pin__dot {
  position: absolute; left: 7px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(201,164,99,.18);
}
.pin--live .pin__dot { background: var(--gold); }
.pin--live .pin__dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.leaflet-popup-content-wrapper { background: var(--black); color: var(--white); border-radius: 0; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.5); padding: 0; }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--sans); }
.leaflet-popup-tip { background: var(--black); border: 1px solid var(--line); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; top: 6px; right: 6px; width: 26px; height: 26px; font-size: 20px; background: rgba(0,0,0,.5); }
.leaflet-container { font-family: var(--sans); background: #111; }
.leaflet-control-attribution { background: rgba(11,11,11,.7) !important; color: rgba(255,255,255,.45) !important; font-size: 9px; }
.leaflet-control-attribution a { color: rgba(255,255,255,.6) !important; }
.leaflet-bar a { background: var(--black); color: var(--white); border-color: var(--line); border-radius: 0 !important; }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 0 !important; margin-bottom: 64px !important; }
.mcard__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mcard__tag { font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.mcard__name { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.15; }
.mcard__price { font-family: var(--serif); color: var(--gold-light); font-size: 17px; }
.leaflet-container .mcard__link {
  align-self: flex-start; margin-top: 8px; padding-bottom: 2px; color: var(--gold-light);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--gold);
}

/* =========================================================
   BUILD — lead card
   ========================================================= */
.build__card--lead { background: var(--black); color: var(--white); border-color: var(--black); }
.build__card--lead p { color: rgba(255,255,255,.72); }
.build__card--lead .build__num { color: var(--gold); }

/* =========================================================
   TEAM + LICENSE BADGE
   ========================================================= */
.team { list-style: none; margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.team__m { padding: 22px 0; border-bottom: 1px solid var(--line); }
.team__name { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.team__role { display: block; margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.team__m p { margin-top: 10px; color: var(--muted); font-weight: 300; font-size: 15px; }

.badge {
  position: relative; margin-top: 44px; padding: 26px 22px;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(201,164,99,.10), rgba(201,164,99,0) 60%);
}
.badge::before, .badge::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--gold); background: var(--black); transform: rotate(45deg); }
.badge::before { top: -6px; left: 50%; margin-left: -5px; }
.badge::after { bottom: -6px; left: 50%; margin-left: -5px; }
.badge img { width: 58px; height: auto; flex: none; }
.badge > div { display: flex; flex-direction: column; gap: 2px; }
.badge__top { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--white); }
.badge__num {
  font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: .04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge__sub { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* =========================================================
   HOME PAGE (homes/<slug>/)
   ========================================================= */
.hp-hero { position: relative; height: 88svh; height: 88vh; min-height: 520px; overflow: hidden; }
@supports (height: 100svh) { .hp-hero { height: 88svh; } }
.hp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-hero__pic { position: absolute; inset: 0; }
.hp-note { font-style: italic; font-family: var(--serif); font-size: 18px; color: rgba(255,255,255,.7); border-left: 1px solid var(--gold); padding-left: 14px; }

.hp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.45) 100%); }
.hp-hero__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 40px; }
.hp-back { display: table; margin-bottom: 22px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hp-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 10.4vw, 96px); line-height: .98; margin-top: 8px; }
.hp-hero__place { margin-top: 6px; color: rgba(255,255,255,.75); font-weight: 300; }
.hp-hero__price { margin-top: 14px; font-family: var(--serif); font-size: 28px; color: var(--gold-light); }
.hp-hero__price span, .hp-hero__price small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); vertical-align: 5px; }
.hp-hero__price span { margin-right: 8px; } .hp-hero__price small { margin-left: 6px; }

.hp-intro { padding: 56px 0 var(--section); }
.hp-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-bottom: 48px; }
.hp-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hp-facts > div:nth-child(odd) { padding-right: 12px; }
.hp-facts dt { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hp-facts dd { font-family: var(--serif); font-size: 26px; margin-top: 2px; }
.hp-tagline { font-family: var(--serif); font-size: clamp(30px, 8.4vw, 48px); line-height: 1.1; color: var(--white); }
.hp-story { margin-top: 24px; display: grid; gap: 16px; color: var(--muted); font-weight: 300; }

.hp-feats { background: var(--paper); color: var(--ink); padding: var(--section) 0; }
.hp-feat { list-style: none; margin-top: 18px; border-top: 1px solid var(--line-dark); }
.hp-feat li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.hp-feat__n { font-family: var(--serif); color: var(--gold-dark); font-size: 20px; line-height: 1.5; }
.hp-feat h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.hp-feat p { color: var(--muted-dark); font-weight: 300; font-size: 15px; margin-top: 4px; }

.hp-gal { padding: var(--section) 0; }
.hp-gal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 calc(var(--pad) * -1); }
.hp-gal__item { display: block; padding: 0; overflow: hidden; background: var(--ink); }
.hp-gal__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.hp-gal__item:nth-child(5n+1) { grid-column: span 2; }
.hp-gal__item:nth-child(5n+1) img { aspect-ratio: 3 / 2; }
.hp-gal__item:active img { transform: scale(1.03); }
.hp-gal__grid.hp-gal__grid--few { grid-template-columns: 1fr; }
.hp-gal__grid--few .hp-gal__item.hp-gal__item { grid-column: auto; }
.hp-gal__grid--few .hp-gal__item.hp-gal__item img { aspect-ratio: 4 / 3; }

.hp-cta { padding: var(--section) 0; background: var(--ink); border-top: 1px solid var(--line); text-align: center; }
.hp-cta .muted { margin: 0 auto; max-width: 34ch; }
.hp-cta__btns { display: grid; gap: 10px; margin-top: 28px; }

.hp-next { display: block; padding: 48px var(--pad); text-align: center; border-top: 1px solid var(--line); background: var(--black); }
.hp-next__name { display: block; margin-top: 8px; font-family: var(--serif); font-size: 36px; }
.hp-next__name::after { content: ' \2192'; color: var(--gold); }

/* Photo viewer */
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer-open { overflow: hidden; }
.viewer__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; }
.viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0));
}
.viewer__count { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.viewer__close { width: 44px; height: 44px; font-size: 30px; line-height: 1; margin-right: -10px; }

@media (min-width: 900px) {
  .map { height: 620px; margin: 0 auto; max-width: 1120px; border: 1px solid var(--line); }
  .team { grid-template-columns: repeat(4, 1fr); gap: 0 28px; border-top: 0; }
  .team__m { border-top: 1px solid var(--gold); border-bottom: 0; }
  .family { grid-template-columns: 1fr; }
  .family__photo img { aspect-ratio: 21 / 9; object-position: 0% 30%; }
  .family .wrap { padding-left: var(--pad); margin-top: -80px; }
  .family__intro { max-width: 720px; background: var(--black); padding: 40px 40px 0 0 !important; }
  .badge { max-width: 520px; }

  .hp-hero__title { font-size: 88px; }
  .hp-intro .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 80px; }
  .hp-facts { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 24px; }

  .hp-gal__grid { grid-template-columns: repeat(3, 1fr); margin: 0; gap: 8px; }
  .hp-gal__item:nth-child(5n+1) { grid-column: auto; }
  .hp-gal__item:nth-child(5n+1) img { aspect-ratio: 1; }
  .hp-cta__btns { display: flex; justify-content: center; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   DESKTOP — light touch: wider grids, nothing fancy
   ========================================================= */
@media (min-width: 900px) {
  :root { --pad: 40px; --section: 120px; --header-h: 80px; }
  .header__logo img { height: 42px; }
  .hero__cap, .hero__final { left: 0; right: 0; max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
  .hero__actions { display: flex; }
  .hero__actions .btn { padding: 0 28px; }
  .hero__sub { font-size: 18px; }

  .why .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 30px 80px; align-items: center; }
  .why__head { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
  .vplayer { grid-column: 2; grid-row: 1 / span 2; }
  .why__points { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }

  .focus__stats { max-width: 520px; }
  .homes__list { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
  .home__media { margin: 0; }
  .home__media img { aspect-ratio: 4 / 3; }
  .home__name { font-size: 28px; }

  .build__cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid var(--gold); padding: 26px 0 0; gap: 24px; }
  .steps li::before { left: 0; top: -31px; }


  .contact .wrap { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 80px; }
  .contact__quick { grid-template-columns: 1fr 1fr; grid-column: 1; align-self: start; margin-top: 0; }
  .contact .form { grid-column: 2; grid-row: 1 / span 2; }

  .footer { padding-bottom: 56px; }
  .actionbar { display: none; }
}

@media (min-width: 900px) {
  .hp-gal__grid.hp-gal__grid--few { grid-template-columns: repeat(2, 1fr); }
}
