/* =====================================================================
   Black Hills Web Foundry
   Layout concept: a contour map. Dark pine "stages" (hero, proof, local,
   call to action) alternate with light granite sheets. Corners are sharp
   (3px); organic shapes only appear as artwork (contours, ridges, the mark).
   Edit colors and fonts in the :root block below.
   ===================================================================== */
:root {
  /* Color: pine, granite stone, one ember accent */
  --ink: #0c1a17;
  --pine-950: #071d19;
  --pine-900: #0c2b25;
  --pine-800: #123a32;
  --pine-700: #1b4f43;
  --sage-300: #8fc2ae;
  --sage-200: #bcd8cb;
  --stone-50: #f6f7f4;
  --stone-100: #eceeea;
  --stone-200: #dfe3dd;
  --stone-300: #c6cdc5;
  --stone-600: #54615a;
  --ember-300: #ffc592;
  --ember-500: #f08a3c;
  --ember-600: #d9722a;
  --ember-700: #a84a0f;

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r: 3px;
  --header-h: 4.25rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--stone-100);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ember-500); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember-300); color: var(--ink); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ember-500); color: var(--ink); padding: .7rem 1rem; font-weight: 600; text-decoration: none; border-radius: var(--r); }
.skip:focus { top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--dark { background: var(--pine-900); color: var(--stone-50); position: relative; isolation: isolate; }
.section--stone { background: var(--stone-50); }
.section--after-hero { padding-top: clamp(2.5rem, 5vw, 4rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.sec-head { display: grid; gap: 1.1rem; max-width: 46rem; }
.sec-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.sec-head.split .eyebrow { grid-column: 1 / -1; }
.sec-head.split .lede { padding-bottom: .35rem; }
.sec-head h2, .h2 { font-size: clamp(2.05rem, 3.4vw + .7rem, 3.6rem); line-height: 1.02; }
.lede { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); line-height: 1.5; color: var(--stone-600); max-width: 38rem; }
.section--dark .lede, .on-dark .lede { color: var(--sage-200); }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 500 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember-700); }
.eyebrow::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; flex: none; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--ember-300); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: 600 1rem/1 var(--font-display); letter-spacing: -.005em; padding: 1rem 1.5rem; border-radius: var(--r); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ember-500); color: var(--ink); }
.btn--primary:hover { background: #ff9d57; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(188, 216, 203, .45); color: var(--stone-50); background: transparent; }
.btn--ghost:hover { border-color: var(--sage-200); background: rgba(188, 216, 203, .08); }
.btn--ink { border-color: rgba(12, 26, 23, .35); color: var(--ink); background: transparent; }
.btn--ink:hover { border-color: var(--ink); background: rgba(12, 26, 23, .05); }
.btn--sm { padding: .72rem 1.05rem; font-size: .95rem; }
.textlink { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: currentColor; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(7, 29, 25, .9); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid rgba(143, 194, 174, .16); color: var(--stone-50); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--stone-50); margin-right: auto; }
.brand .mark { width: 2.15rem; height: 2.15rem; color: var(--sage-300); flex: none; }
.brand-text { font: 700 1.06rem/1.05 var(--font-display); letter-spacing: -.02em; display: grid; }
.brand-text span:last-child { color: var(--sage-200); font-weight: 500; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list a { display: block; padding: .55rem .8rem; text-decoration: none; font: 500 .95rem/1 var(--font-body); color: var(--sage-200); border-radius: var(--r); transition: color .15s ease, background-color .15s ease; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--stone-50); background: rgba(188, 216, 203, .1); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(188, 216, 203, .35); border-radius: var(--r); background: transparent; color: var(--stone-50); cursor: pointer; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.header-cta { margin-left: .25rem; }

@media (max-width: 62rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--pine-950); border-bottom: 1px solid rgba(143, 194, 174, .16); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .js .site-nav.open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav-list a { padding: 1rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(143, 194, 174, .12); border-radius: 0; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: .6rem; }
  .no-js .nav-list { flex-wrap: wrap; }
}
@media (max-width: 34rem) {
  .site-header .wrap { gap: .6rem; }
  .brand { gap: .5rem; }
  .brand-text span { white-space: nowrap; }
  .brand-text { font-size: .98rem; }
  .header-cta { min-height: 2.75rem; padding: .7rem .85rem; font-size: .9rem; }
  .header-cta .long { display: none; }
}
@media (max-width: 23rem) { .header-cta { display: none; } }
@media (min-width: 34.01rem) { .header-cta .short { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7.5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/contours-dark.svg") 62% 50% / auto 150% no-repeat; -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 58%); mask-image: linear-gradient(100deg, transparent 10%, #000 58%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 75% 62%, rgba(240, 138, 60, .14), transparent 24%); pointer-events: none; }
.hero-grid { display: grid; gap: 2.25rem; max-width: 52rem; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw + .4rem, 5.6rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--ember-300); }
.hero .lede { font-size: clamp(1.15rem, .8vw + 1rem, 1.45rem); max-width: 36rem; }
.hero-aside { display: grid; gap: .9rem; }
.urlform { display: flex; gap: .5rem; max-width: 36rem; padding: .4rem; background: rgba(246, 247, 244, .07); border: 1px solid rgba(143, 194, 174, .4); border-radius: 6px; transition: border-color .15s ease, background-color .15s ease; }
.urlform:focus-within { border-color: var(--ember-500); background: rgba(246, 247, 244, .1); }
.urlform input { flex: 1; min-width: 0; padding: .8rem .9rem; background: transparent; border: 0; color: var(--stone-50); font: 500 1.05rem/1.2 var(--font-body); }
.urlform input::placeholder { color: rgba(188, 216, 203, .7); }
.urlform input:focus { outline: none; }
.urlform .btn { padding-inline: 1.2rem; }
.hero-note { color: var(--sage-200); font-size: .98rem; }
.hero-note a { color: var(--stone-50); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: .5rem; font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sage-300); }
.hero-facts li { display: flex; gap: .55rem; align-items: center; }
.hero-facts li::before { content: ""; width: .35rem; height: .35rem; background: var(--ember-500); border-radius: 50%; }
@media (max-width: 34rem) {
  .urlform { flex-direction: column; padding: .5rem; }
  .urlform input { padding: .9rem; }
  .urlform .btn { width: 100%; }
}

/* ---------- before / after ---------- */
.proof { padding-top: 0; }
.proof-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.25rem; }
.proof-head .sec-head { flex: 1 1 28rem; }
.proof-note { flex: 0 1 22rem; font: 400 .9rem/1.5 var(--font-body); color: var(--sage-200); padding-left: 1rem; border-left: 2px solid var(--ember-500); }
.compare { --pos: 42%; --scale: 1; position: relative; border-radius: 10px; overflow: hidden; background: var(--stone-50); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(143, 194, 174, .22); }
.chrome { display: flex; align-items: center; gap: .9rem; padding: .65rem .9rem; background: #e3e7e1; border-bottom: 1px solid var(--stone-300); }
.chrome .dots { display: flex; gap: .35rem; }
.chrome .dots i { width: .62rem; height: .62rem; border-radius: 50%; background: #b9c2ba; }
.chrome .url { flex: 1; min-width: 0; max-width: 26rem; margin-inline: auto; text-align: center; font: 500 .78rem/1 var(--font-mono); color: var(--stone-600); background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: 999px; padding: .42rem .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-wrap { --sw: 1100; --sh: 690; position: relative; height: calc(var(--sh) * var(--scale) * 1px); overflow: hidden; background: #fff; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
@media (max-width: 47.5rem) { .stage-wrap { --sw: 560; --sh: 800; } }
.stage { position: absolute; left: 0; top: 0; width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px); transform: scale(var(--scale)); transform-origin: 0 0; container: stage / inline-size; }
.pane { position: absolute; inset: 0; overflow: hidden; }
.pane--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; z-index: 3; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--ember-500); box-shadow: 0 0 0 1px rgba(7, 29, 25, .25); }
.cmp-knob { position: absolute; top: 50%; left: 0; width: 3.1rem; height: 3.1rem; margin: -1.55rem 0 0 -1.55rem; border-radius: 50%; background: var(--ember-500); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 4px rgba(240, 138, 60, .28); }
.cmp-knob svg { width: 1.6rem; height: 1.6rem; }
.cmp-chip { flex: none; font: 600 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: .5rem .65rem; border-radius: 2px; }
.cmp-chip--before { background: #3d3d3d; color: #fff; }
.cmp-chip--after { background: var(--pine-900); color: var(--ember-300); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 4; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid var(--ember-500); outline-offset: 4px; }
.cmp-caption { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1.1rem; color: var(--sage-200); font-size: .95rem; }
.cmp-caption span:first-child { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--sage-300); }
noscript .compare-fallback { color: var(--sage-200); }

/* the made-up "before" site */
.mo { position: absolute; inset: 0; background: #c9d4e0 repeating-linear-gradient(45deg, #c3cfdc 0 6px, #ced9e5 6px 12px); font: 13px/1.35 "Times New Roman", Times, serif; color: #000; overflow: hidden; }
.mo-page { width: 940px; margin: 16px auto 0; background: #fff; border: 3px ridge #8a8a8a; }
.mo-banner { background: linear-gradient(#25479a, #0b2266); color: #ffff66; text-align: center; padding: 14px 8px 10px; font: bold 34px/1.1 "Times New Roman", Times, serif; text-shadow: 3px 3px 0 #000; letter-spacing: 1px; }
.mo-banner small { display: block; font: italic 14px/1.3 "Times New Roman", serif; color: #fff; text-shadow: none; margin-top: 4px; letter-spacing: 0; }
.mo-nav { display: flex; justify-content: center; gap: 3px; padding: 5px; background: #d4d0c8; border-bottom: 2px groove #fff; }
.mo-nav span { border: 2px outset #fff; background: #d4d0c8; padding: 3px 11px; font: bold 11px Arial, Helvetica, sans-serif; color: #000; }
.mo-scroll { background: #000; color: #0f0; font: bold 12px "Courier New", monospace; padding: 3px 8px; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.mo-body { display: flex; }
.mo-side { width: 180px; flex: none; padding: 10px 10px 14px; background: #e6e6c6; border-right: 1px solid #999; font: 12px Verdana, Arial, sans-serif; }
.mo-side b { display: block; margin-bottom: 4px; font-size: 12px; }
.mo-side u { display: block; color: #00e; margin: 5px 0; }
.mo-side .vis { margin-top: 14px; background: #000; color: #0f0; font: bold 12px "Courier New", monospace; text-align: center; padding: 5px; }
.mo-side .ie { margin-top: 12px; font-size: 10px; color: #555; }
.mo-main { flex: 1; padding: 10px 18px 12px; min-width: 0; }
.mo-welcome { color: #c00; font: bold 25px/1.15 "Times New Roman", serif; text-align: center; margin: 2px 0 10px; }
.mo-main p { margin: 0 0 9px; font-size: 14px; }
.mo-main p u { color: #00e; }
.mo-row { display: flex; gap: 14px; align-items: flex-start; margin: 10px 0; }
.mo-img { width: 150px; height: 104px; flex: none; border: 2px inset #999; background: repeating-conic-gradient(#8b8b8b 0 25%, #b7b7b7 0 50%) 0 0 / 5px 5px; display: grid; place-items: center; color: #fff; font: bold 11px Arial, sans-serif; text-shadow: 1px 1px #000; }
.mo-row p { margin: 0; }
.mo-warn { border: 3px double #c00; color: #c00; text-align: center; font: bold 14px Arial, sans-serif; padding: 6px; margin-top: 8px; }
.mo-foot { border-top: 2px groove #fff; background: #d4d0c8; text-align: center; padding: 6px; font: 10px Verdana, Arial, sans-serif; color: #444; }
@container stage (max-width: 700px) {
  .mo-page { width: calc(100% - 28px); margin-top: 16px; }
  .mo-banner { font-size: 25px; }
  .mo-nav { flex-wrap: wrap; }
  .mo-side { display: none; }
  .mo-img { width: 120px; height: 90px; }
  .mo-main { padding: 10px 14px; }
  .mo-welcome { font-size: 22px; }
}

/* the made-up "after" site */
.mn { position: absolute; inset: 0; background: #fff; color: #10263a; font-family: var(--font-body); overflow: hidden; }
.mn-nav { display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 44px; border-bottom: 1px solid #e3e9ef; }
.mn-logo { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-display); letter-spacing: -.02em; margin-right: auto; color: #0b3a5b; }
.mn-logo i { width: 30px; height: 30px; border-radius: 8px; background: #0b3a5b; position: relative; flex: none; }
.mn-logo i::after { content: ""; position: absolute; left: 9px; top: 6px; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #ffb02e; }
.mn-links { display: flex; gap: 26px; font: 500 15px/1 var(--font-body); color: #3d566b; }
.mn-call { background: #0b3a5b; color: #fff; font: 600 15px/1 var(--font-body); padding: 13px 18px; border-radius: 8px; white-space: nowrap; }
.mn-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 48px 44px 40px; }
.mn-kicker { font: 600 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #1c6ea4; }
.mn-h { font: 700 58px/1 var(--font-display); letter-spacing: -.035em; margin: 16px 0 16px; color: #0b2a43; }
.mn-p { font-size: 20px; line-height: 1.45; color: #3d566b; max-width: 460px; }
.mn-btns { display: flex; gap: 12px; margin-top: 26px; }
.mn-btn { font: 600 16px/1 var(--font-body); padding: 16px 22px; border-radius: 8px; }
.mn-btn--a { background: #ffb02e; color: #2a1a00; }
.mn-btn--b { border: 1.5px solid #b9c9d6; color: #0b3a5b; }
.mn-art { position: relative; height: 300px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #0b3a5b, #1b76ad); }
.mn-art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.mn-badge { position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); font: 600 14px/1.25 var(--font-body); color: #0b2a43; }
.mn-badge b { display: block; font: 700 18px/1.2 var(--font-display); color: #0b3a5b; }
.mn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 44px; }
.mn-card { border: 1px solid #dfe7ee; border-radius: 14px; padding: 20px; background: #f6f9fc; }
.mn-card i { display: block; width: 38px; height: 38px; border-radius: 10px; background: #d9ebf7; margin-bottom: 14px; position: relative; }
.mn-card i::after { content: ""; position: absolute; inset: 10px; border-radius: 4px; background: #1c6ea4; }
.mn-card b { display: block; font: 700 19px/1.2 var(--font-display); color: #0b2a43; margin-bottom: 4px; }
.mn-card span { font-size: 15px; color: #496278; }
.mn-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 24px; padding: 18px 44px; background: #0b3a5b; color: #d4e6f3; font: 500 15px/1.2 var(--font-body); }
.mn-strip b { color: #ffb02e; font-weight: 600; }
@container stage (max-width: 700px) {
  .mn-nav { height: 60px; padding: 0 22px; }
  .mn-links { display: none; }
  .mn-hero { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px 22px; }
  .mn-h { font-size: 44px; margin: 12px 0; }
  .mn-p { font-size: 18px; }
  .mn-art { height: 190px; order: 2; }
  .mn-cards { grid-template-columns: 1fr; gap: 10px; padding: 0 22px; }
  .mn-card { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 12px 14px; align-items: center; }
  .mn-card i { grid-row: span 2; margin: 0; }
  .mn-card b { margin: 0; font-size: 17px; }
  .mn-card span { font-size: 14px; }
  .mn-strip { padding: 14px 22px; flex-direction: column; gap: 4px; }
}

/* ---------- problem ---------- */
.problem { background: var(--stone-100); position: relative; isolation: isolate; }
.problem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours-light.svg") 30% 40% / cover no-repeat; opacity: .9; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.sign { position: relative; display: grid; align-content: start; gap: .65rem; padding: 1.5rem 1.5rem 1.6rem; background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: var(--r); cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.sign:hover { border-color: var(--ink); transform: translateY(-2px); }
.sign input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sign:has(input:focus-visible) { outline: 3px solid var(--ember-500); outline-offset: 3px; }
.sign-top { display: flex; align-items: center; justify-content: space-between; }
.sign-icon { width: 2.4rem; height: 2.4rem; color: var(--pine-700); }
.sign-check { width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--stone-300); border-radius: 50%; display: grid; place-items: center; color: transparent; background: var(--stone-50); transition: all .15s ease; }
.sign-check svg { width: .95rem; height: .95rem; }
.sign h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.sign p { color: var(--stone-600); font-size: 1rem; line-height: 1.5; }
.sign:has(input:checked) { border-color: var(--ember-600); background: #fff; box-shadow: 0 0 0 1px var(--ember-600); }
.sign:has(input:checked) .sign-check { background: var(--ember-500); border-color: var(--ember-500); color: var(--ink); }
.sign:has(input:checked) .sign-icon { color: var(--ember-700); }
.signs-result { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; padding: 1.25rem 1.5rem; background: var(--pine-900); color: var(--stone-50); border-radius: var(--r); }
.signs-result p { flex: 1 1 18rem; font: 600 1.2rem/1.3 var(--font-display); letter-spacing: -.015em; }
.signs-result .btn[hidden] { display: none; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 3rem; }
.svc { grid-column: span 2; display: grid; align-content: start; gap: .8rem; padding: 1.75rem; background: var(--stone-100); border: 1px solid var(--stone-300); border-radius: var(--r); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.svc:hover { border-color: var(--ember-600); transform: translateY(-2px); }
.svc--lead { grid-column: span 4; background: var(--pine-900); color: var(--stone-50); border-color: var(--pine-900); position: relative; overflow: hidden; isolation: isolate; }
.svc--lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours-dark.svg") 43% 53% / auto 230% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 72%); mask-image: linear-gradient(90deg, transparent 28%, #000 72%); }
.svc--lead:hover { border-color: var(--ember-500); }
.svc-icon { width: 2.6rem; height: 2.6rem; color: var(--pine-700); }
.svc--lead .svc-icon { color: var(--ember-500); }
.svc h3 { font-size: 1.55rem; line-height: 1.1; }
.svc--lead h3 { font-size: clamp(1.8rem, 2.4vw + .6rem, 2.5rem); }
.svc p { color: var(--stone-600); max-width: 34rem; }
.svc--lead p { color: var(--sage-200); font-size: 1.12rem; }
.svc-more { margin-top: .3rem; display: inline-flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-display); color: var(--ember-700); }
.svc--lead .svc-more { color: var(--ember-300); }
.svc-more svg { width: 1em; height: 1em; transition: transform .15s ease; }
.svc:hover .svc-more svg { transform: translateX(4px); }
.review-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 1rem; padding: 1.75rem 2rem; border: 1px dashed var(--ink); border-radius: var(--r); }
.review-strip h3 { font-size: 1.5rem; line-height: 1.15; margin-bottom: .35rem; }
.review-strip p { color: var(--stone-600); max-width: 40rem; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3.25rem; position: relative; }
.step { position: relative; padding: 0 1.5rem 0 0; display: grid; align-content: start; gap: .7rem; }
.step::before { content: ""; position: absolute; top: 1.2rem; left: 2.8rem; right: .4rem; height: 1px; background: var(--stone-300); }
.step:last-child::before { display: none; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--stone-50); font: 500 .85rem/1 var(--font-mono); margin-bottom: .6rem; }
.step:last-child .step-n { background: var(--ember-500); color: var(--ink); }
.step h3 { font-size: 1.28rem; line-height: 1.12; letter-spacing: -.02em; }
.step p { color: var(--stone-600); font-size: 1rem; line-height: 1.5; }
.howto-foot { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.howto-foot p { color: var(--stone-600); max-width: 36rem; }

/* ---------- local ---------- */
.local { background: var(--pine-900); }
.local::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours-dark.svg") 10% 50% / auto 190% no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.local-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.local-copy { display: grid; gap: 1.4rem; }
.local-copy h2 { font-size: clamp(2.05rem, 3.4vw + .7rem, 3.6rem); line-height: 1.02; }
.local-copy > p { color: var(--sage-200); max-width: 38rem; font-size: 1.12rem; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin-top: .5rem; }
.needs li { display: flex; gap: .7rem; align-items: baseline; font-weight: 500; color: var(--stone-50); }
.needs svg { width: 1.05rem; height: 1.05rem; color: var(--ember-500); flex: none; transform: translateY(.18em); }
.local-note { font-size: .98rem; color: var(--sage-300); }
.local-note a { color: var(--stone-50); }
.mapcard { margin: 0; position: relative; background: var(--pine-950); border: 1px solid rgba(143, 194, 174, .25); border-radius: var(--r); padding: 1rem 1rem .75rem; max-width: 26rem; justify-self: end; width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.mapcard img { width: 100%; height: auto; }
.mapcard figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid rgba(143, 194, 174, .18); font: 500 .7rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sage-300); }

/* ---------- why us / faq ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid var(--ink); }
.why { padding: 2rem 2rem 2.25rem 0; border-bottom: 1px solid var(--stone-300); display: grid; gap: .6rem; align-content: start; }
.why:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--stone-300); }
.why h3 { font-size: 1.5rem; line-height: 1.12; }
.why p { color: var(--stone-600); max-width: 30rem; }
.straight { margin-top: 3rem; display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem 3rem; padding: 2rem; background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: var(--r); }
.straight h3 { font-size: 1.6rem; line-height: 1.1; }
.straight p { margin-top: .6rem; color: var(--stone-600); }
.straight ul { display: grid; gap: .8rem; }
.straight li { display: flex; gap: .8rem; align-items: baseline; }
.straight li svg { width: 1rem; height: 1rem; flex: none; color: var(--ember-700); transform: translateY(.2em); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-intro { display: grid; gap: 1.5rem; justify-items: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--stone-300); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; font: 600 1.25rem/1.25 var(--font-display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .75rem; height: .75rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 3rem 1.5rem 0; color: var(--stone-600); max-width: 42rem; }
.faq summary:hover { color: var(--ember-700); }

/* ---------- final cta ---------- */
.cta { background: var(--pine-900); overflow: hidden; padding-bottom: clamp(11rem, 22vw, 17rem); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/contours-dark.svg") 52% 69% / auto 170% no-repeat; opacity: .6; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 30%, transparent 85%); }
.cta .ridges { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(9rem, 22vw, 17rem); z-index: -1; background: url("../img/ridges.svg") center bottom / cover no-repeat; }
.cta-inner { display: grid; gap: 1.6rem; max-width: 46rem; }
.cta h2 { font-size: clamp(2.3rem, 4.6vw + .5rem, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.cta h2 em { font-style: normal; color: var(--ember-300); }
.cta .lede { font-size: 1.3rem; }
.cta-alt { color: var(--sage-200); font-size: 1rem; }
.cta-alt a { color: var(--stone-50); }

/* ---------- footer ---------- */
.site-footer { background: var(--pine-950); color: var(--sage-200); padding-block: 3.5rem 2.5rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { margin: 0 0 1rem; }
.site-footer p { max-width: 24rem; line-height: 1.55; }
.footer-col h4 { font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--stone-50); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(143, 194, 174, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .88rem; color: var(--sage-300); }

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours-dark.svg") 75% 60% / auto 160% no-repeat; -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 65%); mask-image: linear-gradient(100deg, transparent 10%, #000 65%); }
.page-hero .inner { display: grid; gap: 1.25rem; max-width: 46rem; }
.page-hero h1 { font-size: clamp(2.4rem, 4.2vw + .6rem, 4.1rem); line-height: 1; letter-spacing: -.035em; }
.page-hero .lede { font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); }

.svc-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); padding-block: 3rem; border-top: 1px solid var(--stone-300); }
.svc-row:first-of-type { border-top: 1px solid var(--ink); }
.svc-row h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); line-height: 1.05; margin-bottom: 1rem; }
.svc-row .svc-icon { margin-bottom: 1.1rem; }
.svc-row p { color: var(--stone-600); max-width: 32rem; }
.svc-row h3 { font: 500 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember-700); margin-bottom: 1rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.checklist li { display: flex; gap: .65rem; align-items: baseline; line-height: 1.4; }
.checklist svg { width: 1rem; height: 1rem; color: var(--ember-700); flex: none; transform: translateY(.2em); }
.checklist--one { grid-template-columns: 1fr; }
.pricing-note { margin-top: 3rem; padding: 1.75rem 2rem; background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: var(--r); display: grid; gap: .6rem; }
.pricing-note h2 { font-size: 1.6rem; }
.pricing-note p { color: var(--stone-600); max-width: 46rem; }
.pricing-note .actions { margin-top: .8rem; }

/* review form */
.review-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.review-side { display: grid; gap: 1.75rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.review-side .eyebrow { margin-bottom: 1.25rem; }
.review-side ol { display: grid; gap: 1.1rem; counter-reset: n; }
.review-side li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start; }
.review-side li::before { content: counter(n); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--stone-50); font: 500 .8rem/1 var(--font-mono); }
.review-side li b { display: block; font: 700 1.12rem/1.2 var(--font-display); margin-bottom: .15rem; }
.review-side li span { color: var(--stone-600); font-size: .98rem; line-height: 1.45; display: block; }
.direct { padding: 1.25rem 1.4rem; border: 1px dashed var(--stone-600); border-radius: var(--r); font-size: .98rem; }
.direct a { font-weight: 600; overflow-wrap: anywhere; }
.review-grid > * { min-width: 0; }
.footer-col a, .cta-alt a, .form-status a { overflow-wrap: anywhere; }
.form-card { background: var(--stone-50); border: 1px solid var(--stone-300); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -40px rgba(7, 29, 25, .45); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 1.4rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label, .field .lbl { font: 600 .95rem/1.2 var(--font-body); }
.field .opt { font-weight: 400; color: var(--stone-600); }
.field .hint { font-size: .88rem; color: var(--stone-600); line-height: 1.4; }
.input, .select, .textarea { width: 100%; padding: .85rem .95rem; border: 1px solid var(--stone-600); border-radius: var(--r); background: #fff; color: var(--ink); font: 400 1.05rem/1.35 var(--font-body); transition: border-color .15s ease, box-shadow .15s ease; }
.textarea { min-height: 8.5rem; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230c1a17' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; background-size: .8rem; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember-600); box-shadow: 0 0 0 3px rgba(240, 138, 60, .35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.6rem; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-actions small { color: var(--stone-600); font-size: .88rem; max-width: 20rem; line-height: 1.4; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--r); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e1f1e8; color: #0e3d29; border: 1px solid #9fcdb4; }
.form-status.err { background: #fbe9dd; color: #6b2a05; border: 1px solid #e8b08a; }
.form-status a { font-weight: 700; }

/* 404 */
.lost { min-height: 62vh; display: grid; align-items: center; }
.lost h1 { font-size: clamp(2.6rem, 6vw + .5rem, 5.4rem); line-height: .98; letter-spacing: -.035em; max-width: 14ch; }
.lost p { color: var(--sage-200); font-size: 1.2rem; max-width: 30rem; }
.lost-grid { display: grid; gap: 1.5rem; }

/* ---------- motion (restrained) ---------- */
.js .rise { transform: translateY(14px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rise { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 62rem) {
  .sec-head.split { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .signs { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc--lead { grid-column: span 1; }
  .svc--lead { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 2.5rem 1fr; column-gap: 1.1rem; padding: 0 0 2rem; }
  .step::before { top: 2.5rem; bottom: 0; left: 1.2rem; right: auto; width: 1px; height: auto; }
  .step-n { grid-row: span 2; margin: 0; }
  .local-grid { grid-template-columns: 1fr; }
  .mapcard { justify-self: start; max-width: 24rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why, .why:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
  .straight { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
  .svc-row { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .review-side { position: static; }
}
@media (max-width: 40rem) {
  .hero::before { background-position: 64% 100%; opacity: .75; }
  .page-hero::before { background-position: 60% 120%; opacity: .7; }
  .cta::before { background-position: 64% 100%; }
  .chrome .dots { display: none; }
  .signs { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .svc--lead { grid-column: span 1; }
  .needs, .checklist, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .review-strip { padding: 1.4rem; }
  .signs-result .btn { width: 100%; }
  .proof-note { flex-basis: 100%; }
  .faq details > div { padding-right: 0; }
  .cmp-knob { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
}
