/*
VOICE: a contractor showing real jobs on real ground. Confident, plain, specific.
IDEA: the Matrix brush streak. The logo's speed streaks become the swatch band on every project card.
PICTURE: a bright 3D map of the valley; white pins carry unit counts; project chips with the streak gradient.
COLOUR and TYPE: Matrix royal #253b94 into bright #2b8cd9 (from the logo), cool white, deep ink; Montserrat (matches the logo's geometric caps) over Barlow text.
LAYOUT: full-bleed map, white brand card top left, white project deck on the right (bottom sheet on phones).
*/
:root {
  --brand: #253b94;
  --brand-bright: #2b8cd9;
  --brand-deep: #18266a;
  --streak: linear-gradient(90deg, #2b8cd9 0%, #2a6fc0 38%, #253b94 72%);
  --ink: #141c33;
  --ink-2: #2a3554;
  --paper: #ffffff;
  --mute: #5b6479;
  --line: #e2e6ef;
  --wash: #f2f5fa;
  --amber: #e8a317;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --r-panel: 16px;
  --r-chip: 12px;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); }
.btn--line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--brand-bright); }
.btn--soft { background: var(--wash); color: var(--brand); }
.btn--white { background: #fff; color: var(--brand); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn[aria-pressed="true"] { background: var(--brand-bright); color: #fff; box-shadow: none; }

/* The streak: the logo's brush-speed lines, used as a band. */
.streak { position: relative; background: var(--streak); color: #fff; overflow: hidden; }
.streak::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 46%; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.22) 0 2px, transparent 2px 7px, rgba(255,255,255,.1) 7px 8px, transparent 8px 13px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.streak > * { position: relative; }

/* Project chip */
.chip { background: var(--paper); border-radius: var(--r-chip); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(20,28,51,.06); display: flex; flex-direction: column; }
.chip-swatch { padding: 16px 20px 15px; }
.chip-kind { font-size: 13px; font-weight: 600; opacity: .92; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.chip-kind svg { width: 16px; height: 16px; }
.chip-name { font: 800 24px/1.12 var(--display); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.chip-where { margin: 6px 0 0; font-size: 15px; opacity: .9; }
.chip-body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.chip-units { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.chip-units strong { font: 800 40px/1 var(--display); color: var(--brand); letter-spacing: -.02em; }
.chip-units span { color: var(--mute); font-size: 15px; }
.chip-units--label { font: 700 18px/1.25 var(--display); color: var(--brand); }
.chip-highlight { margin: 0; font-size: 17px; }
.chip-scope { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-scope li { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--ink-2); }
.chip-builder { margin: 0; font-size: 14px; color: var(--mute); }
.chip-builder b { color: var(--ink); font-weight: 600; }
.chip-status { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff3d6; color: #8a5a00; }
.feature-callout { display: block; padding: 12px 14px; border-radius: 10px; background: var(--wash); color: var(--ink); text-decoration: none; font-size: 14px; box-shadow: inset 3px 0 0 var(--brand-bright); }
.feature-callout b { display: block; font: 700 16px/1.25 var(--display); margin-top: 2px; color: var(--brand); }
.edit-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff6df; border: 1px solid #f1d58f; font-size: 14px; }
.edit-note b { display: block; }

/* Cover images: project photos, else an aerial of the site, else a quiet placeholder. */
.photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 10; background: var(--wash); }
.photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.photo-wrap { position: relative; }
.photo-count { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(20,28,51,.7); padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.photos--aerial { position: relative; }
.photos--aerial .tag { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(20,28,51,.7); padding: 3px 8px; border-radius: 6px; }
.photos--empty { align-items: center; justify-content: center; color: var(--mute); font-size: 14px;
  background: repeating-linear-gradient(135deg, var(--wash) 0 14px, #e9eef6 14px 28px); }

/* Brand block */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo + .brand-word { display: none; }
.brand-word { font: 800 20px/1 var(--display); color: var(--brand); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
