:root {
  --moss: #516241;
  --moss-dark: #2F3826;
  --moss-tint: #F3F5EE;
  --moss-soft: #C9D3B4;
  --ink: #141414;
  --muted: #4A4D47;
  --line: #E6E6E1;
  --paper: #FFFFFF;
  --moss-text: #516241;   /* moss used as text / outlines; lighter in the dark theme */
  --sep: #B5B8B0;
  --lang-off: #6B6E67;
  --field-line: #CDD3C1;
  --error: #A3271F;
  color-scheme: light dark;
  --head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}
/* Dark theme follows the phone/OS setting. Illustrations (camera, heat map) keep their own light palette. */
@media (prefers-color-scheme: dark) {
  :root {
    --moss-tint: #1A1F16;
    --ink: #ECEEE7;
    --muted: #A9ADA2;
    --line: #2A2E25;
    --paper: #121410;
    --moss-text: #9DB283;
    --sep: #4C5147;
    --lang-off: #9A9F94;
    --field-line: #3C4234;
    --error: #F0907F;
  }
}
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.25rem; -webkit-text-size-adjust: 100%; } /* anchors and focused fields land below the sticky header */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 0.75rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss-text); margin-bottom: 1.1rem; }

.logo, .logo picture { display: block; }
.logo img { height: 28px; width: auto; }
.site-footer .logo img { height: 20px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.nav-list { display: flex; gap: 1.75rem; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav-list a { text-decoration: none; color: var(--muted); }
.nav-list a:hover { color: var(--ink); }
.nav-list .button { color: #fff; }
.lang { display: flex; gap: .4rem; align-items: center; font-size: .85rem; font-weight: 600; color: var(--sep); }
.nav-list .lang a { color: var(--lang-off); }
.nav-list .lang a[aria-current] { color: var(--ink); }

.button { display: inline-block; background: var(--moss); color: #fff; font: 600 0.95rem/1 var(--body); padding: 0.9rem 1.25rem; border-radius: 6px; text-decoration: none; border: 0; cursor: pointer; }
.button:hover { background: var(--moss-dark); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--moss-soft); padding-bottom: 2px; margin-left: 1.5rem; }
.text-link:hover { border-color: var(--moss-text); }

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-bottom: 1.4rem; }
.hero h1 .dot { color: var(--moss-text); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }

.camera { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; isolation: isolate; background: #ECEBE6; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(47,56,38,.35); }
.camera .world { position: absolute; left: 0; top: 0; width: 100%; height: 400%; will-change: transform; animation: drive 9.138s infinite; }
.camera .world svg, .camera .hud { position: absolute; inset: 0; width: 100%; height: 100%; }
.camera.paused .world, .camera.paused .det .box, .camera.paused .det .tag, .camera.paused .rec { animation-play-state: paused; }
.hud .chip { fill: rgba(255,255,255,.82); }
@keyframes drive {
  0%     { transform: translateY(-75%); animation-timing-function: linear; }
  22.09% { transform: translateY(-47.6563%);  animation-timing-function: cubic-bezier(.33,.667,.667,1); }
  27.56% { transform: translateY(-44.2708%);  animation-timing-function: linear; }
  40.69% { transform: translateY(-44.2708%);  animation-timing-function: cubic-bezier(.333,0,.667,.333); }
  46.16% { transform: translateY(-40.8854%);  animation-timing-function: linear; }
  58.36% { transform: translateY(-25.7813%);  animation-timing-function: cubic-bezier(.33,.667,.667,1); }
  63.83% { transform: translateY(-22.3958%);  animation-timing-function: linear; }
  79.15% { transform: translateY(-22.3958%);  animation-timing-function: cubic-bezier(.333,0,.667,.333); }
  84.62% { transform: translateY(-19.0104%);  animation-timing-function: linear; }
  100%   { transform: translateY(0); }
}
.det .box { fill: none; stroke: var(--moss); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.det .tag rect { fill: var(--moss); }
.det .tag text { font: 600 16px var(--body); fill: #fff; }
.det .tag { opacity: 0; }
.det1 .box { animation: draw1 9.138s infinite; } .det1 .tag { animation: tag1 9.138s infinite; }
.det2 .box { animation: draw2 9.138s infinite; } .det2 .tag { animation: tag2 9.138s infinite; }
.det3 .box { animation: draw3 9.138s infinite; } .det3 .tag { animation: tag3 9.138s infinite; }
@keyframes draw1 { 0%, 28.5% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.3,.7,.2,1); } 35%, 100% { stroke-dashoffset: 0; } }
@keyframes tag1  { 0%, 35.4% { opacity: 0; } 35.5%, 100% { opacity: 1; } }
@keyframes draw2 { 0%, 65.5% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.3,.7,.2,1); } 71%, 100% { stroke-dashoffset: 0; } }
@keyframes tag2  { 0%, 71.4% { opacity: 0; } 71.5%, 100% { opacity: 1; } }
@keyframes draw3 { 0%, 69.5% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.3,.7,.2,1); } 75%, 100% { stroke-dashoffset: 0; } }
@keyframes tag3  { 0%, 75.4% { opacity: 0; } 75.5%, 100% { opacity: 1; } }
.rec { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hud-text text { font: 600 16px var(--body); fill: #141414; }

section { padding: var(--section) 0; }
.rule { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); }
.split p { color: var(--muted); }
.split p strong { color: var(--ink); font-weight: 600; }

.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.problem-grid p { color: var(--muted); }
.problem-grid p strong { color: var(--ink); font-weight: 600; }
.heatmap { margin: 0; }
.hm-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; isolation: isolate; background: #E3E3DC; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(47,56,38,.35); }
.hm-layer { position: absolute; inset: 0; }
.hm-city { transform-origin: var(--oa); }
.heatmap.alt .hm-city { transform-origin: var(--ob); }
.hm-layer svg { width: 100%; height: 100%; }
.hm-city { opacity: 0; }
.hm-tag text { font: 600 26px var(--body); fill: #fff; }
.hm-legend { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,.88); font: 600 12px var(--body); color: #141414; }
.hm-legend span:first-child { margin-right: 6px; } .hm-legend span:last-child { margin-left: 6px; color: #4A4D47; font-weight: 500; }
.hm-legend i { width: 18px; height: 8px; border-radius: 2px; }
.heatmap figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.d-b, .t-b { display: none; }
/* Looping version (JS adds .armed and steps through .s-frame → .s-zoom → .s-heat; .alt switches to the second district). */
.heatmap.armed .d-b, .heatmap.armed .t-b { display: inline; }
.heatmap.armed .d-b { display: block; }
.heatmap.armed .hm-city { opacity: 1; transform: scale(1); transition: transform 1.5s cubic-bezier(.55,0,.25,1), opacity .7s; }
.heatmap.armed .hm-detail { opacity: 0; transform: scale(.4); transition: transform 1.5s cubic-bezier(.55,0,.25,1), opacity .9s .3s; }
.heatmap.armed .hm-target { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s; }
.heatmap.armed .seg, .heatmap.armed .hm-legend { opacity: 0; transition: opacity .5s; }
.heatmap.s-frame:not(.alt) .t-a, .heatmap.s-frame.alt .t-b { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.3,.7,.2,1); }
.heatmap.s-zoom .hm-city { opacity: 0; transform: scale(2.5); transition: transform 1.5s cubic-bezier(.55,0,.25,1), opacity .7s .8s; }
.heatmap.s-zoom:not(.alt) .d-a, .heatmap.s-zoom.alt .d-b { opacity: 1; transform: scale(1); transition: transform 1.5s cubic-bezier(.55,0,.25,1), opacity .9s .5s; }
.heatmap.s-heat:not(.alt) .d-a .seg, .heatmap.s-heat.alt .d-b .seg { opacity: 1; transition: opacity .45s var(--d) ease-out; }
.heatmap.s-heat .hm-legend { opacity: 1; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.two > div, .steps > li, .audience > div { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.two p, .steps p, .audience dd { color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.steps .n { display: block; font: 700 .9rem var(--head); color: var(--moss-text); margin-bottom: .75rem; }

.band { background: var(--moss-dark); color: #EEF1E6; }
.band .split p { color: #C9D2BB; font-size: 1.15rem; }
.band h2 { color: #fff; margin: 0; }
.band .eyebrow { color: var(--moss-soft); }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(1.5rem, 4vw, 3rem); margin: 0; }
.audience dt { font: 800 1.2rem/1.2 var(--head); letter-spacing: -.02em; margin-bottom: .5rem; }
.audience dd { margin: 0; }

.contact { background: var(--moss-tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-intro p { color: var(--muted); }
.contact-intro a { color: var(--moss-text); font-weight: 600; }
form { display: grid; gap: 1.1rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--muted); }
input, textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid var(--field-line); border-radius: 6px; background: var(--paper); color: var(--ink); }
input, textarea { scroll-margin-top: 2.25rem; } /* keep the label in view when validation focuses a field */
input:focus, textarea:focus { outline: 2px solid var(--moss-text); outline-offset: 1px; border-color: var(--moss-text); }
form .button { justify-self: start; }

.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer a { color: var(--muted); }

/* Touch targets: an invisible ::after extends small links to about 44px without moving anything or enlarging focus rings. */
.logo, .lang a, .text-link, .site-footer p a { position: relative; }
.logo::after, .lang a::after, .text-link::after, .site-footer p a::after { content: ""; position: absolute; inset: -12px 0; }
.site-footer p a::after { inset: -13px 0; }
.lang a::after { inset: -12px -.4rem; }
.lang a:first-child::after { left: -.75rem; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--moss); color: #fff; padding: .7rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--moss-text); outline-offset: 3px; }
.field-error { display: block; margin: .35rem 0 0; font-size: .9rem; color: var(--error); }
.field [aria-invalid="true"] { border-color: var(--error); }
.button[disabled] { opacity: .6; cursor: progress; }
textarea { resize: vertical; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--moss-text); }
.hp { position: absolute; left: -9999px; }
.not-found { text-align: center; padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 12vw, 9rem); }
.not-found h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
.not-found p { color: var(--muted); margin: 0 auto 1.5rem; }
.not-found p:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

@media (max-width: 52rem) {
  .hero-grid, .problem-grid, .split, .contact-grid, .two, .audience, .steps { grid-template-columns: 1fr; }
  .nav-list .nav-link { display: none; }
  .problem-grid .heatmap { order: 2; }
  .nav-list { gap: 1rem; }
  .text-link { margin-left: 1rem; }
  main p, main dd { max-width: 40rem; } /* readable line length once the columns stack */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world, .det .box, .det .tag, .rec { animation: none !important; }
  .world { transform: translateY(-22.3958%); }
  .det2 .box, .det3 .box { stroke-dashoffset: 0; }
  .det2 .tag, .det3 .tag { opacity: 1; }
}
