/* Home page only. From the I Dusk v13 mockup. */
/* ---------- The hero stage: real aerial tinted to dusk, the nine pins on it at their real positions ---------- */
.stage { position: relative; container-type: size; overflow: clip; isolation: isolate; background: var(--map-land); }
.map-layer, .pin-layer { position: absolute; inset: 0; }
.map-layer { z-index: 0; } .pin-layer { z-index: 3; }
/* a fixed-ratio box (1080 x 580 m at --ppm) placed so the clump of seven pins sits at (--fx, --fy) of the stage; the blurred tint paints on the first frame */
.m { position: absolute; width: calc(var(--ppm) * 1080px); aspect-ratio: 1080 / 580; left: calc(var(--fx) - var(--ppm) * 640px); top: calc(var(--fy) - var(--ppm) * 280px); background: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAaADADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwClKAcimR5BJINXbO1WdzvyeOlTx2oibkfQGvROMq2ds044yAKbdXDOwhZThTzmrpWaMeajhQDjAqCeLf8AOMM3ekBDO2YRsXAHeqrTSSMN7FvQVPMZDCVCnHoKdaQspDvHnPSmM055YrV9yKQSOlTQSWrWvnyths9Ky9RJ+2MMmo7PmbB5FIRf1C4tpYCsZbd2ArMgYqCGYjNWdR+XGOPpUVmAUfIBpjJYplhOFjL57mrUMjyBfkAXNMkAEMWB3qBCftBGTikI/9k=") center / 100% 100% no-repeat; }
.m > svg, .m > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgb(29 54 93 / 0.8) 0, rgb(29 54 93 / 0) 220px), linear-gradient(90deg, rgb(29 54 93 / 0.96) 0%, rgb(29 54 93 / 0.9) 30%, rgb(29 54 93 / 0.55) 52%, rgb(29 54 93 / 0) 70%); }
.case { fill: none; stroke: var(--navy-deep); stroke-opacity: 0.85; stroke-width: 5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tr { fill: none; stroke: var(--tract); stroke-opacity: 0.75; stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tr.is-own { stroke-opacity: 1; stroke-width: 2.5px; }
.tg { transform: scale(calc(1 / var(--ppm))); }
.tg rect { fill: var(--paper); stroke: var(--tract-ink); stroke-width: 1.5px; }
.tg text { font: 500 12px/1 var(--mono); fill: var(--ink); letter-spacing: 0; }

/* the nine pins (overlay in meters; sizes in px through --ppm) */
.ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.m > svg.ov-phone { display: none; }
@media (max-width: 700px) { .m > svg.ov-desk { display: none; } .m > svg.ov-phone { display: block; } }
.ob-dot { r: calc(6.5px / var(--ppm)); fill: var(--pin); stroke: var(--on-navy); stroke-width: calc(2px / var(--ppm)); transition: r var(--fx-dur-state) var(--fx-ease-out); }
.ob-dot.is-on { r: calc(9px / var(--ppm)); stroke: var(--lens); stroke-width: calc(3px / var(--ppm)); }
.ob-lead-c, .ob-mc { fill: none; stroke: var(--navy-deep); stroke-opacity: 0.85; stroke-width: calc(4px / var(--ppm)); stroke-linecap: round; }
.ob-lead { fill: none; stroke: var(--on-navy-soft); stroke-width: calc(1.25px / var(--ppm)); }
.ob-lead.is-on { stroke: var(--lens); stroke-width: calc(2px / var(--ppm)); }
.ob-ml { fill: none; stroke: var(--on-navy); stroke-width: calc(1.75px / var(--ppm)); stroke-linecap: round; stroke-dasharray: 1; }
.ob-meas .ob-mc { stroke-dasharray: 1; }
.ob-lab { cursor: pointer; outline: none; }
.ob-lab text, .ob-meas text, .ob-clump { font: 700 calc(15px / var(--ppm)) / 1 var(--font); fill: var(--on-navy); letter-spacing: 0; paint-order: stroke; stroke: var(--navy-deep); stroke-width: calc(5px / var(--ppm)); stroke-linejoin: round; }
.ob-lab text { text-anchor: middle; } .ob-lab-p text { text-anchor: start; }
.ob-meas text, .ob-clump { font-size: calc(14px / var(--ppm)); font-weight: 600; fill: var(--on-navy-soft); }
.ob-lab.is-on text { fill: var(--lens); }
.ob-lab:focus-visible rect { stroke: var(--lens); stroke-width: calc(2px / var(--ppm)); fill: rgb(249 219 56 / 0.18); }
@media (hover: hover) { .ob-lab:hover text { fill: var(--lens); } }

/* entrance: reveal by pin. The aerial is there on the first frame; the pins land in order of distance from the clump, then the measured lines draw out */
@keyframes dot-pop { from { opacity: 0; transform: translateY(-14px) scale(0.4); } }
@keyframes draw-in { from { stroke-dashoffset: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--fx-distance)); } }
@media (prefers-reduced-motion: no-preference) {
  .ob-dot { transform-box: fill-box; transform-origin: center; animation: dot-pop 0.45s var(--fx-ease-out) calc(0.35s + var(--i, 0) * 0.07s) backwards; }
  .ob-lab, .ob-lead, .ob-lead-c, .ob-clump { animation: fade-in 0.4s linear calc(0.6s + var(--i, 0) * 0.07s) backwards; }
  .ob-meas .ob-mc, .ob-meas .ob-ml { animation: draw-in 0.5s var(--fx-ease-in-out) 1.2s backwards; }
  .ob-meas text { animation: fade-in 0.4s linear 1.6s backwards; }
  .trk { animation: fade-in 0.8s linear 1s backwards; }
  .hero-in { animation: rise var(--fx-dur-hero) var(--fx-ease-out) backwards; }
  .hero-in:nth-child(2) { animation-delay: 0.1s; } .hero-in:nth-child(3) { animation-delay: 0.2s; }
}

/* ---------- 1. Hero (navy): full-bleed aerial, copy on the left ---------- */
.hero { padding: 64px 0 0; --gx: max(24px, calc((100% - var(--w)) / 2)); }
.hero .stage { --fx: min(72%, 1400px); --fy: max(22%, 160px); width: 100%; height: clamp(660px, calc(100svh - 64px), 840px); }
.hero__copy { position: absolute; z-index: 5; left: var(--gx); top: clamp(48px, 12cqh, 120px); width: min(680px, 54%); display: grid; justify-items: start; gap: var(--s4); text-align: left; }
.hero__copy h1 { font-size: clamp(36px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero__sub { max-width: 28em; font-size: 19px; color: var(--on-navy-soft); }
.hero__copy .btn { margin-top: var(--s2); }
.stage__foot { position: absolute; z-index: 5; left: var(--gx); right: var(--gx); bottom: var(--s4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); max-width: min(640px, 52%); pointer-events: none; }
.stage__foot > * { pointer-events: auto; }
.readout { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--navy-line); border-radius: var(--r-s); background: var(--navy-deep); font: 500 14px/1.3 var(--font); color: var(--on-navy-mute); }
.readout b { font: 500 13px/1.3 var(--mono); color: var(--on-navy); margin-left: 6px; letter-spacing: 0; }
.readout .pinchip { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--r-s); background: var(--lens); color: var(--ink); font: 700 12px/1 var(--mono); }
.readout[hidden], .readout [hidden] { display: none; }
.stage__side { display: grid; justify-items: start; gap: var(--s2); text-align: left; }
.scalebar { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); color: var(--on-navy); }
.scalebar i { display: block; width: calc(var(--ppm) * 50px); height: 8px; border: 2px solid var(--on-navy); border-top: 0; }
.stage__side .credit { max-width: 40em; color: var(--on-navy-soft); }
@media (max-width: 700px) {
  .hero { padding-top: 56px; --gx: 16px; }
  .hero .stage { height: max(calc(100svh - 56px), 760px); --fx: 76px; --fy: 470px; }
  .hero__copy { width: auto; right: var(--gx); top: 28px; gap: var(--s3); }
  .hero__copy h1 { font-size: 34px; } .hero__sub { font-size: 17px; }
  .stage__scrim { background: linear-gradient(0deg, rgb(29 54 93 / 0.85) 0, rgb(29 54 93 / 0) 190px), linear-gradient(180deg, rgb(29 54 93 / 0.97) 0%, rgb(29 54 93 / 0.93) 36%, rgb(29 54 93 / 0.6) 50%, rgb(29 54 93 / 0) 60%); }
  .stage__foot { max-width: none; right: var(--gx); }
}

/* ---------- 2. The field (navy): the aerial resolves from pixel squares ---------- */
/* EFFECT: ascii-field START (css) */
/* Theme: ground, glyph ink, and one accent for the cells that have "locked on" to the image. */
.fx-ascii {
--fx-ascii-bg: #e2e4e0;
--fx-ascii-ink: #15181b;
--fx-ascii-accent: #ff5a1f;
--fx-ascii-cell: 5;          /* glyph cell width in CSS px (5-6 on phones, 6-8 on desktop; smaller reads more photographic) */
--fx-ascii-aspect: 1.8;      /* cell height / width. Set 1 for square cells (data-fx-style="blocks") */
--fx-ascii-base: 0.88;       /* how faithful the grid is at rest: 1 = exact image, 0 = pure noise field */
--fx-ascii-radius: 0.3;      /* hover lens radius as a fraction of the longer side */
--fx-ascii-scale: 210;       /* noise feature size in CSS px */
--fx-ascii-speed: 0.17;      /* noise drift per second */
--fx-ascii-gamma: 1;         /* tone curve on the image (above 1 = lighter, fewer glyphs) */
--fx-ascii-contrast: 1.25;   /* S-curve around mid gray after auto-levels (1 = off) */
--fx-ascii-font: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
position: relative; margin: 0; overflow: clip; background: var(--fx-ascii-bg);
}
.fx-ascii > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-ascii__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Text mode: the label is the visible fallback; once the grid is live it stays for screen readers only. */
.fx-ascii__label { display: grid; place-items: center; width: 100%; height: 100%; font: 400 clamp(40px, 12vw, 180px)/1 'Archivo Black', system-ui, sans-serif; color: var(--fx-ascii-ink); letter-spacing: -0.02em; }
.fx-ascii--live > .fx-ascii__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Until the grid is up, hold a photo back so a flash of the plain image never precedes the first frame.
 The failsafe class releases it after 2.5s no matter what. */
html.js:not(.fx-failsafe) .fx-ascii[data-fx-ascii="photo"]:not([data-fx-state]) > img { opacity: 0; }
/* EFFECT: ascii-field END (css) */
.field { padding: var(--s9) 0 var(--s10); }
.field__head { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
.field__head h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 650; max-width: 22em; }
.fld { margin: 0; }
.fld__frame { --fx-ascii-bg: var(--navy); --fx-ascii-ink: var(--field-ink); --fx-ascii-accent: var(--on-navy-mute); --fx-ascii-cell: 6; --fx-ascii-aspect: 1; --fx-ascii-base: 0.55; --fx-ascii-radius: 0.3; --fx-ascii-font: 'Martian Mono', monospace; --lock: 0;
  width: 100%; border: 1px solid var(--navy-line); border-radius: var(--r-m); --k: 0.6; }
.fld--desk .fld__frame { aspect-ratio: 2000 / 1250; width: min(100%, calc(88svh * 1.6)); }
.fld--phone { display: none; }
.fld--phone .fld__frame { aspect-ratio: 1200 / 1600; --fx-ascii-cell: 5; width: min(100%, calc(80svh * 0.75)); }
.fld__real { position: absolute; inset: 0; z-index: 2; clip-path: circle(calc(var(--lock) * 118%) at var(--ox) var(--oy)); pointer-events: none; }
.fld__real img { width: 100%; height: 100%; object-fit: cover; }
.fv { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: hidden; }
.fc { fill: none; stroke: var(--navy-deep); stroke-opacity: 0.85; stroke-width: 4.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fl { fill: none; stroke: var(--on-navy); stroke-opacity: 0.6; stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fl.is-own { stroke-opacity: 1; stroke-width: 2.5px; fill: rgb(139 205 248 / 0.1); }
.fd { r: calc(3px / var(--k)); fill: var(--pin); stroke: var(--on-navy); stroke-width: calc(1.25px / var(--k)); }
.fm, .ft { transform: scale(calc(1 / var(--k))); }
.fr { fill: none; stroke: var(--lens); stroke-width: 2.5px; } .fr2 { display: none; }
.ft rect { fill: var(--paper); stroke: var(--tract-ink); stroke-width: 1.5px; }
.ft text { font: 500 12px/1 var(--mono); fill: var(--ink); letter-spacing: 0; }
.ft:not(.is-own) rect { stroke: var(--navy-line); }
.fld__cap { margin-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s5); font-size: 16px; color: var(--on-navy-soft); }
.fld__cap p { max-width: 46em; }
.fld__cap .credit { flex-basis: 100%; }
.fld__cap button { font: inherit; color: var(--on-navy-mute); background: none; border: 0; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fld__cap button:hover { color: var(--on-navy); }
@media (max-width: 700px) { .fld--desk { display: none; } .fld--phone { display: block; } .field { padding: var(--s8) 0 var(--s9); } }

/* ---------- 3. Steps (white): pinned camera over the one real app capture ---------- */
.ps { background: var(--paper); color: var(--ink); --fx-ps-steps-h: 60; }
.ps-inner { width: min(var(--w), calc(100% - 48px)); margin-inline: auto; padding: clamp(64px, 8vw, 112px) 0; }
.ps-head { max-width: 20ch; margin-bottom: clamp(32px, 4vw, 56px); }
.ps-list { position: relative; }
.ps-steps { display: grid; gap: 36px; }
.ps-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.mk { width: 64px; height: 36px; fill: var(--pin); stroke: var(--paper); stroke-width: 1.2; overflow: visible; }
.mk .mk-t { fill: rgb(26 88 143 / 0.14); stroke: var(--tract-ink); stroke-width: 1.6; }
.ps-step h3 { font-size: 24px; margin-bottom: 4px; color: var(--ink-soft); transition: color var(--fx-dur-state) linear; }
.ps-step h3 .num { font-weight: 500; margin-right: 8px; }
.ps-step p { color: var(--ink-mute); font-size: 17px; line-height: 1.5; max-width: 44ch; }
.ps-step.is-active h3 { color: var(--ink); }
.ps-rail { display: none; }
.ps-stage { position: relative; overflow: hidden; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--r-m); aspect-ratio: 7 / 6; margin-bottom: 24px; }
.ps-cam { position: absolute; left: 0; top: 0; width: 3136px; height: 2690px; transform-origin: 0 0; --inv: 1; }
.ps-cam > img { position: absolute; left: 0; top: 0; width: 3136px; height: 2690px; max-width: none; display: block; background: #fff; }
.ps-ring { position: absolute; left: 0; top: 0; width: 3136px; height: 2690px; overflow: visible; }
.rg { opacity: 0; }
.rg rect { fill: none; }
.rg .c { stroke: var(--navy); stroke-width: calc(9px * var(--inv)); }
.rg .y { stroke: var(--lens); stroke-width: calc(4px * var(--inv)); }
.ps-note { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-mute); }
.ps-stage-wrap { margin: 0; }
@media (min-width: 900px) {
  .ps.is-pinned .ps-pin { height: 100vh; height: 100svh; display: flex; align-items: center; }
  .ps.is-pinned .ps-inner { padding: 84px 0 20px; display: grid; grid-template-columns: minmax(320px, 4.7fr) minmax(0, 7.3fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
  .ps.is-pinned .ps-head { margin-bottom: 24px; }
  .ps.is-pinned .ps-steps { gap: clamp(12px, 2.6svh, 28px); padding-left: 20px; }
  .ps.is-pinned .ps-step p { font-size: 16px; line-height: 1.45; } .ps.is-pinned .ps-step h3 { font-size: 22px; }
  .ps.is-pinned .ps-stage { margin: 0; width: min(100%, calc(74svh * 7 / 6)); }
  .ps.is-pinned .ps-rail { display: block; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--paper-line); overflow: hidden; }
  .ps.is-pinned .ps-rail i { display: block; width: 100%; height: 100%; background: var(--navy); transform: scaleY(0); transform-origin: 50% 0; }
}
@media (min-width: 900px) and (max-height: 780px) { .ps.is-pinned .ps-step p { font-size: 15px; line-height: 1.42; } .ps.is-pinned .ps-step h3 { font-size: 21px; } .ps.is-pinned .ps-head h2 { font-size: 30px; } }
@media (max-width: 899.98px) {
  .ps.is-pinned .ps-pin { height: 100svh; display: flex; }
  .ps.is-pinned .ps-inner { padding: 78px 0 14px; display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
  .ps.is-pinned .ps-head { margin: 0 0 12px; order: 1; }
  .ps.is-pinned .ps-head h2 { font-size: 26px; max-width: 18ch; }
  .ps.is-pinned .ps-copy { display: contents; }
  .ps.is-pinned .ps-stage-wrap { order: 2; margin-bottom: 14px; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .ps.is-pinned .ps-stage { margin: 0; aspect-ratio: auto; flex: 1 1 0; min-height: 0; width: 100%; }
  .ps.is-pinned .ps-list { order: 3; }
  .ps.is-pinned .ps-steps { display: grid; grid-template-areas: "s"; gap: 0; }
  .ps.is-pinned .ps-step { grid-area: s; opacity: 0; visibility: hidden; transition: opacity var(--fx-dur-state) linear; align-content: start; }
  .ps.is-pinned .ps-step.is-active { opacity: 1; visibility: visible; }
  .ps.is-pinned .ps-step h3 { font-size: 22px; color: var(--ink); }
  .ps.is-pinned .ps-step p { font-size: 15px; line-height: 1.42; }
  .ps.is-pinned .ps-note { display: none; }
}

/* ---------- 4. Views (navy): the app's road map against its satellite view; the divider is the scan line ---------- */
.tour { padding: var(--s9) 0 var(--s9); }
.tinted { background: var(--paper-2); }
.tour__head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 40em; }
.ba { --ba-pos: 50%; --mapw: 100cqw; --mx: 50%; --my: 50%; position: relative; container-type: size; width: 100%; aspect-ratio: 3048 / 1600; border: 1px solid var(--paper-line); border-radius: var(--r-m); overflow: clip; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; background: var(--paper-2); }
.ba-pane { position: absolute; inset: 0; }
.ba-pane img { position: absolute; max-width: none; width: var(--mapw); height: auto; left: calc(50% - var(--mx) * var(--mapw)); top: calc(50% - var(--my) * var(--mapw) * 1600 / 3048); }
.ba-after { clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0); }
.ba-label { position: absolute; z-index: 4; bottom: var(--s4); padding: 7px 14px; border-radius: var(--r-s); background: var(--navy-deep); border: 1px solid var(--navy-line); color: var(--on-navy); font: 600 14px/1.2 var(--font); pointer-events: none; transition: opacity var(--fx-dur-state) linear; }
.ba-label--l { left: var(--s4); } .ba-label--r { right: var(--s4); }
.ba-label.is-covered { opacity: 0; }
.ba-handle { position: absolute; z-index: 3; inset: 0; transform: translateX(var(--ba-pos)); pointer-events: none; }
.ba-line { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--navy); }
.ba-grip { position: absolute; left: 0; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--lens); color: var(--ink); display: grid; place-items: center; border: 2px solid var(--navy); }
.ba-grip svg { width: 24px; height: 24px; display: block; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
html:not(.js) .ba-range { display: none; }
.ba-range:focus-visible ~ .ba-handle .ba-grip { outline: 3px solid var(--tract-ink); outline-offset: 3px; }
.tour__foot { margin-top: var(--s4); display: grid; gap: var(--s1); }
.tour__foot p { font-size: 15px; color: var(--fg-soft); }
/* Live demo: the hero's second button, the run-it-yourself strip under the slider, and the app in a dialog */
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.hero__copy .hero__actions .btn { margin-top: 0; }
.btn--line { --_base: transparent; --_ink: var(--on-navy); --_fill: var(--on-navy); --_hov: var(--ink); border-color: var(--on-navy-mute); }
.btn .ext { width: 15px; height: 15px; margin-left: 10px; flex: none; }
.live { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s6); padding: var(--s5) var(--s6); border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--paper); }
.live h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
.live p { margin-top: var(--s2); max-width: 46em; font-size: 16px; line-height: 1.5; color: var(--fg-soft); }
.live__addr { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s3); font: 500 13px/1.3 var(--mono); color: var(--fg); }
.live__addr i { width: 9px; height: 9px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 4px rgba(47,163,107,.18); }
@media (max-width: 720px) { .live { grid-template-columns: 1fr; padding: var(--s5); } .live .btn { width: 100%; } }
.demo { width: min(1480px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(8,18,36,.45); }
.demo::backdrop { background: rgba(10,22,42,.72); }
.demo[open] { display: grid; grid-template-rows: auto 1fr; }
.demo__bar { display: flex; align-items: center; gap: var(--s4); padding: 10px 12px 10px 20px; background: var(--navy); color: var(--on-navy); }
.demo__bar b { font: 600 13px/1.3 var(--mono); }
.demo__bar span { font-size: 14px; color: var(--on-navy-soft); }
.demo__bar a { margin-left: auto; color: var(--on-navy); font-size: 14px; font-weight: 600; }
.demo__x { min-height: 40px; padding: 0 16px; border: 1px solid var(--on-navy-mute); border-radius: var(--r-s); background: transparent; color: var(--on-navy); font: 600 14px/1 var(--font); cursor: pointer; }
.demo__x:hover { background: var(--on-navy); color: var(--ink); }
.demo iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 720px) {
  .tour { padding: var(--s8) 0 var(--s8); }
  .ba { aspect-ratio: auto; height: min(560px, 74svh); --mapw: 1500px; --mx: 0.512; --my: 0.47; }
}

/* ---------- 5. Ledger (white): the returned fields ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
.split__text { display: grid; gap: var(--s4); position: sticky; top: 112px; }
.split__text .lead { max-width: 28em; }
.mini { display: grid; gap: var(--s2); width: min(100%, 280px); }
.mini-svg { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--surface); }
.mn path { fill: none; stroke: var(--paper-line); stroke-width: 1.25; stroke-linejoin: round; }
.mo { fill: rgb(26 88 143 / 0.14); stroke: var(--tract-ink); stroke-width: 2; stroke-linejoin: round; }
.md { fill: var(--pin); stroke: var(--paper); stroke-width: 1.5; }
.panel { border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--surface); padding: var(--s2) var(--s6); }
.table-base { width: 100%; border-collapse: collapse; }
.table-base th, .table-base td { padding: var(--s4) 0; border-bottom: 1px solid var(--hair); font-weight: 400; vertical-align: middle; }
.table-base tr:last-child th, .table-base tr:last-child td { border-bottom: 0; }
.table-base th { text-align: left; color: var(--fg-mute); font-size: 16px; padding-right: var(--s4); }
.table-base td { text-align: right; font: 500 15px/1.4 var(--mono); color: var(--fg); letter-spacing: 0; }
.table-base td.txt { font: 500 17px/1.4 var(--font); letter-spacing: 0; }
.table-base .copy { margin-left: var(--s3); min-height: 44px; padding: 0 14px; font-size: 13px; }
.table-base .val { display: inline-block; vertical-align: middle; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s6); } .split__text { position: static; } .panel { padding: var(--s1) var(--s4); } .table-base td { font-size: 13px; } .table-base td.txt { font-size: 15px; } }

/* ---------- 6. Research online + Plans (white) ---------- */
/* ---------- 5. The record: geocode information, tract demographics, the filed proof ---------- */
.rec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4) var(--s8); align-items: end; margin-bottom: var(--s7); }
.rec__head h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; }
.rec__head .lead { max-width: 34em; }
.demo-panel { padding: var(--s7); border-radius: var(--r-m); background: var(--navy); color: var(--on-navy); --fg: var(--on-navy); --fg-soft: var(--on-navy-soft); --fg-mute: var(--on-navy-mute); --hair: var(--navy-line); --focus: var(--lens); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s8); }
.demo-panel__top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s5); }
.demo-panel h3 { font-size: 24px; font-weight: 650; }
.demo-panel .note { font-size: 14px; color: var(--on-navy-mute); }
.scale__kicker { font-size: 16px; color: var(--on-navy-mute); }
.scale__result { margin-top: var(--s2); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.scale__result span { font-weight: 500; color: var(--on-navy-mute); margin: 0 0.12em; }
.scale__vs { margin-top: var(--s3); font-size: 19px; color: var(--on-navy-soft); font-variant-numeric: tabular-nums; }
.scale__vs b { color: var(--on-navy); font-weight: 650; }
.scale__track { --p: 78.2; position: relative; container-type: inline-size; margin-top: 64px; }
.scale__marker { position: absolute; left: 0; bottom: 0; width: 2px; height: 64px; background: var(--lens); transform: translateX(calc(var(--p) * 1cqw)); will-change: transform; }
.scale__marker b { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(max(-50%, calc(var(--p) * -1cqw))); padding: 4px 10px; border-radius: var(--r-s); background: var(--lens); color: var(--ink); font: 700 14px/1.2 var(--mono); white-space: nowrap; letter-spacing: 0; }
.scale__bar { display: flex; gap: 3px; height: 36px; }
.scale__bar i { display: block; border-radius: 4px; }
.scale__bar i:nth-child(1) { flex: 50; background: #2F4B75; } .scale__bar i:nth-child(2) { flex: 30; background: #3E5C88; } .scale__bar i:nth-child(3) { flex: 40; background: #5879A6; } .scale__bar i:nth-child(4) { flex: 30; background: #7F9FC8; }
.scale__names { display: flex; gap: 3px; margin-top: var(--s2); }
.scale__names li { display: grid; gap: 2px; font-size: 14px; line-height: 1.25; color: var(--on-navy-mute); min-width: 0; }
.scale__names li b { font-size: 15px; font-weight: 600; color: var(--on-navy-soft); }
.scale__names li small { font-size: 13px; font-variant-numeric: tabular-nums; }
.scale__names li:nth-child(1) { flex: 50; } .scale__names li:nth-child(2) { flex: 30; } .scale__names li:nth-child(3) { flex: 40; } .scale__names li:nth-child(4) { flex: 30; }
.scale__names li.is-on b { color: var(--on-navy); }
.scale__names li.is-on b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--lens); }
.scale__note { margin-top: var(--s4); font-size: 16px; color: var(--on-navy-soft); max-width: 36em; }
.demo-panel__side { display: grid; gap: var(--s6); align-content: start; }
.stat { display: grid; gap: var(--s2); padding-bottom: var(--s5); border-bottom: 1px solid var(--navy-line); }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat dt { font-size: 16px; color: var(--on-navy-mute); }
.stat dd { margin: 0; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: var(--s2); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--on-navy-soft); }
.meter { height: 10px; margin-top: var(--s3); border-radius: 5px; background: var(--navy-raised); overflow: hidden; }
.meter i { display: block; height: 100%; width: 38.94%; border-radius: 5px; background: var(--tract); }
.rec__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); margin-top: var(--s7); align-items: start; }
.rec__row h3 { font-size: 24px; font-weight: 650; margin-bottom: var(--s4); }
.rec__proof { margin: 0; display: grid; gap: var(--s3); }
.rec__proof .shot { margin: 0; border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.rec__proof figcaption { font-size: 16px; color: var(--fg-soft); max-width: 40em; }
.only-phone { display: none; }
.rec__proof .shot a { display: block; padding: clamp(12px, 2.2vw, 28px); background: #fff; cursor: zoom-in; }
/* Lightbox for the INFO panel image: fits the screen; tap or click toggles full size, which pans */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-navy); overflow: hidden; }
.lb::backdrop { background: rgba(10,22,42,.95); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb__bar { display: flex; align-items: center; gap: var(--s4); padding: 10px 12px 10px 20px; background: var(--navy); }
.lb__bar p { margin: 0; font-size: 14px; color: var(--on-navy-soft); min-width: 0; }
.lb__bar .demo__x { margin-left: auto; flex: none; }
.lb__view { overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; padding: var(--s5); }
.lb__view img { display: block; box-sizing: border-box; max-width: 100%; max-height: calc(100dvh - 110px); width: auto; height: auto; padding: clamp(12px, 2.5vw, 36px); border-radius: var(--r-m); background: #fff; cursor: zoom-in; box-shadow: 0 24px 70px rgba(8,18,36,.5); }
.lb.is-full .lb__view { place-items: start; }
.lb.is-full .lb__view img { max-width: none; max-height: none; width: 1872px; cursor: zoom-out; }
@media (max-width: 720px) { .lb__view { padding: var(--s3); } .lb.is-full .lb__view img { width: 1248px; } }
@media (max-width: 720px) { .only-phone { display: inline; } }
@media (max-width: 860px) {
  .rec__head, .rec__row { grid-template-columns: 1fr; gap: var(--s5); }
  .demo-panel { grid-template-columns: 1fr; padding: var(--s5); gap: var(--s6); }
  .scale__track { margin-top: 56px; }
}
/* phones: the four band labels can't fit under their segments, so they become a 2x2 legend keyed by swatch */
@media (max-width: 600px) {
  .scale__names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s4); margin-top: var(--s4); }
  .scale__names li { position: relative; padding-left: 22px; }
  .scale__names li::before { content: ''; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 3px; background: var(--sw); }
  .scale__names li:nth-child(1) { --sw: #2F4B75; } .scale__names li:nth-child(2) { --sw: #3E5C88; } .scale__names li:nth-child(3) { --sw: #5879A6; } .scale__names li:nth-child(4) { --sw: #7F9FC8; }
  .scale__names li.is-on b::before { display: none; }
  .scale__names li.is-on::before { box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--lens); }
}
.research-sec { padding-top: 0; }
.research { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
.research__text { display: grid; gap: var(--s4); }
.research__text .lead { max-width: 28em; }
.shot { grid-column: 1 / -1; margin: var(--s2) 0 0; border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.shot img { width: 100%; height: auto; }
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); border-top: 1px solid var(--hair); }
.index li { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--hair); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.index svg { flex: none; width: 32px; height: 24px; fill: var(--ink); }
@media (max-width: 860px) { .research { grid-template-columns: 1fr; gap: var(--s6); } }
@media (max-width: 480px) { .index { grid-template-columns: 1fr; } }

