:root {
  --ink: #12324A;
  --ink-2: #4A6275;
  --water: #1E88D9;
  --water-deep: #13609E;
  --can: #F4B820;
  --earth: #A97B52;
  --earth-light: #E8D3AE;
  --paper: #F6F7F2;
  --card: #FFFFFF;
  --line: #D9DED8;
  --ok: #2E8B57;
  --radius: 14px;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Atkinson Hyperlegible', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: var(--water-deep); }
:focus-visible { outline: 3px solid var(--can); outline-offset: 2px; border-radius: 4px; }

.brand { padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: -.01em; }
.mark svg { width: 30px; height: 30px; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 16px; }
h1 { font: 800 clamp(30px, 8.4vw, 44px)/1.06 var(--display); letter-spacing: -.025em; margin: 6px 0 10px; text-wrap: balance; }
h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font: 700 18px/1.25 var(--display); margin: 0 0 4px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; }
.fine { font-size: 14px; color: var(--ink-2); text-align: center; margin: 12px 0 0; }

/* Buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.big { width: 100%; min-height: 56px; font-size: 18px; }
.btn:active { transform: translateY(1px); }
.btn .spin { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.busy .label { display: none; }
.btn.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Giving */
.give-hero { margin: 0 -16px 18px; aspect-ratio: 4/3; max-height: 300px; overflow: hidden; }
.give-hero svg { width: 100%; height: 100%; }
@media (min-width: 652px) { .give-hero { margin: 16px 0 18px; border-radius: var(--radius); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.form { display: grid; gap: 16px; margin-bottom: 28px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field > span { font-weight: 700; font-size: 15px; margin-bottom: 8px; display: block; }
.field small, legend small { font-weight: 400; color: var(--ink-2); }
.field input, .pay-fields input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 17px var(--body); color: var(--ink); background: #fff; }
.field input:focus { border-color: var(--water); outline: none; box-shadow: 0 0 0 3px rgba(30,136,217,.2); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts legend { grid-column: 1 / -1; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; }
.amounts span { display: grid; place-items: center; min-height: 54px; border: 2px solid var(--line); border-radius: 12px; font: 700 20px var(--display); cursor: pointer; }
.amounts input:checked + span { border-color: var(--ink); background: var(--can); }
.amounts input:focus-visible + span { outline: 3px solid var(--water); outline-offset: 2px; }
.pay { border-top: 1px dashed var(--line); padding-top: 14px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.demo-tag { font-weight: 400; font-size: 13px; background: var(--earth-light); padding: 3px 8px; border-radius: 6px; }
.pay-fields { display: grid; grid-template-columns: 1fr 88px 70px; gap: 8px; }
.pay-fields input { color: var(--ink-2); background: #FAFBF8; padding: 0 10px; font-size: 15px; }
.thanks .btn { margin-top: 4px; }

/* Report */
.scene { aspect-ratio: 4/3; max-height: 46vh; width: 100%; overflow: hidden; background: #DDEFF7; }
.scene svg { width: 100%; height: 100%; }
.proj { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.when { margin: 0 0 24px; font-size: 15px; color: var(--ink-2); }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block p { margin: 0 0 12px; max-width: 62ch; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--card); padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font: 700 18px/1.25 var(--display); }

.sites { width: 100%; border-collapse: collapse; font-size: 15px; }
.sites th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 400; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.sites td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sites tbody tr:first-child td { font-weight: 700; }
.sites tbody tr:first-child td:first-child { box-shadow: inset 4px 0 var(--can); padding-left: 10px; }
.checks { padding-left: 20px; margin: 0 0 16px; }
.checks li { margin-bottom: 6px; }

.photo { margin: 0 0 12px; cursor: zoom-in; }
.photo svg, .photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery .photo svg, .gallery .photo img { aspect-ratio: 1; }

.video { position: relative; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--ink); margin: 6px 0 4px; }
.video > svg { width: 100%; aspect-ratio: 16/9; opacity: .82; }
.video .play { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--can); display: grid; place-items: center; }
.video .play svg { width: 30px; fill: var(--ink); }
.video .vlabel { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; color: #fff; font: 700 15px var(--body); text-align: left; background: linear-gradient(transparent, rgba(18,50,74,.85)); }

.meter { margin-bottom: 16px; }
.meter-bar { height: 16px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--earth-light) 0 10px, #E0C9A0 10px 20px); position: relative; overflow: hidden; }
.meter-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--water); border-radius: 999px; }
.meter p { margin: 8px 0 0; }

blockquote { margin: 0; font: 500 21px/1.35 var(--display); letter-spacing: -.01em; }
blockquote.note { margin-top: 10px; font-size: 19px; border-left: 4px solid var(--can); padding-left: 14px; }
.cite { font-size: 14px; color: var(--ink-2); margin-top: 8px !important; }

.appeals { display: grid; gap: 14px; }
.appeal { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.appeal svg { width: 112px; aspect-ratio: 1; border-radius: 10px; }
.appeal p { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.appeal .btn { min-height: 40px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 16px var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--can); font-weight: 700; }
.cert { background: transparent; }

/* The journey gauge: a borehole shaft that fills with water as the project advances */
.journey { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.bore { list-style: none; margin: 0; padding: 0; }
.bore li { position: relative; padding-left: 46px; min-height: 64px; }
.bore li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: -2px; width: 8px;
  background: repeating-linear-gradient(180deg, #C99A6B 0 8px, #A97B52 8px 16px); }
.bore li:last-child::before { display: none; }
.bore li.filled::before { background: var(--water); }
.bore a, .bore li > div { display: flex; align-items: flex-start; gap: 0; text-decoration: none; color: inherit; padding-bottom: 18px; }
.bore .dot { position: absolute; left: 3px; top: 2px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); z-index: 1; }
.bore li.done .dot, .bore li.filled .dot { background: var(--water); border-color: var(--water-deep); }
.bore li.current .dot { background: var(--can); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(244,184,32,.3); }
.bore li.todo { color: var(--ink-2); }
.bore li.todo .dot { border-style: dashed; border-color: #9AA9B3; }
.bore .txt b { display: block; font: 700 17px/1.3 var(--display); }
.bore .txt small { color: var(--ink-2); font-size: 14px; }
.bore a .txt b { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

.foot { max-width: 620px; margin: 24px auto 0; padding: 18px 16px 40px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }

dialog { border: 0; border-radius: var(--radius); padding: 20px; max-width: 340px; color: var(--ink); }
dialog::backdrop { background: rgba(18,50,74,.5); }
dialog p { margin: 0 0 16px; }

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