/* Home Efficiency Professionals — the site's own identity, taken from the logo (DESIGN-STANDARD §3, §4).
   Two inks and a ground: near-black ink and the logo's leaf green on white stock. Dark mode is
   the same design on black stock. Thin black lines echo the logo's house outline.
   Fonts bundled with their OFL licences (fonts/). No CDN, no inline styles (CSP style-src 'self'). */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #ffffff;
  --panel: #f3f6f1;
  --ink: #0b0d0c;            /* the logo's black, a hair softer */
  --muted: #4a514c;          /* 8.2:1 on white */
  --rule: #0b0d0c;
  --hair: #d5dbd3;
  --leaf: #69bd4e;           /* the logo's green, sampled from the .ai: decorative and large marks only */
  --leaf-vein: #53a446;
  --leaf-ink: #2f6e21;       /* the same green, deep enough for text and buttons: 6.2:1 on white */
  --on-leaf: #ffffff;
  --crit: #b3261e;
  --focus: #2f6e21;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0d0f0e;
    --panel: #151917;
    --ink: #f2f5f1;
    --muted: #b4bcb6;
    --rule: #f2f5f1;
    --hair: #2a312d;
    --leaf-ink: #69bd4e;
    --on-leaf: #0b0d0c;
    --crit: #ff8a80;
    --focus: #69bd4e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0d0f0e; --panel: #151917; --ink: #f2f5f1; --muted: #b4bcb6; --rule: #f2f5f1;
  --hair: #2a312d; --leaf-ink: #69bd4e; --on-leaf: #0b0d0c; --crit: #ff8a80; --focus: #69bd4e;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 17px/1.6 var(--text); font-feature-settings: "cv11", "ss01";
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ground);
  padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* --- type --- */
.display, .h2, .h3, .kicker, .foot-h, legend, .btn, .row-t, .st-t, .tl-n, .st-n {
  font-family: var(--display);
}
.display {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.02; margin: 0 0 22px;
}
.display-sm { font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.06; }
.accent { color: var(--leaf-ink); }
.h2 { font-weight: 800; font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 22px; height: 12px; border-top: 2px solid var(--leaf); border-left: 2px solid var(--leaf);
  transform: rotate(45deg) translate(3px, 3px); }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.small, .note { font-size: .92rem; color: var(--muted); }
.slot { color: var(--crit); font-weight: 600; }
.draft-flag { display: inline-block; border: 2px solid var(--crit); color: var(--crit); padding: 4px 10px; font-weight: 700;
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  background: var(--leaf-ink); color: var(--on-leaf); border: 2px solid var(--leaf-ink); border-radius: 0;
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .82rem; }
.btn-invert { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn-invert:hover { background: transparent; color: var(--ground); border-color: var(--ground); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.link-arrow { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow::after { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 0 0 0 0 currentColor;
  transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- header --- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1.5px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; color: var(--ink); text-decoration: none; padding: 6px 0; }
.logo-word { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .03em; }
.nav ul a:hover { color: var(--leaf-ink); }
.nav ul a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--leaf); }
.menu { display: none; }

/* logo colours follow the theme */
.logo-word .k, .logo-full .k { fill: var(--ink); }
.logo-word .g, .logo-full .g { fill: var(--leaf); }
.logo-word .v, .logo-full .v { fill: var(--leaf-vein); }
.logo-full .ln { fill: none; stroke: var(--ink); stroke-linecap: butt; stroke-miterlimit: 10; }
.logo-full .lw { stroke-width: 2.562; }
.logo-full .lt { stroke-width: .854; }

/* --- hero --- */
.hero { border-bottom: 1.5px solid var(--rule); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }
.hero-mark { justify-self: end; width: 100%; max-width: 400px; }
.logo-full { width: 100%; height: auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; padding: 0; margin: 0; font-family: var(--display);
  font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.ticks li { display: flex; align-items: center; }
.ticks li + li::before { content: ""; width: 26px; height: 1.5px; background: var(--leaf); margin: 0 10px; }

/* --- sections --- */
main > section { padding: clamp(56px, 8vw, 104px) 0; }
main > section.hero { padding: 0; }
.band { background: var(--panel); border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.band + .band, .band + .cta { border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.band-cta { margin-top: 36px; }
.more { margin: 24px 0 0; }
.page-head { padding-bottom: clamp(24px, 4vw, 48px) !important; border-bottom: 1.5px solid var(--rule); }
.page-head-tight { padding-top: clamp(40px, 6vw, 72px) !important; }

/* uniform rows, not cards (DESIGN-STANDARD §7) */
.rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid var(--rule); }
.rows > li { border-bottom: 1px solid var(--hair); }
.rows > li > a, .rows-plain > li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 8px 32px; align-items: baseline;
  padding: 18px 0; color: var(--ink); text-decoration: none; }
.rows > li > a { padding-right: 34px; position: relative; }
.rows > li > a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-top: 2px solid var(--leaf-ink); border-right: 2px solid var(--leaf-ink); transform: translateY(-50%) rotate(45deg);
  transition: transform .2s; }
.rows > li > a:hover::after { transform: translate(4px, -50%) rotate(45deg); }
.rows > li > a:hover .row-t { color: var(--leaf-ink); }
.row-t { font-weight: 700; font-size: 1.08rem; }
.row-d { color: var(--muted); }

/* illustrations: line drawings */
.art { margin: 0; }
.art svg { width: 100%; height: auto; overflow: visible; }
.art text { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  fill: var(--ink); text-anchor: middle; }
.line-ink { fill: none; stroke: var(--ink); stroke-width: 3; }
.line-thin { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tangle { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: .012 .012; }
.node circle { fill: var(--ground); stroke: var(--ink); stroke-width: 3; }
.leaf { fill: var(--leaf); }
.vein { fill: none; stroke: var(--leaf-vein); stroke-width: 1.5; }
.dot { fill: var(--ink); }
.stop rect, .stop path { fill: var(--ground); stroke: var(--ink); stroke-width: 3; stroke-linejoin: miter; }
.panel { fill: var(--ground); stroke: var(--ink); stroke-width: 2.5; }
.panel-grid { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.battery { fill: var(--leaf); stroke: var(--ink); stroke-width: 2.5; }
.battery-cap { stroke: var(--ink); stroke-width: 3; }

/* energy audit checklist */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--rule); }
.checks li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 26px; height: 26px; border: 2px solid var(--ink);
  background: var(--leaf) no-repeat center / 16px 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%230b0d0c' stroke-width='2.4'/%3E%3C/svg%3E"); }

/* process steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: var(--ink);
  transform-origin: left center; }
.steps li { position: relative; padding-right: 18px; display: flex; flex-direction: column; gap: 6px; }
.st-n { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ground); border: 3px solid var(--ink);
  font-weight: 800; font-size: 1.1rem; position: relative; z-index: 1; transition: background-color .3s, color .3s; }
.st-t { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.st-d { color: var(--muted); font-size: .95rem; }

/* call to action */
.cta { background: var(--ink); color: var(--ground); }
.cta-in { text-align: left; }
.cta .h2 { color: var(--ground); }
.cta p { color: var(--ground); opacity: .85; max-width: 52ch; }

/* services page */
.svc-list { padding-top: 24px !important; }
.svc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--hair);
  max-width: 900px; }
.svc:last-child { border-bottom: 0; }
.svc-ico { width: 56px; height: 56px; }
.svc-ico path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: miter; }
.svc:target .svc-ico path, .svc:hover .svc-ico path { stroke: var(--leaf-ink); }
.dash { margin: 0 0 1em; padding-left: 0; list-style: none; }
.dash li { padding-left: 24px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--leaf); }

/* process page */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; background: var(--ink); }
.tl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 28px; padding: 32px 0; position: relative; }
.tl-n { display: grid; place-items: center; width: 48px; height: 48px; background: var(--leaf); border: 3px solid var(--ink);
  color: #0b0d0c; font-weight: 800; font-size: 1.15rem; position: relative; z-index: 1; }
.tl-out { border-left: 3px solid var(--leaf); padding-left: 14px; }

/* about */
.about { padding-top: clamp(40px, 6vw, 80px) !important; align-items: start; }
.role { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem;
  color: var(--leaf-ink); }
.art-about { max-width: 360px; justify-self: center; }

/* forms */
.form { display: grid; gap: 26px; margin-top: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.req { font-family: var(--text); font-weight: 600; font-size: .78rem; color: var(--muted); text-transform: none; letter-spacing: 0;
  margin-left: 6px; }
.hint { color: var(--muted); font-size: .92rem; margin: -4px 0 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ink);
  cursor: pointer; background: var(--ground); font-weight: 500; }
.opt:has(input:checked) { background: var(--panel); border-color: var(--leaf-ink); box-shadow: inset 4px 0 0 var(--leaf); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--leaf-ink); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--ground);
  border: 1.5px solid var(--ink); border-radius: 0;
}
textarea { resize: vertical; min-height: 140px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], .opts[aria-invalid="true"] { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit); }
.count { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.2em; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { margin: 0; font-weight: 600; }
.field-err { margin: 8px 0 0; color: var(--crit); font-weight: 600; font-size: .95rem; }
.field-err::before { content: "! "; font-weight: 800; }
.consent { flex-wrap: wrap; }
.consent .field-err { flex-basis: 100%; }
.status.err { color: var(--crit); }
.done { border: 2px solid var(--ink); border-left: 8px solid var(--leaf); padding: 28px; margin-top: 8px; }
.done:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.preview-note { border: 2px dashed var(--crit); padding: 12px 16px; color: var(--crit); font-weight: 600; }
.split-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start;
  padding-top: 48px !important; max-width: var(--wrap); }
.contact-card { border-top: 3px solid var(--ink); padding-top: 18px; }
.prose { padding-top: 40px !important; }
.prose .h3 { margin-top: 1.6em; }

/* footer */
.foot { border-top: 1.5px solid var(--rule); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); max-width: 40ch; margin-top: 12px; }
.foot-h { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { min-height: 36px; display: flex; align-items: center; }
.foot-list a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.foot-list a:hover { color: var(--leaf-ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--hair); font-size: .88rem; color: var(--muted); }
.foot-base p { margin: 0; }
.foot-base a { color: var(--muted); }
/* The up-front "not a contractor" statement, directly under the header on every page
   (Michael, 2026-12-04). Quiet but not dismissible, and it reads before the hero. */
.stance { background: var(--panel); border-bottom: 1px solid var(--hair); }
.stance p {
  margin: 0;
  padding: 10px 0;
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 600px) { .stance p { font-size: .9rem; padding: 9px 0; } }
@media print { .stance { background: none; } }

/* A sourced money figure inside a case-study step: set apart, never shouted. */
.figure-note {
  border-left: 3px solid var(--leaf-ink);
  padding: 2px 0 2px 14px;
  margin: 12px 0;
  color: var(--muted);
  font-size: .95rem;
}
.figure-note strong { color: var(--ink); }

.lic { font-weight: 600; color: var(--ink); }
.lic.slot { color: var(--crit); }

/* --- motion (DESIGN-STANDARD §7a): once, on scroll; transform, opacity and stroke-dash only.
   Hidden states apply only when boot.js has run and motion is allowed, so no-JS and reduced
   motion both get the finished frame. --- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .hero-copy > :nth-child(2) { transition-delay: .08s; }
  .js .hero-copy > :nth-child(3) { transition-delay: .16s; }
  .js .hero-copy > :nth-child(4) { transition-delay: .24s; }
  .js .hero-copy > :nth-child(5) { transition-delay: .32s; }
  .js .hero.in .hero-copy > * { opacity: 1; transform: none; }

  .js .draw .ln { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .2s; }
  .js .draw .g, .js .draw .v, .js .draw .k { opacity: 0; transition: opacity .7s ease .9s; }
  .js .hero.in .draw .ln { stroke-dashoffset: 0; }
  .js .hero.in .draw .g, .js .hero.in .draw .v, .js .hero.in .draw .k { opacity: 1; }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }

  /* hand-offs: the tangle fades, one straight line draws through the five */
  .js .art-handoffs .straight { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease .5s; }
  .js .art-handoffs .tangle { transition: opacity .8s ease .3s; }
  .js .art-handoffs .node circle { transition: fill .3s ease; }
  .js .art-handoffs .leafmark { opacity: 0; transform: translateY(10px); transition: opacity .5s ease 1.6s, transform .5s ease 1.6s; }
  .js .reveal.in .art-handoffs .straight { stroke-dashoffset: 0; }
  .js .reveal.in .art-handoffs .tangle { opacity: .18; }
  .js .reveal.in .art-handoffs .leafmark { opacity: 1; transform: none; }
  .js .reveal.in .art-handoffs .n1 circle { fill: var(--leaf); transition-delay: .7s; }
  .js .reveal.in .art-handoffs .n2 circle { fill: var(--leaf); transition-delay: .9s; }
  .js .reveal.in .art-handoffs .n3 circle { fill: var(--leaf); transition-delay: 1.1s; }
  .js .reveal.in .art-handoffs .n4 circle { fill: var(--leaf); transition-delay: 1.3s; }
  .js .reveal.in .art-handoffs .n5 circle { fill: var(--leaf); transition-delay: 1.5s; }

  /* supply: the route draws and the panel and battery travel to the house */
  .js .art-supply .route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .3s; }
  .js .art-supply .cargo { transform: translate(0, 0); transition: transform 1.6s cubic-bezier(.5,0,.2,1) .4s; }
  .js .reveal.in .art-supply .route { stroke-dashoffset: 0; }
  .js .reveal.in .art-supply .cargo { transform: translate(362px, 34px); }

  /* audit: each item ticks in turn */
  .js .checks li::before { background-color: var(--ground); background-size: 0 0; transition: background-color .25s ease, background-size .25s ease; }
  .js .reveal.in .checks li::before { background-color: var(--leaf); background-size: 16px 16px; }
  .js .reveal.in .checks .c2::before { transition-delay: .25s; }
  .js .reveal.in .checks .c3::before { transition-delay: .5s; }
  .js .reveal.in .checks .c4::before { transition-delay: .75s; }
  .js .reveal.in .checks .c5::before { transition-delay: 1s; }
  .js .reveal.in .checks .c6::before { transition-delay: 1.25s; }

  /* steps: the line runs left to right and each number turns green */
  .js .steps::before { transform: scaleX(0); transition: transform 1.6s ease .2s; }
  .js .reveal.in .steps::before { transform: scaleX(1); }
  .js .reveal.in .steps .st-n { background: var(--leaf); color: #0b0d0c; }
  .js .reveal.in .steps .st1 .st-n { transition-delay: .3s; }
  .js .reveal.in .steps .st2 .st-n { transition-delay: .6s; }
  .js .reveal.in .steps .st3 .st-n { transition-delay: .9s; }
  .js .reveal.in .steps .st4 .st-n { transition-delay: 1.2s; }
  .js .reveal.in .steps .st5 .st-n { transition-delay: 1.5s; }

  .js .svc .svc-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease .2s; }
  .js .svc.in .svc-ico path { stroke-dashoffset: 0; }
  .js .art-about .draw-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease .2s; }
  .js .about.in .art-about .draw-path { stroke-dashoffset: 0; }
}
/* the finished frame, with motion off or no script */
.steps .st-n { background: var(--leaf); color: #0b0d0c; }
.js .steps .st-n { background: var(--ground); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .js .steps .st-n { background: var(--leaf); color: #0b0d0c; }
  .art-handoffs .tangle { opacity: .18; }
  .art-handoffs .node circle { fill: var(--leaf); }
  .art-supply .cargo { transform: translate(362px, 34px); }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.js) .art-handoffs .tangle { opacity: .18; }
  html:not(.js) .art-handoffs .node circle { fill: var(--leaf); }
  html:not(.js) .art-supply .cargo { transform: translate(362px, 34px); }
}

/* --- phone --- */
@media (max-width: 900px) {
  .hero-in, .split, .split-contact { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { justify-self: start; max-width: 200px; order: -1; }
  .split-rev > figure { order: 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: center top; }
  .js .steps::before { transform: scaleY(0); }
  .js .reveal.in .steps::before { transform: scaleY(1); }
  .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .st-n { grid-row: span 2; }
  .st-t { margin-top: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px;
    background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font: 700 .85rem var(--display);
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  html:not(.js) .menu { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--ground); border-bottom: 1.5px solid var(--rule); padding: 8px var(--gut) 20px; }
  html:not(.js) .nav { position: static; padding: 0 0 12px; border: 0; }
  html:not(.js) .top-in { flex-wrap: wrap; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { min-height: 48px; padding: 0; border-bottom: 1px solid var(--hair); width: 100%; }
  .nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--leaf); padding-left: 12px; }
  .logo-word { height: 34px; }
  .rows > li > a, .rows-plain > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .opts-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .art text { font-size: 18px; }
}
@media (hover: none) {
  .link-arrow:hover::after, .rows > li > a:hover::after { transform: none; }
}

/* --- 2026-11-12 relaunch: smart home, power demo, audits ---------------------------------- */
.foot-brand .addr { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillars li { border: 1px solid var(--hair); background: var(--ground); padding: 1.5rem; }
.pillars .svc-ico { width: 44px; height: 44px; margin-bottom: .75rem; }
.pillars .h3 { margin: 0 0 .5rem; }
.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { border: 1px solid var(--rule); padding: .45rem .85rem; font-weight: 600; font-size: .95rem; }
.brand-groups { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.brand-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.brand-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--hair); }
.tag { font-size: .78rem; font-weight: 700; color: var(--leaf-ink); white-space: nowrap; }
.tag-c { color: var(--muted); }

.demo { border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); margin-bottom: 3rem; }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.demo-head .h3 { margin: 0; }
.sample-flag { margin: 0; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid var(--crit); color: var(--crit); padding: .2rem .6rem; }
.tiles { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tiles li { background: var(--panel); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.tile-k { font-size: .85rem; color: var(--muted); }
.tile-v { font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tiles-sum .tile-v { font-size: 1.1rem; }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .peak { fill: var(--panel); }
.chart .peak-t { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--text); }
.chart .grid-l path { stroke: var(--hair); stroke-width: 1; fill: none; }
.chart .grid-l text { fill: var(--muted); font-size: 11px; text-anchor: end; font-family: var(--text); }
.chart .grid-l .hx { text-anchor: middle; }
.chart .sol { fill: var(--leaf); opacity: .28; stroke: var(--leaf); stroke-width: 1.5; }
.chart .use-before { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .use-after { fill: none; stroke: var(--leaf-ink); stroke-width: 3; }
.chart .lab { font-size: 12px; font-weight: 700; font-family: var(--text); }
.chart .lab-before { fill: var(--ink); }
.chart .lab-after, .chart .lab-sol { fill: var(--leaf-ink); }
.demo[data-view="before"] .use-after, .demo[data-view="before"] .lab-after,
.demo[data-view="after"] .use-before, .demo[data-view="after"] .lab-before { opacity: .12; }
.legend { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: .4rem; vertical-align: middle; border-top: 3px solid var(--leaf-ink); }
.legend .lg-sol::before { border-top: 10px solid var(--leaf); opacity: .5; }
.legend .lg-before::before { border-top: 2px dashed var(--ink); }
.toggle { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.toggle .btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.demo-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.5rem; }
.bars, .events { list-style: none; padding: 0; margin: .75rem 0; }
.bars li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: .6rem; padding: .35rem 0; }
.bar { background: var(--panel); height: 12px; display: block; }
.fill { display: block; height: 100%; background: var(--leaf-ink); }
.bars .flag .fill { background: var(--crit); }
.bars .flag .bar-k { font-weight: 700; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; }
.w100 { width: 100%; } .w69 { width: 69%; } .w55 { width: 55%; } .w52 { width: 52%; } .w38 { width: 38%; } .w31 { width: 31%; }
.events li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.events .flag { color: var(--crit); font-weight: 600; }
.ev-t { font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 520px) { .bars li { grid-template-columns: 7.5rem 1fr 2.5rem; } }
/* QA 2026-11-14: on phones the chart scales to ~310px, so its 11px labels rendered near 6px. */
@media (max-width: 600px) {
  .chart .grid-l text, .chart .peak-t { font-size: 20px; }
  .chart .lab { font-size: 20px; }
}
/* Case study: real bills */
.real-flag { margin: 0; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid var(--leaf-ink); color: var(--leaf-ink); padding: .2rem .6rem; }
.chart .yr rect { fill: var(--leaf-ink); }
.chart .yr.hi rect { fill: var(--muted); }
.chart .bv { fill: var(--ink); font-size: 13px; font-weight: 700; text-anchor: middle; font-family: var(--text); }
.chart .bx { fill: var(--muted); font-size: 12px; text-anchor: middle; font-family: var(--text); }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.data { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.data th, .data td { text-align: right; padding: .55rem .6rem; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.data th:first-child { text-align: left; }
.data thead th { font-size: .85rem; color: var(--muted); }
.data .best { font-weight: 700; color: var(--leaf-ink); }
@media (max-width: 600px) { .chart .bv, .chart .bx { font-size: 22px; } }
/* Prices (Michael 2026-11-16: audit $500, full setup about $2,000) */
.price-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.price-k { font-weight: 600; }
.price-v { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--leaf-ink); white-space: nowrap; }
.price-list .price-n { display: block; color: var(--muted); font-size: .9rem; border-bottom: 0; }
/* Starter kits */
.kits { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kit { border: 1px solid var(--rule); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.kit .svc-ico { width: 44px; height: 44px; }
.kit .h3 { margin: .25rem 0; }
.kit-who { color: var(--muted); font-size: .9rem; margin-top: auto; }
.kit .buy { align-self: flex-start; }
.order-note { border-left: 4px solid var(--leaf-ink); padding: .75rem 1rem; background: var(--panel); font-weight: 600; }
.steps-v { grid-template-columns: 1fr; }
