/* Layout: a single plumb line runs down the left of the content column; sections hang off it. Bars from the logo mark become the facade motif. */
:root {
  --forest: #2A4A2F;
  --sandstone: #D67229;
  --ground: #F1F3EF;      /* concrete, faintly green */
  --panel: #FFFFFF;
  --ink: #17231A;
  --muted: #56625A;
  --rule: #CDD3CC;
  --bar-1: #DCE0DA;
  --bar-2: #C9CEC6;
  --mark-ink: #2A4A2F;
  --on-forest: #F1F3EF;
  --accent-ink: #A9521A;  /* sandstone darkened for text on light ground */
  --band: #2A4A2F;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121B14; --panel: #1A261D; --ink: #E6EBE4; --muted: #A3AFA6; --rule: #2E3D32;
    --bar-1: #26342A; --bar-2: #314236; --mark-ink: #9FC1A3; --on-forest: #E6EBE4;
    --accent-ink: #E8894A; --sandstone: #E07D38; --band: #1F3523; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121B14; --panel: #1A261D; --ink: #E6EBE4; --muted: #A3AFA6; --rule: #2E3D32;
  --bar-1: #26342A; --bar-2: #314236; --mark-ink: #9FC1A3; --on-forest: #E6EBE4;
  --accent-ink: #E8894A; --sandstone: #E07D38; --band: #1F3523; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 750; font-variation-settings: "wdth" 78; }
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 92; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36em; line-height: 1.55; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 40px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; color: var(--mark-ink); font-variation-settings: "wdth" 110; }
.brand-name span { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--muted); margin-top: 5px; font-variation-settings: "wdth" 110; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 1rem;
  padding: 13px 22px; border-radius: 3px; border: 2px solid var(--sandstone); background: var(--sandstone); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.nav .btn { color: #fff; padding: 9px 16px; font-size: 0.92rem; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 520px) { .nav .btn .long { display: none; } }
@media (max-width: 420px) { .brand-name span { display: none; } .nav .btn { padding: 8px 12px; white-space: nowrap; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 { color: var(--mark-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.who { font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; max-width: 36em; }
.who strong { color: var(--ink); font-weight: 650; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Exposure estimator: the plumb-bob drops onto the number */
.estimator { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: clamp(22px, 3vw, 32px); position: relative; min-width: 0; }
.estimator::before { content: ""; position: absolute; left: clamp(22px, 3vw, 32px); top: -1px; width: 56px; height: 4px; background: var(--sandstone); }
.estimator h2 { font-size: 1.35rem; font-variation-settings: "wdth" 92; color: var(--ink); }
.estimator .sub { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.law-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 18px; padding: 4px; background: var(--ground); border: 1px solid var(--rule); border-radius: 4px; }
.law-tabs button { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 8px 4px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.law-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 400px) { .law-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fields-2 .field { min-width: 0; }
@media (max-width: 400px) { .fields-2 { grid-template-columns: 1fr; } }
.field select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--ground); color: var(--ink); width: 100%; }
.field { display: grid; gap: 8px; margin-top: 18px; align-content: start; }
.field label { font-size: 0.86rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.field output { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.field input[type="text"] { font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px; background: var(--ground); color: var(--ink); width: 100%; }
.field input[type="range"] { width: 100%; accent-color: var(--sandstone); }
.result { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--rule); }
.result .label { font-size: 0.88rem; color: var(--muted); }
.result .amount { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 75; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-top: 6px; }
.result .note { font-size: 0.9rem; color: var(--ink); margin-top: 10px; min-height: 1.6em; }
.fine { font-size: 0.78rem; color: var(--muted); margin-top: 18px; line-height: 1.5; }

/* Facade bars behind hero */
.facade { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 10px; opacity: 1; pointer-events: none; z-index: -1; }
.facade i { display: block; width: 38px; background: var(--bar-1); }
.facade i:nth-child(even) { background: var(--bar-2); }
.hero { isolation: isolate; }
@media (max-width: 900px) { .facade { display: none; } }

/* Section rhythm */
section.block { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--muted); max-width: 34em; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Services as a price list */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.55fr); gap: clamp(16px, 3vw, 40px); padding-block: 28px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.service p { color: var(--muted); max-width: 38em; }
.service .price { text-align: right; font-variant-numeric: tabular-nums; }
.service .price b { display: block; font-size: 1.5rem; font-weight: 750; font-variation-settings: "wdth" 85; }
.service .price span { font-size: 0.85rem; color: var(--muted); }
.services-foot { font-size: 0.88rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service .price { text-align: left; }
}

/* Engagement sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 24px clamp(16px, 2vw, 28px) 8px 0; border-top: 2px solid var(--rule); position: relative; counter-increment: step; }
.step::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 800; font-variation-settings: "wdth" 70; color: var(--sandstone); line-height: 1; margin-bottom: 14px; }
.step:first-child { border-top-color: var(--sandstone); }
.step p { color: var(--muted); font-size: 0.97rem; margin-top: 8px; }
.step .when { display: block; font-size: 0.82rem; color: var(--ink); font-weight: 600; margin-top: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Jurisdictions table */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.97rem; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.85rem; font-weight: 650; color: var(--muted); background: var(--ground); }
tbody th { font-weight: 700; font-variation-settings: "wdth" 90; white-space: nowrap; }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
.asof { font-size: 0.85rem; color: var(--muted); margin-top: 20px; }
.also { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); margin-top: 36px; }
.also h3 { font-size: 1.05rem; }
.also p { color: var(--muted); margin-top: 6px; max-width: 34em; }
@media (max-width: 700px) { .also { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid .prose { display: grid; gap: 18px; max-width: 38em; }
.about-grid .prose p { color: var(--muted); }
.about-grid .prose p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.creds li span { color: var(--muted); text-align: right; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact band */
.contact { background: var(--band); color: var(--on-forest); padding-block: clamp(64px, 9vw, 112px); }
.contact h2 { color: var(--on-forest); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.contact .lede { color: color-mix(in srgb, var(--on-forest) 78%, transparent); margin-top: 18px; }
.direct { margin-top: 32px; display: grid; gap: 14px; font-size: 1.1rem; }
.direct a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--on-forest) 35%, transparent); }
.direct a:hover { border-bottom-color: var(--sandstone); }
.direct small { display: block; font-size: 0.8rem; color: color-mix(in srgb, var(--on-forest) 65%, transparent); }
form.inquiry { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
form.inquiry label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }
form.inquiry input, form.inquiry select, form.inquiry textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 3px; width: 100%;
  border: 1px solid color-mix(in srgb, var(--on-forest) 30%, transparent);
  background: color-mix(in srgb, var(--on-forest) 8%, transparent); color: var(--on-forest);
}
form.inquiry select option { color: #17231A; }
form.inquiry textarea { min-height: 110px; resize: vertical; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 48px 28px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-variation-settings: "wdth" 100; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid .tag { max-width: 22em; margin-top: 12px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.82rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* Links inside lists and tables */
.service h3 a, tbody th a { text-decoration: none; }
.service h3 a:hover, tbody th a:hover { text-decoration: underline; text-decoration-color: var(--sandstone); text-underline-offset: 4px; }
.more { display: inline-block; margin-top: 10px; font-size: 0.92rem; font-weight: 650; color: var(--accent-ink); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav a[aria-current="page"] { color: var(--ink); }

/* Spam honeypot field (hidden from people) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero h1 { color: var(--mark-ink); font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 16em; }
.page-hero .kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.page-hero .facade i { width: 30px; }

/* Key facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 8px 0 0; font-size: 1.02rem; line-height: 1.45; }
.facts dd b { display: block; font-size: 1.55rem; font-weight: 750; line-height: 1.1; font-variation-settings: "wdth" 80; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts > div, .facts > div + div { padding-left: 0; border-left: 0; } }

/* Two-column text sections */
.split { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split > h2 { position: sticky; top: 96px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > h2 { position: static; } }
.prose-col { display: grid; gap: 16px; max-width: 40em; }
.prose-col p, .prose-col li { color: var(--muted); }
.prose-col p strong, .prose-col li strong { color: var(--ink); font-weight: 650; }
.prose-col ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.prose-col h3 { margin-top: 12px; }

/* Numbered pathways / deliverables */
.pathways { list-style: none; margin: 0; padding: 0; counter-reset: pw; border-top: 2px solid var(--ink); }
.pathways li { counter-increment: pw; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.pathways li::before { content: counter(pw, decimal-leading-zero); grid-row: span 2; font-size: 1.6rem; font-weight: 800; font-variation-settings: "wdth" 70; color: var(--sandstone); line-height: 1; }
.pathways h3 { font-size: 1.12rem; }
.pathways p { color: var(--muted); }

/* Callout */
.callout { background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--sandstone); border-radius: 3px; padding: 20px 22px; }
.callout p { color: var(--ink); }
.callout .btn { margin-top: 14px; }

/* Card links (jurisdiction hub, related) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; position: relative; }
.card::before { content: ""; position: absolute; left: 22px; top: -1px; width: 40px; height: 3px; background: var(--sandstone); }
.card:hover { border-color: var(--ink); }
.card small { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .go { font-size: 0.9rem; font-weight: 650; color: var(--accent-ink); margin-top: 4px; }

/* Sources */
.sources { font-size: 0.86rem; color: var(--muted); }
.sources ol { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* CTA band (inner pages) */
.cta-band { background: var(--band); color: var(--on-forest); padding-block: clamp(56px, 8vw, 96px); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end; }
.cta-band h2 { color: var(--on-forest); }
.cta-band p { color: color-mix(in srgb, var(--on-forest) 78%, transparent); margin-top: 14px; max-width: 34em; font-size: 1.1rem; }
.cta-band .btn.ghost { color: var(--on-forest); border-color: color-mix(in srgb, var(--on-forest) 40%, transparent); }
.cta-band .btn.ghost:hover { border-color: var(--on-forest); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Thanks / 404 */
.notice { padding-block: clamp(72px, 12vw, 140px); }
.notice .wrap { display: grid; gap: 22px; max-width: 760px; }
.notice h1 { color: var(--mark-ink); font-size: clamp(2.3rem, 5vw, 3.6rem); }
