/* =========================================================
   ELLSWORTH CUSTOM HOME BUILDERS — site stylesheet

   Built on the ECHB Design System. The full system (brand guide,
   tokens, component specs, home-page prototype) lives in
   .claude/skills/ellsworth-design-system/ — read DESIGN_GUIDE.md
   there before adding new patterns.

   1. Design tokens (copied from the design system's tokens/*.css)
   2. Base
   3. Layout primitives
   4. Type roles
   5. Buttons & links
   6. Header / navigation
   7. Home hero + interior page hero
   8. Section components (home page)
   9. Gallery cards, filters, lightbox
   10. Interior page components
   11. Forms
   12. Planning Assessment
   13. Footer
   14. Utilities

   Fonts (Cormorant Garamond, Inter, JetBrains Mono) are loaded by a
   <link> tag in each page's <head>.
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Logo colors: the brand primary, sampled from the ECHB logo */
  --echb-logo-blue: #0a529e;      /* primary: buttons, links, eyebrows, blue bands */
  --echb-logo-blue-deep: #063e7e; /* hover, footer */
  --echb-logo-grey: #b2b2b2;      /* logo silver: large shapes only */
  --echb-logo-steel: #6e6e6e;     /* logo steel lettering */
  --echb-silver: #b2b2b2;         /* accent from the logo silver: rules, featured CTA (≤10%) */

  /* Blue scale, built on the two logo blues */
  --echb-blue-50:  #f1f6fc;       /* pale band */
  --echb-blue-100: #ddeaf7;       /* sky band, hairline borders */
  --echb-blue-200: #bdd6ee;       /* photo placeholders */
  --echb-blue-300: #8fbae3;       /* sky accent: never text */
  --echb-blue-400: #528fcc;       /* input and control borders */
  --echb-blue-500: #2b72bd;       /* hero fill */
  --echb-blue-600: var(--echb-logo-blue);
  --echb-blue-700: var(--echb-logo-blue-deep);
  --echb-blue-800: #0a2f5c;       /* pressed primary */
  --echb-blue-900: #0b2343;       /* ink: body text, headlines */

  /* Grey scale */
  --echb-grey-50:  #f6f6f5;       /* text on blue */
  --echb-grey-100: #ececeb;
  --echb-grey-200: #dcdedf;
  --echb-grey-300: #bfc3c6;
  --echb-grey-400: #969ca1;
  --echb-grey-500: #6b7177;       /* tertiary text */
  --echb-grey-600: #4a5056;       /* secondary text */
  --echb-grey-700: #383d42;
  --echb-grey-800: #282b2f;
  --echb-grey-900: #18191b;

  --echb-silver-50:  #f5f5f5;
  --echb-silver-100: #e6e6e6;
  --echb-silver-200: #d4d4d4;
  --echb-silver-300: #c4c4c4;       /* footer heads */
  --echb-silver-400: #b2b2b2;       /* base: logo silver */
  --echb-silver-500: #9a9a9a;       /* silver button hover */
  --echb-silver-600: #7a7a7a;
  --echb-silver-700: #4d4d4d;

  --echb-white: #ffffff;
  --echb-black: #18191b;

  /* Semantic */
  --echb-success: #4f7a3a;        /* ponderosa green */
  --echb-warning: #c98a1a;
  --echb-error:   #a8392a;        /* red-rock clay */
  --echb-info:    var(--echb-logo-blue);

  /* Surfaces & text */
  --bg:            var(--echb-white);
  --bg-elevated:   var(--echb-white);
  --bg-inset:      var(--echb-blue-50);
  --bg-sky:        var(--echb-blue-100);
  --bg-dark:       var(--echb-logo-blue);
  --bg-darker:     var(--echb-logo-blue-deep);

  --fg-1:          var(--echb-blue-900);
  --fg-2:          var(--echb-grey-600);
  --fg-3:          var(--echb-grey-500);
  --fg-on-dark:    var(--echb-grey-50);
  --fg-on-dark-2:  var(--echb-blue-100);

  --border:        var(--echb-blue-100);
  --border-strong: var(--echb-blue-400);
  --border-dark:   rgba(255,255,255,0.14);

  --primary:       var(--echb-logo-blue);
  --primary-hover: var(--echb-logo-blue-deep);
  --primary-fg:    var(--echb-white);
  --accent:        var(--accent-mark);
  --accent-fg:     var(--echb-grey-900);
  /* Accent marks (rules, accent buttons, tags, link underlines): black on light sections,
     logo silver inside blue sections (override after .echb-bg-dark). No gold or yellow. */
  --accent-mark:       var(--echb-black);
  --accent-mark-hover: var(--echb-grey-700);
  --accent-mark-fg:    var(--echb-white);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  80px;
  --text-7xl:  104px;

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.16em;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --radius-none: 0;
  --radius-sm:  2px;
  --radius:     4px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(6,62,126,0.06);
  --shadow-sm: 0 2px 4px rgba(6,62,126,0.08), 0 1px 2px rgba(6,62,126,0.04);
  --shadow:    0 4px 12px rgba(6,62,126,0.10), 0 2px 4px rgba(6,62,126,0.05);
  --shadow-md: 0 8px 24px rgba(6,62,126,0.12), 0 4px 8px rgba(6,62,126,0.06);
  --shadow-lg: 0 16px 40px rgba(6,62,126,0.14), 0 8px 16px rgba(6,62,126,0.06);
  --shadow-xl: 0 24px 60px rgba(6,62,126,0.18), 0 12px 24px rgba(6,62,126,0.08);
  --shadow-inset: inset 0 1px 2px rgba(6,62,126,0.10);

  /* Layout */
  --container-narrow: 760px;
  --container:        1120px;
  --container-wide:   1320px;
  --gutter:           var(--space-8);
  --header-h:         80px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    150ms;
  --dur:         220ms;
  --dur-slow:    400ms;
}

@media (max-width: 600px) {
  :root { --gutter: var(--space-5); --header-h: 68px; }
}


/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.echb-menu-open, html.echb-viewer-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.echb-bg-dark :focus-visible,
.echb-hero :focus-visible,
.echb-page-hero :focus-visible,
.echb-footer :focus-visible { outline-color: var(--echb-silver-300); }

.echb-skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--primary-hover); color: #fff;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
  font-weight: 600; font-size: var(--text-sm);
}
.echb-skip-link:focus { top: var(--space-4); }


/* =========================================================
   3. LAYOUT PRIMITIVES
   ========================================================= */
.echb-container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.echb-container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.echb-section { padding: var(--space-24) 0; }
@media (max-width: 700px) { .echb-section { padding: var(--space-16) 0; } }

.echb-bg-paper { background: var(--bg-inset); }
.echb-bg-cream { background: var(--bg); }
.echb-bg-white { background: var(--bg-elevated); }
.echb-bg-sky   { background: var(--bg-sky); }
.echb-bg-dark  { background: var(--bg-dark); color: var(--fg-on-dark); }
/* Blue contexts: accent marks switch to the logo silver (black disappears on blue) */
.echb-bg-dark, .echb-hero, .echb-page-hero, .echb-footer {
  --accent-mark: var(--echb-silver); --accent-mark-hover: var(--echb-silver-300); --accent-mark-fg: var(--echb-blue-900);
}

.echb-section__header { margin-bottom: var(--space-12); max-width: 760px; }
.echb-section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.echb-section__header--center .echb-silver-rule { margin-left: auto; margin-right: auto; }
.echb-section__header--center .echb-lede { margin-left: auto; margin-right: auto; }
.echb-section__header--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--space-8); max-width: none; flex-wrap: wrap;
}
.echb-section__header--row > div:first-child { max-width: 760px; }

.echb-grid { display: grid; gap: var(--space-8); }
.echb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.echb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .echb-grid--2, .echb-grid--3 { grid-template-columns: 1fr; }
}

.echb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.echb-split--center { align-items: center; }
.echb-split--start { align-items: start; }
@media (max-width: 900px) {
  .echb-split { grid-template-columns: 1fr; gap: var(--space-12); }
  .echb-split--form-first > .echb-form-card { order: -1; } /* contact form first on phones */
}


/* =========================================================
   4. TYPE ROLES
   ========================================================= */
.echb-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.echb-eyebrow--on-dark { color: var(--fg-on-dark); }

.echb-display {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
  max-width: 900px;
  text-wrap: balance;
}
.echb-h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.echb-h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 var(--space-3);
}
.echb-h5 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-md); margin: 0; }
.echb-on-dark { color: var(--fg-on-dark); }

.echb-lede {
  font-weight: 300;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  max-width: 640px;
  margin: 0 0 var(--space-6);
  text-wrap: pretty;
}
.echb-lede--on-dark { color: var(--fg-on-dark-2); }
.echb-lede:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .echb-lede { font-size: var(--text-lg); } }

.echb-body { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--fg-1); }
.echb-body-2 { color: var(--fg-2); }
.echb-meta {
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--fg-3);
}
.echb-label-mono {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.echb-silver-rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--accent-mark);
  margin: var(--space-3) 0 var(--space-5);
  border: 0;
}
.echb-silver-rule--lg { width: 96px; height: 3px; }
.echb-silver-rule--center { margin-left: auto; margin-right: auto; }

.echb-text-link {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-mark);
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.echb-text-link:hover { color: var(--primary-hover); border-bottom-color: var(--accent-mark-hover); }


/* =========================================================
   5. BUTTONS & LINKS
   ========================================================= */
.echb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-sans); font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  white-space: nowrap;
}
.echb-btn--sm { padding: 9px 16px; font-size: 12px; }
.echb-btn--md { padding: 12px 22px; font-size: 13px; }
.echb-btn--lg { padding: 16px 30px; font-size: 14px; }
.echb-btn--block { width: 100%; }
.echb-btn:disabled, .echb-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.echb-btn--primary { background: var(--primary); color: #fff; }
.echb-btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.echb-btn--primary:active { background: var(--echb-blue-800); transform: translateY(0); box-shadow: var(--shadow-inset); }

.echb-btn--silver { background: var(--accent-mark); color: var(--accent-mark-fg); }
.echb-btn--silver:hover { background: var(--accent-mark-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.echb-btn--silver:active { transform: translateY(0); box-shadow: var(--shadow-inset); }

.echb-btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.echb-btn--ghost:hover { background: var(--primary); color: #fff; }

.echb-btn--outline-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.echb-btn--outline-on-dark:hover { background: #fff; color: var(--primary-hover); border-color: #fff; }

@media (max-width: 480px) {
  .echb-btn--lg { padding: 15px 22px; font-size: 13px; white-space: normal; }
}

.echb-btn-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.echb-btn-row--center { justify-content: center; }
.echb-center-cta { margin-top: var(--space-10); }
.echb-center-cta--middle { text-align: center; }


/* =========================================================
   6. HEADER / NAVIGATION
   ========================================================= */
.echb-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.echb-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-6);
}
.echb-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.echb-header__logo img { height: 44px; width: auto; max-width: none; }

.echb-nav { display: flex; align-items: center; gap: var(--space-5); }
.echb-nav__link {
  position: relative;
  font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  line-height: 1.4;
  color: var(--fg-1);
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.echb-nav__link:hover, .echb-nav__link[aria-current] { color: var(--primary); }
.echb-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent-mark);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.echb-nav__link:hover::after, .echb-nav__link[aria-current]::after { transform: scaleX(1); }
.echb-nav__extra { display: none; }

.echb-header__cta { display: flex; align-items: center; gap: var(--space-4); }
.echb-header__phone {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--primary); white-space: nowrap;
}
.echb-header__phone:hover { color: var(--primary-hover); }

.echb-nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--primary);
}
.echb-nav-toggle svg { width: 24px; height: 24px; }
.echb-nav-toggle .echb-icon-close { display: none; }
.echb-nav-toggle[aria-expanded="true"] .echb-icon-open { display: none; }
.echb-nav-toggle[aria-expanded="true"] .echb-icon-close { display: block; }

/* At 1220px and below the nav collapses into a menu panel under the header */
@media (max-width: 1220px) {
  .echb-nav-toggle { display: inline-flex; }
  .echb-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0;
    top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: var(--space-2) var(--gutter) var(--space-8);
    overflow-y: auto;
  }
  .echb-nav.is-open { display: flex; animation: echbFade var(--dur) var(--ease-out); }
  .echb-nav__link {
    font-size: var(--text-md);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
  }
  .echb-nav__link::after { bottom: -1px; }
  .echb-nav__extra {
    display: flex; flex-direction: column; gap: var(--space-4);
    padding-top: var(--space-8);
  }
  .echb-nav__phone {
    font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl);
    color: var(--fg-1);
  }
  .echb-nav__hours { margin: calc(-1 * var(--space-3)) 0 0; font-size: var(--text-sm); color: var(--fg-3); }
}
@media (max-width: 900px) { .echb-header__phone { display: none; } }
@media (max-width: 600px) {
  .echb-header__cta .echb-btn { display: none; }
  .echb-header__logo img { height: 38px; }
}


/* =========================================================
   7. HOME HERO + INTERIOR PAGE HERO
   ========================================================= */
.echb-hero {
  position: relative;
  min-height: 720px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--space-32);
  padding-bottom: var(--space-12);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.echb-hero__photo {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--echb-blue-500) 0%, var(--echb-logo-blue) 100%); /* blue fallback until a hero photo is added */
}
.echb-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Photo protection: darkens the photo behind the text (left side and bottom) so white type stays readable */
.echb-hero__protect {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,62,126,0.72) 0%, rgba(6,62,126,0.5) 40%, rgba(6,62,126,0) 72%),
    linear-gradient(180deg, rgba(6,62,126,0.25) 0%, rgba(6,62,126,0) 30%, rgba(6,62,126,0.7) 100%);
}
@media (max-width: 800px) {
  .echb-hero__protect {
    background: linear-gradient(180deg, rgba(6,62,126,0.55) 0%, rgba(6,62,126,0.6) 45%, rgba(6,62,126,0.82) 100%);
  }
}
.echb-hero__photo:not(:has(img)) .echb-hero__protect { display: none; }

.echb-hero__content { position: relative; padding-bottom: var(--space-12); }
.echb-hero__content .echb-display { color: #fff; }
.echb-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-on-dark);
  max-width: 640px;
  margin: 0 0 var(--space-8);
  text-wrap: pretty;
}
.echb-hero__call {
  display: inline-block; margin-top: var(--space-5);
  font-size: 14px; font-weight: 600;
  color: var(--fg-on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.echb-hero__call:hover { color: #fff; border-bottom-color: var(--accent-mark); }

.echb-hero__counters {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: var(--space-6) var(--space-8);
}
.echb-counter__num {
  display: block;
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-4xl); line-height: 1;
  color: var(--primary);
}
.echb-counter__lab {
  display: block; margin-top: var(--space-2);
  max-width: 220px;
  font-size: var(--text-xs); font-weight: 500; line-height: 1.5;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--fg-2);
}
@media (max-width: 800px) {
  .echb-hero { min-height: 580px; padding-top: var(--space-24); }
  .echb-hero__counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6) var(--gutter); }
  .echb-counter__num { font-size: var(--text-3xl); }
}

/* Interior page hero — same blue as the home hero, shorter */
.echb-page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--echb-blue-500) 0%, var(--echb-logo-blue) 100%);
  color: #fff;
  padding: var(--space-24) 0 var(--space-20);
}
.echb-page-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  max-width: 880px;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.echb-page-hero .echb-hero__sub { margin-bottom: 0; }
.echb-page-hero .echb-btn-row { margin-top: var(--space-8); }
.echb-page-hero__note {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-on-dark);
}
.echb-page-hero__note svg { width: 16px; height: 16px; color: var(--echb-silver-100); }
@media (max-width: 700px) { .echb-page-hero { padding: var(--space-16) 0 var(--space-12); } }


/* =========================================================
   8. SECTION COMPONENTS (HOME PAGE)
   ========================================================= */

/* Planning Assessment band */
.echb-assess { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-16); align-items: center; }
.echb-assess__panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.echb-dash-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.echb-dash-list li { display: flex; gap: var(--space-3); align-items: baseline; font-size: var(--text-base); line-height: 1.5; }
.echb-dash-list li::before {
  content: ""; flex: 0 0 auto;
  width: 14px; height: 2px;
  background: var(--accent-mark);
  transform: translateY(-4px);
}
.echb-assess__list li { color: var(--fg-1); }
@media (max-width: 900px) { .echb-assess { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Badge (pill) */
.echb-badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.echb-badge--silver { background: var(--accent-mark); color: var(--accent-mark-fg); }
.echb-badge--blue { background: var(--primary); color: #fff; }
.echb-badge + .echb-h2 { margin-top: var(--space-4); }

/* Service card (numbered offer) */
.echb-promise {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.echb-promise:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.echb-promise__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-2xl); line-height: 1.15;
  margin: 0; color: var(--fg-1);
}
.echb-promise__body { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--fg-2); margin: 0; }
.echb-promise__body + .echb-promise__body { margin-top: var(--space-1); }
.echb-promise__foot {
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--fg-2);
}
.echb-promise__foot strong { color: var(--fg-1); }
.echb-promise--static:hover { transform: none; box-shadow: none; }
/* A card whose CTA line is the link; the link's hit area covers the whole card */
.echb-promise--link { position: relative; }
.echb-promise__cta {
  margin-top: auto; padding-top: var(--space-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}
.echb-promise__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.echb-promise--link:hover .echb-promise__cta { color: var(--primary-hover); }
.echb-promise__cta:focus-visible { outline: none; }
.echb-promise--link:has(.echb-promise__cta:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 600px) { .echb-promise { padding: var(--space-6); } }

/* Realtor aside */
.echb-realtor {
  display: flex; gap: var(--space-4); align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 640px;
}
.echb-realtor__photo {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--echb-blue-100);
}
.echb-realtor p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--fg-2); }
.echb-realtor a { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--accent-mark); }
.echb-realtor a:hover { color: var(--primary-hover); border-bottom-width: 2px; }
.echb-realtor--flush { margin-top: 0; }

/* Why Ellsworth */
.echb-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); }
.echb-why__item { border-top: 2px solid var(--accent-mark); padding-top: var(--space-5); }
.echb-why__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-2xl); line-height: 1.15;
  margin: 0 0 var(--space-3); color: var(--fg-1);
}
.echb-why__body { margin: 0; color: var(--fg-2); line-height: var(--leading-relaxed); }
@media (max-width: 900px) { .echb-why { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Meet the owner */
.echb-owner { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-16); align-items: center; }
.echb-owner__photo {
  position: relative;
  max-width: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.echb-owner__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.echb-owner__photo::after {
  content: ""; position: absolute; bottom: 14px; right: 14px;
  width: 40px; height: 3px; background: var(--echb-silver);
}
.echb-owner__facts {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--space-6);
  margin: var(--space-6) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.echb-owner__facts h3 {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.echb-owner__facts p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--fg-2); }
.echb-owner__facts strong {
  display: block;
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-xl); line-height: 1.3;
  color: var(--fg-1);
}
@media (max-width: 900px) {
  .echb-owner { grid-template-columns: 1fr; gap: var(--space-10); }
  .echb-owner__photo { max-width: 360px; }
}
@media (max-width: 520px) { .echb-owner__facts { grid-template-columns: 1fr; gap: var(--space-5); } }

/* Closing CTA band */
.echb-closing { text-align: center; }
.echb-closing .echb-h2 { color: var(--fg-on-dark); }
.echb-closing .echb-lede { margin: 0 auto var(--space-8); color: var(--fg-on-dark-2); }
.echb-closing__ctas { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }


/* =========================================================
   9. GALLERY: PROJECT CARDS, PHOTO GRIDS, PHOTO VIEWER
   ========================================================= */

/* Home page "Recent Work": one card per project */
.echb-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 900px) { .echb-gallery-grid { grid-template-columns: 1fr; gap: var(--space-6); max-width: 560px; } }
.echb-gallery-empty { grid-column: 1 / -1; color: var(--fg-3); margin: 0; }

.echb-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.echb-home-card {
  display: flex; flex-direction: column;
  color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.echb-home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.echb-home-card__photo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--echb-blue-100);
  overflow: hidden;
}
.echb-home-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.echb-home-card__photo::after {
  content: ""; position: absolute; bottom: 14px; right: 14px;
  width: 32px; height: 3px; background: var(--echb-silver);
}
.echb-home-card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.echb-home-card__tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff;
  background: rgba(6,62,126,0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.echb-home-card__tag--featured { background: var(--accent-mark); color: var(--accent-mark-fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.echb-home-card__body { padding: var(--space-5) var(--space-6) var(--space-2); flex: 1; }
.echb-home-card__meta {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}
.echb-home-card__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-2xl); line-height: 1.15;
  margin: 0 0 var(--space-2); color: var(--fg-1);
}
.echb-home-card__specs { margin: 0; font-size: var(--text-sm); color: var(--fg-2); }
.echb-home-card__cta {
  display: block;
  padding: var(--space-3) var(--space-6) var(--space-5);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}

/* Gallery page: a section per project */
.echb-project__count {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
  white-space: nowrap;
}
.echb-project__specs { margin: 0 0 var(--space-3); font-weight: 600; color: var(--fg-1); }
/* Project pages: breadcrumb, linked section titles, links to other homes */
.echb-breadcrumb { margin-bottom: var(--space-4); font-size: var(--text-sm); color: var(--fg-on-dark-2); }
.echb-breadcrumb a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); transition: border-color var(--dur-fast) var(--ease-out); }
.echb-breadcrumb a:hover { border-bottom-color: var(--accent-mark); }
.echb-project__link { color: inherit; transition: color var(--dur-fast) var(--ease-out); }
.echb-project__link:hover { color: var(--primary); }
.echb-project__more { margin: var(--space-10) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--border); color: var(--fg-2); line-height: 2; }
.echb-project__foot .echb-btn-row { gap: var(--space-6); }
.echb-project__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }
.echb-project__credit {
  margin: 0;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--fg-3);
}

.echb-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.echb-photo-grid__item {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden;
  background: var(--echb-blue-100);
  cursor: zoom-in;
}
.echb-photo-grid__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.echb-photo-grid__item:hover img { opacity: 0.88; }
.echb-photo-grid__item--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* The lead photo fills its two grid rows exactly, whatever the photo's own proportions */
.echb-photo-grid__item--lead img { position: absolute; inset: 0; }
/* Small sets (under 5 photos): equal tiles, one per photo up to three across */
.echb-photo-grid--even { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); max-width: calc(var(--cols, 3) * 420px); }
.echb-photo-grid__more {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(6,62,126,0.6);
  color: #fff;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color var(--dur) var(--ease-out);
}
.echb-photo-grid__more strong {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-3xl); line-height: 1; letter-spacing: 0; text-transform: none;
  color: var(--echb-silver);
}
.echb-photo-grid__item:hover .echb-photo-grid__more { background: rgba(6,62,126,0.72); }
.echb-photo-grid__item--lead::after {
  content: ""; position: absolute; bottom: 16px; right: 16px;
  width: 40px; height: 3px; background: var(--echb-silver);
}
@media (max-width: 900px) { .echb-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .echb-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .echb-photo-grid__item--lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .echb-photo-grid--even { grid-template-columns: 1fr; }
}

/* Full-screen photo viewer (native <dialog>) */
.echb-viewer {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(11,35,67,0.97); /* --echb-blue-900 ink: photos read best on near-black */
  color: #fff;
  overflow: hidden;
}
.echb-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: echbFade var(--dur) var(--ease-out); }
.echb-viewer::backdrop { background: rgba(11,35,67,0.9); }
.echb-viewer__bar {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
}
.echb-viewer__title { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); }
.echb-viewer__count {
  margin-right: auto;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}
.echb-viewer__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08); border: 0; border-radius: var(--radius-pill);
  color: #fff;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.echb-viewer__btn:hover { background: rgba(255,255,255,0.18); }
.echb-viewer__btn svg { width: 24px; height: 24px; }
.echb-viewer__btn:focus-visible { outline: 2px solid var(--echb-silver-300); outline-offset: 2px; }
.echb-viewer__stage:focus { outline: none; }
.echb-viewer__stage {
  margin: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 88px var(--space-6);
}
.echb-viewer__stage img {
  max-width: 100%; max-height: calc(100% - 40px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-sm);
}
.echb-viewer__caption { min-height: 24px; margin-top: var(--space-3); font-size: var(--text-sm); color: rgba(255,255,255,0.75); text-align: center; }
.echb-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.echb-viewer__nav--prev { left: var(--space-5); }
.echb-viewer__nav--next { right: var(--space-5); }
.echb-viewer--single .echb-viewer__nav { display: none; }
@media (max-width: 700px) {
  .echb-viewer__bar { padding-left: var(--space-4); }
  .echb-viewer__title { font-size: var(--text-md); }
  .echb-viewer__stage { padding: 0 var(--space-2) 96px; }
  .echb-viewer__nav { top: auto; bottom: var(--space-6); transform: none; }
  .echb-viewer__nav--prev { left: calc(50% - 60px); }
  .echb-viewer__nav--next { right: calc(50% - 60px); }
}

@keyframes echbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes echbRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================================
   10. INTERIOR PAGE COMPONENTS
   ========================================================= */

/* Prose blocks */
.echb-prose p { color: var(--fg-2); }
.echb-prose p:last-child { margin-bottom: 0; }
.echb-prose .echb-realtor { margin: var(--space-6) 0; }

/* Service-area tiles (About) */
.echb-area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); }
.echb-area-grid__item { border-top: 2px solid var(--accent-mark); padding-top: var(--space-4); }
.echb-area-grid__item h3 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-2xl); line-height: 1.2; color: var(--fg-1);
}
a.echb-area-grid__item--link { display: block; color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out); }
.echb-area-grid__source {
  display: inline-block; margin-top: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); transition: color var(--dur-fast) var(--ease-out);
}
a.echb-area-grid__item--link:hover, a.echb-area-grid__item--link:focus-visible { border-top-color: var(--primary); }
a.echb-area-grid__item--link:hover h3, a.echb-area-grid__item--link:focus-visible h3 { color: var(--primary); }
a.echb-area-grid__item--link:hover .echb-area-grid__source { color: var(--primary-hover); }
.echb-area-grid__icon { width: 12px; height: 12px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Where We Build area map (About) */
.echb-area-map { margin: 0 0 var(--space-16); }
.echb-area-map__svg { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-md, 6px); font-family: var(--font-sans); }
.echb-map__bg { fill: var(--bg-inset); }
.echb-map__region { font-family: var(--font-serif); font-style: italic; font-size: 26px; fill: var(--echb-success); opacity: 0.7; }
.echb-map__road-casing { fill: none; stroke: var(--bg); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.echb-map__road { fill: none; stroke: var(--border-strong); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.echb-map__shield rect { fill: var(--bg); stroke: var(--border-strong); stroke-width: 2; }
.echb-map__shield text { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--fg-2); }
.echb-map__edge { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--fg-3); }
.echb-map__town { cursor: pointer; }
.echb-map__town text { font-family: var(--font-serif); font-weight: 600; font-size: 30px; fill: var(--fg-1); paint-order: stroke; stroke: var(--bg-inset); stroke-width: 6px; stroke-linejoin: round; transition: fill var(--dur-fast) var(--ease-out); }
.echb-map__hit { fill: transparent; }
.echb-map__dot { fill: var(--primary); stroke: var(--bg); stroke-width: 3; transition: r var(--dur-fast) var(--ease-out); }
.echb-map__town:hover text, .echb-map__town:focus-visible text { fill: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }
.echb-map__town:hover .echb-map__dot, .echb-map__town:focus-visible .echb-map__dot { r: 10px; }
.echb-map__town:focus-visible { outline: none; }
.echb-map__town:focus-visible .echb-map__hit { stroke: var(--primary); stroke-width: 2; }
.echb-map__home-bg { fill: var(--primary); stroke: var(--accent); stroke-width: 4; }
.echb-map__home-icon { fill: none; stroke: var(--primary-fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.echb-map__town--home text { font-size: 34px; }
.echb-map__town--home .echb-map__home-note { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--fg-2); }
.echb-map__north path { fill: var(--fg-2); }
.echb-map__north text, .echb-map__scale text { font-family: var(--font-mono); font-size: 15px; fill: var(--fg-2); }
.echb-map__scale path { fill: none; stroke: var(--fg-2); stroke-width: 2; }
.echb-area-map__caption { margin-top: var(--space-3); text-align: center; font-size: var(--text-sm); color: var(--fg-2); }
@media (max-width: 520px) { .echb-area-map { margin-bottom: var(--space-10); } }
@media (max-width: 900px) { .echb-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); } }
@media (max-width: 520px) { .echb-area-grid { grid-template-columns: 1fr; } }
.echb-area-foot { margin: var(--space-12) 0 0; text-align: center; color: var(--fg-2); }

/* Numbered checklist (Building Process — "What you'll need") */
.echb-numbered { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.echb-numbered__item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}
.echb-numbered__num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-3xl); line-height: 1;
  color: var(--primary);
}
.echb-numbered__item .echb-h3 { margin-bottom: var(--space-2); }
.echb-numbered__item p { margin: 0; color: var(--fg-2); max-width: 68ch; }
@media (max-width: 600px) { .echb-numbered__item { grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); } .echb-numbered__num { font-size: var(--text-2xl); } }

/* Process steps */
.echb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.echb-step { padding-top: var(--space-6); border-top: 2px solid var(--accent-mark); }
.echb-step__num {
  display: block; margin-bottom: var(--space-3);
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-3xl); line-height: 1;
  color: var(--primary);
}
.echb-step__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-xl); line-height: 1.25;
  color: var(--fg-1); margin: 0 0 var(--space-2);
}
.echb-step__body { margin: 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--fg-2); }
@media (max-width: 900px) { .echb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .echb-steps { grid-template-columns: 1fr; } }

/* FAQ accordion */
.echb-faq { max-width: var(--container-narrow); margin: 0 auto; border-top: 1px solid var(--border); }
.echb-faq__item { border-bottom: 1px solid var(--border); }
.echb-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-xl); line-height: 1.3;
  color: var(--fg-1);
}
.echb-faq__item summary::-webkit-details-marker { display: none; }
.echb-faq__item summary:hover { color: var(--primary); }
.echb-faq__icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  color: var(--primary);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.echb-faq__icon svg { width: 16px; height: 16px; }
.echb-faq__item[open] .echb-faq__icon { transform: rotate(45deg); background: var(--primary); border-color: var(--primary); color: #fff; }
.echb-faq__body { padding: 0 0 var(--space-6); max-width: 68ch; }
.echb-faq__body p { color: var(--fg-2); margin: 0; }

/* Callout */
.echb-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-mark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6) var(--space-8);
  color: var(--fg-2);
}
.echb-callout__title {
  display: block; margin-bottom: var(--space-2);
  font-size: 13px; font-weight: 600; line-height: 1.5;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--primary);
}
.echb-callout p:last-child { margin-bottom: 0; }
.echb-callout .echb-realtor { margin: var(--space-3) 0 0; padding: 0; border: 0; background: transparent; }
@media (max-width: 600px) { .echb-callout { padding: var(--space-5); } }

/* Contact info block */
.echb-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
}
.echb-info-card .echb-eyebrow { display: block; margin-bottom: 0; }
.echb-info-card .echb-info-card__nap { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--fg-3); }
.echb-info-card__nap a { color: var(--primary); }
.echb-info-card__phone {
  display: inline-block;
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--text-3xl); line-height: 1.1;
  color: var(--fg-1);
  margin: var(--space-1) 0 var(--space-2);
}
.echb-info-card__phone:hover { color: var(--primary); }
.echb-info-card p { margin: 0; color: var(--fg-2); font-size: var(--text-sm); }
@media (max-width: 600px) { .echb-info-card { padding: var(--space-5); } }

.echb-map {
  margin-top: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--echb-blue-100);
}
.echb-map iframe { display: block; width: 100%; height: 280px; border: 0; }
.echb-map__link {
  display: block;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--primary);
}
.echb-map__link:hover { color: var(--primary-hover); background: var(--bg-inset); }

.echb-stack > * + * { margin-top: var(--space-6); }

/* Alert — something went wrong (e.g. a form submission that didn't go through) */
.echb-alert {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--echb-error);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--fg-2);
}
.echb-alert:focus { outline: none; }
.echb-alert__title {
  display: block; margin-bottom: var(--space-2);
  font-size: 13px; font-weight: 600; line-height: 1.5;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--echb-error);
}
.echb-alert p { margin: 0 0 var(--space-4); }
.echb-alert a { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--accent-mark); }
.echb-alert a:hover { color: var(--primary-hover); }

/* Build note — internal reminders shown only while the site is in progress */
.echb-build-note {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--echb-silver-50);
  border: 1.5px dashed var(--echb-silver-500);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6;
  color: var(--echb-silver-700);
}


/* =========================================================
   11. FORMS
   ========================================================= */
.echb-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) { .echb-form-card { padding: var(--space-6) var(--space-5); } }

.echb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
@media (max-width: 640px) { .echb-form-grid { grid-template-columns: 1fr; } }

.echb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.echb-field--full { grid-column: 1 / -1; }
.echb-field > label, .echb-label {
  font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
}
.echb-req { color: var(--primary); }

.echb-input,
.echb-field input, .echb-field select, .echb-field textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.4;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.echb-field textarea, textarea.echb-input { resize: vertical; min-height: 120px; }
.echb-field select, select.echb-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5056' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.echb-input:focus,
.echb-field input:focus, .echb-field select:focus, .echb-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,82,158,0.14);
}
.echb-field input::placeholder, .echb-field textarea::placeholder { color: var(--echb-grey-400); }
.echb-field input:user-invalid, .echb-field textarea:user-invalid { border-color: var(--echb-error); }

.echb-form-note { margin: 0 0 var(--space-6); font-size: var(--text-sm); color: var(--fg-3); }
.echb-form-actions { margin-top: var(--space-6); }
.echb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.echb-check-inline {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-sm); color: var(--fg-1); cursor: pointer;
}
.echb-check-inline input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin: 0; }


/* =========================================================
   12. PLANNING ASSESSMENT
   ========================================================= */
.echb-progress { margin-bottom: var(--space-12); }
.echb-progress__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.echb-progress__label strong { color: var(--fg-1); font-weight: 600; }
.echb-progress__track { height: 4px; background: var(--echb-blue-100); border-radius: var(--radius-pill); overflow: hidden; }
.echb-progress__fill { height: 100%; background: var(--primary); border-radius: var(--radius-pill); transition: width var(--dur) var(--ease-out); }

.echb-assess-step { display: none; }
.echb-assess-step.active { display: block; animation: echbRise 280ms var(--ease-out); }
.echb-assess-step .echb-h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: var(--space-2); }
.echb-step-intro { color: var(--fg-2); margin: 0 0 var(--space-8); max-width: 56ch; }

.echb-assess-field { margin-bottom: var(--space-8); }
.echb-field-label {
  display: block; margin-bottom: var(--space-3);
  font-size: var(--text-base); font-weight: 600; line-height: 1.5;
  color: var(--fg-1);
}

/* Choice pills (radio / checkbox groups) */
.echb-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.echb-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.echb-pills label {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 500; line-height: 1.4;
  color: var(--fg-1);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.echb-pills label:hover { border-color: var(--primary); }
.echb-pills input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.echb-pills input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Checkbox tiles */
.echb-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 600px) { .echb-check-list { grid-template-columns: 1fr; } }
.echb-check-list label {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.echb-check-list label:hover { border-color: var(--primary); }
.echb-check-list input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
.echb-check-list label:has(input:checked) { border-color: var(--primary); background: var(--bg-inset); box-shadow: inset 0 0 0 1px var(--primary); }

/* Priority ranking rows */
.echb-priority-list { display: flex; flex-direction: column; gap: var(--space-2); }
.echb-priority-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 10px 10px 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.echb-priority-row span { font-weight: 500; font-size: var(--text-base); }
.echb-priority-row select { width: auto; min-width: 180px; font-size: var(--text-sm); padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 480px) {
  .echb-priority-row { flex-direction: column; align-items: stretch; gap: var(--space-2); padding: 12px; }
  .echb-priority-row select { width: 100%; }
}

/* Budget calculator */
.echb-calc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.echb-calc__input { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.echb-calc__input input { width: 180px; font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; }
.echb-calc__result {
  background: var(--bg-sky);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  margin-bottom: var(--space-6);
}
.echb-calc__label {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--primary);
}
.echb-calc__amount {
  margin-top: var(--space-2);
  font-family: var(--font-serif); font-weight: 700;
  font-size: var(--text-4xl); line-height: 1.1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.echb-calc__disclaimer {
  margin: 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent-mark);
  font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--fg-2);
}
@media (max-width: 600px) { .echb-calc { padding: var(--space-5); } .echb-calc__amount { font-size: var(--text-3xl); } }

/* Step navigation */
.echb-assess-nav {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.echb-assess-nav .spacer { flex: 1; }

/* Review summary */
.echb-summary-block { margin-bottom: var(--space-8); }
.echb-summary-block h3 {
  margin-bottom: var(--space-3);
  font-size: 13px; font-weight: 600;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--primary);
}
.echb-summary-block dl { margin: 0; }
.echb-summary-row {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.echb-summary-row dt { color: var(--fg-2); flex-shrink: 0; max-width: 45%; }
.echb-summary-row dd { margin: 0; text-align: right; font-weight: 600; color: var(--fg-1); overflow-wrap: anywhere; }

/* Thank-you screen */
.echb-assess-done { text-align: center; padding: var(--space-6) 0 0; }
.echb-assess-done .echb-lede { margin-left: auto; margin-right: auto; }
.echb-check-badge {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-fg);
}
.echb-check-badge svg { width: 28px; height: 28px; }
.echb-site-eval-status { max-width: 560px; margin: 0 auto var(--space-8); text-align: left; }
.echb-site-eval-status .echb-btn { margin-top: var(--space-4); }
.echb-assess-done__summary { text-align: left; margin-top: var(--space-12); }


/* =========================================================
   13. FOOTER
   ========================================================= */
.echb-footer {
  background: var(--bg-darker);
  color: var(--fg-on-dark);
  padding: var(--space-16) 0 var(--space-6);
  border-top: 1px solid var(--border-dark);
}
.echb-footer__top { display: grid; grid-template-columns: 1fr 3fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.echb-footer__logo { height: 48px; width: auto; }
.echb-footer__tag { margin: var(--space-4) 0 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 280px; }
.echb-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.echb-footer__social a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.echb-footer__social a:hover { color: var(--echb-silver-300); border-color: var(--echb-silver-300); }
.echb-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.echb-footer__cols a, .echb-footer__cols p {
  display: block; margin: 0 0 6px;
  font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,0.75);
}
.echb-footer__cols a { width: fit-content; transition: color var(--dur-fast) var(--ease-out); }
.echb-footer__cols a:hover { color: var(--echb-silver-300); }
.echb-footer__h,
.echb-footer__cols .echb-footer__h {
  margin: 0 0 var(--space-3);
  font-size: 12px; font-weight: 600; line-height: 1.5;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--echb-silver-300);
}
.echb-footer__sub {
  display: flex; gap: var(--space-2) var(--space-4); flex-wrap: wrap;
  padding-top: var(--space-5); padding-bottom: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.echb-footer__sub strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.echb-footer__sub a { color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.3); }
.echb-footer__sub a:hover { color: var(--echb-silver-300); border-bottom-color: var(--echb-silver-300); }
.echb-footer__legal {
  display: flex; justify-content: space-between; gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.75);
}
@media (max-width: 900px) {
  .echb-footer__top { grid-template-columns: 1fr; gap: var(--space-10); }
  .echb-footer__legal { flex-direction: column; }
}
@media (max-width: 600px) {
  .echb-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
  .echb-footer__cols > div:nth-child(2) { grid-column: 1 / -1; order: 3; } /* service area gets its own row */
}


/* =========================================================
   14. UTILITIES
   ========================================================= */
.echb-text-center { text-align: center; }
.echb-mt-0 { margin-top: 0; }
.echb-mb-0 { margin-bottom: 0; }
.echb-mt-8 { margin-top: var(--space-8); }
.echb-mt-12 { margin-top: var(--space-12); }
.echb-mt-16 { margin-top: var(--space-16); }
.echb-mb-8 { margin-bottom: var(--space-8); }
.echb-mb-12 { margin-bottom: var(--space-12); }
.echb-max-70 { max-width: 70ch; }
.echb-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }


/* =========================================================
   15. COST GUIDE (/cost-to-build)
   ========================================================= */
/* A dollar figure the owner still has to supply: obvious on purpose */
.echb-fill {
  display: inline-block; padding: 0 6px;
  background: var(--echb-silver-50); border-bottom: 2px dashed var(--accent-mark);
  font-family: var(--font-mono); font-size: 0.9em; color: var(--fg-1); white-space: nowrap;
}

/* Table of contents */
.echb-toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); counter-reset: none; }
.echb-toc li { border-bottom: 1px solid var(--border); }
.echb-toc a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); align-items: baseline;
  padding: var(--space-4) 0; color: inherit; transition: color var(--dur-fast) var(--ease-out);
}
.echb-toc a:hover .echb-toc__title { color: var(--primary); }
.echb-toc__num { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; color: var(--primary); }
.echb-toc__title { display: block; font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; color: var(--fg-1); }
.echb-toc__desc { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--fg-2); }

/* Cost line items: name | explanation + typical range */
.echb-cost-list { border-top: 1px solid var(--border); }
.echb-cost-row {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: var(--space-8);
  padding: var(--space-6) 0; border-bottom: 1px solid var(--border);
}
.echb-cost-row__title { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; color: var(--fg-1); margin: 0; }
.echb-cost-row p { margin: 0 0 var(--space-3); color: var(--fg-2); max-width: 70ch; }
.echb-cost-row__range {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.04em; color: var(--primary); line-height: 2;
}
@media (max-width: 700px) { .echb-cost-row { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Big-number row (cost splits, family facts) */
.echb-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-8); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.echb-stat-row .echb-counter__num { font-size: var(--text-3xl); }

/* Two quick checklists side by side */
.echb-guide-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-12); }
@media (max-width: 700px) { .echb-guide-cols { grid-template-columns: 1fr; } }

/* Section number beside a section header */
.echb-part { display: block; font-family: var(--font-serif); font-weight: 600; font-size: var(--text-5xl); line-height: 1; color: var(--echb-blue-200); margin-bottom: var(--space-2); }
.echb-bg-sky .echb-part { color: var(--echb-blue-300); }

/* In-page jump targets clear the sticky header */
.echb-guide [id] { scroll-margin-top: 96px; }
.echb-cost { white-space: nowrap; }
.echb-faq__body p + p { margin-top: var(--space-3); }


/* =========================================================
   SUBCONTRACTOR ONBOARDING AND JOB SHEETS (/subcontractors, /job-sheet)
   ========================================================= */
.echb-section--tight { padding: var(--space-12) 0; }

/* Onboarding form sections */
.echb-fieldset { border: 0; margin: 0; padding: var(--space-8) 0 0; min-width: 0; }
.echb-fieldset + .echb-fieldset { margin-top: var(--space-8); border-top: 1px solid var(--border); }
.echb-fieldset__legend {
  float: left; width: 100%; /* keeps the legend off the fieldset border */
  display: flex; align-items: baseline; gap: var(--space-3); padding: 0; margin-bottom: var(--space-5);
  font-family: var(--font-serif); font-weight: 600; font-size: var(--text-2xl); line-height: 1.2; color: var(--fg-1);
}
.echb-fieldset__legend .echb-label-mono { color: var(--primary); }
.echb-fieldset__legend + * { clear: both; }
.echb-form-grid--pair { gap: var(--space-4); }
@media (max-width: 640px) { .echb-form-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.echb-field__hint { margin: var(--space-1) 0 0; }

/* Business card scanner */
.echb-scan { background: var(--bg-inset); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: var(--space-6); }
.echb-scan__lede { margin: 0 0 var(--space-4); color: var(--fg-2); font-size: var(--text-sm); }
.echb-scan__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.echb-scan__btn { cursor: pointer; }
.echb-scan:has(input:focus-visible) .echb-scan__btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.echb-scan__status { margin-top: var(--space-4); }
.echb-scan__msg { display: block; font-size: var(--text-sm); color: var(--fg-1); margin-bottom: var(--space-2); }
.echb-scan__bar { display: block; height: 4px; background: var(--echb-blue-100); border-radius: var(--radius-pill); overflow: hidden; }
.echb-scan__bar > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width var(--dur) var(--ease-out); }
.echb-scan__preview { display: block; max-width: 260px; max-height: 180px; margin-top: var(--space-4); border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: contain; background: #fff; }
.echb-scan:not([hidden]) + .echb-scan__skip { margin: var(--space-3) 0 0; }
.echb-scan[hidden] + .echb-scan__skip { margin: 0; }
.echb-field--scanned input, .echb-field--scanned select { background: var(--echb-silver-50); border-color: var(--echb-silver-500); }
.echb-field--scanned > label::after {
  content: "From your card"; margin-left: var(--space-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--echb-silver-700);
}

/* W-9 help box */
.echb-w9-help { margin-top: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--bg-inset); border-radius: var(--radius); font-size: var(--text-sm); color: var(--fg-2); }
.echb-w9-help p { margin: 0 0 var(--space-3); }
.echb-w9-help .echb-w9-help__fine { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--fg-3); }

/* Expectations summary */
.echb-expect { margin-bottom: var(--space-6); }
.echb-expect__card { border: 1px solid var(--border); border-top: 2px solid var(--accent-mark); border-radius: var(--radius-md); padding: var(--space-6); background: #fff; }
.echb-expect__card .echb-label-mono { margin: 0 0 var(--space-2); color: var(--primary); }
.echb-expect__h { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.25; color: var(--fg-1); margin: var(--space-6) 0 var(--space-3); }
.echb-expect__card .echb-label-mono + .echb-expect__h { margin-top: 0; }
.echb-expect__list, .echb-expect__stages { margin: 0; padding-left: 1.25em; color: var(--fg-2); font-size: var(--text-sm); }
.echb-expect__list li, .echb-expect__stages li { margin-bottom: var(--space-2); }
.echb-expect__stages strong { color: var(--fg-1); }
.echb-expect__rules { margin: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.echb-expect__rules dt { font-weight: 600; color: var(--fg-1); }
.echb-expect__rules dd { margin: 2px 0 0; color: var(--fg-2); }
.echb-expect__more { margin: var(--space-5) 0 var(--space-4); font-size: var(--text-sm); color: var(--fg-2); }
.echb-agree { align-items: flex-start; margin-top: var(--space-5); }
.echb-agree input { margin-top: 2px; }

.echb-done-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }

/* Printable job sheet */
.echb-jobsheet { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-10); box-shadow: var(--shadow-sm); color: var(--fg-1); }
@media (max-width: 600px) { .echb-jobsheet { padding: var(--space-6) var(--space-4); } }
.echb-jobsheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-bottom: var(--space-5); border-bottom: 2px solid var(--accent-mark); flex-wrap: wrap-reverse; }
.echb-jobsheet__head .echb-label-mono { margin: 0 0 var(--space-1); color: var(--primary); }
.echb-jobsheet__title { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-3xl); line-height: 1.1; margin: 0; }
.echb-jobsheet__logo { height: 44px; width: auto; }
.echb-jobsheet__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
@media (max-width: 700px) { .echb-jobsheet__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.echb-jobsheet__meta dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.echb-jobsheet__meta dd { margin: var(--space-1) 0 0; padding-bottom: var(--space-1); border-bottom: 1px solid var(--echb-grey-300); min-height: 1.6em; font-weight: 500; overflow-wrap: anywhere; }
.echb-jobsheet__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.echb-jobsheet__table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--text-sm); }
@media (max-width: 600px) {
  .echb-jobsheet__table th, .echb-jobsheet__table td { padding: var(--space-2); }
  .echb-jobsheet__table .echb-jobsheet__n { width: 34px; padding-left: 4px; padding-right: 4px; }
  .echb-jobsheet__table .echb-jobsheet__photo { width: 44px; }
  .echb-jobsheet__table .echb-jobsheet__sign { width: 60px; }
  .echb-jobsheet__table th { font-size: 10px; letter-spacing: 0.04em; }
}
.echb-jobsheet__table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); background: var(--bg-inset); padding: var(--space-3); border: 1px solid var(--echb-grey-300); vertical-align: bottom; }
.echb-jobsheet__table th span { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--fg-3); }
.echb-jobsheet__table td { padding: var(--space-2) var(--space-3); border: 1px solid var(--echb-grey-300); vertical-align: top; }
.echb-jobsheet__who { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--fg-2); }
.echb-jobsheet__part { margin-top: var(--space-6); break-inside: auto; }
.echb-jobsheet__h { font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.25; color: var(--fg-1); margin: 0 0 var(--space-3); break-after: avoid; }
.echb-jobsheet__h span { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 400; color: var(--fg-3); }
.echb-jobsheet__list { margin: 0; padding-left: 1.25em; font-size: var(--text-sm); color: var(--fg-2); }
.echb-jobsheet__list li { margin-bottom: var(--space-1); }
.echb-jobsheet__specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-6); font-size: var(--text-sm); }
@media (max-width: 700px) { .echb-jobsheet__specs { grid-template-columns: 1fr; } }
.echb-jobsheet__specs div { padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.echb-jobsheet__specs dt { font-weight: 600; color: var(--fg-1); }
.echb-jobsheet__specs dd { margin: 2px 0 0; color: var(--fg-2); }
.echb-jobsheet__n { width: 36px; text-align: center; font-family: var(--font-mono); color: var(--fg-3); }
.echb-jobsheet__sign { width: 130px; }
.echb-jobsheet__photo { width: 64px; text-align: center; }
.echb-jobsheet__box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--echb-grey-500); border-radius: 2px; }
.echb-jobsheet__empty { text-align: center; color: var(--fg-3); margin: 0; padding: var(--space-8); }
.echb-jobsheet__notes { margin-top: var(--space-6); }
.echb-jobsheet__label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin: 0; }
.echb-jobsheet__notes span { display: block; height: 32px; border-bottom: 1px solid var(--echb-grey-300); }
.echb-jobsheet__signoff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-10); }
@media (max-width: 600px) { .echb-jobsheet__signoff { grid-template-columns: 1fr; } }
.echb-jobsheet__line { display: block; height: 32px; border-bottom: 1px solid var(--fg-1); }
.echb-jobsheet__signoff p { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--fg-2); }
.echb-jobsheet__fine { margin: var(--space-8) 0 0; font-size: var(--text-xs); color: var(--fg-3); }

@media print {
  @page { margin: 0.5in; }
  body { background: #fff; }
  .echb-header, .echb-footer, .echb-skip-link, .echb-noprint { display: none !important; }
  .echb-jobsheet-wrap { padding: 0; background: #fff; }
  .echb-jobsheet-wrap .echb-container { padding: 0; max-width: none; }
  .echb-jobsheet { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .echb-jobsheet__scroll { overflow: visible; }
  .echb-jobsheet__table { min-width: 0; }
  .echb-jobsheet__table tr { break-inside: avoid; }
  .echb-jobsheet__table th { background: var(--echb-blue-50); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .echb-jobsheet__meta { grid-template-columns: repeat(4, 1fr); }
  .echb-jobsheet__specs { grid-template-columns: 1fr 1fr; }
  .echb-jobsheet__table { font-size: 12px; }
  .echb-jobsheet__signoff { grid-template-columns: 1fr 1fr; break-inside: avoid; }
}

/* Subcontractor Hub policy list */
.echb-policy { margin: 0; border-top: 1px solid var(--border); }
.echb-policy__item { padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.echb-policy dt { display: flex; gap: var(--space-3); align-items: baseline; font-family: var(--font-serif); font-weight: 600; font-size: var(--text-xl); line-height: 1.25; color: var(--fg-1); }
.echb-policy dt .echb-label-mono { color: var(--primary); }
.echb-policy dd { margin: var(--space-2) 0 0; color: var(--fg-2); max-width: 65ch; }
.echb-hero__link { color: var(--echb-white); text-decoration: underline; text-decoration-color: var(--accent-mark); text-underline-offset: 3px; }
.echb-hero__link:hover { color: var(--echb-silver-100); }
