/* =========================================================
   HAVEN Realty — portfolio sample by Khael Mendoza
   Dark editorial theme: charcoal / bone / brass
   ========================================================= */
:root {
  --bg: #0d0c0b;
  --bg-2: #151412;
  --bg-3: #1d1b18;
  --line: rgba(236, 230, 218, 0.12);
  --line-2: rgba(236, 230, 218, 0.22);
  --bone: #ece6da;
  --muted: #9b958a;
  --brass: #c9a45c;
  --brass-2: #e2c27f;
  --danger: #e0806b;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1380px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brass); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brass); letter-spacing: 0; text-transform: none; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass);
  display: flex; align-items: center; gap: 10px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgba(201,164,92,.18); }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
}
.display em { font-size: 1.08em; line-height: .8; }
.display--md { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .95; }
.display--sm { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn span { position: relative; z-index: 1; display: inline-block; transform: translate3d(calc(var(--mx) * .35), calc(var(--my) * .35), 0); transition: transform .45s var(--ease-out); }
.btn--brass { background: var(--brass); color: #16130e; }
.btn--brass::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .45s var(--ease-out); z-index: 0; }
.btn--brass:hover::before { transform: translateY(0); }
.btn--ghost { border-color: var(--line-2); color: var(--bone); background: rgba(13,12,11,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn--block { width: 100%; }
.magnetic.is-magnet { transition: transform .15s linear, background-color .3s, color .3s, border-color .3s; }
.magnetic.is-magnet span { transition: transform .15s linear; }

.icon-btn {
  --mx: 0px; --my: 0px;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 20px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .45s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.icon-btn:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }

/* ---------- Custom cursor (desktop) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--brass); mix-blend-mode: normal;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, opacity .3s;
    will-change: transform;
  }
  .has-cursor .cursor.is-hidden { opacity: 0; }
  .has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--bone); }
  .cursor__label { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--bg); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease-out); }
  .cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(13,12,11,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--line); }
.nav__brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__mark { display: grid; place-items: center; width: 34px; height: 34px; align-self: center; border: 1px solid var(--brass); color: var(--brass); font-family: var(--display); font-size: 18px; }
.nav__word { font-family: var(--display); font-size: 24px; letter-spacing: .14em; }
.nav__sub { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 18px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); position: relative; padding: 4px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass); transition: right .4s var(--ease-out); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--bone); transition: transform .3s; }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); text-transform: uppercase; font-size: 44px; line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobile-menu__cta { color: var(--brass); }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img { object-position: 68% center; animation: heroZoom 18s var(--ease) both; }
.hero__canvas { opacity: 0; transition: opacity .6s; }
.hero.webgl-on .hero__canvas { opacity: 1; }
.hero.webgl-on .hero__img { visibility: hidden; animation: none; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,12,11,.65) 0%, rgba(13,12,11,0) 22%),
    linear-gradient(0deg, rgba(13,12,11,1) 0%, rgba(13,12,11,.75) 26%, rgba(13,12,11,0) 62%),
    linear-gradient(90deg, rgba(13,12,11,.55) 0%, rgba(13,12,11,0) 55%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter) clamp(40px, 7vh, 80px); pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__title {
  margin: 0 0 32px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.6rem, 13.5vw, 13rem); line-height: .86; letter-spacing: -.01em;
}
.hero__title .line { display: block; }
.hero__title em { font-size: 1.04em; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 28px; }
.hero__lede { margin: 0; color: #cfc8bb; font-size: clamp(15px, 1.3vw, 18px); max-width: 48ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { position: absolute; right: var(--gutter); top: 50%; z-index: 2; display: flex; flex-direction: column; gap: 26px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hero__hint::before { content: "↔ "; color: var(--brass); }
.hero__scroll::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 12px; background: linear-gradient(var(--brass), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero:not(.webgl-on) .hero__hint { display: none; }

@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__meta { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* Letter-by-letter reveal */
.split-ready .char { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0) rotate(6deg); filter: blur(6px); }
.split-ready .word { display: inline-block; white-space: nowrap; }
.split-ready.is-in .char { animation: charIn .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 38ms + 150ms); }
@keyframes charIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero__eyebrow, .hero__foot { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease-out) forwards; }
.hero__eyebrow { animation-delay: .1s; }
.hero__foot { animation-delay: 1s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Stats band ---------- */
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.band__track { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.band__item { padding: 28px var(--gutter); display: flex; align-items: baseline; gap: 12px; border-left: 1px solid var(--line); }
.band__item:first-child { border-left: 0; }
.band__item strong { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--brass); line-height: 1; }
.band__item span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 760px) {
  .band__track { grid-template-columns: 1fr 1fr; }
  .band__item { padding: 20px var(--gutter); flex-direction: column; gap: 4px; }
  .band__item:nth-child(3) { border-left: 0; }
  .band__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Section heads ---------- */
section { position: relative; }
.featured, .listings, .why, .faq, .viewing, .afford { padding-block: clamp(80px, 12vw, 160px); }
.section-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "eye eye" "title side"; align-items: end; gap: 0 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { grid-area: eye; }
.section-head .display { grid-area: title; }
.section-head__side { grid-area: side; max-width: 320px; color: var(--muted); }
.section-head__side p { margin: 0 0 18px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; grid-template-areas: "eye" "title" "side"; }
  .section-head__side { margin-top: 20px; max-width: none; }
}

/* ---------- Featured carousel ---------- */
.carousel {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  cursor: grab;
  outline-offset: -2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging .slide { pointer-events: none; }
.carousel__track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; padding-right: var(--gutter); }
.slide {
  position: relative; flex: 0 0 auto; width: clamp(280px, 62vw, 880px); aspect-ratio: 16 / 10;
  scroll-snap-align: start; overflow: hidden; border-radius: 4px; background: var(--bg-3);
  border: 0; padding: 0; text-align: left; cursor: inherit; color: var(--bone);
  user-select: none; -webkit-user-select: none;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); -webkit-user-drag: none; }
.slide:hover img, .slide:focus-visible img { transform: scale(1.0); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,12,11,.92) 0%, rgba(13,12,11,0) 55%); }
.slide__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 3vw, 36px); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.slide__num { position: absolute; top: 18px; left: 22px; z-index: 1; font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--brass); }
.slide__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3.2rem); line-height: .95; display: block; }
.slide__city { display: block; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.slide__price { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.9rem); color: var(--brass); white-space: nowrap; }
.carousel__ctrl { display: flex; gap: 10px; }
.carousel__progress { height: 2px; background: var(--line); margin-top: 28px; overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(.1); }
@media (max-width: 760px) {
  .slide { width: 84vw; aspect-ratio: 4 / 5; }
  .slide__info { flex-direction: column; align-items: flex-start; }
}

/* ---------- Filters ---------- */
.filters {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr auto; gap: 18px 28px; align-items: end;
  padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2);
  position: sticky; top: 76px; z-index: 5;
}
.filter label, .filter__label { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter output { color: var(--bone); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--brass) var(--fill, 0%), var(--line-2) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--brass); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--bone); border: 3px solid var(--brass); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 3px solid var(--brass); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--brass); }
.chip.is-on { background: var(--bone); color: var(--bg); border-color: var(--bone); }
select, .field input, .money {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; color: var(--bone);
  transition: border-color .25s;
}
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, .field input:focus, .money:focus-within { border-color: var(--brass); outline: none; }
.filter__reset { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 48px; font-size: 14px; }
.filter__reset:hover { color: var(--brass); }
.results { margin: 28px 0 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.results span:first-child { color: var(--brass); font-family: var(--display); font-size: 22px; letter-spacing: 0; margin-right: 4px; }
@media (max-width: 1080px) {
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .filter__reset { justify-self: start; min-height: auto; }
}
@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr; padding: 18px; }
}

/* ---------- Listing grid + tilt cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); perspective: 1200px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; color: var(--bone);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), border-color .3s, opacity .4s, box-shadow .6s;
  animation: cardIn .6s var(--ease-out) backwards; animation-delay: calc(var(--n, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card[hidden] { display: none; }
.card__media, .card__body, .card__title { display: block; }
.card.is-tilting { transition: transform .12s linear, border-color .3s, box-shadow .6s; }
.card:hover { border-color: rgba(201,164,92,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(226,194,127,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover::after { opacity: 1; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px 4px 0 0; transform: translateZ(0); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; background: rgba(13,12,11,.75); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.card__body { padding: 22px 22px 24px; transform: translateZ(30px); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__price { font-family: var(--display); font-size: 28px; color: var(--brass); line-height: 1; }
.card__city { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 12px 0 18px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.card__specs { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); margin: 0; list-style: none; padding-left: 0; }
.card__specs strong { color: var(--bone); font-weight: 700; margin-right: 4px; }

.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: 4px; }
.empty p { margin: 0 0 14px; }
.empty #empty-hint { color: var(--muted); margin-bottom: 24px; }

/* ---------- Affordability ---------- */
.afford { background: var(--bg-2); border-block: 1px solid var(--line); }
.afford__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.afford__copy .display { margin-bottom: 22px; }
.calc { margin-top: 36px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.money { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.money span { color: var(--brass); font-weight: 700; }
.money input { border: 0; background: transparent; padding: 0; min-height: 46px; width: 100%; outline: none; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.result-card { position: sticky; top: 100px; padding: clamp(24px, 3vw, 40px); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.big { font-family: var(--display); font-size: clamp(3rem, 6.5vw, 5.4rem); line-height: .95; color: var(--brass); margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.result-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 20px; border-block: 1px solid var(--line); }
.result-split span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.result-split strong { font-size: clamp(18px, 2vw, 24px); font-variant-numeric: tabular-nums; }
.bars { margin: 26px 0 28px; display: grid; gap: 12px; }
.bars__title { margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bar { display: grid; grid-template-columns: 110px 1fr 96px; align-items: center; gap: 12px; font-size: 13px; }
.bar__name { color: var(--muted); }
.bar__track { height: 14px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .7s var(--ease-out); }
.bar__fill--bone { background: var(--bone); }
.bar__fill--brass { background: var(--brass); }
.bar__fill--dim { background: #6c675e; }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 900px) {
  .afford__inner { grid-template-columns: 1fr; }
  .result-card { position: static; }
}
@media (max-width: 460px) {
  .field-row { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 88px 1fr 78px; gap: 8px; font-size: 12px; }
}

/* ---------- Interiors + clip reveal ---------- */
.interiors { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); padding-block: clamp(80px, 12vw, 160px); align-items: center; }
.interiors figure { margin: 0; overflow: hidden; border-radius: 4px; }
.interiors img { width: 100%; height: 100%; object-fit: cover; }
.interiors__a { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: 4 / 3; }
.interiors__text { grid-column: 9 / 13; grid-row: 1; }
.interiors__text .display { margin-bottom: 18px; }
.interiors__b { grid-column: 8 / 13; grid-row: 2; aspect-ratio: 16 / 10; }
.interiors__c { grid-column: 3 / 10; grid-row: 3; aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
  .interiors { grid-template-columns: 1fr 1fr; }
  .interiors__a, .interiors__text, .interiors__c { grid-column: 1 / -1; grid-row: auto; }
  .interiors__b { grid-column: 1 / -1; grid-row: auto; }
}

/* Clip lives on the image (not the box) so IntersectionObserver still sees the box */
.reveal img { clip-path: inset(0 100% 0 0); transform: scale(1.18); transition: clip-path 1.3s var(--ease-out), transform 1.8s var(--ease-out); }
.reveal--up img { clip-path: inset(100% 0 0 0); }
.reveal.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }
.no-js .reveal img { clip-path: none; transform: none; }

/* ---------- Why HAVEN ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.why__card { padding: 36px 32px 40px 0; border-right: 1px solid var(--line); }
.why__card + .why__card { padding-left: 32px; }
.why__card:last-child { border-right: 0; }
.why__num { font-family: var(--display); color: var(--brass); font-size: 18px; letter-spacing: .1em; }
.why__card h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 600; }
.why__card p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__card, .why__card + .why__card { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
.agent { margin-top: clamp(60px, 8vw, 110px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(135deg, var(--bg-2), var(--bg)); }
.agent__mono { width: clamp(120px, 16vw, 200px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--brass); border-radius: 50%; font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); color: var(--brass); }
.agent__quote { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.3; margin: 18px 0 26px; max-width: 34ch; }
.agent__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.agent__facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--brass); }
.agent__facts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .agent { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: clamp(18px, 2vw, 24px); font-weight: 600; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass); }
.faq summary span { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 20px; color: var(--brass); transition: transform .4s var(--ease-out), background .3s; }
.faq details[open] summary span { transform: rotate(45deg); background: var(--bg-3); }
.faq details p { margin: -6px 0 28px; max-width: 70ch; color: var(--muted); }

/* ---------- Viewing form ---------- */
.viewing { background: var(--bg-2); border-top: 1px solid var(--line); }
.viewing__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.viewing .display { margin-bottom: 22px; }
.vform { display: grid; gap: 18px; }
.vform input[type="date"] { color-scheme: dark; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.err { min-height: 0; font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.vform__msg { margin: 4px 0 0; padding: 16px 18px; border: 1px solid var(--brass); border-radius: 4px; background: rgba(201,164,92,.08); color: var(--brass-2); font-weight: 600; }
@media (max-width: 860px) { .viewing__inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vform .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__word { margin: 0; font-family: var(--display); font-size: clamp(5rem, 24vw, 22rem); line-height: .8; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(201,164,92,.45); text-align: center; user-select: none; }
.footer__row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: 13px; color: var(--muted); }
.footer__row p { margin: 0; }
.footer__row p:first-child { color: var(--bone); }
.footer__top { color: var(--brass); text-decoration: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,4,.82); backdrop-filter: blur(8px); animation: fade .35s ease both; }
.modal__panel {
  position: relative; width: min(1200px, 100%); max-height: 100%; overflow: auto;
  display: grid; grid-template-columns: 1.5fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  animation: panelIn .5s var(--ease-out) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13,12,11,.7); cursor: pointer; font-size: 16px; }
.modal__close:hover { background: var(--brass); color: var(--bg); }
.modal__gallery { padding: 14px; display: grid; gap: 10px; align-content: start; }
.modal__stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--bg-3); }
.modal__stage img { width: 100%; height: 100%; object-fit: cover; animation: imgIn .6s var(--ease-out); }
@keyframes imgIn { from { opacity: .3; transform: scale(1.04); } }
.modal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13,12,11,.65); cursor: pointer; font-size: 18px; }
.modal__nav:hover { background: var(--brass); color: var(--bg); }
.modal__nav--prev { left: 12px; } .modal__nav--next { right: 12px; }
.modal__count { position: absolute; bottom: 12px; right: 14px; padding: 4px 10px; background: rgba(13,12,11,.7); font-size: 12px; letter-spacing: .1em; border-radius: 2px; }
.modal__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.modal__thumbs button { padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; background: none; opacity: .55; transition: opacity .25s, border-color .25s; }
.modal__thumbs button[aria-current="true"], .modal__thumbs button:hover { opacity: 1; border-color: var(--brass); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: clamp(24px, 3vw, 44px) clamp(22px, 3vw, 40px); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.modal__price { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--brass); margin: 14px 0 20px; line-height: 1; }
.specs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs strong { font-size: 18px; }
.modal__info .muted { margin: 0 0 28px; }
.modal__info .btn { margin-top: auto; }
@media (max-width: 860px) {
  .modal { padding: 0; }
  .modal__panel { grid-template-columns: 1fr; height: 100%; border-radius: 0; }
  .modal__info { border-left: 0; border-top: 1px solid var(--line); }
}
body.modal-open { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .split-ready .char { opacity: 1; transform: none; filter: none; }
  .hero__eyebrow, .hero__foot { opacity: 1; transform: none; }
  .reveal img { clip-path: none !important; transform: none !important; }
  .card { transform: none !important; }
  .hero__img { transform: none; }
}
