:root {
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: Arial, Helvetica, sans-serif;
  --ink: #11161c;
  --muted: #596570;
  --paper: #fff7e8;
  --cream: #ece2d0;
  --porch: #0c2e4f;
  --civic: #7d402a;
  --leaf: #496f59;
  --clay: #d68a2c;
  --eyebrow-light: #8d4b10;
  --line: rgba(24, 32, 38, 0.18);
  --focus: #d68a2c;
  --shadow: 0 18px 45px rgba(24, 32, 38, 0.12);
  --dark-panel: #0d1218;
  --dark-line: rgba(255, 247, 232, 0.18);
  --v3-blue: #17324d;
  --v3-rust: #9b4b2c;
  --v3-gold: #d99a3d;
  --v3-green: #55735f;
  --v3-ease-civic: cubic-bezier(.2, .8, .2, 1);
  --v3-control: 150ms;
  --v3-local: 300ms;
  --v3-scene: 700ms;
  --v3-ambient: 14s;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.6; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .13; background-image: linear-gradient(90deg, rgba(17,22,28,.18) 1px, transparent 1px), linear-gradient(rgba(17,22,28,.13) 1px, transparent 1px); background-size: 48px 48px; }
a { color: var(--porch); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 20; background: var(--ink); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 2.5rem); background: rgba(255, 247, 232, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 12rem; }
.brand img { width: 3.2rem; aspect-ratio: 1; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong, h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
.brand small, .eyebrow, .site-nav, .button, .status-pill, label, summary small, dt, .progress-label { font-family: var(--font-label); }
.brand small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-primary-action { align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; padding: .58rem .9rem; background: var(--porch); color: white; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-primary-action { display: inline-flex; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; flex-wrap: wrap; font-size: .92rem; }
.site-nav a { padding: .55rem .65rem; border-radius: 6px; text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { background: var(--ink); color: white; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); padding: .6rem .75rem; border-radius: 6px; min-height: 44px; }
main > section { padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); max-width: 1180px; margin: 0 auto; }
.page-hero, .commons-hero { max-width: none; background: var(--dark-panel); color: var(--paper); border-bottom: 1px solid var(--dark-line); }
.page-hero { min-height: auto; box-shadow: inset 0 -12px 0 var(--clay); }
.page-hero > * { max-width: 840px; }
.commons-hero { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .8fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); box-shadow: inset 0 -14px 0 var(--civic); }
h1 { font-size: clamp(2.55rem, 5.1vw, 4.1rem); line-height: .96; letter-spacing: -.02em; margin: .35rem 0 1rem; max-width: 15ch; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 3.2rem); line-height: 1.07; margin: 0 0 1rem; }
h3 { font-size: 1.12rem; line-height: 1.2; margin: 0 0 .55rem; }
.hero-copy p, .page-hero p, .lead { font-size: clamp(1.08rem, 1.7vw, 1.34rem); max-width: 68ch; }
.v3-scene-divide .hero-copy p:not(.eyebrow) { max-width: 56ch; font-size: clamp(1.08rem, 1.55vw, 1.22rem); line-height: 1.52; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--eyebrow-light); font-weight: 800; font-size: .78rem; }
.page-hero .eyebrow, .commons-hero .eyebrow, .neighbor-line .eyebrow, .membership-panel .eyebrow, .band .eyebrow, .declaration .eyebrow { color: var(--clay); }
.four-porches-mark { margin: 0; display: grid; place-items: center; gap: 1rem; }
.four-porches-mark img { width: min(68vw, 430px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0,0,0,.45)); animation: porch-reveal 900ms ease-out both; }
.four-porches-mark figcaption { max-width: 18rem; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--paper); }
@keyframes porch-reveal { from { transform: translateY(14px) scale(.94); opacity: .15; } to { transform: translateY(0) scale(1); opacity: 1; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .75rem 1rem; border-radius: 6px; border: 2px solid var(--porch); background: var(--porch); color: white; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.commons-hero .button { border-color: var(--clay); background: var(--clay); color: var(--ink); }
.button.secondary, button[disabled] { background: transparent; color: var(--porch); }
.commons-hero .button.secondary { border-color: var(--paper); color: var(--paper); }
.button.text-action { min-height: 44px; border: 0; padding: .55rem .1rem; background: transparent; color: var(--paper); text-decoration: underline; text-underline-offset: .22em; }
button[disabled] { opacity: .68; cursor: not-allowed; }
.band, .neighbor-line, .membership-panel, .declaration { max-width: none; color: white; background: var(--porch); }
.neighbor-line { display: grid; justify-items: start; background: var(--ink); }
.neighbor-line p, .band p, .membership-panel p, .declaration p { max-width: 760px; }
.v3-scene { position: relative; overflow: clip; }
.v3-scene::after { content: ""; position: absolute; left: clamp(1rem, 5vw, 4rem); right: clamp(1rem, 5vw, 4rem); bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--v3-gold), var(--v3-green), transparent); opacity: .72; }
.v3-scene-copy { position: relative; z-index: 2; }
.v3-scene-divide { grid-template-columns: minmax(500px, 1fr) minmax(500px, 1fr); gap: clamp(3rem, 4.6vw, 4rem); align-items: center; min-height: clamp(640px, calc(100vh - 4.8rem), 720px); padding-top: clamp(3rem, 5vw, 4rem); padding-bottom: clamp(4.5rem, 6.2vw, 5rem); }
.v3-scene-divide .hero-copy { max-width: 720px; }
.v3-scene-art { position: relative; z-index: 1; min-height: 420px; border: 1px solid var(--dark-line); border-radius: 8px; background: linear-gradient(135deg, rgba(255,247,232,.08), rgba(217,154,61,.06)); box-shadow: 0 26px 70px rgba(0,0,0,.24); }
.v3-atlas { padding: clamp(1rem, 2vw, 1.4rem); display: grid; align-content: center; }
.v3-topography { width: 100%; height: auto; display: block; }
.v3-porchlight { min-height: 390px; border: 0; overflow: visible; background: transparent; box-shadow: none; padding: 0; align-content: start; }
.v3-porchlight-map { filter: drop-shadow(0 26px 42px rgba(0,0,0,.2)); }
.v3-parcels polygon { fill: rgba(255,247,232,.08); stroke: rgba(255,247,232,.26); stroke-width: 2; transition: transform var(--v3-scene) var(--v3-ease-civic), fill var(--v3-local) var(--v3-ease-civic); }
.v3-water { fill: none; stroke: rgba(85,115,95,.75); stroke-width: 16; stroke-linecap: round; opacity: .72; }
.v3-street { fill: none; stroke: var(--v3-gold); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 980; stroke-dashoffset: 0; }
.v3-blocks path { transition: transform var(--v3-scene) var(--v3-ease-civic); }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-blocks path:nth-child(odd) { transform: translate(-18px, -8px); }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-blocks path:nth-child(even) { transform: translate(18px, 10px); }
.v3-place-shape { fill: #fff7e8; stroke: #17324d; stroke-width: 5; }
.v3-public-room { fill: #d99a3d; stroke: #7d402a; stroke-width: 5; }
.v3-room-light { fill: rgba(217,154,61,.35); }
.v3-landmark-pins circle { fill: var(--paper); stroke: var(--v3-rust); stroke-width: 5; transition: transform var(--v3-local) var(--v3-ease-civic), fill var(--v3-local) var(--v3-ease-civic); transform-box: fill-box; transform-origin: center; }
.v3-landmark-pins circle.is-active { fill: var(--v3-gold); transform: scale(1.28); }
.v3-landmarks text { fill: var(--paper); font: 800 24px var(--font-label); paint-order: stroke; stroke: rgba(13,18,24,.8); stroke-width: 4px; }
.v3-route-hero { position: absolute; inset: auto 2rem 1.2rem 2rem; width: calc(100% - 4rem); opacity: .9; }
.v3-chapter-rail { position: absolute; left: clamp(1rem, 5vw, 4rem); right: clamp(1rem, 5vw, 4rem); bottom: 1rem; z-index: 3; display: flex; flex-wrap: wrap; gap: .45rem .9rem; border-top: 1px solid rgba(255,247,232,.26); margin: 0; padding: .65rem 0 0; list-style: none; }
.v3-chapter-rail li { min-height: 34px; display: inline-grid; align-content: center; border-radius: 4px; padding: .18rem .35rem; color: var(--paper); font-weight: 800; }
.v3-chapter-rail span { color: var(--v3-gold); font-size: .72rem; }
.v3-four-porches { width: min(62vw, 360px); height: auto; filter: drop-shadow(0 24px 32px rgba(0,0,0,.28)); }
.v3-porch-piece { transition: transform var(--v3-scene) var(--v3-ease-civic), opacity var(--v3-local) var(--v3-ease-civic); transform-origin: 256px 256px; }
.v3-porch-nw, .v3-porch-ne { fill: var(--v3-blue); }
.v3-porch-sw, .v3-porch-se { fill: var(--v3-gold); }
.v3-porch-center { fill: var(--paper); stroke: var(--v3-green); stroke-width: 10; }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-porch-nw { transform: translate(-26px, -20px) rotate(-5deg); }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-porch-ne { transform: translate(26px, -20px) rotate(5deg); }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-porch-sw { transform: translate(-26px, 20px) rotate(5deg); }
.v3-scene:not(.is-visible):not(.v3-state-complete) .v3-porch-se { transform: translate(26px, 20px) rotate(-5deg); }
.v3-scene-meeting { display: grid; grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); background: linear-gradient(135deg, var(--ink), #17324d); }
.v3-assembly { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.v3-meeting-definition { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; border-top: 1px solid rgba(255,247,232,.24); padding-top: 1.5rem; }
.v3-meeting-definition article { max-width: 44rem; }
.v3-meeting-definition p { margin-bottom: 0; }
.v3-clause-route { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: clause; }
.v3-clause-route li { position: relative; min-height: 72px; display: grid; align-content: center; gap: .1rem; border: 1px solid rgba(255,247,232,.22); border-radius: 8px; padding: .8rem .9rem .8rem 3.2rem; background: rgba(255,247,232,.08); }
.v3-clause-route li::before { counter-increment: clause; content: counter(clause); position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--v3-gold); color: var(--ink); font-weight: 900; }
.v3-clause-route span { color: rgba(255,247,232,.78); }
.v3-test-scene { max-width: none; background: linear-gradient(180deg, #e6dcc9, #fff7e8); }
.v3-compass-shell { grid-template-columns: minmax(320px, .72fr) minmax(420px, 1fr); align-items: start; }
.v3-compass-shell > .notice-inline, .v3-compass-shell > .v3-test-fallback { grid-column: 1 / -1; }
.v3-compass-shell > .v3-compass-route { grid-column: 1; }
.v3-compass-shell > .vicinist-test-list, .v3-compass-shell > .quiz-result, .v3-compass-shell > .quiz-actions { grid-column: 2; }
.v3-test-fallback { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.v3-test-fallback li, .v3-compass-point { border: 1px solid var(--line); border-radius: 8px; padding: .7rem; background: white; }
.v3-test-fallback span { display: block; color: var(--muted); font-size: .9rem; }
.v3-compass-route { position: sticky; top: 5.5rem; display: grid; gap: .75rem; border: 1px solid rgba(24,32,38,.16); border-radius: 8px; padding: .9rem; background: #f8efe0; box-shadow: 0 16px 38px rgba(24,32,38,.08); }
.v3-compass-map { position: relative; min-height: 260px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at center, rgba(217,154,61,.22), transparent 62%), linear-gradient(135deg, rgba(23,50,77,.08), rgba(85,115,95,.08)); }
.v3-compass-map::before, .v3-compass-map::after { content: ""; position: absolute; background: rgba(23,50,77,.22); }
.v3-compass-map::before { left: 50%; top: 8%; bottom: 8%; width: 2px; }
.v3-compass-map::after { top: 50%; left: 8%; right: 8%; height: 2px; }
.v3-compass-center { position: relative; z-index: 1; width: 8.7rem; min-height: 8.7rem; display: grid; place-items: center; border-radius: 50%; padding: .8rem; background: var(--paper); border: 3px solid var(--v3-blue); text-align: center; font-weight: 900; }
.v3-compass-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.v3-compass-point { width: 100%; min-height: 44px; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); align-items: center; gap: .5rem; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.v3-compass-point .v3-state-label { grid-column: 2; }
.v3-compass-point .v3-index { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #e4d6be; font-weight: 900; }
.v3-compass-point .v3-state-label { color: var(--muted); font-size: .78rem; font-weight: 800; }
.v3-compass-point.is-current { border-color: var(--v3-blue); box-shadow: 0 0 0 3px rgba(23,50,77,.14); }
.v3-compass-point.is-yes .v3-index { background: var(--v3-green); color: white; }
.v3-compass-point.is-no .v3-index { background: var(--v3-rust); color: white; }
.v3-work-ledger, .v3-commons-route, .v3-record-ledger { position: relative; }
.v3-work-scene { display: grid; gap: clamp(1.6rem, 4vw, 3rem); background: transparent; border: 0; box-shadow: none; }
.v3-work-scene > div:first-child, .v3-commons-inline, .v3-project-builder { max-width: 1180px; }
.v3-commons-inline { display: grid; gap: .75rem; }
.v3-work-ledger::before, .v3-commons-route::before, .v3-record-ledger::before { content: ""; display: block; width: min(100%, 780px); height: 4px; margin: 0 0 1.2rem; background: linear-gradient(90deg, var(--v3-gold), var(--v3-green), var(--v3-blue)); border-radius: 999px; }
.v3-work-sequence { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.4rem); margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: work; }
.v3-work-sequence::before { content: ""; position: absolute; left: 2rem; right: 2rem; top: 2.15rem; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--v3-gold), rgba(217,154,61,.42), transparent); z-index: 0; }
.v3-work-sequence li { position: relative; z-index: 1; min-height: 11rem; padding: 4.15rem 1.2rem 1.2rem; border-top: 2px solid var(--v3-blue); background: linear-gradient(180deg, rgba(255,247,232,.88), rgba(255,247,232,.3)); }
.v3-work-sequence li::before { counter-increment: work; content: counter(work); position: absolute; left: 1rem; top: 1.2rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--v3-blue); color: white; font-weight: 900; z-index: 2; }
.v3-work-sequence strong, .v3-work-sequence span { display: block; }
.v3-work-sequence strong { font-size: 1.25rem; }
.v3-work-sequence span { margin-top: .4rem; color: var(--muted); }
.v3-commons-landmarks { display: grid; gap: .55rem; margin: 1rem 0; }
.v3-commons-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .55rem; align-items: stretch; width: 100%; }
.v3-commons-landmarks button { min-height: 4.8rem; display: grid; grid-template-columns: 2.55rem minmax(0, 1fr); align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; background: white; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.v3-commons-landmarks button span { width: 2.55rem; min-width: 2.55rem; height: 2.55rem; display: grid; place-items: center; border-radius: 8px; background: var(--v3-blue); color: white; font: 900 .78rem/1 var(--font-label); }
.v3-commons-landmarks button:nth-child(2) span { background: var(--v3-green); }
.v3-commons-landmarks button:nth-child(3) span { background: var(--v3-rust); }
.v3-commons-landmarks button:nth-child(4) span { background: var(--v3-gold); color: var(--ink); }
.v3-commons-landmarks button:nth-child(5) span { background: var(--ink); }
.v3-commons-landmarks button strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.1; white-space: normal; }
.v3-commons-landmarks button[aria-pressed="true"] { border-color: var(--v3-blue); box-shadow: 0 0 0 3px rgba(23,50,77,.14); }
.v3-commons-caption { grid-column: 1 / -1; margin: 0; padding: 1rem; border-left: 4px solid var(--v3-green); background: white; }
.v3-project-builder { grid-template-columns: minmax(0, .8fr) minmax(280px, .72fr) minmax(280px, .85fr); align-items: stretch; }
.v3-builder-form { display: grid; gap: .75rem; }
.v3-builder-step-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.v3-builder-step-controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .45rem; background: white; color: var(--ink); font: 800 .9rem/1.2 var(--font-label); cursor: pointer; }
.v3-builder-step-controls button[aria-pressed="true"] { border-color: var(--v3-blue); background: var(--v3-blue); color: white; }
.v3-builder-step-panel { display: grid; gap: .75rem; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .85rem; background: rgba(255,247,232,.52); }
.v3-builder-step-panel[hidden] { display: none; }
.v3-builder-step-panel legend { padding: 0 .35rem; color: var(--porch); font-weight: 900; }
.v3-builder-form textarea { min-height: 4.5rem; }
.v3-builder-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.v3-project-sheet { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: white; }
.v3-project-sheet summary { min-height: 44px; }
.v3-project-sheet dl { display: grid; gap: .65rem; margin: 0; }
.v3-project-sheet dl div { display: grid; gap: .15rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.v3-project-sheet pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .93rem/1.55 var(--font-body); color: var(--ink); }
.civic-atlas, .authority-zoom, .chapter-constellation, .story-frame-system, .tool-room { display: grid; grid-template-columns: minmax(0, .82fr) minmax(340px, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.route-list-view { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.civic-atlas, .chapter-constellation, .tool-room { max-width: none; background: linear-gradient(180deg, #f7eddb, #fff7e8); border-bottom: 1px solid var(--line); }
.authority-zoom, .story-frame-system { max-width: none; background: #f5ebd8; }
.civic-atlas-controls, .authority-controls, .story-frame-controls, .tool-room-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.civic-atlas-controls button, .authority-controls button, .story-frame-controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .62rem .7rem; background: white; color: var(--ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.civic-atlas-controls button { flex: 1 1 13rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .45rem; align-items: center; }
.civic-atlas-controls span, .authority-controls span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: #e3d6c0; font-weight: 900; }
.civic-atlas-controls button[aria-pressed="true"], .authority-controls button[aria-pressed="true"], .story-frame-controls button[aria-pressed="true"] { border-color: var(--v3-blue); box-shadow: 0 0 0 3px rgba(23,50,77,.14); }
.civic-atlas-controls button[aria-pressed="true"] span, .authority-controls button[aria-pressed="true"] span { background: var(--v3-blue); color: white; }
.civic-map, .authority-map { display: grid; gap: 1rem; }
.civic-map svg, .authority-map svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.civic-map-water { fill: none; stroke: rgba(85,115,95,.5); stroke-width: 18; stroke-linecap: round; }
.civic-map-route { fill: none; stroke: var(--v3-gold); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1300; }
.civic-map-blocks rect { fill: rgba(23,50,77,.08); stroke: rgba(23,50,77,.18); stroke-width: 2; }
.civic-map-landmarks g { transition: transform var(--v3-control) var(--v3-ease-civic); }
.civic-map-landmarks circle { fill: var(--paper); stroke: var(--v3-rust); stroke-width: 4; }
.civic-map-landmarks text { text-anchor: middle; font: 900 18px var(--font-label); fill: var(--ink); }
.civic-map-landmarks g.is-active circle { fill: var(--v3-gold); stroke: var(--v3-blue); }
.civic-atlas-panel, .authority-panel, .story-proof-card, .tool-shelf, .chapter-results li { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: white; box-shadow: 0 10px 24px rgba(24,32,38,.06); }
.authority-ring { fill: rgba(217,154,61,.06); stroke: rgba(23,50,77,.22); stroke-width: 4; }
.authority-map[data-current-level="circle"] .circle, .authority-map[data-current-level="assembly"] .assembly, .authority-map[data-current-level="regional"] .regional, .authority-map[data-current-level="commons"] .commons { fill: rgba(217,154,61,.28); stroke: var(--v3-blue); stroke-width: 7; }
.authority-route { fill: none; stroke: var(--v3-rust); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 720; }
.authority-dots circle { fill: var(--paper); stroke: var(--v3-green); stroke-width: 4; }
.chapter-sky { position: relative; min-height: 360px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(circle at 50% 44%, rgba(217,154,61,.18), transparent 38%), linear-gradient(135deg, var(--dark-panel), #17324d); overflow: hidden; }
.chapter-sky span { position: absolute; left: var(--x); top: var(--y); width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,247,232,.72); color: var(--paper); font-weight: 900; }
.chapter-sky .forming { background: rgba(217,154,61,.45); }
.chapter-sky .prospective { background: rgba(85,115,95,.55); }
.chapter-sky .active { background: rgba(155,75,44,.55); }
.chapter-results { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.chapter-results li span { display: inline-flex; width: max-content; margin: .4rem 0; border-radius: 999px; padding: .2rem .5rem; background: var(--v3-blue); color: white; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.chapter-results small { color: var(--muted); font-weight: 800; }
.story-frame-controls { align-content: start; }
.story-frame-controls button { flex: 1 1 9rem; text-align: center; }
.story-proof-card { min-height: 18rem; border-left: 6px solid var(--v3-gold); }
.tool-room-nav .button { margin-top: .35rem; }
.tool-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.tool-shelf h3 { font-size: clamp(1.28rem, 2vw, 1.8rem); }
.tool-shelf ul { margin-bottom: 0; padding-left: 1.25rem; }
.v3-threshold { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, .9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; background: linear-gradient(135deg, #17324d, #0d1218); }
.v3-threshold-panel { display: grid; gap: 1rem; justify-items: start; border: 1px solid rgba(255,247,232,.22); border-radius: 8px; padding: clamp(1rem, 3vw, 2rem); background: rgba(255,247,232,.08); }
.v3-threshold-mark { width: min(58vw, 260px); justify-self: center; }
.v3-threshold-steps { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.v3-threshold-steps li { min-height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,247,232,.2); border-radius: 6px; padding: .5rem; text-align: center; font-weight: 900; background: rgba(255,247,232,.08); }
.notice { max-width: none; background: var(--civic); color: white; }
.notice-inline, .notice-text { border-left: 4px solid var(--clay); background: rgba(182, 95, 68, .11); padding: 1rem; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.clause-strip { max-width: none; background: #d9cab0; }
.clause-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clause-grid .card { border-radius: 0; border-left: 0; border-top: 0; box-shadow: none; min-height: 12rem; }
.card-grid, .roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.schema-grid { max-width: 1180px; }
.schema-grid > .card-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); align-items: stretch; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; min-height: 10rem; box-shadow: 0 8px 20px rgba(24,32,38,.05); }
.schema-grid .card { position: relative; overflow: hidden; min-height: 15rem; padding: 1.25rem; background: var(--dark-panel); color: var(--paper); border-color: var(--dark-line); box-shadow: 0 20px 42px rgba(17, 22, 28, .18); }
.schema-grid .card::before { content: ""; display: block; width: 3.1rem; height: .35rem; margin-bottom: 1.4rem; background: var(--clay); }
.schema-grid .card p { color: rgba(255, 247, 232, .84); }
.schema-grid .card h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); }
.definition-grid, .decision-teaser, .builder-teaser, .checkout-summary { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr); gap: 1.25rem; align-items: start; }
.definition-grid > div, .decision-teaser, .economy-ecosystem, .practice-roadmap, .builder-teaser, .checkout-summary, .contact-form, .covenant-box, .quiz-card, .quiz-result, .trust-doc-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.definition-grid > div, .decision-teaser, .economy-ecosystem, .practice-roadmap, .builder-teaser, .checkout-summary, .contact-form, .covenant-box, .quiz-card, .quiz-result { padding: clamp(1rem, 3vw, 2rem); }
.decision-teaser, .builder-teaser { max-width: 1180px; }
.decision-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.decision-steps li, .ecosystem-list span { border: 1px solid var(--line); border-radius: 999px; padding: .55rem .7rem; background: white; font-weight: 700; }
.ecosystem-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.builder-teaser dl, .doc-meta { display: grid; gap: .75rem; margin: 0; }
.builder-teaser dl div, .doc-meta div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
dt { font-weight: 800; color: var(--porch); }
dd { margin: 0; color: var(--muted); }
.check-list, .steps { padding-left: 1.25rem; }
.detail-list { display: grid; gap: .75rem; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; font-weight: 800; }
summary small, .status-pill { color: white; background: var(--leaf); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: .34rem .55rem; font-weight: 800; }
.detail-body { padding: 0 1rem 1rem; }
.resource-list, .trust-doc-grid { display: grid; gap: .8rem; }
.resource, .trust-doc-card { display: grid; gap: .8rem; padding: 1rem; background: var(--paper); text-decoration: none; }
.trust-doc-card { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); align-items: start; }
.route-signature { max-width: none; display: grid; grid-template-columns: minmax(0, .74fr) minmax(340px, .9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.route-signature svg { width: 100%; min-height: 250px; overflow: visible; }
.sig-route { fill: none; stroke: var(--v3-gold); stroke-width: 10; stroke-linecap: round; }
.sig-node { fill: rgba(85,115,95,.18); stroke: var(--v3-green); stroke-width: 4; }
.sig-house { fill: var(--paper); stroke: var(--v3-blue); stroke-width: 5; }
.resource span, .muted, .hint { color: var(--muted); }
.price-line { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; color: var(--porch); }
.boundary-box { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.contact-form { display: grid; gap: 1rem; max-width: 780px; }
.honeypot-field { display: none; }
label { display: grid; gap: .35rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: .75rem; font: inherit; background: white; color: var(--ink); }
textarea { min-height: 11rem; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-family: var(--font-body); font-weight: 500; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; flex: 0 0 auto; }
.field-error, .form-status { color: var(--clay); font-weight: 800; margin: .35rem 0 0; }
.neighborhood-image figure { margin: 0; }
.neighborhood-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.quiz-app { display: grid; gap: 1rem; }
.vicinist-test { max-width: 1180px; }
.vicinist-test-intro { padding-bottom: 0; }
.vicinist-test > h2 { margin-bottom: 0; }
.vicinist-test-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.quiz-head { display: grid; gap: .5rem; margin-bottom: 1rem; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.progress-track { height: .8rem; border-radius: 999px; background: #e3d6c0; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--leaf); }
.quiz-step { margin: 0 0 .35rem; color: var(--muted); font-family: var(--font-label); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quiz-prompt { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--ink); }
.quiz-card.is-current { border-color: rgba(12, 46, 79, .48); box-shadow: 0 18px 45px rgba(12, 46, 79, .16); }
.quiz-card.is-complete { background: rgba(255, 247, 232, .72); box-shadow: 0 8px 20px rgba(24,32,38,.06); }
@media (min-width: 961px) {
  .vicinist-test-list .quiz-card.is-current { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, .34fr); gap: .5rem 1.25rem; align-items: start; }
  .vicinist-test-list .quiz-card.is-current .quiz-step, .vicinist-test-list .quiz-card.is-current h3, .vicinist-test-list .quiz-card.is-current .quiz-prompt { grid-column: 1; }
  .vicinist-test-list .quiz-card.is-current .yes-no-actions { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; margin-top: 0; }
  .vicinist-test-list .quiz-card.is-current .answer.yes-no { min-width: 6.5rem; min-height: 58px; }
}
.answers { display: grid; gap: .6rem; margin: 1rem 0; }
.answer { width: 100%; min-height: 48px; text-align: left; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 6px; padding: .85rem; cursor: pointer; }
.answer.correct { border-color: #2f7d4f; background: #edf8f0; }
.answer.incorrect { border-color: var(--clay); background: #fff0ea; }
.answer.yes-no { min-height: 52px; text-align: center; font-weight: 800; }
.answer.selected { border-color: var(--leaf); background: #edf8f0; }
.answer:disabled { cursor: default; opacity: .9; }
.yes-no-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: auto; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.quiz-feedback { font-weight: 800; }
.quiz-result { display: grid; gap: .75rem; border-color: rgba(73, 111, 89, .42); background: #f9f2df; }
.quiz-result h3 { font-size: clamp(1.65rem, 3vw, 2.7rem); margin-bottom: 0; }
.quiz-score { margin: 0; color: var(--porch); font-weight: 900; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.quiz-next { border-left: 4px solid var(--leaf); margin: 0; padding: .85rem 1rem; background: rgba(73, 111, 89, .12); font-weight: 800; }
.quiz-answer-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .4rem 0 0; }
.quiz-answer-summary div { display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: 6px; padding: .65rem; background: white; }
.quiz-answer-summary dt { color: var(--ink); }
.quiz-answer-summary dd { font-weight: 800; color: var(--leaf); }
.quiz-review { background: var(--paper); }
.quiz-review summary { min-height: 44px; }
.quiz-review dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.quiz-review dl div { border: 1px solid var(--line); border-radius: 6px; padding: .55rem; background: white; }
.print-only { display: none; }
.site-footer { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3rem); padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--dark-line); background: var(--dark-panel); color: var(--paper); }
.site-footer a { color: var(--paper); }
.site-footer .muted { color: rgba(255, 247, 232, .72); }
.site-footer img { width: 3.25rem; aspect-ratio: 1; object-fit: contain; }
.footer-link-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.footer-group { display: grid; align-content: start; gap: .35rem; }
.footer-group h2 { margin: 0 0 .35rem; color: var(--clay); font: 800 .78rem/1.2 var(--font-label); text-transform: uppercase; letter-spacing: .12em; }
.footer-group a { min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; text-decoration-thickness: .06em; }
@media (max-width: 960px) {
  .site-header { align-items: center; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
  .site-nav .nav-primary-action { grid-column: 1 / -1; }
  .commons-hero, .definition-grid, .decision-teaser, .builder-teaser, .checkout-summary, .trust-doc-card, .v3-scene-meeting, .v3-assembly, .v3-threshold, .v3-compass-shell, .route-signature, .v3-project-builder, .civic-atlas, .authority-zoom, .chapter-constellation, .story-frame-system, .tool-room { grid-template-columns: 1fr; }
  .commons-hero { min-height: auto; }
  .v3-scene-divide { padding-bottom: 6.5rem; }
  .v3-scene-art { min-height: 330px; }
  .v3-porchlight { min-height: 0; }
  .v3-chapter-rail { gap: .35rem .7rem; }
  .v3-shared-places, .v3-threshold-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-compass-route { position: static; }
  .v3-compass-shell > .v3-compass-route, .v3-compass-shell > .vicinist-test-list, .v3-compass-shell > .quiz-result { grid-column: 1; }
  .four-porches-mark img { width: min(72vw, 330px); }
  .card-grid, .roadmap-grid, .clause-grid, .schema-grid > .card-grid, .vicinist-test-list, .quiz-answer-summary, .quiz-review dl, .v3-test-fallback, .v3-work-sequence, .chapter-results, .tool-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-commons-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
  .footer-link-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand { min-width: 44px; min-height: 44px; }
  .brand img { width: 44px; }
  .brand span { display: none; }
  .footer-link-groups { grid-template-columns: 1fr; }
  .brand small { display: none; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.35rem); }
  .card-grid, .roadmap-grid, .clause-grid, .decision-steps, .schema-grid > .card-grid, .vicinist-test-list, .quiz-answer-summary, .quiz-review dl, .v3-test-fallback, .v3-shared-places, .v3-threshold-steps, .v3-work-sequence, .chapter-results, .tool-shelves { grid-template-columns: 1fr; }
  .v3-work-sequence::before { display: none; }
  .civic-atlas-controls button { flex-basis: 100%; }
  .chapter-sky { min-height: 280px; }
  .v3-builder-actions .button { flex: 1 1 8rem; }
  .v3-commons-controls { display: grid; grid-auto-columns: minmax(13rem, 58%); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0 0 .35rem; scroll-snap-type: x mandatory; }
  .v3-commons-controls button { scroll-snap-align: start; }
  .builder-teaser dl div, .doc-meta div { grid-template-columns: 1fr; gap: .2rem; }
  main > section { padding: 1rem; }
  .v3-scene-divide { padding-bottom: 2.5rem; }
  .v3-scene-divide { padding-top: 1.8rem; }
  .v3-scene-divide h1 { max-width: 100%; }
  .v3-scene-art { min-height: 210px; padding: .55rem; }
  .v3-route-hero { inset: auto .8rem .8rem .8rem; width: calc(100% - 1.6rem); }
  .v3-scene-divide h1 { font-size: clamp(2rem, 10vw, 2.7rem); line-height: 1.06; }
  .v3-scene-divide .hero-copy p:not(.eyebrow) { font-size: 1rem; line-height: 1.48; }
  .v3-scene-divide .actions .button.text-action { display: inline-flex; justify-content: flex-start; width: 100%; }
  .v3-topography { min-width: 0; transform: none; }
  .v3-atlas { overflow: hidden; }
  .v3-chapter-rail { position: static; margin-top: 1rem; }
  .v3-chapter-rail a { min-height: 32px; }
  .v3-four-porches { width: min(82vw, 270px); }
  .v3-assembly svg { max-height: 170px; }
  .v3-clause-route li { min-height: 0; padding: .7rem .75rem .7rem 3rem; }
  .v3-compass-route { padding: .65rem; }
  .v3-compass-map { display: none; }
  .v3-compass-point { padding: .5rem; }
  .v3-compass-point { grid-template-columns: 1.7rem minmax(0, 1fr); }
  .v3-compass-point .v3-state-label { grid-column: 2; }
  .v3-work-sequence li { min-height: 0; padding: .72rem .75rem .72rem 2.9rem; }
  .v3-work-sequence li::before { top: .9rem; transform: none; }
  .v3-threshold-panel { gap: .75rem; padding: 1rem; }
  .v3-threshold-mark { width: min(58vw, 170px); }
  .v3-threshold-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-threshold-steps li { min-height: 44px; padding: .4rem; }
  .v3-builder-form textarea { min-height: 2.85rem; }
  .v3-builder-step-panel label { gap: .2rem; font-size: .92rem; }
  .v3-builder-step-panel input, .v3-builder-step-panel textarea { padding: .55rem; }
  .v3-builder-step-panel { gap: .55rem; padding: .65rem; }
  .v3-project-sheet { padding: .85rem; }
  .v3-project-sheet pre { max-height: 16rem; overflow: auto; }
  summary { display: grid; }
}
@media (max-width: 360px) {
  .v3-scene-divide h1 { font-size: 1.85rem; line-height: 1.02; }
  .site-nav { grid-template-columns: 1fr; }
  .site-nav .nav-primary-action { grid-column: auto; }
  .v3-scene-divide .actions { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .v3-scene-divide .actions .button { width: 100%; min-height: 46px; padding: .55rem .45rem; font-size: .9rem; }
  .v3-builder-step-controls { grid-template-columns: 1fr; }
  .v3-commons-controls { grid-auto-columns: minmax(13rem, 76%); }
}
@media print {
  * { box-shadow: none !important; text-shadow: none !important; }
  html, body { background: white !important; color: black !important; }
  body::before, .site-header, .site-footer, .skip-link, .page-hero, main > section:not(:has(.v3-project-sheet)), .v3-project-builder > div, .v3-builder-form, .v3-project-builder::before, .v3-record-ledger::before { display: none !important; }
  main, main > section, .v3-project-builder, .v3-project-sheet { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: white !important; color: black !important; }
  .v3-project-sheet h3 { font-size: 20pt; margin: 0 0 8pt; color: black !important; }
  .v3-project-sheet > .detail-body { display: block !important; padding: 0 !important; }
  .print-only { display: block !important; margin: 0 0 12pt; font-size: 10pt; color: black !important; }
  .v3-project-sheet pre { white-space: pre-wrap; overflow-wrap: break-word; font: 11pt/1.45 Georgia, "Times New Roman", serif; color: black !important; }
  a[href]::after { content: " (" attr(href) ")"; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .four-porches-mark img { opacity: 1; transform: none; }
  .v3-route-path { stroke-dashoffset: 0 !important; }
  .v3-porch-piece, .v3-parcels polygon { transform: none !important; opacity: 1 !important; }
}
