/* ─────────────────────────────────────────────
   CivicByte — minimal design system
   cream paper · near-black ink · night-sky hero
   light serif display · quiet hairlines · motion
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: hidden; max-width: 100vw; }

:root {
  --paper:      #F7F3EC;
  --card:       #FFFFFF;
  --paper-2:    #EFEAE0;
  --ink:        #141311;
  --ink-2:      #544F46;
  --mute:       #8A8375;
  --faint:      #B0A99B;
  --rule:       rgba(20,19,17,0.14);
  --rule-2:     rgba(20,19,17,0.28);
  --hairline:   rgba(20,19,17,0.08);
  --ember:      #A6431F;
  --ember-soft: rgba(166,67,31,0.10);
  --night:      #0B0E14;

  --serif: 'Newsreader', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', ui-sans-serif, system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(24px, 4vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.topnav.on-dark :focus-visible,
.home-hero :focus-visible { outline-color: #fff; }

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Entry keyframes ─────────────────────── */
@keyframes cb-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Variant for elements centered with translateX(-50%) — a plain
   cb-rise would overwrite the centering transform when it fills. */
@keyframes cb-rise-center {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* Display type settles into its final tracking as it fades up. */
@keyframes cb-title-in {
  from { opacity: 0; transform: translateY(26px); letter-spacing: 0.09em; }
  to   { opacity: 1; transform: translateY(0);   letter-spacing: 0.03em; }
}
@keyframes cb-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}
@keyframes cb-dd-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Top nav (all pages) ─────────────────── */
.topnav {
  padding: 24px 0;
}
.tn-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.tn-links {
  display: flex;
  gap: 28px;
  min-width: 0;
}
.tn-r { justify-content: flex-end; }
.tn-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s;
  white-space: nowrap;
}
.tn-links a:hover { border-bottom-color: var(--ink); }
.tn-links a.is-active { border-bottom-color: var(--ink); }
.tn-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
/* Dark variant — overlaid on the night hero */
.topnav.on-dark .tn-links a,
.topnav.on-dark .tn-mark { color: #FFFFFF; }
.topnav.on-dark .tn-links a:hover,
.topnav.on-dark .tn-links a.is-active { border-bottom-color: #FFFFFF; }

/* ── Kickers / datelines ─────────────────── */
.dateline,
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.dateline .sep { color: var(--rule-2); }

/* ── Inner-page hero (centered, quiet) ───── */
.hero {
  padding: clamp(52px, 9vh, 96px) 0 clamp(36px, 6vh, 60px);
  text-align: center;
}
.hero .dateline { justify-content: center; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 22px auto 0;
  max-width: 22ch;
  text-wrap: balance;
  animation: cb-rise .9s var(--ease) both;
}
.hero.compact h1 { font-size: clamp(34px, 4.4vw, 58px); }
.hero h1 .em { font-style: italic; font-weight: 300; color: inherit; }
.hero .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 20px auto 0;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero .actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── CTA link (tracked uppercase underline) ─ */
.cta-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: opacity .2s, gap .2s var(--ease);
}
.cta-link:hover { opacity: 0.55; gap: 14px; }
.cta-link.muted { color: var(--mute); border-bottom-color: var(--rule-2); }
.cta-link.muted:hover { opacity: 1; color: var(--ink); border-bottom-color: var(--ink); }
.cta-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── Sections ────────────────────────────── */
.section {
  margin-top: clamp(56px, 9vh, 96px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  margin: 10px 0 0;
  max-width: 26ch;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; font-weight: 300; }
.section-head .meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.section-head .meta b { color: var(--ink); font-weight: 600; }

/* ── Numbered index list ─────────────────── */
.ilist { list-style: none; margin: 0; padding: 0; }
.ilist li a {
  display: grid;
  grid-template-columns: 52px 1.1fr 1.6fr 150px 32px;
  gap: 32px;
  padding: 30px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background .2s;
}
.ilist li a:hover { background: var(--card); }
.ilist li a:hover .iarr { transform: translateX(5px); }
.ilist .inum {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.ilist .ititle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}
.ilist .idesc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 52ch;
}
.ilist .imeta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}
.ilist .imeta .st {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
}
.ilist .imeta .st::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
  transform: translateY(-1px);
}
.ilist .imeta .records {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--faint);
  font-feature-settings: "tnum" 1;
}
.ilist .imeta .dev { color: var(--mute); }
.ilist .imeta .dev::before { background: var(--rule-2); }
.ilist .iarr {
  font-size: 16px;
  color: var(--ink-2);
  text-align: right;
  transition: transform .25s var(--ease);
}

/* ── Prose / longform ────────────────────── */
.prose { max-width: 62ch; }
.prose p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.prose p.lead {
  font-weight: 300;
  font-size: 27px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 32px;
}
.prose p.lead.drop::first-letter {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 74px;
  line-height: 0.83;
  float: left;
  margin: 9px 14px 0 -2px;
  color: var(--ink);
}
.prose p strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid var(--ember-soft);
}
.prose blockquote {
  margin: 34px 0;
  padding: 0 0 0 26px;
  border-left: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}
.prose .cite {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.prose .cite::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--ink);
}

.byline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 2;
}
.byline b { color: var(--ink); font-weight: 600; letter-spacing: 0.14em; }
.byline .accent { color: var(--ink-2); }
.byline .sec { margin-top: 18px; }

.article-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-top: 32px;
}

/* ── Data tables ─────────────────────────── */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.tbl th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: left;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--rule-2);
}
.tbl td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  color: var(--ink);
}
.tbl td.date,
.tbl td.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: uppercase;
  white-space: nowrap;
}
.tbl td.serif {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.4;
}
.tbl td.num {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  text-align: right;
  white-space: nowrap;
}
.tbl td.right { text-align: right; }
.tbl .sev {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tbl .sev.c { color: var(--ember); }

/* ── Key/value stat block ────────────────── */
.keystat {
  border-top: 1px solid var(--rule);
  padding: 22px 0 20px;
}
.keystat.last { border-bottom: 1px solid var(--rule); }
.keystat .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}
.keystat .n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.keystat .n.ember { color: var(--ember); }
.keystat .n.small {
  font-size: 21px;
  font-family: var(--sans);
  font-weight: 500;
}
.keystat .breakdown {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.keystat .breakdown b {
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: "tnum" 1;
}
.keystat .sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin-top: 10px;
}

/* ── End slug (closing CTA, centered) ────── */
.endslug {
  margin-top: clamp(56px, 9vh, 96px);
  padding: clamp(44px, 7vh, 72px) 0 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.endslug p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.3;
  margin: 0 auto 28px;
  max-width: 34ch;
  text-wrap: balance;
}
.endslug p em { font-style: italic; }
.endslug .actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Lookup form (tool pages) ────────────── */
.lookup {
  margin: 44px auto 0;
  max-width: 660px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "input submit";
  gap: 8px 28px;
  align-items: end;
  text-align: left;
}
.lookup .label {
  grid-area: label;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.lookup .input {
  grid-area: input;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--rule-2);
  background: transparent;
  width: 100%;
  padding: 8px 0 12px;
  outline: none;
  border-radius: 0;
  transition: border-color .2s;
}
.lookup .input:focus { border-bottom-color: var(--ink); }
.lookup .input::placeholder { color: var(--faint); }
.lookup .submit {
  grid-area: submit;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 15px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.lookup .submit:hover { opacity: 0.85; }
.lookup .submit .arr { display: none; }

/* ── Tool readout ────────────────────────── */
.readout-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  padding-top: 32px;
}
.address-block .alabel {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}
.address-block .address {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 28px;
}
.address-block .address .borough {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 8px;
}
.readout-foot {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.readout-foot .source {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.readout-foot .source b { color: var(--ink); font-weight: 600; }

/* ── Footer (single quiet strip) ─────────── */
.site-foot {
  margin-top: clamp(64px, 10vh, 110px);
  border-top: 1px solid var(--rule);
}
.site-foot .sf-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.sf-mark {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.sf-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.sf-links a {
  font-size: 13px;
  color: var(--mute);
  transition: color .2s;
}
.sf-links a:hover { color: var(--ink); }
.sf-note {
  font-size: 12.5px;
  color: var(--faint);
}
/* Footer nested inside a .page container (inner pages) */
.page .site-foot .sf-inner { padding-left: 0; padding-right: 0; }

/* "Try:" suggestion line under tool lookups */
.hero .suggest { max-width: 660px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════
   HOME — night hero + tools
   ════════════════════════════════════════════ */
.home-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(122,90,52,0.28) 0%, rgba(122,90,52,0) 60%),
    linear-gradient(180deg, #0A0D13 0%, #0B0E14 55%, #0D1018 100%);
  display: flex;
  flex-direction: column;
}
.hh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
}
.hh-center, .hh-search { will-change: transform, opacity; }
.hh-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,14,20,0.55) 0%,
    rgba(11,14,20,0) 28%,
    rgba(11,14,20,0) 60%,
    rgba(11,14,20,0.6) 100%);
  pointer-events: none;
}
.home-hero .topnav {
  position: relative;
  z-index: 3;
  padding: 26px var(--gutter);
  animation: cb-rise 1s var(--ease) both;
}
.home-hero .tn-inner { max-width: none; }

.hh-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  animation: cb-rise 1.3s var(--ease) .35s both;
}
.hh-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 22px;
}
.hh-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(11,14,20,0.6);
  animation: cb-title-in 1.5s var(--ease) .45s both;
}
.hh-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  margin: 22px 0 0;
  max-width: 46ch;
}

.hh-search {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 24px clamp(78px, 11vh, 110px);
  animation: cb-rise 1.3s var(--ease) .6s both;
}
.hh-search .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 40px);
  width: min(720px, 100%);
}
.hh-field { flex: 1; min-width: 240px; text-align: left; }
.hh-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.hh-field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16.5px;
  color: #FFFFFF;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  border-radius: 0;
  outline: none;
  padding: 8px 0 12px;
  transition: border-color .2s;
}
.hh-field input:focus { border-bottom-color: #FFFFFF; }
.hh-field input::placeholder { color: rgba(255,255,255,0.6); opacity: 1; }
.hh-search button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: none;
  padding: 16px 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hh-search button:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.55);
}

.hh-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.85);
  animation: cb-rise-center 1.3s var(--ease) 1s both;
}
.hh-cue .cue-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hh-cue .cue-arrow {
  display: inline-block;
  font-size: 17px;
  animation: cb-bounce 2s ease-in-out infinite;
}

/* Home tools section */
.home-tools {
  text-align: center;
  padding-top: clamp(72px, 11vh, 120px);
}
.home-tools .kicker { justify-content: center; margin-bottom: 18px; }
.ht-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  margin: 0 auto 52px;
  max-width: 24ch;
  text-wrap: balance;
}
.ht-title em { font-style: italic; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--rule);
  position: relative;
}
/* When JS is present, the grid's top rule draws itself in on reveal
   (the grid container itself doesn't translate — only its cards do). */
html.cb-js .tool-grid[data-reveal] {
  opacity: 1;
  transform: none;
  border-top-color: transparent;
}
html.cb-js .tool-grid[data-reveal]::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease);
}
html.cb-js .tool-grid[data-reveal].in::before { transform: scaleX(1); }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 18px 30px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background .25s, transform .35s var(--ease);
}
.tool-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width .35s var(--ease);
}
.tool-card:hover { background: var(--card); transform: translateY(-3px); }
.tool-card:hover::after { width: 30px; }
.tool-card .tc-i {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 4px;
}
.tool-card .tc-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
}
.tool-card .tc-q {
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.tool-card .tc-n {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
  font-feature-settings: "tnum" 1;
}

.founder-note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.9vw, 24px);
  color: var(--ink-2);
  margin: 56px auto 0;
  max-width: 42ch;
  line-height: 1.55;
}
.home-tools .cta-link { margin-top: 28px; }

/* ── Reveal-on-scroll (activated by cb-fx) ─ */
html.cb-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.cb-js [data-reveal].in { opacity: 1; transform: translateY(0); }
html.cb-js [data-reveal][data-d="2"] { transition-delay: .07s; }
html.cb-js [data-reveal][data-d="3"] { transition-delay: .14s; }
html.cb-js [data-reveal][data-d="4"] { transition-delay: .21s; }
html.cb-js [data-reveal][data-d="5"] { transition-delay: .28s; }
html.cb-js [data-reveal][data-d="6"] { transition-delay: .35s; }

/* Founder note settles from a soft blur into focus. */
html.cb-js .founder-note[data-reveal] {
  filter: blur(7px);
  transition: opacity 1s var(--ease), transform 1s var(--ease),
              filter 1.1s var(--ease);
}
html.cb-js .founder-note[data-reveal].in { filter: blur(0); }

/* ── Address autocomplete (/address-ac.js) ─ */
.cb-ac-dd {
  position: fixed; list-style: none; margin: 0; padding: 0;
  background: var(--paper); border: 1px solid var(--ink); z-index: 1000;
  max-height: 320px; overflow-y: auto; display: none;
  box-shadow: 0 12px 32px -12px rgba(20,19,17,0.25);
}
.cb-ac-dd.open { display: block; animation: cb-dd-in .22s var(--ease) both; }
.cb-ac-item {
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
}
.cb-ac-item:last-child { border-bottom: none; }
.cb-ac-item:hover, .cb-ac-item.active { background: var(--paper-2); }
.cb-ac-main { font-size: 14px; color: var(--ink); }
.cb-ac-sub { font-size: 11px; color: var(--mute); letter-spacing: 0.06em; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 880px) {
  .article-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .readout-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .ilist li a { grid-template-columns: 36px 1fr; gap: 14px 16px; }
  .ilist .idesc, .ilist .imeta, .ilist .iarr { grid-column: 2; text-align: left; }
  .ilist .imeta { margin-top: 2px; }
  .ilist .iarr { display: none; }
}

@media (max-width: 640px) {
  .tn-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
  }
  .tn-mark { order: -1; width: 100%; font-size: 20px; }
  .tn-links { gap: 22px; }
  .tn-links a { font-size: 12.5px; }

  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero.compact h1 { font-size: clamp(28px, 8vw, 40px); }
  .dateline { gap: 0 8px; row-gap: 2px; }
  .dateline .sep { display: none; }

  .lookup {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "input" "submit";
    gap: 8px;
  }
  .lookup .submit { margin-top: 14px; padding: 15px 20px; }

  .hh-search .wrap { gap: 14px; }
  .hh-search button { width: 100%; padding: 15px 20px; }
  .hh-cue { display: none; }

  .prose p { font-size: 17px; }
  .prose p.lead { font-size: 22px; }
  .prose p.lead.drop::first-letter { font-size: 58px; }
  .prose blockquote { font-size: 19px; padding-left: 18px; }

  .keystat .n { font-size: 44px; }
  .keystat .breakdown { grid-template-columns: repeat(2, auto); gap: 12px; }
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .endslug .actions { gap: 18px; }
  .site-foot .sf-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.cb-js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Print — always show revealed content */
@media print {
  html.cb-js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ── Skip link ───────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 0; }
