/* =========================================================
   Elite Private Finance — Coming Soon
   Full-screen skyline, brand content left, calculator right,
   contact cards along the bottom, contact form in a popup.
   ========================================================= */
:root {
  --ivory: #F2EDE8;
  --ivory-rgb: 242, 237, 232;
  --ink: #16181B;
  --ink-2: #2B2E33;
  --muted: #6A655E;
  --muted-2: #9A958D;
  --line: #E4DED6;
  --line-dark: rgba(255, 255, 255, .12);
  --glint: #C7A57A;
  --chrome: linear-gradient(120deg, #8d9096 0%, #f2f2f3 38%, #a7a9ae 55%, #e9e9ea 72%, #7d8086 100%);
  --glass: rgba(255, 255, 255, .78);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --edge: clamp(16px, 3.2vw, 56px);
}

/* rem scales with viewport height on desktop so everything fits one screen */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1100px) {
  html { font-size: clamp(12px, 1.85vh, 18px); }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--ink); color: #fff; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--ivory); overflow: hidden; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/bg-skyline-wide.jpg") 57% 42% / cover no-repeat;
  animation: zoom 24s ease-out both;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(var(--ivory-rgb), .95) 0%,
      rgba(var(--ivory-rgb), .9) 38%,
      rgba(var(--ivory-rgb), .72) 49%,
      rgba(var(--ivory-rgb), .15) 60%,
      rgba(var(--ivory-rgb), 0) 70%);
}
@keyframes zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Frame ---------- */
.page {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.1rem var(--edge) 0;
  max-width: 1720px;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .page { height: 100vh; height: 100svh; }
}

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { height: 5rem; width: auto; }
.top-right { display: flex; align-items: center; gap: 1rem; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem .45rem .8rem;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glint); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(199,165,122,.6); } 70% { box-shadow: 0 0 0 8px rgba(199,165,122,0); } 100% { box-shadow: 0 0 0 0 rgba(199,165,122,0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), background-position .5s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #F4F1EC; box-shadow: 0 12px 28px -14px rgba(22,24,27,.6); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(22,24,27,.25); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.5); }
.btn-chrome { background: var(--chrome); background-size: 200% 100%; color: var(--ink); }
.btn-chrome:hover { background-position: 100% 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 2px; }

/* ---------- Main ---------- */
/* Two columns pinned to the page edges; both share the same top and bottom line. */
.main {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(360px, 31rem);
  justify-content: space-between;
  align-content: center;
  align-items: stretch;
  column-gap: 3rem;
  min-height: 0;
  padding: 1rem 0;
}
.intro { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; animation: rise .9s var(--ease) both; }
.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; opacity: .6; }
h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: 4.6rem; line-height: 1; letter-spacing: -.01em;
  color: var(--ink);
}
h1 em { font-style: italic; color: var(--ink-2); }
.lead { margin: .9rem 0 0; font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); max-width: 36rem; }

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.6rem;
  border-top: 1px solid rgba(22,24,27,.12);
}
.services li {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 0; border-bottom: 1px solid rgba(22,24,27,.12);
}
.icon {
  flex: none; width: 2.6rem; height: 2.6rem; padding: .62rem;
  border-radius: 50%; background: var(--ink);
  fill: none; stroke: #EDEBE7; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.services h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.15; color: var(--ink); }
.services p { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Calculator ---------- */
.calc {
  background: rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 40px 80px -40px rgba(22,24,27,.55), 0 2px 6px rgba(22,24,27,.06);
  animation: rise .9s .1s var(--ease) both;
}
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 1px solid rgba(22,24,27,.12); }
.calc-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.calc-head p { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.calc-inputs { display: flex; flex-direction: column; gap: .7rem; margin-bottom: .9rem; }
.field label, .f label, .result .label, .stats dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.field label, .f label { color: var(--ink-2); }
.field-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: .3rem; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.num-wrap { display: inline-flex; align-items: baseline; gap: 4px; border-bottom: 1px solid rgba(22,24,27,.18); }
.num-wrap:focus-within { border-color: var(--ink); }
.num-wrap span { font-size: .78rem; color: var(--muted); }
.num-wrap input {
  border: 0; outline: 0; background: transparent; text-align: right; padding: 0;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.15;
  width: 3.6ch; -moz-appearance: textfield; appearance: textfield;
}
.num-wrap input#price { width: 8.2ch; }
.num-wrap input::-webkit-outer-spin-button, .num-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hint { margin-top: .2rem; font-size: .8rem; color: var(--ink-2); }
.hint.warn { color: #9A5B2E; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 var(--p), rgba(22,24,27,.15) var(--p) 100%); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6.5px; border-radius: 50%;
  background: #fff; border: 4px solid var(--ink); box-shadow: 0 1px 4px rgba(22,24,27,.3);
}
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }

.segmented { display: flex; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 3px; }
.segmented label { flex: 1; position: relative; cursor: pointer; text-align: center; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .4rem .4rem; border-radius: 999px; font-size: .84rem; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.segmented input:checked + span { background: var(--ink); color: #F4F1EC; }
.segmented input:focus-visible + span { outline: 2px solid var(--glint); outline-offset: 1px; }

/* Buyer / property selectors */
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sel { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sel span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.sel select {
  width: 100%; min-width: 0;
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316181B' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .7rem center;
  border: 1px solid rgba(22,24,27,.15); border-radius: 8px;
  padding: .45rem 2rem .45rem .7rem;
  font-size: .9rem; font-weight: 400; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.sel select:hover { border-color: rgba(22,24,27,.3); }
.sel select:focus { outline: 0; border-color: var(--ink); background-color: #fff; }

.result {
  background: radial-gradient(420px 200px at 100% 0%, rgba(255,255,255,.08), transparent 60%), linear-gradient(160deg, rgba(35,38,43,.92) 0%, rgba(22,24,27,.94) 65%);
  color: #CFCBC4; border-radius: 12px; padding: 1rem 1.2rem;
}
.result-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-dark); }
.result .label { color: var(--muted-2); margin-bottom: .35rem; }
.monthly { display: flex; align-items: baseline; gap: .45rem; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; color: #F7F5F1; font-variant-numeric: tabular-nums; }
.monthly .cur { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; color: var(--muted-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; margin: .7rem 0 0; }
.stats dt { color: var(--muted-2); }
.stats dd { margin: .1rem 0 0; color: #F1EEE9; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: .6rem; font-size: .7rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- Contact cards ---------- */
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
}
.card {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 14px;
  box-shadow: 0 18px 40px -26px rgba(22,24,27,.5);
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
  min-width: 0;
}
.card:hover { transform: translateY(-3px); background: rgba(255,255,255,.94); box-shadow: 0 24px 44px -24px rgba(22,24,27,.55); }
.card svg {
  flex: none; width: 2.5rem; height: 2.5rem; padding: .62rem; border-radius: 50%;
  background: var(--ink); fill: none; stroke: #EDEBE7; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.card span { display: flex; flex-direction: column; min-width: 0; }
.card small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card b { font-weight: 500; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: .75rem 0 .9rem;
  font-size: .74rem; color: rgba(255,255,255,.88);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.foot p { color: var(--ink-2); text-shadow: none; }

/* ---------- Contact popup ---------- */
.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 2rem 2rem 1.6rem;
  border: 0; border-radius: 18px;
  background: #FFFFFF;
  color: var(--ink-2);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.5);
  font-size: 16px;
}
.modal[open] { animation: pop .35s var(--ease) both; }
.modal::backdrop { background: rgba(22,24,27,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.modal-close:hover { background: #F4F0EB; }
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.modal .eyebrow { font-size: 11px; margin-bottom: 10px; }
.modal h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.05; color: var(--ink); }
.modal h2 em { font-style: italic; }
.modal-sub { margin: 10px 0 22px; font-size: 14px; color: var(--muted); }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.modal .f label { font-size: 10.5px; }
.f input, .f select, .f textarea {
  width: 100%; background: #FBF9F7;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; color: var(--ink); line-height: 1.4;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.f select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316181B' stroke-width='1.2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(22,24,27,.06); }
.f.invalid input, .f.invalid select { border-color: #A4502E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid #BDB6AD; border-radius: 4px; background: #fff;
  display: grid; place-content: center; cursor: pointer;
}
.check input::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check.invalid input { border-color: #A4502E; }
.modal .btn { font-size: 12px; padding: 15px 22px; }
.form-status { font-size: 14px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.ok { color: #2F6B45; }
.form-status.err { color: #A4502E; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bg::before, .intro, .calc, .dot, .modal[open] { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 1099px) {
  .bg::before { width: 100%; }
  .bg::after { background: rgba(var(--ivory-rgb), .86); }
  .main { grid-template-columns: 1fr; row-gap: 2rem; padding: 2rem 0; }
  .intro { max-width: none; }
  .calc { max-width: 560px; width: 100%; }
  .foot, .foot p:last-child { color: var(--muted); text-shadow: none; }
}
@media (max-width: 640px) {
  .page { padding-top: 1rem; }
  .logo { height: 4.2rem; }
  .status { display: none; }
  .top .btn { padding: .7rem 1rem; font-size: .66rem; }
  h1 { font-size: 3rem; }
  .services { grid-template-columns: 1fr; }
  .intro-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: .4rem; }
  .foot p:last-child { text-align: left; }
  .modal { padding: 1.6rem 1.25rem 1.25rem; }
  .modal h2 { font-size: 32px; }
}
@media (max-width: 420px) {
  .grid-2, .field.two { grid-template-columns: 1fr; }
  .segmented span { font-size: .7rem; padding: .42rem .15rem; }
  .result-top { flex-direction: column; align-items: stretch; }
  .top-right .btn .arrow { display: none; }
}
