:root {
  color-scheme: light;
  --ink: #231b1a;
  --muted: #706460;
  --line: #e5d9d3;
  --line-strong: #ccbdb6;
  --surface: #fffdfa;
  --canvas: #f7f2ec;
  --rose: #bd3154;
  --rose-dark: #95223f;
  --rose-soft: #f9e8ed;
  --clay: #8b5b42;
  --green: #246748;
  --green-soft: #e4f2ea;
  --gold: #e2ad43;
  --gold-soft: #fff3d2;
  --danger: #a73636;
  --danger-soft: #fae8e6;
  --shadow-sm: 0 8px 28px rgb(71 43 32 / 8%);
  --shadow: 0 24px 70px rgb(71 43 32 / 11%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 85% 5%, rgb(226 173 67 / 10%), transparent 27rem), var(--canvas); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: var(--rose-dark); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid white; outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(18px, 4vw, 52px); border-bottom: 1px solid var(--line); background: rgb(255 253 250 / 90%); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand { min-height: 44px; }
.brand-mark { width: 44px; height: 37px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.1; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link { color: var(--muted); font-size: .74rem; font-weight: 750; text-decoration: none; }
.header-link:hover { color: var(--ink); }
.connection { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .74rem; font-weight: 700; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a651f; box-shadow: 0 0 0 4px #f8f0dc; }
.connection.ready { color: var(--green); }
.connection.ready .connection-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.connection.error { color: var(--danger); }
.connection.error .connection-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.connection.public { color: var(--green); }
.connection.public .connection-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

main { width: min(100%, 1120px); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px) 80px; }
.start { display: grid; align-items: center; gap: clamp(36px, 6vw, 72px); padding: clamp(64px, 9vw, 108px) 0 54px; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); }
.hero-copy { text-align: left; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin: 0 0 20px; font-size: clamp(3rem, 6vw, 5.35rem); letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.04; }
h3 { margin-bottom: 6px; font-size: 1.15rem; line-height: 1.35; }
.eyebrow { margin-bottom: 9px; color: var(--rose-dark); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 580px; margin: 0 0 26px; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.muted { color: var(--muted); }
.trust-list { display: grid; gap: 10px; margin: 0; padding: 0; color: var(--muted); font-size: .78rem; font-weight: 700; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 9px; }
.trust-list span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--clay); font-size: .6rem; }
.search-column { min-width: 0; }

.address-picker { max-width: 700px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(255 253 250 / 96%); box-shadow: var(--shadow); text-align: left; }
.picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.picker-heading label { color: var(--ink); font-size: .88rem; font-weight: 800; }
.picker-heading span { color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.address-control { display: grid; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 15px; background: white; grid-template-columns: 34px minmax(0, 1fr); }
.location-mark { position: relative; display: block; width: 15px; height: 19px; justify-self: center; border: 2px solid var(--rose); border-radius: 50% 50% 50% 0; transform: translateY(-2px) rotate(-45deg); }
.location-mark::after { position: absolute; top: 4px; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); content: ""; }
.address-control input { min-width: 0; min-height: 56px; padding: 12px 8px 12px 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 1.05rem; outline: 0; }
.address-control input::placeholder { color: #9b8f8b; }
.address-control:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgb(189 49 84 / 13%); }
.address-control:has(input:focus-visible) { box-shadow: 0 0 0 3px white, 0 0 0 6px var(--ink); }
.address-control .primary-button { min-height: 50px; grid-column: 1 / -1; }
.address-control .primary-button span:last-child { margin-left: auto; font-size: 1.15rem; transition: transform var(--motion-fast) var(--ease-out); }
.address-control .primary-button:hover span:last-child { transform: translateX(4px); }
.address-suggestions { display: grid; margin: 8px 0 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.address-suggestion { display: grid; min-height: 58px; gap: 2px; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; transition: background var(--motion-fast) var(--ease-out); }
.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover, .address-suggestion:focus-visible, .address-suggestion.active { background: var(--green-soft); }
.address-suggestion:focus-visible { position: relative; z-index: 1; outline: 3px solid white; outline-offset: -5px; box-shadow: inset 0 0 0 5px var(--green); }
.address-suggestion.active { box-shadow: inset 4px 0 0 var(--green); }
.address-suggestion strong { font-size: .86rem; }
.address-suggestion span { color: var(--muted); font-size: .72rem; }
.suggestion-credit { padding: 9px 13px; background: #f7f3ef; color: var(--muted); font-size: .66rem; }
.primary-button, .secondary-button, .text-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; }
.primary-button { padding: 10px 20px; border: 0; background: var(--rose); color: white; transition: background var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out); }
.primary-button:hover { background: var(--rose-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; }
.secondary-button { padding: 9px 14px; border: 1px solid #d9ccc6; background: white; color: var(--ink); }
.text-button { padding: 7px 4px; border: 0; background: transparent; color: var(--rose-dark); }
.field-help, .field-error { margin: 9px 3px 0; font-size: .75rem; }
.field-help { color: var(--muted); }
.field-error { color: var(--danger); font-weight: 700; }
.address-treatment { display: grid; gap: 5px; margin: 10px 0 0; padding: 11px 13px; border-radius: 11px; background: var(--green-soft); color: #3d604d; font-size: .76rem; }
.address-treatment span { display: block; }
.address-treatment strong { margin-right: 5px; color: var(--green); }
.address-treatment.pending { background: #f6f0ec; color: var(--muted); }
.address-treatment.pending strong { color: var(--ink); }
.system-boundary { display: grid; align-items: center; gap: clamp(28px, 6vw, 70px); margin-bottom: 72px; padding: clamp(26px, 5vw, 48px); border: 1px solid #c7ddd1; border-radius: var(--radius-lg); background: var(--green-soft); grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
.boundary-copy h2 { max-width: 560px; font-size: clamp(1.85rem, 4vw, 3rem); }
.boundary-copy p { max-width: 620px; margin: 14px 0; color: #3d604d; font-size: .87rem; }
.boundary-copy a { font-size: .77rem; font-weight: 800; }
.boundary-copy a, .primer-proof a { display: inline-flex; min-height: 44px; align-items: center; }
.boundary-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.boundary-flow li { position: relative; display: grid; min-height: 67px; align-items: center; gap: 0 12px; padding: 10px 0; grid-template-columns: 38px 1fr; }
.boundary-flow li:not(:last-child)::after { position: absolute; top: 51px; bottom: -6px; left: 18px; width: 1px; background: #a7cbb8; content: ""; }
.boundary-flow span { z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #99c3ad; border-radius: 50%; background: var(--surface); color: var(--green); font-size: .7rem; font-weight: 900; grid-row: 1 / 3; }
.boundary-flow strong { align-self: end; font-size: .8rem; }
.boundary-flow small { align-self: start; color: #54705f; font-size: .67rem; }
.local-ai-link { text-decoration: none; white-space: nowrap; }
.address-control input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.address-match-note { max-width: 720px; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: #365b49; font-size: .8rem; }
.address-primer { margin-top: 24px; padding: clamp(22px, 4vw, 36px); overflow: hidden; border: 1px solid #d8c8b4; border-radius: var(--radius-lg); background: radial-gradient(circle at 90% 8%, rgb(226 173 67 / 20%), transparent 18rem), #fffaf0; box-shadow: var(--shadow-sm); }
.address-primer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.address-primer h3 { max-width: 580px; margin: 0; font-size: clamp(1.4rem, 4vw, 2.15rem); letter-spacing: -.035em; line-height: 1.08; }
.identity-stamp { flex: none; padding: 7px 11px; border: 1px solid #a9ceba; border-radius: 999px; background: white; color: var(--green); font-size: .68rem; font-weight: 800; transform: rotate(1.5deg); }
.identity-stamp span { display: inline-grid; width: 17px; height: 17px; margin-right: 4px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: .58rem; }
.primer-intro { max-width: 730px; margin: 15px 0 24px; color: #65564e; font-size: .9rem; }
.identity-chain { display: grid; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.identity-chain li { position: relative; display: grid; min-width: 0; min-height: 172px; gap: 7px; align-content: start; padding: 19px; border: 1px solid var(--line); background: white; }
.identity-chain li:first-child { border-radius: 16px 0 0 16px; }
.identity-chain li:last-child { border-radius: 0 16px 16px 0; }
.identity-chain li + li { border-left: 0; }
.chain-arrow { position: absolute; z-index: 2; top: 34px; right: -13px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--rose-dark); font-weight: 900; }
.chain-arrow::before { width: 6px; height: 6px; border-top: 2px solid var(--rose-dark); border-right: 2px solid var(--rose-dark); content: ""; transform: translateX(-1px) rotate(45deg); }
.identity-chain .identity-key { background: var(--gold-soft); }
.primer-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--rose-soft); color: var(--rose-dark); font-size: 1rem; font-weight: 900; }
.primer-icon.map-pin { position: relative; width: 21px; height: 27px; margin: 4px 8px 5px; border: 3px solid var(--rose); border-radius: 50% 50% 50% 0; background: white; transform: rotate(-45deg); }
.primer-icon.map-pin::after { position: absolute; top: 6px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); content: ""; }
.identity-key .primer-icon { background: #f1d889; color: #6f5200; }
.step-number { color: var(--clay); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.identity-chain strong { overflow-wrap: anywhere; font-size: .92rem; line-height: 1.25; }
.identity-chain code { padding: 2px 5px; border-radius: 5px; background: rgb(255 255 255 / 75%); font-size: .82rem; }
.identity-chain small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.primer-proof { display: grid; gap: 5px; margin-top: 16px; padding: 15px 17px; border-left: 4px solid var(--green); border-radius: 10px; background: white; }
.primer-proof > div { display: flex; align-items: center; gap: 8px; }
.primer-proof .proof-mark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: .66rem; }
.primer-proof strong { font-size: .8rem; }
.primer-proof p { max-width: 740px; margin: 0; color: var(--muted); font-size: .74rem; }
.primer-proof a { margin-top: 3px; font-size: .7rem; font-weight: 800; }
.record-limit-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff3d9; color: #715716; font-size: .78rem; }
.privacy-note { max-width: 600px; margin: 13px 8px 0; color: var(--muted); font-size: .72rem; text-align: left; }
.privacy-note span { margin-right: 5px; color: var(--green); }

.rag-bridge { display: grid; gap: clamp(30px, 5vw, 64px); margin: 0 0 58px; padding: clamp(28px, 5vw, 54px); border: 1px solid #dfc2b3; border-radius: 24px; background: #f5e9e2; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); }
.rag-bridge h2 { max-width: 610px; font-size: clamp(2rem, 4.6vw, 3.7rem); }
.rag-bridge > div > p:not(.eyebrow) { max-width: 620px; margin: 18px 0; color: var(--muted); }
.rag-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--rose-dark); font-size: .82rem; font-weight: 800; }
.rag-mini-flow { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rag-mini-flow li { display: grid; align-items: center; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); grid-template-columns: 36px minmax(0, 1fr); }
.rag-mini-flow span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark); font-size: .62rem; font-weight: 800; grid-row: 1 / 3; }
.rag-mini-flow strong { font-size: .86rem; }
.rag-mini-flow small { color: var(--muted); font-size: .7rem; }

.progress, .notice { display: flex; max-width: 760px; gap: 13px; margin: 0 auto 28px; padding: 17px 19px; border-radius: 13px; }
.progress { align-items: center; border: 1px solid #ebc0ca; background: var(--rose-soft); }
.progress p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.spinner { width: 20px; height: 20px; flex: none; border: 2px solid #e7b4c0; border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-error { border: 1px solid #e3aaa5; background: var(--danger-soft); color: var(--danger); }

.candidate-panel, .result { scroll-margin-top: 94px; }
.candidate-panel { max-width: 760px; margin: 0 auto 52px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.candidate-panel > p:not(.eyebrow) { margin: 10px 0 20px; color: var(--muted); }
.candidate-list { display: grid; gap: 9px; }
.candidate { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-align: left; }
.candidate:hover { border-color: var(--rose); }
.candidate strong, .candidate span { display: block; }
.candidate span { color: var(--muted); font-size: .74rem; }
.candidate-panel .text-button { margin-top: 15px; }

.result { padding: 42px 0 0; border-top: 1px solid var(--line); }
.result-header, .section-heading, .hermes-card, .city-support, .trace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.result-header > div { min-width: 0; }
.result-header h2 { overflow-wrap: anywhere; }
.result-header .muted { max-width: 720px; margin: 8px 0 0; color: #655b57; font-size: .82rem; }
.short-version { margin-top: 24px; padding: 24px 26px; border: 1px solid #cce0d4; border-radius: 18px; background: var(--green-soft); }
.short-version h3 { font-size: 1.35rem; }
.short-version p:last-child { max-width: 760px; margin-bottom: 0; color: #476555; }
.stat-grid { display: grid; gap: 10px; margin-top: 13px; grid-template-columns: repeat(3, 1fr); }
.stat-grid article { padding: 17px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.stat-grid strong { display: block; color: var(--clay); font-size: 1.75rem; line-height: 1; }
.stat-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.timeline-section { margin-top: 36px; }
.section-heading { align-items: baseline; }
.section-heading h3 { margin: 0; font-size: 1.25rem; }
.section-heading .muted { font-size: .73rem; }
.timeline { display: grid; gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 16px 17px 16px 45px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.timeline li::before { position: absolute; top: 20px; left: 18px; width: 10px; height: 10px; border: 3px solid var(--rose-soft); border-radius: 50%; background: var(--rose); content: ""; }
.timeline time { color: var(--clay); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.timeline strong { display: block; margin-top: 3px; font-size: .9rem; }
.timeline p { margin: 4px 0 2px; color: var(--muted); font-size: .78rem; }
.timeline code { font-size: .68rem; }
.hermes-card { align-items: center; margin-top: 26px; padding: 21px; border: 1px solid #dfc2b3; border-radius: 16px; background: #f5e9e2; }
.hermes-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.hermes-response { margin-top: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
#hermes-text { white-space: pre-wrap; }

.receipts { margin-top: 24px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.receipts summary { min-height: 44px; padding: 10px 0; color: var(--rose-dark); font-weight: 800; }
.receipts > p { margin: 10px 0; color: var(--muted); font-size: .78rem; }
.source-list { display: grid; gap: 8px; }
.source-card { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; grid-template-columns: 1fr auto; }
.source-card strong, .source-card span { display: block; }
.source-card span { color: var(--muted); font-size: .7rem; }
.source-card code { color: var(--rose-dark); font-size: .7rem; }
.trace-heading { align-items: center; margin-top: 18px; }
.trace-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.trace-event { display: grid; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; grid-template-columns: 27px minmax(0, 1fr) auto; }
.trace-event > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark); font-size: .62rem; font-weight: 800; }
.trace-event strong { display: block; font-size: .75rem; }
.trace-event code { display: block; max-width: 560px; overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.trace-event time { color: var(--muted); font-size: .62rem; }
.blank-inline { padding: 24px; border: 1px dashed #d7c9c3; border-radius: 12px; color: var(--muted); text-align: center; }

.city-support { align-items: center; margin-top: 30px; padding: 26px; border-radius: 18px; background: var(--ink); color: white; }
.city-support .eyebrow { color: #f0b3c2; }
.city-support p:last-child { max-width: 570px; margin-bottom: 0; color: #d7c9c3; font-size: .82rem; }
.city-link { flex: none; padding: 12px 17px; border-radius: 11px; background: white; color: var(--ink); font-size: .8rem; font-weight: 800; text-decoration: none; }

footer { padding: 20px 28px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .73rem; text-align: center; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; padding: 9px 14px; }
  .brand small { display: none; }
  .header-link { display: none; }
  .connection { max-width: 150px; margin-top: 3px; padding: 6px 8px; font-size: .64rem; }
  main { padding-inline: 15px; }
  .start { gap: 34px; padding-top: 52px; grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .address-picker { padding: 17px; }
  .address-control input { min-height: 52px; font-size: 16px; }
  .address-control .primary-button { width: 100%; }
  .system-boundary { margin-bottom: 54px; grid-template-columns: 1fr; }
  .result-header, .section-heading, .hermes-card, .city-support { align-items: stretch; flex-direction: column; }
  .result-header .secondary-button, .hermes-card .primary-button, .city-link { width: 100%; }
  .stat-grid { grid-template-columns: 1fr; }
  .source-card { grid-template-columns: 1fr; }
  .trace-event { grid-template-columns: 27px 1fr; }
  .trace-event time { grid-column: 2; }
  .candidate { align-items: flex-start; flex-direction: column; }
  .address-primer > header { flex-direction: column; }
  .identity-chain { gap: 9px; grid-template-columns: 1fr; }
  .identity-chain li, .identity-chain li:first-child, .identity-chain li:last-child { min-height: auto; border: 1px solid var(--line); border-radius: 14px; }
  .chain-arrow { top: auto; right: 50%; bottom: -17px; transform: translateX(50%) rotate(90deg); }
  .rag-bridge { padding: 25px 20px; grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 940px) {
  .start { grid-template-columns: minmax(0, .8fr) minmax(390px, 1.2fr); }
  h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* The public lookup is a staged tool, not a scrolling landing page. */
body.experience-page {
  display: grid;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.experience-page main {
  position: relative;
  width: min(100%, 1120px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 44px) 70px;
}

.experience-page .system-boundary,
.experience-page .rag-bridge { display: none; }

.experience-page .start {
  height: 100%;
  min-height: 0;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vh, 56px) 0;
}
.experience-page[data-experience-stage="match"] .start,
.experience-page[data-experience-stage="result"] .start { display: none; }

.experience-page .hero-copy,
.experience-page .search-column { min-width: 0; }
.experience-page h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
.experience-page .lead { font-size: clamp(.9rem, 1.25vw, 1.02rem); line-height: 1.62; }
.experience-page .address-picker { box-shadow: 0 18px 54px rgb(71 43 32 / 10%); }

.clear-address {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5efeb;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}
.clear-address:hover { background: var(--rose-soft); color: var(--rose-dark); }
.address-control:has(.clear-address:not([hidden])) { grid-template-columns: 34px minmax(0, 1fr) 40px; }
.address-control .clear-address { grid-column: 3; grid-row: 1; }
.address-control:has(.clear-address:not([hidden])) .primary-button { grid-column: 1 / -1; }
.address-example {
  min-height: 40px;
  margin: 3px 0 0;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.address-example:hover { color: var(--ink); }
.address-picker.is-suggesting .address-control { position: relative; overflow: hidden; }
.address-picker.is-suggesting .address-control::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  content: "";
  animation: address-progress 1s var(--ease-out) infinite;
  transform: translateX(-100%);
}
@keyframes address-progress { to { transform: translateX(100%); } }
.address-suggestion { position: relative; padding-right: 48px; }
.address-suggestion::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--rose-dark);
  content: "→";
  font-weight: 900;
  transform: translateY(-50%);
}

.experience-page .progress,
.experience-page .notice,
.experience-page .candidate-panel,
.experience-page .result {
  position: absolute;
  inset: clamp(18px, 4vh, 42px) clamp(18px, 4vw, 44px) 70px;
  width: auto;
  max-width: none;
  margin: 0;
}
.experience-page .progress,
.experience-page .notice { z-index: 6; inset: 50% auto auto 50%; width: min(calc(100% - 40px), 640px); transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.experience-page .candidate-panel { overflow: auto; padding: clamp(22px, 4vw, 38px); }
.experience-page .result { display: flex; min-height: 0; flex-direction: column; padding: 0 4px 24px 0; overflow-x: hidden; overflow-y: auto; border-top: 0; overscroll-behavior: contain; }
.experience-page .result-header { position: sticky; z-index: 4; top: 0; flex: none; padding: 0 2px 16px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.experience-page .result-header h2 { font-size: clamp(1.55rem, 3.4vw, 2.55rem); }
.experience-page .result [data-result-panel] { display: none; min-height: 0; flex: none; overflow: visible; }
.experience-page[data-result-view="read"] .result [data-result-panel="read"],
.experience-page[data-result-view="match"] .result [data-result-panel="match"],
.experience-page[data-result-view="act"] .result [data-result-panel="act"],
.experience-page[data-result-view="check"] .result [data-result-panel="check"] { display: block; }
.experience-page[data-result-view="read"] .result .stat-grid { display: grid; flex: none; overflow: visible; }
.experience-page[data-result-view="read"] .result .record-limit-note { flex: none; overflow: visible; }
.experience-page[data-result-view="read"] .result .timeline-section { margin-top: 12px; padding: 2px 5px 24px 2px; }
.experience-page[data-result-view="act"] .result .short-version { margin-top: 18px; overflow: visible; }
.experience-page[data-result-view="act"] .result .city-support { display: flex; margin-top: 14px; overflow: visible; }
.experience-page[data-result-view="match"] .result .address-primer { margin-top: 18px; padding: clamp(18px, 3vw, 30px); }
.experience-page[data-result-view="check"] .result .receipts { margin-top: 18px; padding: 16px 19px; }
.experience-page[data-result-view="act"] .result .hermes-card { display: flex; margin-top: 14px; overflow: visible; }
.experience-page[data-result-view="act"] .result .hermes-response { margin-top: 12px; }

.experience-rail {
  position: absolute;
  z-index: 10;
  right: clamp(18px, 4vw, 44px);
  bottom: 9px;
  left: clamp(18px, 4vw, 44px);
  display: grid;
  min-height: 52px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgb(255 253 250 / 94%);
  box-shadow: 0 10px 34px rgb(71 43 32 / 10%);
  backdrop-filter: blur(16px);
  grid-template-columns: repeat(5, 1fr);
}
.experience-rail button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 5px 4px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.experience-rail button:last-child { border-right: 0; }
.experience-rail button:not(:disabled):hover { background: var(--rose-soft); color: var(--ink); }
.experience-rail button[aria-current="step"] { background: var(--ink); color: white; }
.experience-rail button.is-current { background-color: #231b1a !important; color: white !important; }
.experience-page[data-experience-stage="ask"] .experience-rail [data-stage-target="ask"],
.experience-page[data-experience-stage="match"] .experience-rail [data-stage-target="match"],
.experience-page[data-experience-stage="result"][data-result-view="match"] .experience-rail [data-stage-target="match"],
.experience-page[data-experience-stage="result"][data-result-view="read"] .experience-rail [data-stage-target="read"],
.experience-page[data-experience-stage="result"][data-result-view="act"] .experience-rail [data-stage-target="act"],
.experience-page[data-experience-stage="result"][data-result-view="check"] .experience-rail [data-stage-target="check"] { background: var(--ink); color: white; }
.experience-rail button:disabled { cursor: not-allowed; opacity: .38; }
.experience-rail strong { font-size: .66rem; letter-spacing: .045em; text-transform: uppercase; }
.rail-number { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .52rem; font-weight: 900; line-height: 1; }
.experience-rail button[data-complete="true"]:not(.is-current) .rail-number { border-color: var(--green); background: var(--green); color: white; }

.experience-page .site-footer { min-height: 48px; padding-block: 2px; }
.experience-page .site-footer a { min-height: 44px; }

@media (max-width: 720px) {
  body.experience-page { grid-template-rows: auto minmax(0, 1fr) auto; }
  .experience-page main { padding: 0 12px 64px; }
  .experience-page .start {
    display: grid;
    height: 100%;
    gap: 18px;
    align-content: start;
    padding: 18px 3px;
    overflow: auto;
    grid-template-columns: 1fr;
  }
  .experience-page .hero-copy { text-align: center; }
  .experience-page .hero-copy .eyebrow { margin-bottom: 5px; }
  .experience-page h1 { max-width: 580px; margin-inline: auto; margin-bottom: 10px; font-size: clamp(2rem, 10.5vw, 3.1rem); }
  .experience-page .lead { margin-inline: auto; margin-bottom: 12px; font-size: .85rem; line-height: 1.52; }
  .experience-page .trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .experience-page .trust-list span { width: 22px; height: 22px; }
  .experience-page .address-picker { padding: 14px; }
  .experience-page .address-suggestions { max-height: min(42dvh, 310px); overflow-y: auto; overscroll-behavior: contain; }
  .experience-page .field-help { margin-top: 6px; }
  .experience-page .privacy-note { margin-top: 5px; }
  .experience-page .progress,
  .experience-page .notice,
  .experience-page .candidate-panel,
  .experience-page .result { inset: 12px 12px 64px; }
  .experience-page .result-header { align-items: flex-start; flex-direction: row; gap: 8px; }
  .experience-page .result-header .secondary-button { width: auto; flex: none; padding-inline: 10px; font-size: .7rem; }
  .experience-page .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .experience-page .stat-grid article { padding: 12px 5px; }
  .experience-page .stat-grid strong { font-size: 1.4rem; }
  .experience-page .timeline-section { overflow: auto; }
  .experience-page .site-footer { display: none; }
  .experience-rail { right: 12px; bottom: 7px; left: 12px; }
  .experience-rail strong { font-size: .55rem; }
}

@media (max-height: 720px) and (min-width: 721px) {
  .experience-page .site-footer { display: none; }
  .experience-page .start { align-content: start; padding-block: 18px; overflow-y: auto; overscroll-behavior: contain; }
  .experience-page h1 { font-size: clamp(2.45rem, 5vw, 4rem); }
  .experience-page .lead { margin-bottom: 14px; }
  .experience-page .trust-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
}
