/* MuniciPal. Composition: the quiet instrument (tasteskill seed 56923963). Type after the user's reference:
   a light condensed gothic for display (Antonio), IBM Plex Sans for text. Charcoal ground, off-white ink,
   one brass accent. County records stay paper. */

:root {
  --bg: #10100f;
  --surface: #1b1b19;
  --raised: #262623;
  --ink: #f0f0ed;
  --muted: #a9a79e;
  --accent: #d4b53a;
  --accent-hover: #e2c450;
  --accent-ink: #141412;
  --field-raised: #1e1d1a;

  --paper: #f4f4f0;
  --paper-ink: #16171f;
  --paper-muted: #5a5c6a;
  --paper-line: #dcdcd4;
  --paper-mark: #efe6bf;

  --font-display: "Antonio", "Arial Narrow", sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-head: clamp(2.75rem, 1.9rem + 2.8vw, 4.5rem);
  --step-display: clamp(3.25rem, 1.4rem + 5.4vw, 7rem);
  --step-ui: 15px;

  --margin: clamp(1.25rem, 2.8vw, 2.5rem);
  --col-start: max(var(--margin), 22vw);
  --col: min(560px, calc(100vw - 2 * var(--margin)));
  --section: clamp(6rem, 10vw, 8.75rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; }
h3 { font-weight: 500; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 10; text-decoration: none; }
.skip:focus { top: 1rem; }

.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.01em; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }

.col { margin-left: var(--col-start); width: var(--col); }
.section { padding-block: var(--section); }

/* one button shape: square, condensed capitals */
.button { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.link-plain { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }

/* ---------- hero: control that reads the page ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: max(100svh, 640px); background: var(--bg); color: var(--ink); }
.hero-left { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 40px 48px; }
.hero-right { background: var(--surface); display: grid; place-items: center; padding: 96px 40px 40px; }
.wordmark { position: absolute; top: 34px; left: 40px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; text-decoration: none; }
.wordmark svg { width: 22px; height: 22px; }
.hero-top-link { position: absolute; top: 32px; right: 40px; z-index: 1; }
.hero-top-link { display: flex; gap: 28px; }
.hero-top-link.button:hover { background: #33322d; }
.hero h1 { font-size: var(--step-display); line-height: 0.94; letter-spacing: -0.01em; font-weight: 200; }
.hero h1 [data-line] { white-space: nowrap; }
.hero-copy { max-width: 44ch; margin-top: 28px; color: var(--ink); }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.lines [data-line] { display: block; }

/* the agenda reader: a county record, so it is paper */
.reader { width: min(460px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 22px 22px 18px; font-size: var(--step-ui); line-height: 1.4; }
.reader-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--paper-line); } /* taste-skill-ignore: inside the data-ui reader */
.reader-head strong { font-weight: 500; }
.reader-head span { color: var(--paper-muted); font-size: var(--step-small); text-align: right; }
.reader-items { margin: 8px 0 0; }
.reader-item { display: grid; grid-template-columns: 2.4em 1fr; gap: 4px; width: 100%; padding: 8px; border-radius: 3px; color: var(--paper-ink); transition: background-color var(--t-hover) ease; }
.reader-item .n { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--paper-muted); padding-top: 1px; }
.reader-item .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reader-item[aria-pressed="true"] { background: var(--paper-mark); }
.reader-item[aria-pressed="true"] .n { color: #6b5a0c; font-weight: 500; }
.reader-out { margin-top: 10px; padding: 12px 10px 4px; border-top: 1px solid var(--paper-line); font-size: var(--step-small); min-height: 5.6em; } /* taste-skill-ignore: inside the data-ui reader */
.reader-out dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.reader-out dt { color: var(--paper-muted); }
.reader-out dd { font-variant-numeric: tabular-nums; font-size: 13px; }
.status { display: inline-block; padding: 0 6px; border-radius: 2px; background: var(--paper-mark); color: #6b5a0c; font-family: var(--font-text); }

/* ---------- how it works: call and response ---------- */
.how h2 { margin-bottom: 56px; }
.how-figure { margin-bottom: 88px; }
.how-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.how-figure figcaption { margin-top: 12px; }
.exchange + .exchange { margin-top: 88px; }
.exchange-say { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); line-height: 1.15; }
.button-row { margin-top: 40px; }
.call { margin-top: 16px; background: var(--surface); padding: 20px; }
.call-input { display: block; width: 100%; padding: 12px 14px; background: var(--raised); color: var(--ink); font-variant-numeric: tabular-nums; }
.call img { width: 100%; height: auto; }
.response { margin-top: 24px; margin-left: 56px; }
.response-wide { width: min(760px, calc(100vw - var(--col-start) - var(--margin))); margin-left: 0; }

.ui { background: var(--paper); border-radius: 4px; padding: 16px 18px; font-size: var(--step-ui); line-height: 1.45; color: var(--paper-ink); }
.ui-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.ui-row + .ui-row { border-top: 1px solid var(--paper-line); } /* taste-skill-ignore: rows inside data-ui fragments */
.ui-row span:last-child { color: var(--paper-muted); font-variant-numeric: tabular-nums; text-align: right; }
.ui-title { font-weight: 500; }
.ui-meta { color: var(--paper-muted); font-size: var(--step-small); }
.mail-head { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--paper-line); display: grid; gap: 2px; } /* taste-skill-ignore: inside data-ui fragments */
.mail-body p + p { margin-top: 0.7em; }
.mail-body blockquote { margin: 10px 0; padding: 10px 12px; background: #ecebe3; border-radius: 3px; }

/* ---------- showcase: lit panel, dark row ---------- */
.showcase { position: relative; background: #191917; color: var(--ink); min-height: 96svh; padding-block: 96px; display: flex; flex-direction: column; justify-content: center; }
.showcase h2 { margin-left: var(--col-start); margin-bottom: 40px; }
.row-wrap { position: relative; }
.row { display: flex; gap: 26vw; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: calc(50vw - 210px); padding-block: 8px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row:focus-visible { outline-offset: -4px; }
.panel { flex: 0 0 420px; scroll-snap-align: center; border-radius: 4px; padding: 18px; font-size: var(--step-ui); line-height: 1.45; background: #2a2925; color: var(--ink); transition: background-color 240ms ease, color 240ms ease; }
.panel .ui-meta, .panel .muted, .panel .ui-row span:last-child { color: #bcbab0; }
.panel .ui-row + .ui-row, .panel .mail-head { border-color: #3b3a35; }
.panel.is-lit { background: var(--paper); color: var(--paper-ink); }
.panel.is-lit .ui-meta, .panel.is-lit .muted, .panel.is-lit .ui-row span:last-child { color: var(--paper-muted); }
.panel.is-lit .ui-row + .ui-row, .panel.is-lit .mail-head { border-color: var(--paper-line); }
.panel blockquote { margin: 10px 0; padding: 10px 12px; border-radius: 3px; background: rgba(200, 190, 150, 0.14); }
.caption { position: absolute; left: calc(50vw + 250px); width: 24ch; top: 8px; }
.caption-name { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.15; font-weight: 400; }
.caption-text { margin-top: 10px; color: #bcbab0; }
.row-nav { margin-left: var(--col-start); margin-top: 32px; display: flex; gap: 24px; }
.row-nav button { color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }

/* ---------- counties: two-ended rows ---------- */
.counties-grid { margin-left: var(--col-start); padding-right: var(--margin); }
.county-cols { columns: 2; column-gap: 64px; max-width: 1080px; }
.county-group { break-inside: avoid; padding-bottom: 40px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 1080px; margin-top: 48px; }
.pair img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pair-caption { grid-column: 1 / -1; margin-top: 12px; max-width: 52ch; }
.counties h2 { font-size: var(--step-head); line-height: 1; margin-bottom: 32px; }
.county-group-name { color: var(--muted); }
.county { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 36px; padding-block: 6px; }
.county span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counties-note { margin-top: 0; max-width: 62ch; }

/* ---------- in every alert: staggered fragment cells ---------- */
.features { padding-right: var(--margin); }
.features h2 { margin-bottom: 56px; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; background: var(--surface); overflow: hidden; }
.cell-text { padding: 24px; }
.cell-text h3 { font-size: var(--step-body); font-weight: 500; }
.cell-text p { margin-top: 8px; max-width: 34ch; }
.cell-frag { margin: 0 0 0 24px; border-radius: 4px 0 0 0; }
.cell.reverse { flex-direction: column-reverse; }
.cell.reverse .cell-frag { border-radius: 0 0 4px 0; margin: 0 24px 0 0; }
.cell-frag.ui { padding: 18px; }
.cell-frag img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 2px; background: #fff; margin-top: 10px; outline: 1px solid var(--paper-line); } /* taste-skill-ignore: the page edge inside a data-ui fragment */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 99px; background: #e7e6df; color: var(--paper-muted); }
.chip[aria-current="true"] { background: var(--paper-mark); color: #6b5a0c; font-weight: 500; }

/* ---------- pricing: prices like a menu ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: 64px; padding-right: var(--margin); margin-left: var(--col-start); }
.pricing-left figure { position: sticky; top: 96px; }
.pricing-left img { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; margin-top: 32px; }
.pricing-left figcaption { margin-top: 10px; max-width: 280px; }
.menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-content: start; }
.menu-group + .menu-group { margin-top: 48px; }
.menu-group h3 { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; line-height: 1.15; }
.menu-item { margin-top: 22px; }
.menu-line { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.menu-item p { margin-top: 4px; max-width: 38ch; }
.menu-item .link-plain { display: inline-block; margin-top: 10px; }
.menu-note { margin-top: 48px; max-width: 40ch; color: var(--muted); }

/* ---------- questions: index with one answer ---------- */
.faq-field { background: var(--surface); }
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; margin-left: var(--col-start); padding-right: var(--margin); }
.faq h2 { font-family: var(--font-text); font-size: var(--step-body); color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.q { display: flex; gap: 14px; align-items: baseline; color: var(--muted); padding-block: 9px; width: 100%; transition: color var(--t-hover) ease; }
.q::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.q[aria-expanded="true"] { color: var(--ink); }
.q[aria-expanded="true"]::before { background: var(--accent-hover); }
.a-inline { display: none; }
.pane { position: sticky; top: 120px; align-self: start; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); line-height: 1.25; max-width: 34ch; transition: opacity 150ms ease; }

/* ---------- snapshot: one field, on the blue field ---------- */
.snapshot { padding-top: 160px; padding-bottom: 160px; background: var(--field-raised); color: var(--ink); }
.snapshot-grid { margin-left: var(--col-start); padding-right: var(--margin); display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.prompt { font-family: var(--font-display); font-size: var(--step-head); line-height: 1; font-weight: 300; }
.prompt-sub { margin-top: 16px; font-size: var(--step-lead); line-height: 1.3; color: #cfcdc3; }
.field-wrap { position: relative; margin-top: 32px; }
.field-wrap label { display: block; margin-bottom: 8px; color: #cfcdc3; }
.field { width: 100%; height: 64px; padding: 0 64px 0 18px; background: var(--paper); color: var(--paper-ink); border: 0; border-radius: var(--radius); outline: none; font-variant-numeric: tabular-nums; }
.field::placeholder { color: var(--paper-muted); }
.field:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline: none; } /* taste-skill-ignore: focus ring, not a resting shadow */
.submit { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out); }
.submit:active { transform: scale(0.94); }
.submit svg { width: 18px; height: 18px; }
.match { margin-top: 16px; min-height: 1.5em; }
.next { margin-top: 4px; font-size: var(--step-small); color: #cfcdc3; }
.contact-rows { display: grid; gap: 12px; padding-bottom: 40px; }
.contact-rows div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; }
.contact-rows dt { color: #cfcdc3; }

/* ---------- close ---------- */
.credits { margin-left: var(--col-start); width: min(720px, calc(100vw - var(--col-start) - var(--margin))); margin-top: 48px; font-size: var(--step-small); color: var(--muted); }
.credits a { color: var(--muted); }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; padding: 24px var(--margin) 30px; }
.foot-links { display: flex; gap: 24px; }
.foot-end { justify-self: end; color: var(--muted); display: flex; gap: 16px; }
.foot-what { color: var(--muted); }

/* ---------- hero photo behind the reader ---------- */
.hero-right { position: relative; overflow: clip; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-right::after { content: ""; position: absolute; inset: 0; background: rgba(16, 16, 15, 0.55); }
.hero-right .reader { z-index: 1; }
.hero-right .reader { position: relative; }

/* ---------- numbers band ---------- */
.numbers { background: var(--accent); color: var(--accent-ink); padding: 72px var(--margin) 80px; }
.numbers-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: 1360px; margin-left: auto; margin-right: auto; }
.numbers-list li { display: grid; gap: 12px; align-content: start; }
.numeral { font-family: var(--font-display); font-weight: 200; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.numeral small { font-size: 0.5em; font-weight: 300; }
.numeral-text { max-width: 26ch; color: #2b2610; }

/* ---------- a week in the court ---------- */
.week-wrap { margin-left: var(--col-start); padding-right: var(--margin); }
.week h2 { margin-bottom: 56px; }
.week-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 1080px; }
.week-stop { display: grid; gap: 14px; align-content: start; }
.week-day { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 400; line-height: 1.1; }
.week-bar { display: block; height: 10px; background: var(--raised); }
.week-stop:nth-child(2) .week-bar { background: var(--accent); }
.week-stop p { max-width: 30ch; padding-right: 16px; }

/* ---------- recently read ---------- */
.reads-wrap { margin-left: var(--col-start); padding-right: var(--margin); }
.reads h2 { margin-bottom: 20px; }
.reads-intro { margin-bottom: 40px; color: var(--muted); }
.table-scroll { overflow-x: auto; max-width: 1080px; }
.reads-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.reads-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 16px 12px 0; }
.reads-table td { padding: 14px 16px 14px 0; border-top: 1px solid #2d2c28; vertical-align: top; }
.reads-table td:nth-child(2), .reads-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--raised); white-space: nowrap; }
.tag-watch { background: var(--accent); color: var(--accent-ink); }

/* ---------- who reads with us ---------- */
.who-wrap { margin-left: var(--col-start); padding-right: var(--margin); max-width: calc(1080px + var(--col-start)); }
.who h2 { margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.tab { padding: 12px 18px; background: var(--surface); color: var(--muted); font-family: var(--font-display); font-size: 1.1875rem; letter-spacing: 0.03em; text-transform: uppercase; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; max-width: 1080px; }
.tab-panel[hidden] { display: none; }
.tab-lead { font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); line-height: 1.2; margin-bottom: 16px; }

/* ---------- the name returns ---------- */
.bigname { margin: 120px 0 0; padding: 0 var(--margin); font-family: var(--font-display); font-weight: 200; font-size: 22vw; line-height: 0.8; letter-spacing: -0.02em; color: var(--surface); max-width: none; white-space: nowrap; overflow: hidden; }

@media (max-width: 63.99em) {
  .numbers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .week-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tab-panel { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 47.99em) {
  .numbers { padding: 56px 20px 64px; }
  .numbers-list { grid-template-columns: 1fr; gap: 36px; }
  .week-track { grid-template-columns: 1fr; }
  .week-wrap, .reads-wrap, .who-wrap { margin-left: 20px; padding-right: 20px; }
  .tab { flex: 1 1 100%; }
  .bigname { margin-top: 72px; padding: 0 12px; }
  .reads-table { min-width: 0; }
  .reads-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reads-table tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; padding: 16px 0; border-top: 1px solid #2d2c28; }
  .reads-table td { display: block; padding: 0; border: 0; }
  .reads-table td:nth-child(4) { grid-column: 1 / -1; margin-top: 6px; }
  .reads-table td:nth-child(5) { grid-column: 1 / -1; margin-top: 10px; }
}

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: 520ms; }

  .drift { animation: drift 22s var(--ease-soft) infinite alternate; transform-origin: 40% 60%; }
  .frame { overflow: clip; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 48em) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }

/* ---------- below 1024px: the hero stacks, the caption joins the flow ---------- */
@media (max-width: 63.99em) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { order: -1; min-height: 58svh; padding: 96px var(--margin) 40px; }
  .hero-left { padding: 40px var(--margin) 56px; }
  .hero h1 { font-size: max(3rem, 9vw); }
  .caption { position: static; width: auto; max-width: 52ch; margin: 24px var(--col-start) 0; }
  .row { gap: 6vw; }
  .snapshot-grid { grid-template-columns: minmax(0, var(--col)); }
  .county-cols { columns: 1; max-width: var(--col); }
  .contact-rows { margin-top: 56px; padding-bottom: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  :root { --col-start: 20px; --col: calc(100vw - 40px); }
  .hero-right { padding: 80px 20px 32px; }
  .hero-left { padding: 32px 20px 48px; }
  .wordmark { top: 22px; left: 20px; font-size: 1.3rem; }
  .hero-top-link { top: 22px; right: 20px; }
  .hero-top-link a:not(:last-child) { display: none; }
  .reader { width: 100%; }
  .response { margin-left: 0; }
  .response-wide { width: 100%; }
  .row { padding-inline: 7vw; gap: 4vw; }
  .panel { flex-basis: 86vw; }
  .row-nav { margin-left: 20px; }
  .county { min-height: 44px; }
  .cells { grid-template-columns: 1fr; gap: 6px; }
  .cell, .cell.reverse { min-height: 0; flex-direction: column; }
  .cell .cell-frag { margin: 0 0 0 24px; border-radius: 4px 0 0 0; }
  .cell:nth-child(even) .cell-frag { margin: 0 24px 0 0; border-radius: 0 4px 0 0; }
  .pricing, .faq, .counties-grid, .snapshot-grid { grid-template-columns: 1fr; margin-left: 20px; padding-right: 20px; }
  .county-cols { columns: 1; }
  .pair { grid-template-columns: 1fr; }
  .pair img { aspect-ratio: 3 / 2; }
  .contact-rows { margin-top: 56px; padding-bottom: 0; }
  .menu { grid-template-columns: 1fr; }
  .pricing-left figure { position: static; }
  .pricing-left img { width: 60%; }
  .menu-group:first-child { margin-top: 40px; }
  .pane { display: none; }
  .a-inline { display: block; padding: 4px 0 12px 22px; line-height: 1.5; }
  .a-inline[hidden] { display: none; }
  .snapshot { padding-top: 112px; padding-bottom: 96px; }
  .field { height: 60px; }
  .submit { bottom: 8px; }
  .contact-rows div { grid-template-columns: 1fr; gap: 2px; }
  .credits { margin-top: 20svh; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 0 20px 24px; }
  .foot-links { flex-wrap: wrap; gap: 8px 20px; }
  .foot-end { justify-self: start; }
}
