/* Melrose Manors Stormwater — site styles. Mobile first. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/Inter-Bold.woff2) format("woff2"); }

:root {
  --accent: #0B63CE;
  --accent-dark: #0952ab;
  --accent-soft: #e8f1fc;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --amber: #b25000;
  --amber-soft: #fff4e5;
  --green: #1e7b34;
  --tbd: #fff3b0;
  --radius: 16px;
  --radius-sm: 12px;
  /* Type scale (6 sizes) */
  --t-caption: 13px;
  --t-small: 15px;
  --t-body: 17px;
  --t-title: 22px;
  --t-lead: clamp(17px, 2vw, 22px);
  --t-headline: clamp(28px, 4.4vw, 44px);
  --t-display: clamp(36px, 6.4vw, 64px);
  /* Control borders need 3:1 against their background */
  --line-strong: #86868b;
  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 104px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.5 Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.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: 100; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
mark.tbd { background: var(--tbd); color: inherit; padding: 0 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { color: var(--accent); font-size: var(--t-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: var(--t-headline); margin-top: 12px; }
.h3 { font-size: var(--t-title); letter-spacing: -0.015em; }
.lead { color: var(--text-2); font-size: var(--t-lead); line-height: 1.45; margin-top: 12px; max-width: 40em; }
.muted { color: var(--text-2); }
.small { font-size: var(--t-small); }

/* ---------- Loading: hide text until content is in place ---------- */
html.i18n-pending main, html.i18n-pending .site-header, html.i18n-pending .site-footer { visibility: hidden; }

/* ---------- Header and tabs ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: var(--t-small); font-weight: 700; letter-spacing: -0.01em; }
.brand-txt span { font-size: var(--t-caption); color: var(--text-2); }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; min-width: 44px; min-height: 40px; border-radius: 999px; font-size: var(--t-small); font-weight: 600; color: var(--text-2); }
.lang button[aria-pressed="true"] { background: var(--text); color: #fff; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 8px); scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: flex; align-items: center; min-height: 46px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-size: var(--t-small); font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent; scroll-snap-align: start;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs a.tab-report[aria-current="page"], .tabs a.tab-report { color: var(--accent); }
@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .hdr { display: flex; align-items: center; gap: 24px; }
  .hdr-row { display: contents; }
  .brand { order: 0; }
  .tabs { order: 1; margin: 0; padding: 0; overflow: visible; }
  .tabs a { min-height: 64px; padding: 0 12px; }
  .hdr .lang { order: 2; }
}

/* ---------- Mobile contact bar ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.contact-bar a { min-height: 48px; }
main { padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .contact-bar { display: none; } main { padding-bottom: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--t-body); font-weight: 600; text-decoration: none; letter-spacing: -0.005em;
  transition: background-color .2s, transform .15s var(--ease), border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #f0f0f2; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-dark { background: var(--text); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: #1d1d1f; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 32px; }
@media (min-width: 900px) { .section { padding: 96px 0; } .section-head { margin-bottom: 48px; } }
.page-head { padding-top: 48px; padding-bottom: 8px; }
.page-head .h2 { font-size: var(--t-display); }
@media (min-width: 900px) { .page-head { padding-top: 64px; padding-bottom: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2b3a4a; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 66% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.30) 30%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.80) 100%); }
.hero-body { position: relative; z-index: 1; width: 100%; padding-top: 128px; padding-bottom: 32px; }
.hero .kicker { color: #fff; opacity: .92; }
.hero h1 { font-size: var(--t-display); max-width: 13em; margin-top: 12px; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero-lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34em; margin-top: 16px; color: rgba(255,255,255,.94); }
.pill {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px;
  padding: 8px 16px; border-radius: 999px; font-size: var(--t-small); font-weight: 600;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffcc4d; box-shadow: 0 0 0 4px rgba(255,204,77,.25); flex: none; }
.pill mark.tbd { background: rgba(255,243,176,.9); color: #1d1d1f; }
@media (min-width: 900px) { .hero-img { object-position: 50% 50%; } .hero-body { padding-bottom: 64px; } }

/* ---------- Street finder ---------- */
.finder { position: relative; z-index: 2; margin-top: -28px; }
.finder-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
@media (min-width: 900px) { .finder { margin-top: -56px; } .finder-card { padding: 32px 32px; } }
.finder-card .h3 { margin-top: 8px; font-size: var(--t-title); }
.search { position: relative; margin-top: 16px; }
.search svg.search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-2); pointer-events: none; }
.search input {
  width: 100%; min-height: 56px; padding: 0 48px 0 48px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-alt); font-size: var(--t-body); appearance: none;
}
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(11,99,206,.15); }
.search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: none; color: var(--text-2); display: none; align-items: center; justify-content: center; }
.search .clear svg { width: 18px; height: 18px; }
.search.has-value .clear { display: flex; }
.suggest { list-style: none; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; max-height: 300px; overflow-y: auto; }
.suggest:empty { display: none; }
.suggest li + li { border-top: 1px solid var(--line); }
.suggest button { width: 100%; min-height: 50px; padding: 0 16px; border: 0; background: none; text-align: left; font-size: var(--t-body); display: flex; align-items: center; justify-content: space-between; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--accent-soft); }
.suggest button svg { width: 16px; height: 16px; color: var(--text-2); }
.help { font-size: var(--t-small); color: var(--text-2); margin-top: 8px; }
.result { margin-top: 16px; border-radius: 16px; background: var(--bg-alt); padding: 16px; animation: rise .3s var(--ease); }
.result:empty { display: none; }
.result-street { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.015em; }
.result-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: var(--t-small); }
.result p { margin-top: 8px; color: var(--text-2); font-size: var(--t-small); }
.result .btn-row { margin-top: 16px; }
.result .btn { min-height: 44px; font-size: var(--t-small); padding: 0 16px; }

/* ---------- Status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; font-size: var(--t-caption); font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.active { background: var(--accent-soft); color: var(--accent); }
.chip.next { background: var(--amber-soft); color: var(--amber); }
.chip.complete { background: #eaf6ec; color: var(--green); }
.chip.tbd { background: #f0f0f2; color: #636366; }

/* ---------- Impact tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 16px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.tile:hover { border-color: #b8b8bf; box-shadow: 0 6px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.tile .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile .ic svg { width: 20px; height: 20px; }
.tile-title { font-size: var(--t-caption); font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.tile-value { font-size: var(--t-body); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.tile-detail { font-size: var(--t-small); color: var(--text-2); line-height: 1.4; margin-top: 2px; }
@media (min-width: 760px) { .tile { padding: 24px 24px; } .tile-value { font-size: var(--t-title); } }

/* ---------- Why / build ---------- */
.why-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; } }
.why-body { font-size: var(--t-title); line-height: 1.4; letter-spacing: -0.012em; font-weight: 400; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat b { display: block; font-size: var(--t-headline); letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.stat span { display: block; font-size: var(--t-small); color: var(--text-2); margin-top: 8px; line-height: 1.4; }
.cards { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px; }
.section.alt .card { border-color: transparent; }
.card .ic { width: 44px; height: 44px; color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 44px; height: 44px; }
.card h3 { font-size: var(--t-title); letter-spacing: -0.015em; }
.card p { color: var(--text-2); font-size: var(--t-small); margin-top: 8px; line-height: 1.5; }
.footnote { margin-top: 24px; font-size: var(--t-small); color: var(--text-2); }

/* ---------- Segmented control (before / during / after) ---------- */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e8e8ed; border-radius: 12px; padding: 3px; width: 100%; max-width: 480px; }
.seg button { border: 0; background: none; min-height: 44px; border-radius: 12px; font-weight: 600; font-size: var(--t-small); color: var(--text-2); transition: background-color .2s, color .2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg-panel { margin-top: 24px; }
.checks { list-style: none; display: grid; gap: 12px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 16px; font-size: var(--t-body); animation: rise .3s var(--ease) both; }
.checks li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot { scroll-snap-align: start; margin: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.shot button:hover img { transform: scale(1.04); }
.shot figcaption { margin-top: 12px; font-size: var(--t-small); font-weight: 600; line-height: 1.35; }
.shot figcaption span { display: block; font-weight: 400; color: var(--text-2); font-size: var(--t-caption); margin-top: 2px; }
.swipe-hint { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.swipe-hint i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: background-color .2s, transform .2s var(--ease); }
.swipe-hint i.on { background: var(--text); transform: scaleX(2.5); }
@media (min-width: 760px) { .swipe-hint { display: none; } }
.video-wrap { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 900px) { .video-wrap { grid-template-columns: 2fr 1fr; align-items: end; gap: 48px; } }
.video-wrap video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }

/* ---------- Area and maps ---------- */
.area-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .area-grid { grid-template-columns: 2fr 1fr; gap: 48px; } }
.map { position: relative; width: 100%; height: 380px; border-radius: var(--radius); overflow: hidden; background: #e9eef3; border: 1px solid var(--line); }
.map.tall { height: min(62svh, 560px); }
.map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--text-2); font-size: var(--t-small); }
.limits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.limits li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.limits li:nth-child(odd) { padding-right: 12px; }
.limits b { display: block; font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 600; }
.limits span { display: block; font-weight: 600; margin-top: 2px; font-size: var(--t-body); line-height: 1.3; }
.thumb-btn { display: block; width: 100%; padding: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-align: left; }
.thumb-btn img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.thumb-btn span { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; font-weight: 600; color: var(--accent); min-height: 48px; }
.thumb-btn span svg { width: 18px; height: 18px; }
.placeholder { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; background: #fff; }
.placeholder svg { width: 44px; height: 44px; color: var(--text-2); margin: 0 auto 16px; }
.placeholder h3 { font-size: var(--t-title); }
.placeholder p { color: var(--text-2); font-size: var(--t-small); margin-top: 8px; }
.caption { font-size: var(--t-small); color: var(--text-2); margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Updates ---------- */
.updates { list-style: none; border-top: 1px solid var(--line); }
.updates li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 760px) { .updates li { grid-template-columns: 180px 1fr; gap: 24px; } }
.updates time { font-size: var(--t-small); font-weight: 600; color: var(--text-2); }
.updates h3 { font-size: var(--t-title); letter-spacing: -0.015em; }
.updates p { color: var(--text-2); margin-top: 8px; font-size: var(--t-body); }

/* ---------- Alerts and contact ---------- */
.alert-card { display: grid; gap: 24px; background: var(--text); color: #fff; border-radius: 20px; padding: 32px 24px; }
.alert-card .kicker { color: #8fbaf0; }
.alert-card .h2 { font-size: var(--t-headline); }
.alert-card p { color: rgba(255,255,255,.78); margin-top: 12px; }
.alert-card .soon { font-size: var(--t-small); color: rgba(255,255,255,.8); }
.alert-card mark.tbd { color: #1d1d1f; }
@media (min-width: 900px) { .alert-card { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px 64px; } .alert-card .btn-row { justify-content: flex-end; margin: 0; } }
.contact-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.contact-tile { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); min-height: 120px; transition: border-color .2s, transform .2s var(--ease); }
.contact-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-tile svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: auto; }
.contact-tile b { font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 600; margin-top: 16px; }
.contact-tile span { font-weight: 700; font-size: var(--t-body); letter-spacing: -0.01em; word-break: break-word; }

/* ---------- Timeline ---------- */
.track { list-style: none; position: relative; margin-top: 8px; }
.track li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-bottom: 32px; }
.track li::before { content: ""; position: absolute; left: 13px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track li.done::before { background: var(--accent); }
.node { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.node svg { width: 14px; height: 14px; color: #fff; }
.track li.next .node { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.track li.next .node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
.track li.active .node, .track li.done .node { border-color: var(--accent); background: var(--accent); }
.track h3 { font-size: var(--t-title); letter-spacing: -0.015em; }
.track p { color: var(--text-2); font-size: var(--t-small); margin-top: 4px; }
.track .when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--t-small); font-weight: 600; }
@media (min-width: 900px) {
  .track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .track li { grid-template-columns: 1fr; gap: 16px; padding: 0; align-content: start; }
  .track li::before { left: 28px; right: -20px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
.two-up { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .two-up { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--bg-alt); border-radius: var(--radius); padding: 24px 24px; }
.panel h3 { font-size: var(--t-title); margin-top: 8px; }
.panel p { color: var(--text-2); margin-top: 8px; font-size: var(--t-body); }
.panel .kicker { color: var(--text-2); }

/* ---------- Look-ahead lists ---------- */
.weeks { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 760px) { .weeks { grid-template-columns: 1fr 1fr; gap: 32px; } }
.week h3 { font-size: var(--t-body); display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.week h3 span { font-size: var(--t-small); font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.zones { list-style: none; }
.zones li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.zones button { all: unset; cursor: pointer; display: grid; gap: 4px; width: 100%; min-height: 44px; }
.zones button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.zones .z-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.zones b { font-size: var(--t-body); }
.zones span { color: var(--text-2); font-size: var(--t-small); }
.empty { color: var(--text-2); padding: 16px 0; font-size: var(--t-small); }
.notice { background: var(--amber-soft); color: var(--amber); border-radius: 12px; padding: 12px 16px; font-size: var(--t-small); font-weight: 600; margin-top: 16px; }
.empty-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 24px; text-align: center; color: var(--text-2); }
.empty-card svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-tools { position: sticky; top: var(--header-h); z-index: 5; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 12px 0; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: var(--t-small); font-weight: 600; color: var(--text); white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.faq-group h2 { font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 600; margin: 32px 0 4px; }
.qa { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 150px); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background-color .2s; }
.qa summary .plus svg { width: 14px; height: 14px; }
.qa[open] summary .plus { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.qa .ans { padding: 0 48px 24px 0; color: #3a3a3c; font-size: var(--t-body); animation: rise .3s var(--ease); }
.qa:target summary, .qa.flash summary { color: var(--accent); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 640px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: var(--t-body); padding: 0; }
.field .req { color: var(--text-2); font-weight: 400; font-size: var(--t-small); margin-left: 8px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: var(--t-body); appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 48px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11,99,206,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c4271b; }
.err { color: #c4271b; font-size: var(--t-small); font-weight: 600; }
.err:empty { display: none; }
.pair { display: grid; gap: 24px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radios span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: var(--t-small); background: #fff; }
.radios input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.radios input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field input[type="file"] { font-size: var(--t-small); width: 100%; min-height: 48px; color: var(--text-2); }
.field input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--accent); font: 600 15px Inter, "Helvetica Neue", Arial, sans-serif; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: var(--t-small); color: var(--text-2); display: flex; gap: 12px; align-items: flex-start; }
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.urgent { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 16px 16px; margin-top: 24px; font-size: var(--t-small); font-weight: 600; max-width: 640px; }
.urgent svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.urgent a { font-weight: 700; }
.sent { max-width: 640px; text-align: center; padding: 48px 24px; background: var(--bg-alt); border-radius: 20px; animation: rise .3s var(--ease); }
.sent .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sent .check svg { width: 30px; height: 30px; }
.sent h2 { font-size: var(--t-title); }
.sent p { color: var(--text-2); margin-top: 12px; }
.sent .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 calc(var(--bar-h) + 48px + env(safe-area-inset-bottom)); font-size: var(--t-small); color: var(--text-2); }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }
.foot { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto; align-items: end; } }
.foot b { color: var(--text); font-weight: 600; }
.foot p + p { margin-top: 8px; }
.foot p a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; }
.foot-links a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.foot-qr { display: flex; align-items: center; gap: 16px; }
.foot-qr img { width: 84px; height: 84px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100%; margin: 0; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lb { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 12px 24px; color: #fff; }
.lb img { max-width: 100%; max-height: calc(100% - 72px); object-fit: contain; border-radius: 8px; }
.lb figcaption { margin-top: 16px; text-align: center; font-size: var(--t-small); font-weight: 600; }
.lb figcaption span { display: block; font-weight: 400; color: rgba(255,255,255,.7); font-size: var(--t-caption); margin-top: 2px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: var(--t-small); color: rgba(255,255,255,.7); pointer-events: none; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .6; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Project Map (home page)
   ========================================================= */
.mapx { position: relative; background: #f2f2ef; }
.map-panel { padding: 24px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); }
.map-panel h1 { font-size: var(--t-title); line-height: 1.12; margin-top: 8px; }
.map-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-small); font-weight: 600; color: var(--text-2); }
.map-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5a623; box-shadow: 0 0 0 4px rgba(245,166,35,.18); flex: none; }
.map-panel .finder { margin-top: 16px; }
.map-panel .search { margin-top: 0; }
.map-panel .help { margin-top: 8px; }
.map-stage { position: relative; height: 66svh; min-height: 420px; }
.pmap { position: absolute; inset: 0; background: #f2f2ef; }
@media (min-width: 900px) {
  .mapx { height: calc(100svh - 65px); min-height: 640px; max-height: 1000px; }
  .map-stage { position: absolute; inset: 0; height: auto; min-height: 0; }
  .map-panel {
    position: absolute; z-index: 600; top: 24px; left: 24px; width: 400px; max-height: calc(100% - 48px); overflow-y: auto;
    padding: 32px 32px 24px; border: 0; border-radius: 20px;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
  }
  .map-panel h1 { font-size: 28px; }
}


/* Floating map buttons (zoom, locate, whole project) */
.map-tools { position: absolute; z-index: 500; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.map-tools .grp { display: flex; flex-direction: column; background: rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.16); overflow: hidden; }
.map-tools .grp button + button { border-top: 1px solid #e5e5ea; }
.map-btn { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; }
.map-btn svg { width: 20px; height: 20px; }
.map-btn:hover { background: #f2f2f7; }
.map-btn.solo { border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.map-btn.on { color: var(--accent); }
.map-chip { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.16); font-size: var(--t-caption); font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.map-chip svg { width: 15px; height: 15px; }

/* Map key (legend); each item toggles its layer */
.map-key { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.map-key::-webkit-scrollbar { display: none; }
.map-key button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: var(--t-caption); font-weight: 600; color: var(--text); white-space: nowrap; transition: opacity .2s; }
.map-key button[aria-pressed="false"] { opacity: .5; }
.map-key button[aria-pressed="false"] .sw { filter: grayscale(1); }
.map-key .hint { flex: none; align-self: center; font-size: var(--t-caption); color: var(--text-2); background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px; }
@media (min-width: 900px) { .map-key { left: auto; right: 24px; bottom: 24px; flex-direction: column; align-items: stretch; background: rgba(255,255,255,.95); border-radius: 16px; padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.14); gap: 2px; overflow: visible; }
  .map-key .ttl { font-size: var(--t-caption); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 2px 8px 8px; }
  .map-key button { box-shadow: none; background: transparent; border-radius: 12px; min-height: 36px; }
  .map-key button:hover { background: #f2f2f7; }
  .map-key .hint { background: none; padding: 8px 8px 0; } }
@media (max-width: 899px) { .map-key .ttl { display: none; } }
.sw { width: 22px; height: 12px; flex: none; position: relative; }
.sw.pipes::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; border-radius: 2px; background: var(--accent); }
.sw.drains::before { content: ""; position: absolute; left: 6px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2.5px var(--accent); }
.sw.zones::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 6px; border-radius: 3px; background: #f5a623; }
.sw.limits::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px dashed var(--accent); }

/* Pins */
.pin-home { width: 22px; height: 22px; border-radius: 50%; background: #1d1d1f; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(10,132,255,.5), 0 2px 6px rgba(0,0,0,.3); animation: me 2s ease-out infinite; }
@keyframes me { 0% { box-shadow: 0 0 0 0 rgba(10,132,255,.45), 0 2px 6px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 18px rgba(10,132,255,0), 0 2px 6px rgba(0,0,0,.3); } }

/* Result card in the map panel */
.place { margin-top: 16px; border-radius: 16px; background: var(--bg-alt); padding: 16px; animation: rise .3s var(--ease); position: relative; }
.place:empty { display: none; }
.place .x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.place .x svg { width: 16px; height: 16px; }
.place .x:hover { background: #e8e8ed; }
.place .t { font-size: var(--t-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.place h2 { font-size: var(--t-title); letter-spacing: -0.015em; margin: 4px 48px 0 0; }
.place .sub { color: var(--text-2); font-size: var(--t-small); margin-top: 2px; }
.place .row { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-size: var(--t-small); line-height: 1.45; }
.place .row svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.place .row b { font-weight: 600; }
.place .note { font-size: var(--t-caption); color: var(--text-2); margin-top: 12px; }
.place .btn-row { margin-top: 16px; gap: 8px; }
.place .btn { min-height: 44px; font-size: var(--t-small); padding: 0 16px; }
.locate-msg { font-size: var(--t-small); color: var(--text-2); margin-top: 12px; }
.locate-msg:empty { display: none; }
.finder .locate-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: var(--t-small); }
.finder .locate-link svg { width: 18px; height: 18px; }
.suggest .ic-sm { width: 16px; height: 16px; color: var(--text-2); flex: none; margin-right: 12px; }
.suggest button span { flex: 1; }
.suggest button small { color: var(--text-2); font-size: var(--t-caption); margin-left: 8px; }

/* Key facts strip under the map */
.facts-strip { border-bottom: 1px solid var(--line); }
.facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(odd) { padding-right: 16px; }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
.facts b { display: block; font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 600; }
.facts span, .facts a { display: block; font-weight: 700; font-size: var(--t-body); margin-top: 4px; letter-spacing: -0.01em; line-height: 1.3; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts li { border-bottom: 0; padding: 24px 24px 24px 0; } .facts li + li { padding-left: 24px; border-left: 1px solid var(--line); } }

/* Short hero on The Project page */
.hero-short { min-height: min(62svh, 620px); }

/* MapLibre pins, labels and popups */
.pin-wrap { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pin-label { background: #fff; color: var(--text); border-radius: 12px; padding: 8px 12px; font: 600 13px Inter, Arial, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.18); white-space: nowrap; margin-bottom: 8px; position: relative; }
.pin-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; }
.maplibregl-popup.st-tip .maplibregl-popup-content { background: rgba(29,29,31,.88); color: #fff; padding: 4px 8px; border-radius: 8px; font: 600 13px Inter, Arial, sans-serif; box-shadow: none; }
.maplibregl-popup.st-tip .maplibregl-popup-tip { display: none; }
.pmap .maplibregl-popup-content { border-radius: 16px; padding: 12px 16px; font: 400 15px/1.4 Inter, Arial, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pmap .maplibregl-popup-close-button { font-size: var(--t-body); width: 32px; height: 32px; }
.pmap .maplibregl-ctrl-attrib { font-size: var(--t-caption); }
.pmap .maplibregl-cooperative-gesture-screen { font: 600 17px Inter, Arial, sans-serif; background: rgba(29,29,31,.55); }
.map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--text-2); font-size: var(--t-small); z-index: 5; }

/* Phone: compact header so the map gets most of the screen */
@media (max-width: 899px) {
  .map-panel { padding: 16px var(--gutter) 16px; }
  .map-panel .kicker { font-size: var(--t-caption); }
  .map-panel h1 { font-size: var(--t-title); margin-top: 4px; }
  .map-status { margin-top: 8px; font-size: var(--t-caption); }
  .map-panel .finder { margin-top: 12px; }
  .map-panel .help, .map-panel .locate-link { display: none; }
  .map-panel .search input { min-height: 50px; }
  .map-stage { height: calc(100svh - 104px - 240px - 70px); min-height: 380px; }
}

/* Phone: result card sits under the map; map key at the top of the map */
.place-m:empty { display: none; }
.place-m { padding: 0 var(--gutter) 8px; background: #fff; }
.place-m .place { margin-top: -18px; position: relative; z-index: 2; background: #fff; box-shadow: 0 -6px 24px rgba(0,0,0,.12); border-radius: 20px; }
@media (min-width: 900px) { .place-m { display: none; } }
@media (max-width: 899px) { .map-key { top: 12px; bottom: auto; left: 12px; right: 64px; } }

/* Pump station marker and key swatch */
.pump-pin { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,.3); cursor: pointer; padding: 0; }
.pump-pin svg { width: 20px; height: 20px; }
.pump-pin:hover { transform: scale(1.06); }
.sw.pump::before { content: ""; position: absolute; left: 5px; top: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.3); }
/* Placeholder text at 4.5:1 on the gray search field */
::placeholder { color: #6e6e73; opacity: 1; }
.search input { border-color: var(--line-strong); }

/* =========================================================
   Header: Man-Con brand bar, project bar, pinned tab bar
   ========================================================= */
:root { --header-h: 48px; }
@media (min-width: 900px) { :root { --header-h: 56px; } }
.site-header { position: static; background: #fff; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brandbar { border-bottom: 1px solid var(--line); }
.brandbar-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . lang" "slogan slogan slogan"; align-items: center; column-gap: 16px; row-gap: 4px; padding-top: 12px; padding-bottom: 12px; }
.mc-logo { grid-area: logo; display: flex; align-items: center; min-height: 44px; }
.mc-logo img { height: 22px; width: auto; }
.slogan { grid-area: slogan; font-size: var(--t-caption); color: var(--text-2); letter-spacing: 0.01em; }
.brandbar .lang { grid-area: lang; }
@media (min-width: 900px) {
  .brandbar-in { grid-template-columns: auto auto 1fr auto; grid-template-areas: "logo slogan . lang"; padding-top: 12px; padding-bottom: 12px; }
  .mc-logo img { height: 26px; }
  .slogan { padding-left: 16px; border-left: 1px solid var(--line); font-size: var(--t-small); }
}
.projbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.projbar-in { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding-top: 12px; padding-bottom: 12px; }
.proj-name { color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--t-small); letter-spacing: -0.01em; line-height: 1.3; }
.proj-no { color: var(--text-2); font-size: var(--t-caption); }
@media (min-width: 900px) { .proj-name { font-size: var(--t-body); } }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.site-nav .tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 8px); }
@media (min-width: 900px) { .site-nav .tabs { margin: 0 -12px; padding: 0; overflow: visible; } .site-nav .tabs a { min-height: 56px; } }
/* Map page sizing with the taller header */
@media (min-width: 900px) { .mapx { height: calc(100svh - 168px); } }
@media (max-width: 899px) { .map-stage { height: calc(100svh - 48px - 160px - 72px); } }
/* Aerial photos on The Project page */
.aerials { display: grid; gap: 12px; }
.aerials { grid-template-columns: 1fr 1fr; }
.aerials .shot:first-child { grid-column: 1 / -1; }
.aerials .shot button { aspect-ratio: 3 / 2; }
.aerials .shot:first-child button { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .aerials { gap: 16px; } .aerials .shot:first-child button { aspect-ratio: 21 / 9; } }
.limits-fig { margin: 48px 0 0; }
.limits-fig .thumb-btn { margin-top: 0; }
.limits-fig .thumb-btn img { aspect-ratio: auto; max-height: 720px; object-fit: contain; background: #e9ecef; }
.limits-fig figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--text-2); }
/* =========================================================
   Phase 1 segments, map note, sign-up
   ========================================================= */
.map-note { position: absolute; z-index: 400; left: 50%; transform: translateX(-50%); bottom: 12px; margin: 0; max-width: calc(100% - 120px); padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--text-2); font-size: var(--t-caption); line-height: 1.4; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); pointer-events: none; }
@media (min-width: 900px) { .map-note { left: 448px; right: auto; transform: none; bottom: 16px; max-width: 420px; text-align: left; } }
.start-wrap { pointer-events: none; }
.start-pin { display: inline-block; white-space: nowrap; background: #1d1d1f; color: #fff; font: 600 12px Inter, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.25); position: relative; }
.start-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #1d1d1f; }
.sw.zones::before { background: #7d8bb8; opacity: .6; }
.chip.planned { background: #eef0f7; color: #3d4a73; }
.zp { display: grid; gap: 4px; }
.zp .zk { font-size: var(--t-caption); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.zp .chip { justify-self: start; margin-top: 4px; }
.next-up { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; justify-items: start; margin-bottom: 24px; }
.next-up p { font-size: var(--t-body); }
.next-up .btn { min-height: 44px; }

/* Timeline: Phase 1 sequence */
.segs { list-style: none; display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.seg-n { width: 40px; height: 40px; border-radius: 50%; background: #1d1d1f; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.seg.active .seg-n { background: var(--accent); } .seg.next .seg-n { background: #d4860b; } .seg.complete .seg-n { background: #8e8e93; }
.seg.complete { opacity: .75; }
.seg-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.seg-top b { font-size: var(--t-body); }
.seg-body p { margin-top: 4px; color: var(--text); font-size: var(--t-small); }
.seg-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: var(--t-caption); color: var(--text-2); align-items: center; }
.seg-meta a { margin-left: auto; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .segs { grid-template-columns: 1fr 1fr; gap: 16px; } }
.phases-next { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 760px) { .phases-next { grid-template-columns: 1fr 1fr; gap: 16px; } }
.phase-card { padding: 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.phase-card p { margin-top: 8px; color: var(--text-2); font-size: var(--t-small); }
.phases-projected { grid-column: 1 / -1; font-size: var(--t-small); color: var(--text); font-weight: 600; }

/* Stay informed: sign-up card (light, so the form reads clearly) */
.alert-card#alerts { background: #fff; color: var(--text); border: 1px solid var(--line); align-items: start; }
.alert-card#alerts .kicker { color: var(--accent); }
.alert-card#alerts p { color: var(--text-2); }
.alerts-privacy { font-size: var(--t-small); margin-top: 16px !important; }
.alerts-form { max-width: none; gap: 16px; }
.alerts-form .radios span { min-height: 44px; padding: 0 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-caption); color: var(--text-2); line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.consent.invalid .check { color: #c4271b; }
.alerts-done { display: flex; gap: 12px; align-items: center; padding: 24px; border-radius: var(--radius); background: #eaf6ec; color: var(--green); font-weight: 600; }
.alerts-done .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* Timeline: Phase 1 sequence diagram */
.seq-map { margin: 0 0 32px; }
.seq-map svg { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.seq-map figcaption { margin-top: 8px; font-size: var(--t-caption); color: var(--text-2); }

/* Timeline: two-year overview bar */
.ov { margin: 0 0 56px; }
.ov-status { font-size: var(--t-title); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 24px; }
.ov-status:empty { display: none; }
.ov-axis { position: relative; height: 18px; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.ov-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ov-axis span:first-child { transform: none; }
.ov-axis span:last-child { transform: translateX(-100%); }
.ov-lane { position: relative; height: 40px; margin-top: 8px; }
.ov-bar { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.ov-bar.p1, .sw.p1 { background: var(--accent); }
.ov-bar.p23, .sw.p23 { background: repeating-linear-gradient(135deg, #e8e8ed 0 6px, #f5f5f7 6px 12px); box-shadow: inset 0 0 0 1px #d2d2d7; }
.ov-tick { position: absolute; top: -8px; bottom: -8px; width: 1px; background: var(--line-strong); z-index: 1; }
.ov-now { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: #1d1d1f; z-index: 2; }
.ov-now span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: var(--t-caption); font-weight: 700; white-space: nowrap; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: var(--t-small); color: var(--text-2); }
.ov-legend b { color: var(--text); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 8px; }

/* Timeline: Phase 1 Gantt */
.gantt { margin-bottom: 8px; }
.gt-head, .gt-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.gt-head { padding-bottom: 8px; }
.gt-row { padding: 16px 0; border-top: 1px solid var(--line); }
.gt-row .seg-n { width: 32px; height: 32px; font-size: var(--t-small); align-self: start; }
.gt-row.active .seg-n { background: var(--accent); } .gt-row.next .seg-n { background: #d4860b; } .gt-row.complete .seg-n { background: #8e8e93; }
.gt-name b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--t-body); }
.gt-name small { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--text); }
.gt-name small.gt-when { font-size: var(--t-caption); color: var(--text-2); }
.gt-lane { grid-column: 2; position: relative; height: 8px; margin-top: 12px; border-radius: 4px; background: #e8e8ed; }
.gt-months { height: 16px; margin: 0; background: none; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.gt-months span { position: absolute; top: 0; }
.gt-bar { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 4px; background: var(--accent); }
.gt-row.next .gt-bar { background: #d4860b; } .gt-row.complete .gt-bar { background: #aeaeb2; }
.gt-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #1d1d1f; z-index: 1; }
@media (min-width: 760px) {
  .gt-head, .gt-row { grid-template-columns: 32px minmax(0, 340px) minmax(0, 1fr); }
  .gt-head .gt-lane, .gt-row .gt-lane { grid-column: 3; margin-top: 0; }
  .gt-row .gt-lane { align-self: center; }
}

/* Timeline: when is my street */
.mystreet { margin: 0 0 48px; padding: 24px; border-radius: var(--radius); background: var(--bg-alt); }
.ms-label { display: block; font-size: var(--t-title); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 16px; }
.mystreet select { width: 100%; max-width: 420px; min-height: 48px; padding: 0 16px; font: inherit; font-size: var(--t-body); border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text); }
.ms-result:not(:empty) { margin-top: 16px; display: grid; gap: 8px; }
.ms-hit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #fff; text-decoration: none; color: var(--text); }
.ms-hit .seg-n { width: 32px; height: 32px; flex: none; font-size: var(--t-small); }
.ms-hit b { display: block; font-size: var(--t-body); }
.ms-hit small { display: block; font-size: var(--t-small); color: var(--text-2); }
.ms-result p { font-size: var(--t-small); color: var(--text-2); }
.gt-row.hit { background: var(--accent-soft); border-radius: 12px; }
.gt-row.hit { padding-left: 8px; padding-right: 8px; margin: 0 -8px; }

/* Map place card: when we'll be in front of your home */
.place .when { margin-top: 16px; padding: 16px; border-radius: 12px; background: #fff; }
.place .when .wk { font-size: var(--t-caption); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.place .when .wd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: var(--t-title); font-weight: 700; letter-spacing: -0.015em; }
.place .when .ws { margin-top: 4px; font-size: var(--t-small); color: var(--text-2); }
.wdots { position: relative; display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.wdots::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #e8e8ed; }
.wdots i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #d2d2d7; box-shadow: 0 0 0 2px #fff; font-style: normal; }
.wdots i.complete { background: #8e8e93; }
.wdots i.active, .wdots i.next { background: #d4860b; }
.wdots i.me { width: 24px; height: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wends { display: flex; justify-content: space-between; margin-top: 4px; font-size: var(--t-caption); color: var(--text-2); }

/* Map: Map / Aerial switch */
.map-view { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.map-view button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); }
.map-view button[aria-pressed="true"] { background: #1d1d1f; color: #fff; }
.limits-top .limits-fig { margin-top: 0; }

/* Timeline: plain-language plan */
.narrow-tl { max-width: 760px; }
.tl-h { margin-top: 8px; }
.path-status { margin-top: 8px; font-size: var(--t-title); font-weight: 700; color: var(--accent); }
.path-status:empty { display: none; }
.path { list-style: none; margin-top: 32px; }
.path li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 32px; }
.path li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--line); }
.path li:last-child::before { display: none; }
.path .ic { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; }
.path .ic svg { width: 22px; height: 22px; }
.path .soon .ic { background: #fff; color: var(--text-2); border: 2px dashed #c7c7cc; }
.path .done .ic { background: #8e8e93; }
.path li:not(.here) .when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--t-small); font-weight: 700; color: var(--accent); padding-top: 4px; }
.path .soon .when { color: var(--text-2); }
.path h3 { margin-top: 4px; font-size: var(--t-title); letter-spacing: -0.015em; }
.path p { margin-top: 4px; color: var(--text-2); font-size: var(--t-body); }
.path .here { grid-template-columns: 48px 1fr; align-items: center; padding-bottom: 24px; }
.path .here .dot { justify-self: center; width: 20px; height: 20px; border-radius: 50%; background: #d4860b; box-shadow: 0 0 0 6px rgba(212,134,11,.18); }
.path .here b { display: block; font-size: var(--t-body); }
.path .here small { color: var(--text-2); font-size: var(--t-small); }
.path .here::before { top: 32px; }

/* Timeline: Phase 1 month by month */
.months { display: grid; gap: 16px; }
.mo { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.mo h3 { padding: 16px 20px; font-size: var(--t-body); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mo ul { list-style: none; }
.mo-row { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: center; padding: 16px 20px; }
.mo-row + .mo-row { border-top: 1px solid var(--line); }
.mo-row .seg-n { width: 36px; height: 36px; font-size: var(--t-small); }
.mo-row.active .seg-n { background: var(--accent); } .mo-row.next .seg-n { background: #d4860b; } .mo-row.complete .seg-n { background: #8e8e93; }
.mo-txt b { display: block; font-size: var(--t-body); font-weight: 600; line-height: 1.35; }
.mo-txt small { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: var(--t-small); color: var(--text-2); }
.mo-row.hit { background: var(--accent-soft); }

/* Map finder: choose from a list, tap tip */
.finder .pick { margin-top: 12px; }
.finder .pick-l { display: block; font-size: var(--t-caption); font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.finder .pick-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.finder .pick select { width: 100%; min-height: 44px; padding: 0 12px; font: inherit; font-size: var(--t-small); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.finder .pick select:disabled { color: var(--text-2); background: var(--bg-alt); }
.finder .tap-tip { margin-top: 4px; font-size: var(--t-caption); color: var(--text-2); }
.zp .zd { font-size: var(--t-title); letter-spacing: -0.015em; }
.ms-one b { display: block; font-size: var(--t-title); letter-spacing: -0.015em; }
.ms-one small { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--text-2); }
@media (max-width: 899px) { .map-panel .tap-tip { display: none; } }
