/* ============================================================
   ARC Electrical Services — design system
   "A working tool laid on a drafting sheet."

   Interface: quiet, precise, product-grade (Geist, hairlines,
   one amber signal). Drawings: pencil-on-vellum, hand lettered,
   wobbly, drawn in as you arrive. The grid shows up only where a
   drawing lives; everywhere else the sheet is clean.
   ============================================================ */

/* --- Fonts (self-hosted) --- */
@font-face {
  font-family: "Geist";
  src: url("./fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Architects Daughter";
  src: url("./fonts/architects-daughter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --- */
:root {
  /* sheet + ink */
  --paper: #f5f6f7;
  --paper-2: #eef0f2;
  --sheet: #ffffff;
  --ink: #0e0f11;
  --ink-2: #1f2126;
  --text: #474a52;
  --muted: #676b74;           /* 5.2:1 on paper */
  --line: #e3e5e9;
  --line-2: #cfd3d9;
  --pencil: #2a2c31;           /* sketch stroke */
  --pencil-soft: #8c919b;      /* construction lines */
  --grid: rgb(30 40 60 / 0.055);
  --grid-major: rgb(30 40 60 / 0.085);

  /* aliases (older names still used by flows/pages) */
  --surface: var(--sheet);
  --border: var(--line);
  --border-strong: var(--line-2);
  --text-muted: var(--muted);
  --hairline: 1px solid var(--line);
  --focus-ring: var(--focus);

  /* signal */
  --accent: #f5a00b;
  --accent-2: #e58e00;
  --accent-ink: #8a4c05;       /* amber for text, 6.1:1 */
  --accent-soft: #fdf2dc;
  --accent-wash: rgb(245 160 11 / 0.16);
  --ok: #127a3e;
  --ok-soft: #e6f4ec;
  --err: #b42318;

  /* shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgb(14 15 17 / 0.05), 0 1px 1px rgb(14 15 17 / 0.03);
  --shadow-2: 0 1px 2px rgb(14 15 17 / 0.04), 0 12px 32px -12px rgb(14 15 17 / 0.16);
  --shadow-3: 0 2px 4px rgb(14 15 17 / 0.04), 0 28px 64px -24px rgb(14 15 17 / 0.28);
  --focus: 0 0 0 3px rgb(245 160 11 / 0.35);

  /* type */
  --font-sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Architects Daughter", "Bradley Hand", "Segoe Print", cursive;

  /* rhythm */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
p { max-width: 68ch; text-wrap: pretty; }
strong { color: var(--ink-2); font-weight: 600; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* --- Layout primitives --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.section--surface { background: var(--sheet); border-block: 1px solid var(--line); }
.section--deep { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 0.875rem; max-width: 760px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
.section-head .lead, .section-head p { font-size: 1.075rem; color: var(--muted); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-head--row > div { display: grid; gap: 0.75rem; max-width: 640px; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Drafting grid — only behind drawings / hero, fades at the edges */
.draft-grid { position: relative; isolation: isolate; }
.draft-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}

/* Mono for measurement/data only */
.mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0; }
.hand { font-family: var(--font-hand); letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.eyebrow { display: none; } /* retired: headings carry their own weight */

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 0.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: 1.25rem; flex: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.brand-name { display: flex; align-items: baseline; gap: 0.4rem; line-height: 1; white-space: nowrap; }
.brand-name strong { font-size: 1rem; letter-spacing: 0.01em; color: var(--ink); font-weight: 700; }
.brand-name span { font-size: 0.9rem; color: var(--muted); font-weight: 450; }
.nav-links { display: flex; align-items: center; gap: 0.125rem; margin-right: auto; }
.nav-links a, .nav-links .drop-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-links a:hover, .nav-links .drop-trigger:hover { color: var(--ink); background: rgb(14 15 17 / 0.045); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.drop-trigger .icon { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.has-dropdown:hover .drop-trigger .icon, .has-dropdown:focus-within .drop-trigger .icon { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* services mega-dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -0.5rem;
  width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.99);
  transform-origin: top left;
  transition: opacity 0.16s var(--ease), transform 0.2s var(--ease), visibility 0.16s;
}
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.touch-open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown a {
  display: grid; gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem; font-weight: 550; color: var(--ink);
  border-radius: var(--r-sm);
}
.dropdown a:hover { background: var(--paper); }
.dropdown a small { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.dropdown .dropdown-foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.25rem; padding: 0.75rem 0.8rem 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
.dropdown .dropdown-foot a { display: inline-flex; padding: 0; font-weight: 600; color: var(--accent-ink); }
.dropdown .dropdown-foot a:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* ⌘K trigger */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 36px; padding: 0 0.5rem 0 0.7rem;
  font-size: 0.86rem; color: var(--muted);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.cmdk-trigger:hover { border-color: var(--line-2); color: var(--ink); }
.cmdk-trigger .icon { width: 15px; height: 15px; }
.kbd {
  font-family: var(--font-mono); font-size: 0.7rem; line-height: 1;
  padding: 0.25rem 0.35rem; border-radius: 5px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}

/* mobile menu */
.nav-toggle { display: none !important; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--paper);
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0.2s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu .mm-label { display: block; margin: 1.25rem 0 0.25rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0;
  font-size: 1.15rem; font-weight: 550; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-actions { display: grid; gap: 0.6rem; margin-top: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  height: 44px; padding: 0 1.15rem;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: transform 0.12s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), color 0.15s var(--ease), opacity 0.15s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(14 15 17 / 0.2); }
.btn--primary:hover:not(:disabled) { background: #2a2c31; }
.btn--accent { background: var(--accent); color: #261500; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(140 80 0 / 0.25); }
.btn--accent:hover:not(:disabled) { background: var(--accent-2); }
.btn--ghost { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.btn--ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--pencil-soft), var(--shadow-1); }
.btn--quiet { height: auto; padding: 0.35rem 0; background: none; color: var(--ink); }
.btn--quiet:hover { color: var(--accent-ink); }
.btn--lg { height: 50px; padding: 0 1.4rem; font-size: 0.98rem; }
.btn--sm { height: 36px; padding: 0 0.85rem; font-size: 0.86rem; }
.btn .icon { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(2px); }
.btn--block { width: 100%; }

/* --- Text link --- */
.link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.arrow-link .icon { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.arrow-link:hover .icon { transform: translateX(3px); }

/* --- Cards → sheet cells (shared borders, no floating boxes) --- */
.card {
  position: relative;
  background: var(--sheet);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.grid:has(> .card) {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sheet);
}
.grid:has(> .card) > .card {
  border: 0;
  border-radius: 0;
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}
.card--link { transition: background 0.18s var(--ease); }
.card--link:hover { background: #fbfbfc; }
.card .icon-tile {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 9px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.card .icon-tile .icon { width: 18px; height: 18px; }
.card h3 { font-size: 1.08rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.card p { font-size: 0.94rem; color: var(--muted); }
.card .card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-weight: 600; color: var(--ink); font-size: 0.88rem; }
.card .card-link .icon { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.card:hover .card-link .icon { transform: translateX(3px); }

/* key/value rows */
.spec-list { display: grid; }
.spec-list > li {
  display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.spec-list > li:last-child { border-bottom: 1px solid var(--line); }
.spec-list .k { font-size: 0.86rem; color: var(--muted); }
.spec-list .v { font-weight: 500; color: var(--ink-2); }
.spec-list .v a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* stat */
.stat { display: grid; gap: 1.5rem; }
.stat .num { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.stat .label { font-size: 0.9rem; color: var(--muted); max-width: 24ch; }

/* --- Inputs --- */
.input {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  font-size: 1rem;
  background: var(--sheet);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder { color: #8a8e97; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }

/* legacy form fields */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font-size: 0.95rem;
  background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field textarea { min-height: 128px; resize: vertical; }
.field .error-text { font-size: 0.82rem; color: var(--err); display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--err); }
.field[data-invalid="true"] .error-text { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 0.85rem 1rem; border-radius: var(--r-sm); font-size: 0.92rem; margin-bottom: 1.25rem; }
.form-status.ok { display: block; background: var(--ok-soft); color: #0d5c2e; border: 1px solid #b9e0c9; }
.form-status.err { display: block; background: #fdecea; color: #8f1c13; border: 1px solid #f3c6c1; }

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem; font-weight: 550; line-height: 1.2;
  border-radius: 999px;
  background: var(--paper); color: var(--muted);
  border: 1px solid var(--line);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill--ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e7d5; }
.pill--warn { background: var(--accent-soft); color: var(--accent-ink); border-color: #f4dcae; }
.pill--live .dot { animation: pulse 2s var(--ease-in-out) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --- Footer: a drawing title block --- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem);
}
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; max-width: 34ch; }
.footer-brand .btn { margin-top: 1.25rem; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 0.85rem; }
.footer-col a { display: block; padding: 0.28rem 0; font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.6rem; }
.footer-col address a { display: inline; padding: 0; }
.title-block {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr 1fr;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
}
.title-block > div { padding: 0.55rem 0.8rem; border-left: 1px solid var(--line-2); display: grid; gap: 0.1rem; min-width: 0; }
.title-block > div:first-child { border-left: 0; }
.title-block .tb-k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8e97; }
.title-block .tb-v { color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-block .tb-v.hand { font-size: 0.95rem; font-weight: 400; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; padding-bottom: 2rem; font-size: 0.82rem; }
.footer-bottom .legal { display: flex; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--ink); }

/* --- Reveal (subtle; content visible without JS) --- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Sketch layer — pencil on vellum
   main.js adds: a pencil-wobble filter, an offset "overdraw" pass
   on every stroke, and the draw-in. Labels are hand lettered.
   ============================================================ */
.sketch { overflow: visible; }
.sketch .sk-ink { filter: url(#sk-pencil); }
.sketch .sk-ghost { opacity: 0.32; pointer-events: none; }
.sketch text { font-family: var(--font-hand); letter-spacing: 0.02em; }
.sketch .sk-note { font-size: 12px; fill: var(--muted); }
.sketch .sk-label { font-size: 13px; fill: var(--ink-2); }
.sketch .sk-amber { font-size: 14px; fill: var(--accent-ink); }
.sketch .sk-faint { fill: var(--muted); }
.sketch .sk-hatch { stroke: var(--pencil-soft); stroke-width: 1; opacity: 0.6; }
.sketch .sk-dim { stroke: var(--pencil-soft); stroke-width: 1; }
.sketch .sk-marker { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.sketch .sk-wash { fill: var(--accent); opacity: 0.18; }

.js .sketch [data-fade] { opacity: 0; transition: opacity 0.6s var(--ease); transition-delay: var(--fade-delay, 0.5s); }
.js .sketch.is-drawn [data-fade] { opacity: 1; }

/* --- Icons --- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- Helpers --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-8 { margin-top: 2rem; }
.mt-4 { margin-top: 1rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .cmdk-trigger .cmdk-label { display: none; }
  .nav-actions .btn--ghost { display: none; }
}
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex !important; width: 40px; padding: 0; }
  .brand { margin-right: auto; }
  .brand-name span { display: none; }
  .cmdk-trigger { display: none; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .spec-list > li { grid-template-columns: 1fr; gap: 0.15rem; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > div:nth-child(3) { border-left: 0; }
  .title-block > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .nav-actions .nav-cta { height: 38px; padding: 0 0.8rem; font-size: 0.86rem; }
}

/* --- Reduced motion & transparency --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .sketch [data-fade] { opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ============================================================
   ARC — page components
   Home: console hero, services board, process wire, coverage,
   owner, live days. Shared: sheets, page hero, split, CTA, prose,
   callout, steps, command palette.
   ============================================================ */

/* --- Sheet: a drawing surface with registration corners --- */
.sheet, .sketch-panel {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(0.75rem, 1.8vw, 1.25rem);
  box-shadow: var(--shadow-2);
}
.sheet::before, .sheet::after, .sketch-panel::before, .sketch-panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  border-color: var(--pencil-soft);
  opacity: 0.7;
}
.sheet::before, .sketch-panel::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.sheet::after, .sketch-panel::after { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.sheet svg, .sketch-panel svg { width: 100%; height: auto; }

/* ============================================================
   HERO — console + live one-line sketch
   ============================================================ */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero.draft-grid::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 75% at 78% 45%, #000 20%, transparent 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
  max-width: 14ch;
}
.hero-copy .lead {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--muted);
  max-width: 52ch;
}

/* console */
.console {
  margin-top: 2rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.console:focus-within { border-color: var(--line-2); box-shadow: var(--shadow-3); }
.console-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); padding-inline: 0.25rem; }
.console-input {
  width: 100%;
  height: 52px;
  padding: 0 0.95rem;
  font-size: 1.08rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.console-input::placeholder { color: #8a8e97; }
.console-input:focus { outline: none; background: var(--sheet); border-color: var(--accent); box-shadow: var(--focus); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  height: 32px;
  padding: 0 0.8rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-2);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease);
}
.chip:hover { border-color: var(--line-2); background: var(--paper); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: #f0c879; color: var(--accent-ink); }
.console-foot {
  display: flex; gap: 0.6rem; align-items: stretch;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-2);
}
.zip-field {
  flex: 1;
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 0;
  padding: 0 0.4rem 0 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--sheet);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.zip-field:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.zip-field > .icon { width: 16px; height: 16px; color: var(--muted); }
.zip-field .zip-input { width: 5.6em; min-width: 0; height: 48px; border: 0; background: none; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.zip-field .zip-input:focus { outline: none; }
.zip-field .zip-input::placeholder { color: #8a8e97; }
.zip-status { font-size: 0.82rem; font-weight: 550; line-height: 1.25; color: var(--muted); min-width: 0; }
.zip-field .zip-status { margin-left: auto; text-align: right; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zip-status.is-ok { color: var(--ok); }
.zip-status.is-warn { color: var(--accent-ink); }
.zip-status .icon { display: inline; width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.2rem; }
.console-submit { flex: none; }

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  margin-top: 1.1rem; padding-inline: 0.25rem;
  font-size: 0.88rem; color: var(--muted);
}
.hero-meta .icon { width: 15px; height: 15px; }
.next-visit { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); }
.next-visit strong { color: var(--ink); font-weight: 600; }
.next-visit:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.next-visit .icon-arrow { transition: transform 0.18s var(--ease); }
.next-visit:hover .icon-arrow { transform: translateX(3px); }
.hero-hours { display: inline-flex; align-items: center; gap: 0.45rem; }

.hero-figure { position: relative; }
.sheet--hero { padding: clamp(0.5rem, 1.5vw, 1rem); transform: rotate(0.4deg); }
.sketch [data-part] { transition: opacity 0.3s var(--ease); }
.sketch [data-caption] { transition: opacity 0.25s var(--ease); }

/* ============================================================
   SERVICES BOARD — two columns, one sheet
   ============================================================ */
.svc-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-col { padding: clamp(1.25rem, 3vw, 2rem); }
.svc-col + .svc-col { border-left: 1px solid var(--line); }
.svc-col-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.svc-thumb { width: 64px; height: 52px; flex: none; }
.svc-col-head h3 { font-size: 1.25rem; }
.svc-col-head p { font-size: 0.9rem; color: var(--muted); }
.svc-list li + li { border-top: 1px solid var(--line); }
.svc-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name arrow" "desc arrow";
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--r-sm);
  transition: background 0.15s var(--ease);
}
.svc-list a:hover { background: var(--paper); }
.svc-name { grid-area: name; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.svc-desc { grid-area: desc; font-size: 0.9rem; color: var(--muted); }
.svc-list .icon { grid-area: arrow; width: 18px; height: 18px; color: var(--pencil-soft); transition: transform 0.18s var(--ease), color 0.15s var(--ease); }
.svc-list a:hover .icon { transform: translateX(3px); color: var(--ink); }

.svc-find { display: flex; align-items: center; gap: 0.5rem; max-width: 340px; width: 100%; padding: 0 0.75rem; height: 42px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.svc-find:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.svc-find .icon { width: 16px; height: 16px; color: var(--muted); }
.svc-find input { flex: 1; min-width: 0; border: 0; background: none; height: 100%; font-size: 0.95rem; color: var(--ink); }
.svc-find input:focus { outline: none; }
.svc-find input::placeholder { color: #8a8e97; }
.svc-list li.is-match a { background: var(--accent-soft); }
.svc-none { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 1rem clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line); font-size: 0.95rem; }

/* ============================================================
   PROCESS WIRE
   ============================================================ */
.wire { position: relative; }
.wire-line { position: absolute; left: 0; right: 0; top: 2px; width: 100%; height: 36px; }
.wire-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.wire-steps li { position: relative; padding-top: 3.25rem; }
.wire-node {
  position: absolute; top: 8px; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sheet);
  border: 1.5px solid var(--pencil);
  box-shadow: 0 0 0 5px var(--sheet);
}
.wire-node::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.wire-node--end { border-radius: 5px; }
.wire-node--end::after { border-radius: 2px; }
.wire-steps h3 { font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.wire-steps p { font-size: 0.93rem; color: var(--muted); }
.wire-note { display: inline-block; margin-top: 0.5rem; color: var(--accent-ink); font-size: 1rem; transform: rotate(-2deg); }

/* ============================================================
   COVERAGE
   ============================================================ */
.coverage { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.coverage-copy h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
.coverage-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.04; }
.section--first { padding-top: clamp(2rem, 5vw, 3.5rem); }
.coverage-copy .lead { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.zip-check { margin-top: 1.75rem; }
.zip-check-row { display: flex; gap: 0.5rem; max-width: 380px; }
.zip-check-row .input { font-variant-numeric: tabular-nums; }
.zip-status--block { margin-top: 0.75rem; min-height: 1.3em; font-size: 0.92rem; max-width: 46ch; }
.towns { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.75rem; }
.towns button {
  height: 30px; padding: 0 0.7rem;
  font-size: 0.84rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; background: var(--sheet);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.towns button:hover, .towns button[aria-pressed="true"] { border-color: #f0c879; background: var(--accent-soft); color: var(--accent-ink); }
.sheet--map { padding: clamp(0.5rem, 1.5vw, 1rem); transform: rotate(-0.35deg); }
.sheet--map.draft-grid::before { border-radius: inherit; -webkit-mask-image: none; mask-image: none; opacity: 0.7; }
.sketch [data-town] { cursor: default; transition: opacity 0.25s var(--ease); }
.sketch [data-town] text { transition: fill 0.2s var(--ease); }
.sketch [data-town].is-hot text { fill: var(--accent-ink); }

/* ============================================================
   OWNER
   ============================================================ */
.owner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.owner-copy h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.owner-copy .lead { margin: 1rem 0 1.5rem; color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   BOOK — live open days
   ============================================================ */
.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.book-head h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.book-head p { margin-top: 0.9rem; color: var(--muted); }
.book-panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.day {
  display: grid; justify-items: center; gap: 0.15rem;
  padding: 0.75rem 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--sheet);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.12s var(--ease);
}
a.day:hover { border-color: #f0c879; background: var(--accent-soft); }
a.day:active { transform: scale(0.98); }
.day .dow { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day .num { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.day .open { font-size: 0.72rem; color: var(--ok); font-weight: 550; }
.day.is-full { background: var(--paper); color: var(--muted); }
.day.is-full .num { color: var(--muted); }
.day.is-full .open { color: var(--muted); }
.day--skeleton { height: 84px; background: linear-gradient(90deg, var(--paper) 25%, var(--paper-2) 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.book-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.book-empty { display: grid; gap: 0.9rem; justify-items: start; padding: 0.5rem 0.25rem; }
.book-empty p { color: var(--text); }

/* ============================================================
   COMMAND PALETTE (⌘K)
   ============================================================ */
.cmdk {
  width: min(620px, calc(100vw - 2rem));
  max-height: min(560px, calc(100dvh - 4rem));
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sheet);
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgb(14 15 17 / 0.45), 0 0 0 1px rgb(14 15 17 / 0.02);
  overflow: hidden;
}
.cmdk::backdrop { background: rgb(245 246 247 / 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cmdk[open] { animation: cmdk-in 0.22s var(--ease); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } }
.cmdk-box { display: flex; flex-direction: column; max-height: inherit; }
.cmdk-input-row { display: flex; align-items: center; gap: 0.65rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.cmdk-input-row > .icon { width: 18px; height: 18px; color: var(--muted); }
.cmdk-input { flex: 1; height: 56px; border: 0; background: none; font-size: 1.02rem; color: var(--ink); min-width: 0; }
.cmdk-input:focus { outline: none; }
.cmdk-input::placeholder { color: #8a8e97; }
.cmdk-zip { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.cmdk-list { overflow-y: auto; padding: 0.4rem; }
.cmdk-group + .cmdk-group { margin-top: 0.25rem; }
.cmdk-group-label { display: block; padding: 0.55rem 0.65rem 0.3rem; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.cmdk-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 0.93rem;
}
.cmdk-item .icon { width: 17px; height: 17px; color: var(--muted); }
.cmdk-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item em { font-style: normal; color: var(--accent-ink); }
.cmdk-item small { color: var(--muted); font-size: 0.8rem; }
.cmdk-item[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.cmdk-item[aria-selected="true"] .icon { color: var(--ink); }
.cmdk-empty { padding: 1.25rem 0.75rem; font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   INTERIOR — page hero, breadcrumbs, split
   ============================================================ */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.25rem, 5vw, 3.25rem); }
.page-hero.draft-grid::before {
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 85% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 90% at 85% 30%, #000 10%, transparent 75%);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: 0.84rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 20ch; }
.page-hero .lead { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > .split-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.split > .split-copy .lead { color: var(--muted); font-size: 1.05rem; }
.split > .split-copy p + p { margin-top: 1rem; }
.split > .split-copy .spec-list { margin-top: 1.5rem !important; }
.split-panel { display: grid; }
/* interior sketches carry their own drawn frame, so no extra panel chrome */
.split-panel > .sketch { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgb(14 15 17 / 0.08)); }
/* older interior sketches have no .sk-ink group: wobble the whole drawing */
.sketch:not(:has(.sk-ink)) > :is(path, rect, circle, ellipse, line, g:not([data-fade])) { filter: url(#sk-pencil); }
.page-hero.draft-grid::before { display: none; }
.page-hero + .section { padding-top: clamp(2rem, 4.5vw, 3.5rem); }
[data-flow] { max-width: 640px; margin-inline: auto; }

/* --- Closing CTA (light, one line of intent + two actions) --- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.45rem, 3vw, 2rem); max-width: 26ch; }
.cta-band p { color: var(--muted); margin-top: 0.5rem; }
.cta-band .hero-actions { margin-top: 0; }
.cta-band .btn--primary { background: var(--ink); color: #fff; }
.cta-band .btn--ghost { color: var(--ink); }

/* --- Prose --- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.5rem 0 0.85rem; }
.prose h3 { font-size: 1.18rem; margin: 2rem 0 0.6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.25rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; }
.prose ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 8px; height: 1.5px; background: var(--accent); }
.prose a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Callout (hairline note, no side stripe) --- */
.callout {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  color: var(--text);
}
.callout .icon { width: 20px; height: 20px; margin-top: 2px; flex: none; color: var(--accent-ink); }
.callout p { font-size: 0.95rem; }
.callout a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Steps (interior) — numbered stops on a wire --- */
.steps { counter-reset: step; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet); overflow: hidden; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.35rem 1.5rem;
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}
.steps > li::before {
  content: counter(step);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--accent-ink);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1.5px solid var(--pencil);
  border-radius: 50%;
  transform: rotate(-4deg);
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.94rem; }
.steps.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rule { display: flex; align-items: center; gap: 0.875rem; margin-block: 0.5rem; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule .rule-mark { width: 6px; height: 6px; border: 1.5px solid var(--accent); transform: rotate(45deg); flex: none; }

.tile-grid { display: grid; gap: 1rem; }
.tile { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .coverage, .book { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-figure { max-width: 620px; }
  .wire-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .wire-line { display: none; }
  .wire-steps li { padding-top: 2.6rem; }
}
@media (max-width: 860px) {
  .split, .owner { grid-template-columns: 1fr; }
  .split-panel { order: 2; }
  .steps.steps--2 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .svc-board { grid-template-columns: 1fr; }
  .svc-col + .svc-col { border-left: 0; border-top: 1px solid var(--line); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days > :nth-child(n+9) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 1.75rem; }
  .console { padding: 0.75rem; margin-top: 1.5rem; }
  .console-foot { flex-direction: column; }
  .console-submit { width: 100%; }
  .wire-steps { grid-template-columns: 1fr; row-gap: 0; }
  .wire-steps li { padding: 0 0 1.75rem 2.75rem; }
  .wire-steps li::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: 0; border-left: 1.5px dashed var(--line-2); }
  .wire-steps li:last-child::before { display: none; }
  .wire-node { top: 0; }
  .zip-check-row { max-width: none; }
  .cmdk { margin-top: 0.75rem; }
}

/* finder: a filtered-out column says so instead of going blank */
.svc-list:not(:has(li:not([hidden])))::after { content: "No matches here"; display: block; padding: 1rem 0; font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   ARC — conversational intake + scheduling flows.
   Premium, keyboard-first, one field at a time. No chat bubbles,
   no avatars, no typing dots — the "conversation" is implicit in
   question → answer → next-question transitions.
   ============================================================ */

.flow-page { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.flow-page .breadcrumbs { margin-bottom: 0.75rem; }

.flow {
  --flow-max: 600px;
  max-width: var(--flow-max);
  margin-inline: auto;
}
.flow-head { margin-bottom: 1.25rem; }
.flow-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; }

.flow-progress {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}
.flow-progress .bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.flow-progress .bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.35s var(--ease);
}
.flow-progress .step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Stage: current question + input */
.flow-stage { min-height: 160px; }
.flow-turn { animation: flow-in 0.28s var(--ease) both; }
@keyframes flow-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.flow-prompt {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.375rem;
}
.flow-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }

.flow-input {
  width: 100%;
  font-size: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.flow-input::placeholder { color: var(--text-muted); }
.flow-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.flow-input.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.flow-input.err { border-color: var(--err); }

.flow-choices { display: grid; gap: 0.625rem; }
.flow-choice {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1.02rem;
  font-weight: 550;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), transform 0.12s var(--ease), background 0.15s var(--ease);
}
.flow-choice:hover { border-color: var(--border-strong); }
.flow-choice:active { transform: translateY(1px); }
.flow-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.flow-choice small { display: block; font-size: 0.82rem; font-weight: 400; color: var(--text-muted); }
.flow-choice .choice-check {
  margin-left: auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  color: transparent;
  flex: none;
}
.flow-choice.selected .choice-check { background: var(--accent); border-color: var(--accent); color: #1a1002; }
.flow-choice .choice-check .icon { width: 12px; height: 12px; }

/* Action row: Back (left) · Skip (middle) · Next (right) */
.flow-cta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}
.flow-cta .spacer { flex: 1; }
.flow-back, .flow-skip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
}
.flow-back:hover, .flow-skip:hover { color: var(--ink); }
.flow-back .icon, .flow-skip .icon { width: 16px; height: 16px; }
.flow-next .icon { width: 16px; height: 16px; }

/* Answered chips (editable thread) */
.flow-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: var(--hairline);
}
.flow-answer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}
.flow-answer .k { color: var(--text-muted); }
.flow-answer button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--border); color: var(--ink);
}
.flow-answer button .icon { width: 10px; height: 10px; }

/* Review + submit */
.flow-review { display: grid; gap: 0.875rem; }
.flow-review .row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-top: var(--hairline); font-size: 0.95rem;
}
.flow-review .row:first-child { border-top: 0; }
.flow-review .row .k { color: var(--text-muted); }
.flow-review .row .v { color: var(--ink-2); font-weight: 500; text-align: right; }
.flow-review .row .v button { color: var(--accent-ink); font-weight: 600; font-size: 0.82rem; }

.flow-error {
  display: none;
  margin-top: 0.875rem;
  font-size: 0.88rem;
  color: var(--err);
}
.flow-error.show { display: block; }

.flow-coverage { display: none; margin-top: 0.75rem; font-size: 0.88rem; font-weight: 550; }
.flow-coverage.in_area { display: block; color: var(--ok); }
.flow-coverage.out_of_area { display: block; color: var(--accent-ink); }

.flow-success {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}
.flow-success .ok-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 0.25rem;
}
.flow-success .ok-mark .icon { width: 24px; height: 24px; }
.flow-success h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.flow-success p { color: var(--text-muted); }

/* Estimate reveal */
.estimate-panel { margin-top: 0.25rem; }
.estimate-range { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.estimate-range-label { color: var(--text-muted); font-size: 0.9rem; margin: 0.25rem 0 1rem; }
.estimate-basis { list-style: none; margin: 0; }
.estimate-basis li { position: relative; padding-left: 1.15rem; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-muted); }
.estimate-basis li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 2px; background: var(--accent); border-radius: 1px; }
.estimate-note { margin-top: 1rem; font-size: 0.86rem; color: var(--accent-ink); font-weight: 550; }
.estimate-loading { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Scheduling: calendar ---- */
.cal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.cal-day {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.cal-day .dow { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.cal-day .num { font-size: 1.1rem; font-weight: 620; }
.cal-day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.empty .dot { background: transparent; }
.cal-day:hover { border-color: var(--border-strong); }
.cal-day.selected { border-color: var(--accent); background: var(--accent-soft); }

.cal-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.cal-slot {
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.cal-slot:hover { border-color: var(--border-strong); }
.cal-slot.selected { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 560px) {
  .cal-slots { grid-template-columns: repeat(2, 1fr); }
  .flow-stage { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-turn { animation: none; }
  .flow-progress .bar > i { transition: none; }
}
