/* Erin New Homes — site stylesheet */
:root {
  --ink: #0f1e2e;
  --ink-2: #33475b;
  --muted: #5d6b79;
  --navy: #0f2a44;
  --navy-2: #173b5f;
  --navy-3: #22507d;
  --red: #c8202f;
  --red-2: #a91624;
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --white: #fff;
  --sage: #5f7d63;
  --sage-2: #e3ebe1;
  --gold: #b88a2e;
  --line: rgba(15, 30, 46, 0.12);
  --line-2: rgba(15, 30, 46, 0.2);
  --line-inv: rgba(255, 255, 255, 0.16);
  --shadow-1: 0 1px 2px rgba(15, 30, 46, 0.06), 0 4px 16px rgba(15, 30, 46, 0.06);
  --shadow-2: 0 2px 6px rgba(15, 30, 46, 0.08), 0 18px 48px rgba(15, 30, 46, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 0.5em; font-optical-sizing: auto; text-wrap: balance; }
h1, .h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); letter-spacing: -0.02em; }
h3, .h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 480; color: var(--red); }
.on-dark h1 em, .on-dark h2 em, .hero h1 em { color: #ff8f98; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 46em; }
.on-dark .lead { color: rgba(255, 255, 255, 0.82); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.76rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: #ff9aa2; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow::after { content: ''; width: 22px; height: 2px; background: currentColor; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--white { background: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--white); }
.section--ink { background: #0a1724; color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }
.stack > * + * { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--navy); --fg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; background: var(--bg); color: var(--fg); font: 600 0.98rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15, 30, 46, 0.18); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-2); box-shadow: 0 8px 24px rgba(200, 32, 47, 0.32); }
.btn--white { --bg: var(--white); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.on-dark .btn--ghost, .hero .btn--ghost { --fg: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: gap 0.2s, border-color 0.2s; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 12px; border-color: var(--red); }
.on-dark .link-arrow { color: var(--white); border-color: var(--line-inv); }

/* ---------- Header ---------- */
.topbar { background: #0a1724; color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 36px; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar .tb-links { display: flex; gap: 22px; align-items: center; }
.topbar .tb-links a { display: inline-flex; gap: 6px; align-items: center; }
.topbar svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .topbar .tb-msg { display: none; } .topbar .wrap { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 90; background: rgba(246, 242, 234, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background 0.3s, border-color 0.3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.28rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-sub { font: 600 0.62rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; font-weight: 550; font-size: 0.95rem; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }
.nav-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: rgba(15, 30, 46, 0.06); }
.nav-link[aria-current='page'] { color: var(--red); }
.dropdown { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
.dropdown::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item:hover > .dropdown, .nav-item.open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover > .nav-link svg, .nav-item.open > .nav-link svg { transform: rotate(180deg); }
.dropdown a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.dropdown a:hover { background: var(--paper); }
.dropdown a strong { font-weight: 600; font-size: 0.95rem; }
.dropdown a span { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.dropdown .dd-foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown--wide .dd-foot { grid-column: 1 / -1; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  .nav > ul, .header-cta .btn--ghost { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .header-cta .btn--red { display: none; } .brand-sub { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 23, 36, 0.5); opacity: 0; transition: opacity 0.25s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); transform: translateX(100%); transition: transform 0.3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer nav { padding: 8px 20px 24px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 600 1.15rem/1.2 var(--serif); cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a, .drawer .d-link { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); }
.drawer details div { padding-bottom: 12px; }
.drawer .d-link { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-foot { margin-top: auto; padding: 20px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 23, 36, 0.92) 0%, rgba(10, 23, 36, 0.72) 38%, rgba(10, 23, 36, 0.18) 72%, rgba(10, 23, 36, 0.05) 100%), linear-gradient(0deg, rgba(10, 23, 36, 0.6) 0%, rgba(10, 23, 36, 0) 40%); }
.hero--home { min-height: min(94vh, 900px); display: flex; align-items: center; padding: 72px 0 140px; }
.hero--home .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero .lead { color: rgba(255, 255, 255, 0.86); margin-bottom: 30px; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.hero-kicker span { display: inline-flex; gap: 8px; align-items: center; }
.hero-kicker svg { width: 16px; height: 16px; color: #ff9aa2; }
.hero--page { padding: clamp(80px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); }
.hero--page .lead { max-width: 40em; }
.hero--page::after { background: linear-gradient(100deg, rgba(10, 23, 36, 0.9) 0%, rgba(10, 23, 36, 0.7) 45%, rgba(10, 23, 36, 0.3) 100%); }
.hero--plain { background: var(--navy); }
.hero--plain::after { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; list-style: none; padding: 0; }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.hero-card { background: rgba(255, 255, 255, 0.97); color: var(--ink); border-radius: 18px; padding: clamp(22px, 2.6vw, 30px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.hero-card h2 { font-size: 1.55rem; margin-bottom: 6px; }
.hero-card .muted { font-size: 0.92rem; margin-bottom: 18px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(200, 32, 47, 0.1); color: var(--red); font: 700 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 32, 47, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(200, 32, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 32, 47, 0); } }
@media (max-width: 980px) {
  .hero--home { min-height: 0; padding: 80px 0 120px; }
  .hero--home .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero::after { background: linear-gradient(180deg, rgba(10, 23, 36, 0.78) 0%, rgba(10, 23, 36, 0.86) 100%); }
}
.media-note { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.04em; }

/* Stat band */
.statband { position: relative; z-index: 3; margin-top: -84px; }
.statband .wrap { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font: 560 clamp(2rem, 3.4vw, 2.9rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat-num small { font-size: 0.5em; margin-left: 2px; }
.stat-label { margin-top: 10px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .statband .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n + 3) { border-top: 1px solid var(--line); } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); position: relative; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; display: block; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.on-dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-inv); color: var(--white); }
.icon-badge { width: 52px; height: 52px; border-radius: 13px; background: rgba(200, 32, 47, 0.09); color: var(--red); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--navy { background: rgba(15, 42, 68, 0.08); color: var(--navy); }
.icon-badge--sage { background: var(--sage-2); color: var(--sage); }
.on-dark .icon-badge { background: rgba(255, 255, 255, 0.08); color: #ff9aa2; }
.thesis-num { position: absolute; top: 24px; right: 26px; font: 500 0.85rem/1 var(--serif); color: var(--muted); }

/* Project cards */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 1020px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pcards { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .chip { position: absolute; top: 14px; left: 14px; }
.pcard-num { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 42, 68, 0.88); color: var(--white); display: grid; place-items: center; font: 600 0.9rem/1 var(--sans); }
.pcard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-builder { font: 600 0.74rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pcard h3 { font-size: 1.45rem; margin-bottom: 6px; }
.pcard-addr { font-size: 0.9rem; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.pcard-addr svg { width: 15px; height: 15px; flex: none; }
.pcard-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; gap: 8px; }
.pcard-facts div { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.pcard-facts b { display: block; font: 600 1.1rem/1.1 var(--sans); color: var(--ink); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.pcard-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-weight: 600; font-size: 0.93rem; color: var(--navy); }
.pcard-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.pcard:hover .pcard-cta svg { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font: 650 0.72rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--selling { color: #0f7a3e; }
.chip--register { color: var(--red); }
.chip--planning { color: var(--navy-3); }
.chip--soon { color: var(--gold); }

/* Media frames */
.frame { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame figcaption, .img-note { position: absolute; left: 12px; bottom: 10px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.frame-stack { position: relative; }
.frame-float { position: absolute; right: -18px; bottom: -28px; width: 46%; border: 6px solid var(--paper); border-radius: 16px; box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .frame-float { right: 12px; bottom: -20px; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.on-dark .checks li svg { color: #ff9aa2; }

/* Key facts table */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.facts > div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.facts dd { margin: 0; font: 560 1.5rem/1.15 var(--serif); color: var(--navy); }
.facts dd small { display: block; font: 400 0.82rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.hl td { background: rgba(200, 32, 47, 0.05); font-weight: 600; }

/* ---------- Compare chart ---------- */
.seg { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--navy); color: var(--white); }
.on-dark .seg { background: rgba(255, 255, 255, 0.06); border-color: var(--line-inv); }
.on-dark .seg button { color: rgba(255, 255, 255, 0.7); }
.on-dark .seg button[aria-pressed='true'] { background: var(--white); color: var(--ink); }
.bars { display: grid; gap: 14px; margin-top: 28px; }
.bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; gap: 16px; align-items: center; }
.bar-label { font-weight: 600; font-size: 0.95rem; }
.bar-track { display: block; height: 38px; background: rgba(15, 30, 46, 0.06); border-radius: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w, 0%); background: var(--navy-2); border-radius: 8px; transition: width 0.9s cubic-bezier(.2, .8, .2, 1); }
.bar--hl .bar-fill { background: var(--red); }
.bar--hl .bar-label { color: var(--red); }
.bar-val { text-align: right; font: 600 1.05rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.bar-save { display: block; font-size: 0.76rem; font-weight: 500; color: #0f7a3e; margin-top: 4px; }
.on-dark .bar-track { background: rgba(255, 255, 255, 0.08); }
.on-dark .bar-fill { background: rgba(255, 255, 255, 0.55); }
.on-dark .bar--hl .bar-fill { background: #ff5b67; }
.on-dark .bar--hl .bar-label { color: #ff9aa2; }
.on-dark .bar-save { color: #7fdca5; }
@media (max-width: 600px) { .bar { grid-template-columns: 92px minmax(0, 1fr) 86px; gap: 10px; } .bar-label { font-size: 0.85rem; } .bar-val { font-size: 0.92rem; } }

/* Scenario chart */
.scenario { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: end; height: 300px; padding: 0 4px; border-bottom: 1px solid var(--line-2); }
.scenario-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 10px; }
.scenario-bar { width: 100%; max-width: 160px; border-radius: 10px 10px 0 0; background: var(--navy-2); position: relative; height: var(--h); display: flex; flex-direction: column; justify-content: flex-start; }
.scenario-bar--range { background: linear-gradient(180deg, rgba(200, 32, 47, 0.35) 0, rgba(200, 32, 47, 0.35) var(--r), var(--red) var(--r)); }
.scenario-val { font: 600 0.98rem/1.25 var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.scenario-val small { display: block; color: var(--red); font-weight: 700; }
.scenario-lbl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); text-align: center; margin-top: 12px; font: 600 0.8rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.disclaimer { font-size: 0.8rem; line-height: 1.55; color: var(--muted); border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; margin-top: 22px; }
.on-dark .disclaimer { color: rgba(255, 255, 255, 0.6); border-color: var(--line-inv); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.timeline::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line-inv); }
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 2px solid #ff9aa2; }
.timeline li.done::before { background: #ff5b67; border-color: #ff5b67; }
.timeline .tl-when { font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #ff9aa2; margin-bottom: 10px; }
.timeline h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--white); margin-bottom: 6px; }
.timeline p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-left: 34px; }
  .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -34px; }
}

/* ---------- Map ---------- */
.map-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--white); min-height: 620px; }
.map-list { border-left: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.map-list .ml-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 2; }
.map-list button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 20px; cursor: pointer; display: grid; grid-template-columns: 30px 1fr; gap: 12px; transition: background 0.2s; }
.map-list button:hover, .map-list button.active { background: var(--paper); }
.map-list .ml-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font: 700 0.82rem/1 var(--sans); }
.map-list strong { display: block; font-size: 0.98rem; }
.map-list span { font-size: 0.82rem; color: var(--muted); }
.map { min-height: 620px; background: #dfe7dc; z-index: 1; }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); padding: 12px 20px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 900px) { .map-shell { grid-template-columns: minmax(0, 1fr); } .map-list { max-height: none; border-left: 0; border-top: 1px solid var(--line); } .map, .map-shell { min-height: 440px; } }
.leaflet-container { font-family: var(--sans) !important; }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); border: 2px solid #fff; }
.map-pin span { transform: rotate(45deg); color: #fff; font: 700 0.85rem/1 var(--sans); }
.map-pin--town { width: auto; height: auto; border-radius: 6px; transform: none; padding: 5px 9px; background: var(--ink); color: #fff; font: 600 0.78rem/1 var(--sans); border: 0; white-space: nowrap; }
.leaflet-popup-content { margin: 14px 16px !important; font-size: 0.9rem !important; line-height: 1.45 !important; }
.leaflet-popup-content h4 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 4px; }
.leaflet-popup-content a { color: var(--red); font-weight: 600; }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 12px; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .lead-form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b79' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(34, 80, 125, 0.14); }
.field input[aria-invalid='true'] { border-color: var(--red); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.82rem; line-height: 1.45; color: var(--muted); align-items: start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.form-note { font-size: 0.74rem; line-height: 1.5; color: var(--muted); margin: 2px 0 0; }
.form-note a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; }
.form-status.err { color: var(--red); }
.lead-form.sent > :not(.form-done) { display: none; }
.form-done { display: none; text-align: center; padding: 18px 6px; }
.lead-form.sent .form-done { display: block; }
.form-done .done-ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: rgba(15, 122, 62, 0.1); color: #0f7a3e; display: grid; place-items: center; }
.form-done .done-ic svg { width: 30px; height: 30px; }
.form-done h3 { font-size: 1.4rem; }
.on-dark .field > span { color: rgba(255, 255, 255, 0.82); }
.on-dark .check, .on-dark .form-note { color: rgba(255, 255, 255, 0.64); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* Form panels */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-1); }
.panel h3 { font-size: 1.5rem; }
.cta-band { background: var(--navy); color: var(--white); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); position: relative; }
.cta-band-copy { padding: clamp(32px, 5vw, 64px); }
.cta-band-copy h2 { color: var(--white); }
.cta-band-form { padding: clamp(24px, 4vw, 48px); background: rgba(255, 255, 255, 0.04); border-left: 1px solid var(--line-inv); }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band-form { border-left: 0; border-top: 1px solid var(--line-inv); } }

/* Report mockup */
.report-mock { position: relative; width: min(340px, 80%); margin-inline: auto; aspect-ratio: 3 / 4; perspective: 1400px; }
.report-mock .rm-page { position: absolute; inset: 0; border-radius: 6px 12px 12px 6px; overflow: hidden; background: var(--navy); box-shadow: -2px 0 0 rgba(255, 255, 255, 0.2) inset, 0 30px 60px rgba(0, 0, 0, 0.35); transform: rotateY(-14deg) rotateX(4deg); transform-origin: left center; }
.report-mock .rm-page img { width: 100%; height: 62%; object-fit: cover; }
.report-mock .rm-title { padding: 18px 20px; color: var(--white); }
.report-mock .rm-title small { font: 700 0.6rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #ff9aa2; }
.report-mock .rm-title b { display: block; font: 560 1.45rem/1.1 var(--serif); margin-top: 8px; }
.report-mock .rm-shadow { position: absolute; inset: 6px -8px -8px 10px; background: var(--paper-2); border-radius: 6px 12px 12px 6px; transform: rotateY(-14deg) rotateX(4deg); transform-origin: left center; z-index: -1; }

/* ---------- Mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.mosaic figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(10, 23, 36, 0.85), transparent); color: var(--white); font-weight: 600; font-size: 0.95rem; }
.mosaic figcaption small { display: block; font-weight: 400; opacity: 0.8; font-size: 0.8rem; }
.mosaic .m-big { grid-column: span 2; grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }

/* Place list */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.place { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.place h4 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }
.place .p-meta { font-size: 0.8rem; color: var(--red); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; }
.place p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.place a { font-size: 0.85rem; font-weight: 600; color: var(--navy-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 560 1.2rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.25s, background 0.25s; }
.faq summary .faq-ic svg { width: 16px; height: 16px; }
.faq details[open] summary .faq-ic { transform: rotate(45deg); background: var(--navy); color: var(--white); border-color: var(--navy); }
.faq .faq-a { padding: 0 54px 24px 0; color: var(--ink-2); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Agent ---------- */
.agent { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.agent-photo { width: 220px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font: 500 3.6rem/1 var(--serif); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-meta { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
@media (max-width: 680px) { .agent { grid-template-columns: minmax(0, 1fr); } .agent-photo { width: 160px; } }

/* ---------- Prose (guides) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--ink); margin: 2.2em 0 0.6em; }
.prose h3 { color: var(--ink); margin: 1.8em 0 0.5em; }
.prose a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--red); background: var(--white); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.prose .table-wrap { margin: 1.4em 0 1.8em; font-size: 0.95rem; }
.prose .callout { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 1.6em 0; font-size: 1rem; }
.prose .callout strong:first-child { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 1.12rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 0.9rem; }
.toc strong { display: block; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--red); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }
.byline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.byline span { display: inline-flex; gap: 6px; align-items: center; }
.byline svg { width: 15px; height: 15px; }

/* Guide cards */
.gcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gcard-media { aspect-ratio: 16 / 9; overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.gcard-tag { font: 700 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.gcard h3 { font-size: 1.3rem; }
.gcard p { font-size: 0.93rem; color: var(--muted); }
.gcard .gcard-meta { margin-top: auto; font-size: 0.8rem; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-inputs { display: grid; gap: 18px; }
.calc-group { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 18px 20px; }
.calc-group legend, .calc-group h4 { font: 700 0.74rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.range { display: grid; gap: 6px; margin-bottom: 14px; }
.range:last-child { margin-bottom: 0; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; font-weight: 600; }
.range-top output { font-variant-numeric: tabular-nums; color: var(--navy); }
.range input[type='range'] { width: 100%; accent-color: var(--red); }
.calc-out { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.kpi b { display: block; font: 560 1.75rem/1.1 var(--serif); color: var(--navy); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi b.pos { color: #0f7a3e; }
.kpi b.neg { color: var(--red); }
.kpi--hl { background: var(--navy); color: var(--white); border-color: var(--navy); }
.kpi--hl span { color: rgba(255, 255, 255, 0.7); }
.kpi--hl b { color: var(--white); }
.calc-chart { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.calc-chart svg { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1724; color: rgba(255, 255, 255, 0.72); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 0.92rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 700 0.74rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand-sub { color: rgba(255, 255, 255, 0.55); }
.footer-brokerage { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-inv); line-height: 1.6; }
.footer-brokerage strong { color: var(--white); }
.footer-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-inv); font-size: 0.76rem; line-height: 1.6; color: rgba(255, 255, 255, 0.52); display: grid; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Mobile CTA + modal ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 242, 234, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: 0.92rem; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 0; } }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.modal.open { pointer-events: auto; opacity: 1; }
.modal-bg { position: absolute; inset: 0; background: rgba(10, 23, 36, 0.62); }
.modal-box { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); transform: translateY(14px) scale(0.98); transition: transform 0.3s; }
.modal.open .modal-box { transform: none; }
.modal-media { background: var(--navy); position: relative; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.modal-media .mm-copy { position: absolute; inset: auto 0 0; padding: 22px; color: var(--white); background: linear-gradient(0deg, rgba(10, 23, 36, 0.9), transparent); }
.modal-media .mm-copy b { font: 560 1.4rem/1.15 var(--serif); display: block; }
.modal-body { padding: clamp(24px, 3vw, 36px); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.modal-close svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .modal-box { grid-template-columns: minmax(0, 1fr); } .modal-media { height: 150px; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Misc */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 550; }
.on-dark .pill-list li { background: rgba(255, 255, 255, 0.06); border-color: var(--line-inv); }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; font-size: 0.9rem; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
.kicker-num { font: 560 clamp(3rem, 7vw, 5.5rem)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--red); }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--muted); font: 600 1rem/1 var(--serif); }
.unit-mix { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--paper-2); margin: 10px 0 8px; }
.unit-mix span { display: block; height: 100%; }
.unit-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.unit-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 24px); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* Project hero split + map tile tone */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 400px); gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 980px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }
.leaflet-tile-pane { filter: saturate(0.6) contrast(0.96) brightness(1.02); }
.on-dark .leaflet-container a { color: var(--red); }
.hero .eyebrow { color: #ff9aa2; }
.hero .chip { box-shadow: none; }

.hero--home .media-note { bottom: 100px; }
