/* ==========================================================================
   SOIL & SLAB — design system v1.0
   "Blackland & Limestone": a calm structural advisor standing on local ground.
   Light-mode only by design (see spec §B). Drop-in: tokens → base → components.
   Fonts (self-host for CWV; Google link shown for prototyping):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Serif:ital,wght@0,500;0,600;1,500&display=swap" rel="stylesheet">
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Ground — Austin Chalk limestone. Warm, quiet, never clinical white. */
  --paper:        #f4f1ea;  /* page background */
  --paper-2:      #e9e4d8;  /* alternate section band */
  --card:         #fbfaf6;  /* raised surfaces: cards, form, ledger */
  --line:         #d8d1c3;  /* hairlines, card borders, dividers */
  --line-strong:  #8a8272;  /* form-control borders (3:1 on paper) */

  /* Ink — Blackland Prairie clay is literally near-black. Text + the "ground" bands. */
  --ink:          #1c211f;  /* headings, body text, footer & sticky-bar ground */
  --ink-2:        #3b4340;  /* secondary text, ledes */
  --muted:        #5f6762;  /* captions, meta, footnotes (AA on paper) */
  --on-ink:       #f4f1ea;  /* text on ink */
  --on-ink-muted: #a9b0ab;  /* secondary text on ink */

  /* Slab — poured concrete. Illustration + decoration only, never text. */
  --slab:         #c9c5bb;
  --slab-deep:    #8f8b82;

  /* Action — Bluestem: deep blue-green of the native prairie grass + blueprint ink. */
  --bluestem:      #28525a;  /* primary buttons, links */
  --bluestem-deep: #1b3c43;  /* hover/active */
  --bluestem-tint: #e3ecec;  /* info surfaces, selected states */

  /* Accent — Clay: oxidized Hill Country red earth. The "&". Use sparingly. */
  --clay:         #9a4a26;  /* ampersand, eyebrow, focus ring, figure callouts */
  --clay-tint:    #f3e4d8;  /* selection, soft highlight */
  --clay-light:   #e0a27d;  /* clay used ON ink only */

  /* Semantic */
  --ochre:        #7d5a12;  /* warn text/icon — "worth a look", never alarm */
  --ochre-tint:   #f5ead0;
  --sage:         #3d6647;  /* ok / confirmed / "what we do" */
  --sage-tint:    #e4ece3;
  --brick:        #a2382a;  /* form validation errors ONLY */
  --brick-tint:   #f6e1dc;
  --focus:        #9a4a26;

  /* Type */
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-display: clamp(2.375rem, 1.55rem + 3.3vw, 4rem);
  --fs-h1:      clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-h2:      clamp(1.75rem, 1.45rem + 1.25vw, 2.5rem);
  --fs-h3:      1.3125rem;
  --fs-lede:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body:    1.0625rem;   /* 17px — audience skews 40–65 */
  --fs-small:   0.9375rem;
  --fs-micro:   0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Space — 4px base */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --section-y: clamp(64px, 9vw, 120px);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --measure: 66ch;

  /* Radius — engineered, not bubbly. No pills. */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Elevation — borders carry structure; shadows are rare and warm. */
  --shadow-raise: 0 1px 2px rgba(28, 33, 31, .06), 0 8px 24px -12px rgba(28, 33, 31, .18);
  --shadow-bar:   0 -6px 20px -8px rgba(28, 33, 31, .35);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 160ms;
}

/* ---------- 2. BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; overflow: hidden; vertical-align: middle; }
.figure > svg { display: block; width: 100%; height: auto; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); color: var(--ink); text-wrap: balance; }
h1, h2, .display { font-family: var(--font-serif); font-weight: 500; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.018em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.012em; }
h3 { font: 600 var(--fs-h3)/1.3 var(--font-sans); letter-spacing: -0.005em; }
p  { margin: 0 0 var(--space-4); text-wrap: pretty; }
a  { color: var(--bluestem); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--dur) var(--ease); }
a:hover { color: var(--bluestem-deep); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
::selection { background: var(--clay-tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.022em; }
.h1 { font: 500 var(--fs-h1)/1.06 var(--font-serif); letter-spacing: -0.018em; }
.h2 { font: 500 var(--fs-h2)/1.12 var(--font-serif); letter-spacing: -0.012em; }
.h3 { font: 600 var(--fs-h3)/1.3 var(--font-sans); }
.lede  { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.micro { font-size: var(--fs-micro); line-height: 1.45; color: var(--muted); }
.eyebrow {
  font: 500 var(--fs-eyebrow)/1.3 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay);
  margin: 0 0 var(--space-4); display: block;
}
.num, .tel { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure   { max-width: var(--measure); }
.section   { padding-block: var(--section-y); }
.section--alt  { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--on-ink); }
.section--ink .eyebrow { color: var(--clay-light); }
.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.split { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-8); } }

/* ---------- 3. SIGNATURE MOTIFS ----------------------------------------- */
/* Level rule — a surveyor's tick line. Use as a section divider, not decoration everywhere. */
.level-rule {
  height: 12px; border: 0; margin: 0;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 24px) 0 100% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 120px) 0 100% / 100% 12px no-repeat;
  opacity: .7;
}
/* Strata band — slab over clay over limestone. Max once per page (hero base or footer top). */
.strata { display: grid; grid-template-rows: 10px 4px 6px 3px 14px; }
.strata > i:nth-child(1) { background: var(--slab); }
.strata > i:nth-child(2) { background: var(--paper); }
.strata > i:nth-child(3) { background: var(--ink); }
.strata > i:nth-child(4) { background: var(--paper); }
.strata > i:nth-child(5) { background: var(--clay); opacity: .85; }

/* Figure (engineering-drawing frame) */
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.figure figcaption { display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--line); margin-top: var(--space-4); padding-top: var(--space-3); font: 500 var(--fs-micro)/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.fig-slab   { fill: var(--slab); stroke: var(--slab-deep); stroke-width: 1; }
.fig-house  { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.fig-clay   { fill: #d9c3ae; }
.fig-clay-2 { fill: #c9ad93; }
.fig-rock   { fill: #e7e1d3; }
.fig-line   { fill: none; stroke: var(--clay); stroke-width: 1.25; stroke-dasharray: 4 4; }
.fig-lead   { fill: none; stroke: var(--ink-2); stroke-width: .75; }
.fig-dot    { fill: var(--clay); }
.fig-label  { font: 500 12px var(--font-mono); letter-spacing: .06em; fill: var(--ink-2); text-transform: uppercase; }
.fig-label--clay { fill: var(--clay); }
.fig-ground { fill: none; stroke: var(--ink); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fig-swell { animation: swell 7s var(--ease) infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes swell { from { transform: scaleY(1); } to { transform: scaleY(1.06); } }
}

/* ---------- 4. BRAND MARK ----------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 28px !important; height: 28px !important; max-width: 28px; flex: none; }
.brand__mark .m-slab { fill: var(--ink); }
.brand__mark .m-soil { fill: var(--clay); }
.brand__word { font: 600 1.25rem/1 var(--font-serif); letter-spacing: -0.01em; white-space: nowrap; }
.brand__word em { font-style: italic; font-weight: 500; color: var(--clay); padding: 0 .04em; }
.section--ink .brand, .site-footer .brand { color: var(--on-ink); }
.section--ink .brand__mark .m-slab, .site-footer .brand__mark .m-slab { fill: var(--on-ink); }
.section--ink .brand__word em, .site-footer .brand__word em { color: var(--clay-light); }

/* ---------- 5. BUTTONS -------------------------------------------------- */
.btn {
  --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  border-radius: var(--radius-md);
  font: 600 1rem/1 var(--font-sans); letter-spacing: .005em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px !important; height: 18px !important; max-width: 18px; flex: none; }
.btn--primary   { --_bg: var(--bluestem); --_fg: var(--on-ink); --_bd: var(--bluestem); }
.btn--primary:hover   { --_bg: var(--bluestem-deep); --_bd: var(--bluestem-deep); color: var(--on-ink); }
.btn--secondary { --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink); }
.btn--secondary:hover { --_bg: var(--ink); --_fg: var(--on-ink); color: var(--on-ink); }
.btn--secondary .tel { font-size: .95em; }
.btn--light     { --_bg: var(--on-ink); --_fg: var(--ink); --_bd: var(--on-ink); }
.btn--light:hover { --_bg: #ffffff; --_bd: #ffffff; color: var(--ink); }
.btn--ghost-light { --_bg: transparent; --_fg: var(--on-ink); --_bd: rgba(244, 241, 234, .45); }
.btn--ghost-light:hover { --_bd: var(--on-ink); color: var(--on-ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- 6. HEADER --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 241, 234, .92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 68px; }
.site-nav { display: none; gap: var(--space-5); }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.site-header__cta { display: flex; align-items: center; gap: var(--space-4); }
.site-header__tel { display: none; color: var(--ink); text-decoration: none; font-size: .9375rem; }
@media (min-width: 980px) { .site-nav, .site-header__tel { display: flex; } }

/* ---------- 7. HERO ----------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } }
.hero .lede { margin-bottom: var(--space-6); }
@media (max-width: 560px) { .hero .btn-row .btn { width: 100%; } }
.hero__note { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); max-width: 34rem; font-size: var(--fs-small); color: var(--ink-2); }
.hero__note b { font-weight: 600; color: var(--ink); }
.badge-independent {
  flex: none; font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 5px 6px 4px; margin-top: 2px;
}

/* ---------- 8. LEDGER — "who does what" disclosure as a feature --------- */
.ledger { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 820px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
.ledger__col { padding: var(--space-6) var(--space-5); border-top: 1px solid var(--line); }
.ledger__col:first-child { border-top: 0; }
@media (min-width: 820px) { .ledger__col { border-top: 0; border-left: 1px solid var(--line); } .ledger__col:first-child { border-left: 0; } }
.ledger__label { display: flex; align-items: center; gap: 8px; font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.ledger__label::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--_dot, var(--ink)); }
.ledger__col--site    { --_dot: var(--bluestem); }
.ledger__col--partner { --_dot: var(--sage); }
.ledger__col--not     { --_dot: var(--slab-deep); background: var(--paper); }
.ledger__col h3 { margin-bottom: var(--space-3); }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-small); color: var(--ink-2); }
.ledger li { position: relative; padding-left: 18px; }
.ledger li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--line-strong); }
.ledger__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); background: var(--paper); font-size: var(--fs-micro); color: var(--muted); }

/* ---------- 9. PARTNER SLOT — empty state as a published standard ------- */
.partner-slot { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-6); background: transparent; display: grid; gap: var(--space-5); }
@media (min-width: 820px) { .partner-slot { grid-template-columns: 1fr 1.2fr; gap: var(--space-7); padding: var(--space-7); } }
.partner-slot__status { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); background: var(--ochre-tint); border-radius: var(--radius-sm); padding: 7px 9px 6px; margin-bottom: var(--space-4); }
.partner-slot__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.partner-slot.is-assigned { border-style: solid; border-color: var(--line); background: var(--card); }
.partner-slot.is-assigned .partner-slot__status { color: var(--sage); background: var(--sage-tint); }
.partner-slot.is-assigned .partner-slot__status::before { background: currentColor; }
.criteria { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.criteria li { display: grid; grid-template-columns: 22px 1fr auto; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.criteria li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 3px; transform: translateY(2px); }
.criteria li.is-met::before { background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--sage); }
.criteria small { font: 500 var(--fs-micro)/1 var(--font-mono); color: var(--muted); }

/* ---------- 10. CALLOUTS — limits, signs, info (never alarm) ------------ */
.callout { --_c: var(--bluestem); --_t: var(--bluestem-tint); display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-4); padding: var(--space-5); background: var(--_t); border-radius: var(--radius-md); font-size: var(--fs-small); color: var(--ink); }
.callout__icon { width: 22px !important; height: 22px !important; max-width: 22px; color: var(--_c); margin-top: 1px; flex: none; }
.callout__title { font-weight: 600; margin: 0 0 var(--space-1); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn  { --_c: var(--ochre); --_t: var(--ochre-tint); }
.callout--ok    { --_c: var(--sage);  --_t: var(--sage-tint); }
.callout--limit { --_c: var(--ink-2); --_t: transparent; border: 1px solid var(--line); background: var(--card); }

/* Limits list — "what this site will not do" */
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.limits li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.limits li > span:first-child { font: 500 var(--fs-micro)/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.limits b { display: block; font-weight: 600; margin-bottom: 2px; }
.limits p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }

/* Limits on an ink band */
.section--ink p { color: var(--on-ink-muted); }
.section--ink .limits, .section--ink .limits li { border-color: rgba(244, 241, 234, .14); }
.section--ink .limits li > span:first-child { color: var(--clay-light); }
.section--ink .limits b { color: var(--on-ink); }

/* ---------- 11. CARDS / SIGNS ------------------------------------------ */
.card-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-raise); }
.card__k { display: block; font: 500 var(--fs-micro)/1 var(--font-mono); color: var(--clay); letter-spacing: .08em; margin-bottom: var(--space-4); }
.card h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }
.card p { font-size: var(--fs-small); color: var(--ink-2); margin: 0; }

/* ---------- 12. STEPS --------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.steps li { counter-increment: step; padding-top: var(--space-5); border-top: 2px solid var(--ink); position: relative; }
.steps li::before { content: "0" counter(step); position: absolute; top: -14px; left: 0; background: var(--paper); padding-right: 10px; font: 500 var(--fs-micro)/28px var(--font-mono); color: var(--clay); letter-spacing: .08em; }
.section--alt .steps li::before { background: var(--paper-2); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }

/* ---------- 13. SOURCES / FOOTNOTES ------------------------------------ */
.source { font: 500 var(--fs-micro)/1.5 var(--font-mono); color: var(--muted); letter-spacing: .01em; }
.source a { color: var(--muted); }

/* ---------- 14. FAQ ----------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font: 600 1.0625rem/1.4 var(--font-sans); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; background: linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 var(--space-5); max-width: var(--measure); color: var(--ink-2); }

/* ---------- 15. FORM ---------------------------------------------------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-raise); }
.field { display: grid; gap: 6px; margin-bottom: var(--space-5); }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--ink); padding: 0; }
.field .hint { font-size: var(--fs-micro); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #8a8f8b; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bluestem); box-shadow: 0 0 0 3px var(--bluestem-tint); }
.input[aria-invalid="true"] { border-color: var(--brick); box-shadow: 0 0 0 3px var(--brick-tint); }
.field .error { font-size: var(--fs-micro); color: var(--brick); font-weight: 500; }
.input--zip { max-width: 10rem; font-family: var(--font-mono); letter-spacing: .06em; }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: #fff; font-size: .9375rem; cursor: pointer; transition: all var(--dur) var(--ease); }
.choice input:checked + span { border-color: var(--bluestem); background: var(--bluestem-tint); color: var(--bluestem-deep); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset.field { border: 0; margin: 0 0 var(--space-5); padding: 0; min-width: 0; }

/* ---------- 16. FOOTER -------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: var(--space-8) 0 calc(var(--space-7) + 72px); font-size: var(--fs-small); }
@media (min-width: 980px) { .site-footer { padding-bottom: var(--space-7); } }
.site-footer a { color: var(--on-ink); text-decoration-color: rgba(244, 241, 234, .35); }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__disclosure { color: var(--on-ink); max-width: 34rem; margin-top: var(--space-4); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(244, 241, 234, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-micro); }
.site-footer .eyebrow { color: var(--clay-light); }

/* ---------- 17. STICKY MOBILE CTA -------------------------------------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--space-2); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: var(--shadow-bar); }
.sticky-cta .btn { min-height: 48px; padding: 0 12px; font-size: .9375rem; }
@media (min-width: 980px) { .sticky-cta { display: none; } }

/* ---------- 18. MOTION --------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: var(--space-4); }

/* ==========================================================================
   COMPATIBILITY ALIASES — old builder classes → Blackland & Limestone tokens
   Thin bridge so inner pages stay readable before full motif rewrite.
   Prefer emitting new BEM from build.mjs for shell + homepage.
   ========================================================================== */

/* Layout */
.wrap,
.wrap-wide {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 68px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--space-4);
}

/* Buttons (old modifier names) */
.btn.btn-primary,
.btn-primary {
  --_bg: var(--bluestem);
  --_fg: var(--on-ink);
  --_bd: var(--bluestem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_bd);
  border-radius: var(--radius-md);
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn.btn-primary:hover,
.btn-primary:hover {
  --_bg: var(--bluestem-deep);
  --_bd: var(--bluestem-deep);
  color: var(--on-ink);
  text-decoration: none;
}
.btn.btn-secondary,
.btn-secondary {
  --_bg: transparent;
  --_fg: var(--ink);
  --_bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_bd);
  border-radius: var(--radius-md);
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn.btn-secondary:hover,
.btn-secondary:hover {
  --_bg: var(--ink);
  --_fg: var(--on-ink);
  color: var(--on-ink);
  text-decoration: none;
}

/* Nav (legacy + mobile toggle for data-nav-toggle / data-nav) */
.nav {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-3) var(--gutter) var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav.open { display: flex; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .35em;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  font: 600 .875rem/1 var(--font-sans);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--ink); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; }
  /* When site-nav is used in header, hide legacy .nav if still present closed */
  .site-header > .nav:not(.open) { display: none; }
  .site-header > .nav.open {
    display: flex;
    border-top: 0;
    padding: 0;
    background: transparent;
  }
}

/* Mobile: show site-nav when toggled via .open on data-nav */
@media (max-width: 979px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-header { position: sticky; }
}

.header-call {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
}
.header-call:hover { color: var(--bluestem); text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.footer-nav a { color: var(--on-ink); }

.muted { color: var(--muted); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
/* R&R trust strip — only truthful facts */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  border-block: 1px solid var(--line);
  font: 500 var(--fs-micro)/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-strip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--bluestem);
  flex: none;
}
.trust-strip .trust-strip__note {
  flex: 1 1 100%;
  text-transform: none;
  letter-spacing: 0;
  font: 400 var(--fs-small)/1.45 var(--font-sans);
  color: var(--ink-2);
  margin-top: var(--space-1);
}
.trust-strip .trust-strip__note::before { display: none; }
.steps--4 { }
@media (min-width: 820px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

.trust-line {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.disclosure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  font-size: var(--fs-small);
  margin-bottom: var(--space-5);
}

/* Legacy form (inner pages still using .form / label>input) */
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-raise);
  display: grid;
  gap: var(--space-4);
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--bluestem);
  box-shadow: 0 0 0 3px var(--bluestem-tint);
}
.row-2 {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}
.grid-2 {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.list-clean {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.list-clean li {
  position: relative;
  padding-left: 18px;
}
.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1.5px;
  background: var(--line-strong);
}
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  margin: var(--space-4) 0 var(--space-6);
}
.table-simple th,
.table-simple td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-simple th {
  font: 500 var(--fs-micro)/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}
.breadcrumbs {
  font-size: var(--fs-micro);
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.breadcrumbs a { color: var(--muted); }
.hint {
  font-size: var(--fs-micro);
  color: var(--muted);
  font-weight: 400;
}

/* Inner-page callout without new modifiers still readable */
.callout:not([class*="callout--"]) {
  --_c: var(--bluestem);
  --_t: var(--bluestem-tint);
}
