/* Tari — Option E design tokens (same as tari-platform/src/design/tokens.json) */
:root {
  --ink: #0F1B2D; --emerald: #0E7A5F; --emerald-ink: #0B5E49; --mint: #E6F4EF; --sun: #F2B544;
  --slate: #475569; --slate-soft: #64748B; --line: #E3E8EE; --line-strong: #CBD3DD; --mist: #F5F7FA; --cloud: #EEF2F6;
  --display: "Space Grotesk", system-ui, sans-serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 12px 40px rgba(15,27,45,.08); --shadow-float: 0 18px 40px rgba(15,27,45,.16); --shadow-sel: 0 10px 30px rgba(14,122,95,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--emerald); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Content width: wide enough to use large screens, with side margins that grow with the window (16px on phones, up to 72px) */
:root { --wrap: 1680px; --gutter: clamp(16px, 4vw, 72px); }
@media (min-width: 2200px) { :root { --wrap: 1920px; } }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--slate); }
.soft { color: var(--slate-soft); }

.preview-bar { background: var(--ink); color: #CBD5E1; font-size: 13px; text-align: center; padding: 8px 16px; }
.preview-bar b { color: var(--sun); }

/* Header */
.header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.header nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.header nav a { text-decoration: none; }
.header nav a[aria-current="page"] { color: var(--emerald); font-weight: 600; }
.header .logo img { height: 40px; width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; font-size: 13px; }
.lang button { min-height: 44px; display: flex; align-items: center; padding: 0 12px; color: var(--slate); background: none; border: 0; font: inherit; cursor: pointer; }
.lang button:hover { background: var(--mist, #F1F5F9); }
.lang button.on { background: var(--ink); color: #fff; }
.lang button:focus-visible { outline: 2px solid var(--emerald, #0E9F6E); outline-offset: -2px; }
.i18n-note { position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: calc(100% - 24px); background: var(--ink); color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 10px; opacity: .92; cursor: pointer; }

/* Buttons, chips, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--emerald); color: #fff; } .btn-primary:hover { background: var(--emerald-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { color: #fff; background: #1d2c44; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip.sq { border-radius: 10px; }
.chip[aria-pressed="true"] { border-color: var(--emerald); background: var(--mint); color: var(--emerald-ink); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-block; }
.b-selling { background: var(--emerald); color: #fff; } .b-ready { background: var(--ink); color: #fff; }
.b-upcoming { background: var(--cloud); color: #334155; } .b-plan { background: var(--mint); color: var(--emerald-ink); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }

/* Hero */
.hero { background: var(--mist); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 48px; }
.hero-copy { flex: 1 1 540px; min-width: 0; }
.hero h1 { font-size: 66px; line-height: 1.02; letter-spacing: -2px; margin-top: 20px; }
@media (max-width: 767px) { .hero h1 { font-size: 40px; } }
.hero-copy > p { margin-top: 20px; max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--slate); }
.search { margin-top: 30px; background: #fff; border: 1px solid #DCE3EA; border-radius: 18px; padding: 8px 8px 8px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; box-shadow: var(--shadow-card); }
.search input { flex: 1 1 280px; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); outline: none; min-height: 48px; }
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-media { flex: 1 1 480px; min-width: 0; position: relative; min-height: 500px; }
.hero-media > img { position: absolute; top: 0; right: 0; bottom: 44px; left: 30px; width: calc(100% - 30px); height: calc(100% - 44px); object-fit: cover; border-radius: 24px; }
.float-progress { position: absolute; left: 0; bottom: 0; width: 290px; max-width: 80%; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 8px; }
.float-money { position: absolute; right: 16px; top: 18px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 18px 40px rgba(15,27,45,.25); }
.float-money span { font-size: 12px; color: #CBD5E1; } .float-money b { font-size: 18px; }
.bar { height: 8px; border-radius: 999px; background: #E9EEF3; } .bar > i { display: block; height: 8px; border-radius: 999px; background: var(--emerald); }

/* Results + map */
.section { padding-top: 56px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head h2 { font-size: 38px; }
.results { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.list { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.row.sel { border-color: var(--emerald); box-shadow: var(--shadow-sel); }
.row img { width: 180px; height: 128px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.row .info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.row .name { font-family: var(--display); font-weight: 600; font-size: 21px; text-decoration: none; }
.price { font-size: 14px; font-weight: 600; color: var(--emerald-ink); }
.map { flex: 1 1 480px; min-width: 0; position: relative; height: 640px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--cloud); position: sticky; top: 90px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; border-radius: 999px; border: 3px solid #fff; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(15,27,45,.25); white-space: nowrap; padding: 0; }
.pin.sel { padding: 0 14px; z-index: 2; }
.pin.selling { background: var(--emerald); } .pin.ready { background: var(--ink); } .pin.upcoming { background: var(--slate-soft); }
.legend { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.legend span { background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--slate); }
@media (max-width: 900px) { .map { position: relative; top: 0; height: 420px; } }

/* Plans + calculator */
.band { background: var(--mist); }
.plans { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 72px; padding-bottom: 72px; }
.plans > div { flex: 1 1 440px; min-width: 0; }
.plans h2 { font-size: 44px; line-height: 1.05; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.calc { padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 20px; }
.calc h3 { font-size: 24px; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.calc legend { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 10px; }
.calc .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.calc dl { margin: 0; border-radius: 14px; background: var(--mist); padding: 4px 18px; }
.calc dl div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc dl div:last-child { border-bottom: 0; }
.calc dt { color: var(--slate); } .calc dd { margin: 0; font-weight: 600; }
.note { font-size: 12px; color: var(--slate-soft); }

/* Hub */
.hub { background: var(--ink); color: #E2E8F0; }
.hub .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hub h2 { color: #fff; font-size: 44px; line-height: 1.08; }
.hub .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.hub .pills li { padding: 8px 12px; border-radius: 999px; border: 1px solid #334155; font-size: 13px; }
.hub-card { flex: 1 1 560px; min-width: 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.stages li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.stages small { font-size: 11px; color: var(--slate-soft); }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat3 div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat3 span { font-size: 12px; color: var(--slate-soft); }
.photo-tag { position: relative; border-radius: 14px; overflow: hidden; }
.photo-tag img { width: 100%; height: 180px; object-fit: cover; }
.photo-tag span { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 600; }

.film { position: relative; height: 460px; overflow: hidden; background: var(--ink); }
.film video { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.film .over { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.film .over .wrap { width: 100%; padding-bottom: 40px; color: #fff; }
.film h2 { font-size: 44px; color: #fff; }

.trust { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-top: 56px; padding-bottom: 56px; }
.trust b { font-family: var(--display); font-size: 19px; display: block; margin-bottom: 6px; }
.trust span { font-size: 14px; line-height: 1.55; color: var(--slate); }

/* Footer */
.footer { background: var(--ink); color: #CBD5E1; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.footer a { color: #CBD5E1; text-decoration: none; } .footer a:hover { color: #fff; }
.footer img { height: 44px; width: auto; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Projects grid */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); list-style: none; padding: 0; margin: 40px 0 0; }
.tile { display: block; overflow: hidden; text-decoration: none; }
.tile img { width: 100%; height: 240px; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.02); }
.tile .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile h2 { font-size: 21px; }

/* Project page */
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 36px; }
.p-head h1 { font-size: 60px; line-height: 1; margin-top: 10px; }
@media (max-width: 767px) { .p-head h1 { font-size: 40px; } }
.gallery { margin-top: 28px; display: grid; gap: 14px; grid-template-columns: 2fr 1fr; }
.gallery .main { grid-row: span 2; height: 460px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; cursor: zoom-in; }
.gallery .side { height: 223px; }
.thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 14px; }
.thumbs img { height: 150px; width: 100%; object-fit: cover; border-radius: 16px; cursor: zoom-in; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } .gallery .main { grid-row: auto; height: 300px; } }
.intro { padding-top: 40px; padding-bottom: 40px; max-width: 820px; }
.intro .tag { font-size: 20px; font-weight: 600; }
.intro p.long { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--slate); }
.amen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.picker { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
.picker > .card { flex: 3 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.picker > .side { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.units { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); background: var(--mist); border-radius: 16px; padding: 14px; }
.unit { min-height: 64px; border-radius: 10px; border: 0; padding: 0 12px; text-align: left; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.unit small { display: block; font-weight: 400; font-size: 12px; opacity: .9; }
.unit.available { background: #2E6B57; color: #fff; } .unit.sold { background: #B8C0CA; color: var(--ink); cursor: not-allowed; }
.unit[aria-pressed="true"] { background: var(--emerald); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--emerald); }
.facts { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.facts dt { font-size: 12px; color: var(--slate); } .facts dd { margin: 0; font-size: 18px; font-weight: 600; }
.tour { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.tour iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(15,27,45,.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* Forms / two-column pages */
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding-top: 64px; padding-bottom: 64px; }
.split h1 { font-size: 48px; line-height: 1.05; margin-top: 16px; }
.form { padding: 28px; display: grid; gap: 16px; align-self: start; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 12px; font: inherit; font-weight: 400; background: #fff; }
.form textarea { padding: 10px 12px; min-height: 90px; }
.form .check { display: flex; gap: 8px; font-weight: 400; align-items: flex-start; grid-template-columns: none; }
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 32px 0 0; }
.team li { overflow: hidden; }
.team img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.team div { padding: 16px; }
details.card { padding: 18px 20px; }
details summary { cursor: pointer; font-weight: 600; }

/* ---- Why Tari / founders ---- */
.why { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.why-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
.why-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.why-card h3 { font-size: 24px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.who img, .who .ph { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex: 0 0 auto; background: var(--cloud); }

/* ---- Trust ---- */
.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: none; }
.flow li { padding: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.flow .n { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.flow .muted { font-size: 14px; }
.flow.eight { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.warn { padding: 20px; margin-top: 24px; border-color: #F2B544; background: #FFF8EA; }
.warn ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
.verdict { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--cloud); font-weight: 600; }
.verdict.good { background: var(--mint); color: var(--emerald-ink); }
.verdict.bad { background: #FDECEC; color: #9B1C1C; }

/* ---- Progress ---- */
.prog { padding: 24px; margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.prog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.prog-head h2 { font-size: 28px; margin-top: 8px; }
.prog-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.prog-table { flex: 999 1 520px; border-collapse: collapse; font-size: 14px; min-width: 0; }
.prog-table th, .prog-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.prog-table th[scope="row"], .prog-table thead th:first-child { text-align: left; }
.prog-table thead th { font-size: 12px; color: var(--slate); font-weight: 600; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 999px; background: #E3E8EE; }
.dot.on { background: var(--emerald); } .dot.half { background: linear-gradient(90deg, var(--emerald) 50%, #E3E8EE 50%); }
.prog-photos { flex: 1 1 300px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.prog-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.prog-photos img:first-child { grid-column: span 2; height: 180px; }
@media (max-width: 640px) { .prog-table { font-size: 12px; } .prog-table th, .prog-table td { padding: 10px 4px; } }

/* ---- Spec sheet ---- */
.spec { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.spec summary { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.spec summary::-webkit-details-marker { display: none; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; margin: 12px 0 8px; }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list dt { color: var(--slate); } .spec-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- Diaspora calculator ---- */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.field select, .field input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 12px; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); background: #fff; }
.field[hidden], fieldset[hidden] { display: none; }
.sched { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--mist); border-radius: 14px; overflow: hidden; }
.sched th, .sched td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.sched th { text-align: left; color: var(--slate); font-weight: 400; }
.sched td { font-weight: 600; }
.sched tr.total th, .sched tr.total td { color: var(--ink); font-weight: 700; border-bottom: 0; }

/* ---- Compare ---- */
.cmp-wrap { margin-top: 28px; overflow-x: auto; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.cmp th, .cmp td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody th { color: var(--slate); font-weight: 400; width: 180px; }
.cmp thead th:first-child { width: 180px; }
.cmp select { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; font: inherit; background: #fff; }
.cmp img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }

.prog-scroll { flex: 999 1 520px; min-width: 0; overflow-x: auto; position: relative; }
.prog-scroll .prog-table { width: 100%; min-width: 480px; }
.sched-scroll { overflow-x: auto; }
.calc, .split > * { min-width: 0; }
.field select { width: 100%; text-overflow: ellipsis; }
@media (max-width: 640px) { .sched th, .sched td { padding: 10px 8px; font-size: 13px; } .split h1 { font-size: 36px; } }

.map { overflow: hidden; }

.stages li, .stages b, .stat3 > * { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.stat3 { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

/* Unit progress pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--slate-soft); padding-top: 24px; }
.crumbs a { color: var(--slate); }
.u-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; }
.u-head h1 { font-size: 52px; line-height: 1.02; margin-top: 12px; }
.u-actions { max-width: 100%; }
.u-bar { margin-top: 20px; max-width: 560px; }
.u-bar .bar { height: 10px; border-radius: 999px; background: var(--cloud); overflow: hidden; }
.u-bar .bar i { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.u-bar-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 14px; }
.u-bar-text span { color: var(--slate); }
.u-compare { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.u-compare h2 { font-size: 22px; margin-bottom: 12px; }
.u-shot { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--mist); aspect-ratio: 4 / 3; }
.u-shot.u-wide { aspect-ratio: 16 / 7; }
.u-shot img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.u-shot figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-direction: column; gap: 2px; width: fit-content; max-width: calc(100% - 24px); background: rgba(15,27,45,.82); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13px; }
.u-shot figcaption span { color: #CBD5E1; font-size: 12px; }
.u-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; border: 2px dashed var(--line-strong); color: var(--slate); }
.u-empty b { color: var(--ink); font-size: 17px; }
.u-empty span { max-width: 360px; font-size: 14px; line-height: 1.5; }
.u-empty svg { color: var(--slate-soft); }
.u-timeline { list-style: none; margin: 24px 0 0; padding: 0; }
.u-timeline > li { position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.u-timeline > li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong); }
.u-timeline > li:last-child::before { display: none; }
.u-timeline > li.done::before { background: var(--emerald); }
.u-mark { flex: none; width: 24px; height: 24px; border-radius: 999px; background: #fff; border: 2px solid var(--line-strong); margin-top: 2px; position: relative; z-index: 1; }
.done .u-mark { background: var(--emerald); border-color: var(--emerald); }
.now .u-mark { border-color: var(--emerald); background: radial-gradient(var(--emerald) 40%, #fff 45%); }
.u-step { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.next .u-step { background: transparent; }
.u-step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.u-step-head h3 { font-size: 19px; }
.u-step .note { margin-top: 8px; }
.u-upd { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.u-photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 4px; }
.u-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.u-where { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.u-others { flex: 1 1 260px; padding: 20px; }
.u-others h3 { font-size: 18px; }
.u-others ul { list-style: none; padding: 0; margin: 12px 0 0; }
.u-others li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.u-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 20px; }
.u-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.u-cta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.u-cta h2 { font-size: 32px; }
.plan-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.plan-wrap img { width: 100%; display: block; }
.pin-mark { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pin-mark span { background: #fff; color: var(--ink); border: 2px solid var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pin-mark:hover span { background: var(--mint); }
.pin-mark.sold span { background: #DDE2E8; color: #475569; border-color: #94A3B8; }
.pin-mark.on span { background: var(--emerald); border-color: #fff; color: #fff; font-size: 14px; padding: 7px 14px; }
.pin-mark.on::before { content: ""; position: absolute; inset: -10px; border-radius: 999px; border: 3px solid var(--emerald); animation: pinpulse 1.8s ease-out infinite; }
@keyframes pinpulse { from { opacity: .9; transform: scale(.8) } to { opacity: 0; transform: scale(1.35) } }
@media (prefers-reduced-motion: reduce) { .pin-mark.on::before { animation: none; } }
.prog-plan { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.prog-render { width: 100%; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.u-go { white-space: nowrap; text-align: right !important; }
.u-go a { font-weight: 600; color: var(--emerald-ink); }
.unit-links { font-size: 13px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.unit-links a { color: var(--emerald-ink); font-weight: 600; }
a.photo-tag { text-decoration: none; color: inherit; }
@media (max-width: 767px) { .u-head h1 { font-size: 40px; } .u-shot.u-wide { aspect-ratio: 4 / 3; } .pin-mark span { font-size: 10px; padding: 3px 7px; } .pin-mark.on span { font-size: 12px; padding: 5px 10px; } }
a.photo-tag { display: block; }
.plan-wrap.compact .pin-mark span { font-size: 11px; padding: 3px 8px; min-width: 22px; text-align: center; }

/* ---------- Funnel: saved, dialogs, forms, phone bar, assistant ---------- */
.saved-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); }
.saved-link svg path, .save-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.saved-link #saved-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--emerald); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.save-btn { gap: 6px; }
.save-btn[aria-pressed="true"] { color: #B42318; border-color: #F3B8B2; background: #FFF5F4; }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.tile-wrap { position: relative; list-style: none; }
.tile-wrap > .save-btn { position: absolute; top: 12px; right: 12px; z-index: 2; min-height: 40px; padding: 0 12px; box-shadow: 0 4px 14px rgba(15,27,45,.12); }
.tile-wrap > .card.tile { display: block; height: 100%; text-decoration: none; color: inherit; }

.tdlg { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-float); color: var(--ink); }
.tdlg.wide { width: min(680px, calc(100vw - 24px)); }
.tdlg::backdrop { background: rgba(15,27,45,.55); }
.tdlg-in { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tdlg h2 { font-size: 26px; padding-right: 36px; }
.tdlg-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.tform { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tform label, .r-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tform input, .tform select, .tform textarea, .r-card input, .r-card select { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.tform textarea { min-height: 80px; }
.tform label.check, .r-card label.check, .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--slate); }
.check input { min-height: 0; width: 18px; height: 18px; margin-top: 1px; flex: none; }
.tform fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.tform legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.row2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tdone { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tick { width: 48px; height: 48px; border-radius: 999px; background: var(--mint); color: var(--emerald-ink); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.hours { font-size: 13px; color: var(--slate); background: var(--mist); border-radius: 10px; padding: 8px 12px; }
.hours.on b { color: var(--emerald-ink); }
.tz { font-size: 13px; color: var(--slate-soft); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.days .chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.slot { min-height: 56px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); }
.slot small { font-size: 11px; color: var(--slate-soft); }
.slot[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.slot[aria-pressed="true"] small { color: #D1FAE5; }
.picked { background: var(--mint); color: var(--emerald-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.mbar { display: none; }
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-float); }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .ask-fab { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mbar .btn { min-height: 48px; gap: 8px; min-width: 0; }
  .mbar .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .i18n-note { bottom: 84px; }
}
.asst { position: fixed; right: 20px; bottom: 84px; z-index: 50; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-float); display: none; flex-direction: column; overflow: hidden; }
.asst.on { display: flex; }
.asst header { position: relative; padding: 16px 60px 14px 18px; background: var(--ink); color: #fff; display: flex; }
.asst header div { display: flex; flex-direction: column; gap: 2px; }
.asst header span { font-size: 12px; color: #CBD5E1; }
.asst header .tdlg-x { top: 10px; right: 10px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.a-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--emerald); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg ul { margin: 0; padding-left: 18px; }
.a-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.a-acts .btn { min-height: 38px; font-size: 13px; padding: 0 12px; }
.a-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; }
.a-quick .chip { flex: none; font-size: 13px; }
.a-form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.a-form input { flex: 1; min-width: 0; font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
@media (max-width: 767px) { .asst { right: 12px; left: 12px; width: auto; bottom: 80px; height: calc(100vh - 110px); } }

/* project page extras */
.notify-band { padding-top: 40px; }
.notify { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 22px; }
.notify div { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.delivered { padding-top: 16px; padding-bottom: 56px; }
.delivered h2 { font-size: 28px; }
.del-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.del-list a { display: flex; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.del-list img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.del-list span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.del-list small { color: var(--emerald-ink); font-size: 12px; }
.stories h2 { font-size: 38px; }
.story-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 20px; }
.story { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.story img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; }
.story blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.story figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.story figcaption span { color: var(--slate-soft); font-size: 13px; }
.ph-story { border-style: dashed; color: var(--slate-soft); }
.visit-more { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.vm { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.vm h2 { font-size: 26px; }
.qa { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.qa h2 { font-size: 34px; margin-top: 12px; }

/* reserve */
.r-head { padding-top: 16px; }
.r-head h1 { font-size: 44px; margin-top: 8px; }
.r-steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--slate-soft); }
.r-steps li { display: flex; align-items: center; gap: 8px; }
.r-steps span { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.r-steps .now { color: var(--ink); font-weight: 600; } .r-steps .now span { border-color: var(--emerald); color: var(--emerald-ink); }
.r-steps .done span { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.r-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; padding-top: 24px; }
@media (max-width: 900px) { .r-grid { grid-template-columns: 1fr; } }
.r-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.r-card h2 { font-size: 28px; }
.r-card form { display: flex; flex-direction: column; gap: 14px; }
.r-sum { overflow: hidden; }
.r-sum img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.r-sum .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.r-sum h2 { font-size: 24px; }
.r-sum .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.r-sum select { font: inherit; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; }
.r-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.r-methods li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.pv { background: #FFF8E6; color: #7A5300; border-radius: 10px; padding: 8px 12px; }
.r-done h3 { font-size: 20px; margin-top: 8px; }
.r-next { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: rn; }
.r-next li { display: flex; flex-direction: column; gap: 2px; padding-left: 40px; position: relative; counter-increment: rn; font-size: 15px; }
.r-next li::before { content: counter(rn); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.r-next span { color: var(--slate); font-size: 14px; }

/* hub, owners, team */
.sample-bar { background: #FFF8E6; color: #7A5300; text-align: center; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid #F5DFA8; }
.hub-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; padding-top: 32px; padding-bottom: 24px; }
.hub-head h1 { font-size: 44px; margin: 4px 0; }
.hub-grid, .team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding-bottom: 56px; }
.team-grid { margin-top: 24px; padding-bottom: 0; }
.hb { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hb.wide { grid-column: 1 / -1; }
.hb h2 { font-size: 22px; }
.autopay { display: flex; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.autopay div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.switch { flex: none; width: 52px; height: 30px; border-radius: 999px; border: 0; background: var(--line-strong); position: relative; cursor: pointer; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--emerald); } .switch[aria-checked="true"] span { left: 25px; }
.hub-table td, .hub-table th { text-align: left !important; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.svc { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svc li { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ref { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.ref h2 { font-size: 34px; }
.ref-card { flex: 0 1 380px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ref-card .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ref-card input { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.ref-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.ref-link code { display: block; word-break: break-all; background: var(--mist); padding: 10px; border-radius: 10px; font-size: 13px; }
.empty-saved { margin-top: 24px; padding: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tfunnel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tfunnel li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 40px 40px; gap: 10px; align-items: center; font-size: 14px; }
.tb { height: 12px; background: var(--cloud); border-radius: 999px; overflow: hidden; }
.tb i { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.tfunnel b { text-align: right; } .tfunnel small { color: var(--slate-soft); }
.lead-table { min-width: 860px; } .lead-table td, .lead-table th { text-align: left !important; vertical-align: top; }
.tmpl { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tmpl p { color: var(--slate); font-size: 14px; margin-top: 4px; }
.conn { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.conn li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; }
#saved-n[hidden] { display: none; }
.hb .prog-scroll { flex: none; }
.hb .stages { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.hb .stages b { font-size: 12px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 767px) { .u-gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 767px) { .asst { left: 8px; right: 8px; top: 8px; bottom: 8px; height: auto; z-index: 70; } }

/* ---------- Investors and partners ---------- */
.tba { display: inline-block; font-size: 12px; font-weight: 600; color: #7A5300; background: #FFF8E6; border: 1px dashed #E7C770; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.ir-nav { margin-top: 20px; }
.ir-nav .chip { text-decoration: none; }
.ir-h { font-size: 36px; }
.ir-lead { margin-top: 8px; max-width: 720px; font-size: 16px; line-height: 1.6; }
.ir-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 24px; }
.ir-grid h3, .hb h3 { font-size: 19px; }
.ir-grid .docs li { align-items: center; }
.ir-table { min-width: 920px; } .ir-table td, .ir-table th { text-align: left !important; }
.prog-scroll.card { padding: 4px 16px; }
.ix-chart { width: 100%; max-width: 680px; height: auto; }
.ix-l { font-size: 15px; font-weight: 600; fill: var(--ink); }
.ix-v { font-size: 14px; fill: var(--slate); }
.ix-b { fill: var(--emerald); }
.ir-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
.tile-n { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tile-n b { font-family: var(--display); font-size: 30px; }
.tile-n .tba { font-family: var(--sans); font-size: 13px; align-self: flex-start; }
.tile-n span { color: var(--slate); font-size: 14px; }
.ir-pipe { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.pipe-row { padding: 16px 20px; display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 16px; align-items: center; }
.pipe-name { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pipe-name a { text-decoration: none; }
.gates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gates li { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line); min-width: 0; }
.gates small { font-size: 11px; }
.g-done { background: var(--emerald); border-color: var(--emerald) !important; color: #fff; }
.g-now { background: var(--mint); border-color: #A7DCC9 !important; color: var(--emerald-ink); }
.g-next { color: var(--slate-soft); }
.g-confirm { border-style: dashed !important; color: #7A5300; background: #FFFBEF; }
@media (max-width: 767px) { .pipe-row { grid-template-columns: 1fr; } .ir-h { font-size: 30px; } }
.ir-struct { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.st { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.st span { color: var(--slate); font-size: 14px; line-height: 1.5; }
.st small { color: var(--slate-soft); font-size: 12px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }
.st.main { border: 2px solid var(--emerald); background: #F2FAF6; }
.pledge { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; border: 1px solid #A7DCC9; background: #F2FAF6; border-radius: 14px; padding: 12px 16px; margin: 8px 0 24px; color: var(--emerald-ink); }
.pledge div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; min-width: 0; }
.pledge div span { color: var(--slate); font-size: 13px; }
.pledge a { font-size: 13px; font-weight: 600; color: var(--emerald-ink); }
.yield .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.yield input { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.y-out { margin: 0; } .y-out div { margin: 0; } .y-out dd { margin: 4px 0 0; font-family: var(--display); font-size: 24px; font-weight: 600; } .y-out dt { font-size: 12px; color: var(--slate-soft); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--emerald-ink); text-decoration: underline; cursor: pointer; }
.vt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.vt-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.vt-grid span { font-size: 12px; color: var(--slate-soft); }
.vt-grid b { font-size: 18px; }
.vt-grid small { font-size: 12px; color: var(--slate); } .vt-grid small.up { color: var(--emerald-ink); font-weight: 600; }
.exit-steps { margin-top: 20px; }

/* Coming soon: register interest */
.interest-panel { margin: 40px 0 8px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 32px; align-items: center; padding: 44px 48px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #13906F 0%, var(--emerald) 45%, var(--emerald-ink) 100%); box-shadow: 0 24px 60px -24px rgba(11,94,73,.55); }
.ip-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 999px; }
.interest-panel h2 { font-size: 40px; line-height: 1.1; margin-top: 16px; color: #fff; }
.interest-panel p { margin-top: 12px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 620px; }
.ip-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ip-list li { position: relative; padding-left: 32px; font-size: 16px; }
.ip-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ip-acts { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
.ip-btn { background: #fff; color: var(--emerald-ink); min-height: 64px; font-size: 19px; font-weight: 700; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.ip-btn:hover { background: var(--sun); color: var(--ink); }
.ip-wa { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .interest-panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } .interest-panel h2 { font-size: 30px; } }
.ri-tag { display: inline-block; background: var(--emerald); color: #fff; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* Investors: public teaser */
.ir-hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(15,27,45,.94) 0%, rgba(15,27,45,.82) 45%, rgba(15,27,45,.35) 100%), var(--bg) center / cover no-repeat; }
.ir-hero-in { padding-top: 96px; padding-bottom: 96px; max-width: none; }
.ir-hero h1 { font-size: 60px; line-height: 1.04; max-width: 820px; margin-top: 18px; color: #fff; }
.ir-hero p { margin-top: 18px; font-size: 19px; line-height: 1.6; max-width: 680px; color: rgba(255,255,255,.88); }
.ir-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sun); }
.ir-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ir-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); } .ir-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ir-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-top: -48px; position: relative; box-shadow: 0 20px 50px -28px rgba(15,27,45,.35); }
.ir-proof div { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.ir-proof div + div { border-left: 1px solid var(--line); }
.ir-proof b { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--emerald-ink); }
.ir-proof span { color: var(--slate); font-size: 15px; }
.ir-why { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 28px; }
.ir-why-c { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.ir-why-c .n { font-family: var(--display); font-weight: 600; color: var(--emerald); font-size: 15px; }
.ir-why-c h3 { font-size: 21px; } .ir-why-c p { color: var(--slate); line-height: 1.6; }
.ir-ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.ir-ways .st b { font-size: 18px; }
.ir-locked { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px; }
.lk { overflow: hidden; display: flex; flex-direction: column; }
.lk-peek { height: 86px; background: linear-gradient(180deg, #F2FAF6, #fff); padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; filter: blur(3px); }
.lk-peek i { display: block; height: 10px; border-radius: 6px; background: #BFE0D3; }
.lk-peek i:nth-child(1) { width: 78%; } .lk-peek i:nth-child(2) { width: 52%; background: #D7E6F0; } .lk-peek i:nth-child(3) { width: 66%; }
.lk-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.lk-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--slate-soft); }
.lk h3 { font-size: 18px; } .lk p { color: var(--slate); font-size: 14px; line-height: 1.5; }
.ir-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ir-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ir-steps .n { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--emerald); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ir-steps div { display: flex; flex-direction: column; gap: 4px; } .ir-steps span { color: var(--slate); line-height: 1.5; }
.ir-req { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
/* Investors: private pack */
.ir-pack-head { background: var(--ink); color: #fff; }
.ir-pack-head h1 { font-size: 48px; margin-top: 12px; color: #fff; }
.ir-pack-head p { margin-top: 12px; color: rgba(255,255,255,.85); max-width: 760px; line-height: 1.6; }
.ir-pack-head .chip { display: inline-flex; align-items: center; background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.ir-pack-head .chip:hover { background: rgba(255,255,255,.16); }
.ir-more { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 24px; }
.ir-closed { max-width: 720px; } .ir-closed h1 { font-size: 40px; margin: 14px 0 10px; }
@media (max-width: 900px) {
  .ir-hero-in { padding-top: 56px; padding-bottom: 80px; } .ir-hero h1 { font-size: 38px; } .ir-hero p { font-size: 17px; }
  .ir-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ir-proof div:nth-child(3) { border-left: 0; } .ir-proof div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ir-proof b { font-size: 34px; } .ir-proof div { padding: 18px; }
  .ir-req { grid-template-columns: 1fr; } .ir-pack-head h1 { font-size: 34px; }
}
/* Team dashboard: investor requests */
.ir-reqs { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 16px 0 0; }
.ir-reqs > li { list-style: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ir-reqs .top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ir-reqs .grant[hidden] { display: none; }
.ir-reqs .grant { padding: 12px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.ir-reqs .grant .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ir-reqs .linkbox { display: flex; gap: 8px; flex-wrap: wrap; } .ir-reqs .linkbox input { flex: 1; min-width: 220px; font: 13px var(--sans); padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
@media (max-width: 600px) {
  .ir-locked { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lk-peek { height: 44px; padding: 12px 14px; gap: 6px; } .lk-peek i { height: 7px; }
  .lk-body { padding: 10px 12px 14px; } .lk h3 { font-size: 15px; } .lk p { display: none; }
  .ir-why-c { padding: 20px; } .ir-steps { gap: 14px; }
}

/* ---------- Phones: shorter pages ---------- */
.swipe-nav { display: none; }
@media (max-width: 700px) {
  /* card lists become swipe rows; the next card peeks in so it is clear there is more */
  .swipe { display: flex !important; flex-wrap: nowrap !important; flex-direction: row !important; gap: 12px !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-padding: 0 var(--gutter); }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84% !important; max-width: 360px; scroll-snap-align: start; min-width: 0; }
  .swipe:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
  .thumbs.swipe > * { flex-basis: 70% !important; height: 190px; }
  #list.swipe > .row { flex-direction: column; align-items: stretch; }
  #list.swipe > .row img { width: 100%; height: 170px; }
  ol.flow.eight.swipe > * { flex-basis: 72% !important; }
  .swipe-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 6px; }
  .swipe-nav[hidden] { display: none; }
  .swipe-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
  .swipe-btn:disabled { opacity: .35; cursor: default; }
  .swipe-dots { display: flex; gap: 6px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
  .swipe-dots i.on { width: 20px; background: var(--emerald); }
  .swipe-count { font-size: 13px; color: var(--slate); min-width: 40px; text-align: center; }

  /* browsing pages (Our homes, Designs, Progress): compact rows, photo left and details right */
  ul.grid { gap: 12px; margin-top: 20px; }
  ul.grid > li > .card.tile, ul.grid > li.card.tile > .tile { display: grid !important; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; }
  ul.grid > li > .card.tile > img, ul.grid > li.card.tile > .tile > img { height: 100%; min-height: 116px; max-height: 150px; }
  ul.grid .tile .body { padding: 12px 14px; gap: 4px; }
  ul.grid .tile h2, ul.grid .tile h3 { font-size: 17px; }
  ul.grid .tile .body p:not(.price):not(.meta), ul.grid .tile .tagline { display: none; }
  .tile-wrap > .save-btn { top: 8px; right: 8px; min-height: 32px; padding: 0 9px; font-size: 13px; }
}

/* compact header on phones */
.menu-btn, .nav-cta { display: none; }
@media (max-width: 700px) {
  .header .wrap { flex-wrap: nowrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; position: relative; }
  .header .logo img { height: 32px; }
  .header nav { display: none; }
  .header .head-cta { display: none; }
  .header .actions { flex-wrap: nowrap; gap: 6px; }
  .saved-link { width: 40px; height: 40px; }
  .lang button { min-height: 40px; padding: 0 8px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
  .header.menu-open nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    padding: 4px var(--gutter) 16px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(15,27,45,.35); max-height: calc(100vh - 60px); overflow-y: auto; }
  .header.menu-open nav a { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .header.menu-open nav .nav-cta { display: flex; justify-content: center; margin-top: 14px; border-bottom: 0; color: #fff; }
  #list.swipe { align-items: flex-start; }
}
@media (max-width: 360px) { .lang button { padding: 0 6px; } .menu-btn { padding: 0 9px; } .menu-btn span { display: none; } }

/* Wider screens: shorter pages too (public/swipe.js). Tall grids become one row with arrows; the home page list sits in two columns beside the map;
   a home's construction stages run across the page instead of down it. */
@media (min-width: 701px) {
  .swipe.desk { display: flex !important; flex-wrap: nowrap; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .swipe.desk::-webkit-scrollbar { display: none; }
  .swipe.desk > * { flex: 0 0 calc((100% - 72px) / 4); min-width: 0; scroll-snap-align: start; }
  .swipe-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 14px 0 0; }
  .swipe-nav[hidden] { display: none; }
  .swipe-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 26px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
  .swipe-btn:hover:not(:disabled) { border-color: var(--emerald); color: var(--emerald); }
  .swipe-btn:disabled { opacity: .35; cursor: default; }
  .swipe-dots { display: flex; gap: 6px; order: -1; margin-right: auto; }
  .swipe-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); transition: width .2s, background .2s; }
  .swipe-dots i.on { width: 22px; background: var(--emerald); }
  .swipe-count { font-size: 14px; color: var(--slate); min-width: 44px; text-align: center; }
}
@media (min-width: 900px) and (max-width: 1100px) { .swipe.desk > * { flex-basis: calc((100% - 48px) / 3); } }
@media (min-width: 1000px) {
  #list.list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
  #list.list > .row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 10px; }
  #list.list > .row img { width: 104px; height: 104px; }
  #list.list > .row .info { flex: 1 1 auto; gap: 4px; }
  #list.list > .row .name { font-size: 17px; line-height: 1.2; }
  #list.list > .row .info > * { font-size: 13px; }
  #list.list > .row .info > .name { font-size: 17px; }
}
@media (min-width: 900px) {
  .u-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
  .u-timeline > li { flex-direction: column; gap: 12px; padding-bottom: 0; }
  .u-timeline > li::before { left: 30px; right: -14px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .u-step { padding: 14px 16px; }
  .u-step-head { flex-direction: column; align-items: flex-start; }
  .u-step-head h3 { font-size: 17px; }
}

/* Home page slideshow (app.js heroShow): see .hero-split below */
.hs-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 7s ease-out; }
.hs-slides img.on { opacity: 1; transform: scale(1); }
#hs-cards { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
#hs-cards.in > * { animation: hs-in .5s ease both; } #hs-cards.in > *:nth-child(2) { animation-delay: .08s; }
@keyframes hs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hs-info { text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.hs-info:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.hs-tagrow { display: flex; gap: 6px; } .b-hot { background: var(--sun); color: var(--ink); }
.hs-mprice { display: none; font-size: 13px; color: var(--slate); } .hs-mprice b { color: var(--ink); font-size: 16px; }
.hs-mprice:empty { display: none !important; }
.hs-go { font-size: 13px; font-weight: 600; color: var(--emerald); }
.hs-ctrl { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.hs-dashes { display: flex; gap: 6px; margin-right: auto; }
.hs-dashes button { width: 22px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hs-dashes button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.45); transition: background .2s, height .2s; }
.hs-dashes button[aria-current]::after { background: #fff; height: 3px; top: 10px; }
.hs-count { font-size: 14px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.hs-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(15,27,45,.35); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hs-arrow:hover { background: rgba(255,255,255,.2); }
@media (max-width: 1000px) {
}
@media (max-width: 700px) {
  .hs-info { padding: 12px 14px; gap: 6px; background: rgba(255,255,255,.95); }
  .hs-mprice { display: block; }
  .hs-place, .hs-go, .hs-pct .muted { display: none; }
  .hs-pct { font-size: 12px; } .hs-info .bar { height: 4px; }
  .hs-ctrl { justify-content: center; } .hs-dashes { margin-right: 0; } .hs-arrow { display: none; } .hs-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hs-slides img { transition: opacity .3s; transform: none !important; } #hs-cards.in > * { animation: none; } }
@media (max-width: 700px) {
}

.hs-tagrow { align-items: center; flex-wrap: wrap; } .hs-name { display: none; font-size: 14px; }
.hs-pct { display: flex; justify-content: space-between; font-size: 13px; }
@media (max-width: 700px) { .hs-name { display: inline; } }
@media (max-width: 700px) { .hs-slides img { object-position: 50% 70%; } }

/* Real map (public/realmap.js) */
.real-map { background: #E8EEF3; }
.rm-canvas { position: absolute; inset: 0; z-index: 0; font-family: inherit; }
.real-map .leaflet-container { font: inherit; background: #E8EEF3; }
.rm-ctl { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rm-seg { display: inline-flex; background: #fff; border-radius: 12px; padding: 3px; box-shadow: 0 4px 14px rgba(15,27,45,.18); }
.rm-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--slate); padding: 8px 12px; border-radius: 9px; cursor: pointer; min-height: 36px; }
.rm-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.rm-all { border: 0; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--emerald-ink); padding: 9px 12px; border-radius: 12px; box-shadow: 0 4px 14px rgba(15,27,45,.18); cursor: pointer; min-height: 38px; }
.rm-legend { position: absolute; left: 12px; bottom: 26px; z-index: 500; display: flex; gap: 10px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 7px 10px; font-size: 12px; color: var(--slate); }
.rm-legend span { display: inline-flex; align-items: center; gap: 5px; } .rm-legend i { width: 10px; height: 10px; border-radius: 50%; }
.rm-legend i.selling { background: var(--emerald); } .rm-legend i.ready { background: var(--ink); } .rm-legend i.upcoming { background: var(--slate-soft); }
.rm-hint { position: absolute; inset: 0; z-index: 600; border: 0; background: rgba(15,27,45,.18); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.rm-nb-wrap, .rm-pin-wrap { background: none; border: 0; }
.rm-nb { display: inline-flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); white-space: nowrap; background: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; box-shadow: 0 8px 20px rgba(15,27,45,.25); border: 2px solid #fff; cursor: pointer; font-size: 14px; color: var(--ink); transition: transform .15s; }
.rm-nb:hover, .rm-nb.sel { transform: translate(-50%, -50%) scale(1.06); border-color: var(--emerald); }
.rm-nb i { font-style: normal; min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background: var(--emerald); }
.rm-nb.ready i { background: var(--ink); } .rm-nb.upcoming i { background: var(--slate-soft); }
.rm-pin { display: inline-flex; align-items: center; gap: 6px; transform: translate(-13px, -50%); white-space: nowrap; cursor: pointer; }
.rm-dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; background: var(--emerald); box-shadow: 0 6px 16px rgba(15,27,45,.35); flex: none; }
.rm-pin.ready .rm-dot { background: var(--ink); } .rm-pin.upcoming .rm-dot { background: var(--slate-soft); }
.rm-pin.sel .rm-dot { width: 30px; height: 30px; outline: 4px solid rgba(14,122,95,.35); }
.rm-pin b { background: #fff; color: var(--ink); font-size: 13px; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,27,45,.2); }
.rm-tip { font: inherit; font-size: 13px; }
.rm-pop .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.rm-pop .leaflet-popup-content { margin: 0; width: 240px !important; font: inherit; }
.rm-pop img { display: block; width: 100%; height: 120px; object-fit: cover; }
.rm-pop-b { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; font-size: 13px; color: var(--slate); }
.rm-pop-b b { color: var(--ink); font-size: 16px; } .rm-price { color: var(--emerald-ink); font-weight: 600; }
.rm-note { font-size: 12px; color: var(--slate); font-style: italic; }
.rm-pop-b a { color: var(--emerald); font-weight: 600; text-decoration: none; margin-top: 4px; }

/* Progress page: the master plan gets half the card on wide screens, full width below the table on smaller ones */
.prog-plan-h { font-size: 15px; font-weight: 600; color: var(--slate); }
@media (min-width: 960px) {
  .prog-body:has(.prog-plan-big) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}
@media (max-width: 959px) { .prog-plan-big { flex-basis: 100%; } }

/* Compare: each column is led by the home itself (photo, name, price); rows line up with the page edge */
.cmp-wrap { margin-top: 28px; overflow-x: auto; }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.cmp col.cmp-lc { width: 190px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th:first-child { padding-left: 0; }
.cmp tr > :last-child { padding-right: 0; }
.cmp thead th { border-bottom: 0; padding-top: 0; padding-bottom: 24px; font-weight: 400; }
.cmp tbody th { color: var(--slate); font-weight: 500; font-size: 14px; width: auto; }
.cmp tbody td { color: var(--ink); }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--mist); }
.cmp-head { display: flex; flex-direction: column; gap: 6px; }
.cmp-head select { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; font: inherit; font-size: 14px; background: #fff; margin-bottom: 8px; }
.cmp-photo { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.cmp .cmp-photo img { display: block; width: 100%; height: 230px; object-fit: cover; border-radius: 0; transition: transform .4s; }
.cmp-photo:hover img { transform: scale(1.03); }
.cmp-photo .badge { position: absolute; left: 12px; top: 12px; }
.cmp-name { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); text-decoration: none; margin-top: 8px; letter-spacing: -.3px; }
.cmp-name:hover { color: var(--emerald); }
.cmp-sub { font-size: 14px; color: var(--slate); }
.cmp-price { font-size: 20px; font-weight: 700; color: var(--emerald-ink); margin-top: 2px; }
.cmp-empty { height: 230px; border: 2px dashed var(--line-strong); border-radius: 16px; display: grid; place-items: center; color: var(--slate); font-size: 14px; }
@media (max-width: 800px) {
  .cmp col.cmp-lc { width: 120px; }
  .cmp th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
  .cmp .cmp-photo img, .cmp-empty { height: 160px; }
  .cmp-name { font-size: 18px; } .cmp-price { font-size: 17px; }
}

.rm-street { filter: saturate(.55) brightness(1.04); }
.rm-pin b { display: none; } .rm-pin.sel b, .rm-pin:hover b { display: inline; }
.rm-pin b small { font-weight: 500; color: var(--slate); font-size: 11px; }
.rm-pin.area .rm-dot { opacity: .9; box-shadow: 0 0 0 4px rgba(14,122,95,.22), 0 6px 16px rgba(15,27,45,.3); }
.leaflet-zoom-anim .rm-pin b, .leaflet-zoom-anim .rm-nb { transition: none; }
.rm-labels .rm-pin b { display: inline; }

/* Payment choice: monthly or by stage (reserve page, calculator, buyer hub) */
.calc dt small { display: block; font-size: 12px; color: var(--slate-soft); }
.r-pay { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.r-pay legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.r-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); }
.r-opt:has(input:checked) { border-color: var(--emerald); background: var(--mint); }
.r-opt input { margin-top: 4px; accent-color: var(--emerald); }
.hub-extra { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.hub-extra label { flex: 1 1 200px; }
.hub-extra-out { background: var(--mint); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--emerald-ink); }
.form .r-opt { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .r-opt input { width: auto; min-height: 0; flex: none; margin-top: 4px; }
.form .r-opt span { flex: 1; }

/* Home page: headline and search on the left, a large photo slideshow of featured homes on the right; only the two cards on the photo change.
   Phones: the photo comes first (top half of the screen) with the home's card on it, then the headline and search. Nothing is written over a house. */
.hero-split { background: var(--mist); }
.hsp { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero-split h1 { font-size: 60px; line-height: 1.03; letter-spacing: -2px; margin-top: 20px; }
.hero-split .hero-copy > p { margin-top: 18px; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--slate); }
.hsp-media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hsp-frame { position: relative; height: min(74vh, 680px); min-height: 460px; border-radius: 28px; overflow: hidden; background: var(--cloud); box-shadow: 0 30px 60px rgba(15,27,45,.18); }
.hsp-frame .hs-slides { position: absolute; inset: 0; }
#hs-cards { position: absolute; inset: 0; pointer-events: none; color: var(--ink); }
#hs-cards > * { pointer-events: auto; }
.hsp-frame .float-money { position: absolute; top: 18px; right: 18px; background: rgba(15,27,45,.86); backdrop-filter: blur(8px); }
.hsp-frame .hs-info { position: absolute; left: 18px; bottom: 18px; width: 310px; max-width: calc(100% - 36px); }
.hero-split .hs-ctrl { justify-content: flex-end; }
.hero-split .hs-dashes button::after { background: var(--line-strong); }
.hero-split .hs-dashes button[aria-current]::after { background: var(--emerald); }
.hero-split .hs-count { color: var(--slate); }
.hero-split .hs-arrow { border-color: var(--line-strong); background: #fff; color: var(--ink); backdrop-filter: none; }
.hero-split .hs-arrow:hover { border-color: var(--emerald); color: var(--emerald); background: #fff; }
@media (max-width: 1100px) { .hero-split h1 { font-size: 48px; } .hsp { gap: 32px; } }
@media (max-width: 900px) {
  .hsp { grid-template-columns: 1fr; padding-top: 0; gap: 22px; }
  .hsp-media { order: -1; margin: 0 -16px; gap: 10px; }
  .hsp-frame { height: 56svh; min-height: 320px; max-height: 560px; border-radius: 0 0 24px 24px; box-shadow: none; }
  .hsp-frame .float-money { display: none; }
  .hsp-frame .hs-info { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 12px 14px; gap: 6px; background: rgba(255,255,255,.96); }
  .hsp-frame .hs-place, .hsp-frame .hs-go, .hsp-frame .hs-pct .muted { display: none; }
  .hsp-frame .hs-mprice { display: block; } .hsp-frame .hs-name { display: inline; }
  .hsp-frame .hs-info .bar { height: 4px; }
  .hero-split .hs-ctrl { justify-content: center; padding: 0 16px; }
  .hero-split .hs-arrow, .hero-split .hs-count { display: none; }
  .hero-split .hs-dashes { margin-right: 0; }
  .hero-split h1 { font-size: 36px; letter-spacing: -1px; margin-top: 12px; }
  .hero-split .hero-copy > p { font-size: 16px; margin-top: 10px; }
  .hero-split .hero-copy > .badge { display: none; }
  .hero-split .search { flex-wrap: nowrap; padding: 6px 6px 6px 14px; gap: 8px; margin-top: 18px; }
  .hero-split .search input { flex: 1 1 auto; font-size: 16px; min-height: 44px; }
  .hero-split .search .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .hero-split .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .hero-split .chips::-webkit-scrollbar { display: none; }
  .hero-split .chip { flex: none; min-height: 38px; font-size: 13px; }
  .hs-slides img { object-position: 50% 65%; }
}
@media (max-width: 1100px) { .hero-split .search { flex-wrap: nowrap; } .hero-split .search input { flex: 1 1 auto; font-size: 16px; } }

/* Brochures (Designs page cards, project page button) and the reader (public/brochure.js) */
.bro-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.bro-card { overflow: hidden; display: flex; flex-direction: column; }
.bro-cover { position: relative; display: block; border: 0; padding: 0; cursor: pointer; aspect-ratio: 1.41; background: var(--cloud); overflow: hidden; }
.bro-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bro-cover:hover img { transform: scale(1.03); }
.bro-open { position: absolute; left: 16px; bottom: 16px; background: rgba(15,27,45,.85); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.bro-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.bro-card h3 { font-size: 21px; line-height: 1.25; }
.bro-meta { font-size: 13px; color: var(--slate-soft); }
.bro-card .actions { margin-top: 8px; }
.bro-btn { display: inline-flex; align-items: center; gap: 8px; }
body.bro-lock { overflow: hidden; }
.bro { position: fixed; inset: 0; z-index: 2000; background: #0B1320; color: #fff; display: flex; flex-direction: column; }
.bro-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.bro-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bro-t b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bro-t span { font-size: 13px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bro-n { font-size: 14px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.bro-dl small { font-weight: 500; opacity: .8; }
.bro-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 26px; cursor: pointer; }
.bro-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 16px; }
.bro-page { flex: 1; height: 100%; min-width: 0; position: relative; display: grid; place-items: center; cursor: pointer; }
.bro-page canvas { box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; border-radius: 4px; }
.bro-load { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: 15px; text-align: center; padding: 20px; }
.bro-load a { color: #fff; }
.bro-nav { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 30px; cursor: pointer; }
.bro-nav:disabled { opacity: .25; cursor: default; }
.bro-form { position: absolute; inset: 0; background: rgba(11,19,32,.7); display: grid; place-items: center; padding: 16px; z-index: 2; }
.bro-form[hidden] { display: none; }
.bro-ask { width: min(420px, 100%); color: var(--ink); padding: 24px; }
@media (max-width: 700px) {
  .bro-bar { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
  .bro-t { flex-basis: calc(100% - 60px); order: 0; } .bro-x { order: 1; } .bro-n { order: 2; } .bro-dl { order: 3; margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .bro-stage { padding: 8px 4px; gap: 4px; }
  .bro-nav { width: 36px; height: 36px; font-size: 22px; }
}
.bro-page canvas { visibility: hidden; }
.bro-load[hidden] { display: none; }
.bro-tip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(255,255,255,.14); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(6px); }
.bro-tip[hidden] { display: none; }
@media (max-width: 700px) {
  .bro-stage { position: relative; padding: 0; gap: 0; }
  .bro-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(11,19,32,.55); }
  .bro-nav.prev { left: 6px; } .bro-nav.next { right: 6px; }
}
