/* ==========================================================================
   CC Electrical & Solar
   Design system derived from the company's vehicle livery: graphite body,
   white condensed type, turquoise / cyan / green linear leaf geometry.
   ========================================================================== */

/* ---------- Self-hosted fonts (SIL Open Font License) ---------- */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink-950: #071216;
  --ink-900: #0b171c;
  --ink-800: #142229;
  --ink-700: #1f3039;
  --surface: #f4f6f4;
  --surface-2: #e7ebe9;
  --white: #ffffff;
  --muted: #aeb9bc;
  --muted-ink: #52626a;
  --teal: #14c9b0;
  --teal-ink: #087566;
  --cyan: #17aeda;
  --green: #75d13d;
  --error: #ff9b8a;
  --error-ink: #b3261e;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .28);
  --line-ink: rgba(7, 18, 22, .14);
  --energy: linear-gradient(90deg, var(--green), var(--teal) 50%, var(--cyan));

  --f-display: "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --line-ink-strong: rgba(7, 18, 22, .28);

  /* Layout */
  --gutter: clamp(1rem, 4.2vw, 4rem);
  --max: 1440px;
  --header-h: 72px;
  --cut: clamp(1.75rem, 3.4vw, 3.5rem);
  --measure: 34rem;               /* body copy line length (~60-70 characters) */

  /* Spacing scale: every margin, gap and padding below uses one of these */
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-sm: 1rem;
  --space-md: clamp(1.25rem, 2vw, 1.75rem);   /* heading to text, text blocks */
  --space-lg: 2rem;                           /* text to action */
  --space-xl: clamp(2.5rem, 5vw, 4rem);       /* heading block to media */
  --space-2xl: clamp(3rem, 6vw, 6rem);        /* column gaps */
  --section-y: clamp(5rem, 11vw, 10rem);      /* section padding */
  --section-y-sm: clamp(3.5rem, 7vw, 6rem);   /* tighter edges: before footer, under the electrical word */

  /* Type tiers for small uppercase text */
  --fs-label: .74rem;  --ls-label: .16em;     /* eyebrows, captions, tags, labels */
  --fs-ui: .8rem;      --ls-ui: .12em;        /* buttons, nav, inline actions */

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .3s;     /* colour and border changes */
  --dur: .5s;          /* transforms: sweeps, underlines, arrows */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--ink-950);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 300;
  padding: .75rem 1.1rem;
  background: var(--teal);
  color: var(--ink-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.section--light :focus-visible { outline-color: var(--ink-900); }

.section--light { background: var(--surface); color: var(--ink-900); }
.section--dark { background: var(--ink-950); color: var(--white); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: .004em;
  line-height: .88;
}
/* Scale steps: H1 (hero) > final CTA > feature H2 > standard H2 */
.display--l   { font-size: clamp(2.7rem, 5vw, 5rem); }
.display--xl  { font-size: clamp(3.1rem, 6.4vw, 6.8rem); }
.display--xxl { font-size: clamp(3.3rem, 7.6vw, 8.2rem); line-height: .86; }

/* Shared spacing for heading -> lede -> action stacks */
.services__intro .display,
.electrical__copy .display,
.cleaning__content .display,
.contact__intro .display { margin-bottom: var(--space-md); }

/* One lede style for every section intro paragraph */
.services__lede, .electrical__lede, .about__lede, .contact__lede {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}
/* One larger lede style for the two feature sections */
.solar__copy .solar__lede, .cleaning__content .cleaning__lede {
  color: var(--white);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
}

/* Line masks used by the heading reveals */
.line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.line > span { display: inline-block; will-change: transform; }
.line--accent > span { color: var(--teal); }
.section--light .line--accent > span { color: var(--teal-ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}
.eyebrow__num {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-variant-numeric: tabular-nums;
  color: var(--teal-ink);
}
.eyebrow__num::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--muted); }
.eyebrow--light .eyebrow__num { color: var(--teal); }

.label {
  display: block;
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}

.marker {
  display: inline-block;
  flex: none;
  width: .5rem; height: .5rem;
  background: var(--green);
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-sweep: var(--white);
  --btn-sweep-fg: var(--ink-950);
  --btn-border: var(--line-strong);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; pointer-events: none; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-sweep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-sweep-fg); border-color: var(--btn-sweep); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn--primary {
  --btn-bg: var(--teal);
  --btn-fg: var(--ink-950);
  --btn-border: var(--teal);
  --btn-sweep: var(--white);
}
.btn--ghost { --btn-border: var(--line-strong); }
.btn--dark {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--white);
  --btn-border: var(--ink-900);
  --btn-sweep: var(--teal);
  --btn-sweep-fg: var(--ink-950);
}
.btn--sm { min-height: 2.75rem; padding: 0 1.125rem; font-size: .76rem; }
.btn--block { width: 100%; }

/* Arrow glyph: a line plus a chevron, drawn in CSS so it inherits colour */
.btn__arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: .45rem; height: .45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}
.btn__arrow--down { transform: rotate(90deg); }
.btn__arrow--up { transform: rotate(-90deg); }
a:hover > .btn__arrow, a:focus-visible > .btn__arrow,
button:hover > .btn__arrow, button:focus-visible > .btn__arrow { transform: translateX(3px); }
a:hover > .btn__arrow--down, a:focus-visible > .btn__arrow--down { transform: rotate(90deg) translateX(3px); }
a:hover > .btn__arrow--up, a:focus-visible > .btn__arrow--up { transform: rotate(-90deg) translateX(3px); }

.icon { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, opacity var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 18, 22, .96);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }

.nav { margin-left: auto; display: none; }
.nav__list { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); list-style: none; }
.nav__list a {
  position: relative;
  display: inline-block;
  padding: .6rem 0;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .82);
  transition: color var(--dur-fast) ease;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .25rem;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--white); }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-md); }
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 44px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--white);
}
.header-phone span { transition: color var(--dur-fast) ease; }
.header-phone .icon { color: var(--teal); }
.header-phone:hover span { color: var(--teal); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  min-width: 44px;
  padding: 0 .25rem 0 .75rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), width var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; width: 100%; }
.menu-toggle__bars span:last-child { top: 10px; width: 65%; background: var(--teal); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; width: 100%; transform: rotate(-45deg); background: currentColor; }

@media (max-width: 1023.98px) {
  .site-header__actions .btn { display: none; }
}
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .nav { display: block; }
  .site-header__actions { margin-left: clamp(1rem, 2vw, 2.5rem); }
  .menu-toggle { display: none; }
  .brand img { height: 44px; }
}
@media (min-width: 1240px) {
  .header-phone { display: inline-flex; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink-950);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-io);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: calc(var(--header-h) + var(--space-md)) var(--gutter) calc(var(--space-lg) + env(safe-area-inset-bottom));
}
.mobile-menu__list { list-style: none; border-top: 1px solid var(--line); }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-xs) 0 .6rem;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 10.5vw, 4.25rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(1.25rem);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color var(--dur-fast) ease;
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: .04s, .04s, 0s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: .08s, .08s, 0s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: .12s, .12s, 0s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: .16s, .16s, 0s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) a { transition-delay: .2s, .2s, 0s; }
.mobile-menu__list a:hover { color: var(--teal); }
.mobile-menu__num {
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  min-width: 1.75rem;
}
.mobile-menu__contact { display: grid; gap: var(--space-sm); }
.mobile-menu__phone {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  text-decoration: none;
}
.mobile-menu__email { font-weight: 600; font-size: 1.05rem; text-underline-offset: .25em; text-decoration-color: var(--teal); min-height: 44px; display: inline-flex; align-items: center; }
html.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-950);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 3;
  order: 1;
  padding-top: calc(var(--header-h) + var(--space-xl));
}
.hero__media { order: 2; }
.hero__base { order: 3; }
.hero__marker {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 17.5vw, 6.25rem);
  line-height: .86;
  letter-spacing: .004em;
  text-transform: uppercase;
}
.hero__lede {
  max-width: 30rem;
  margin-top: var(--space-md);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}
@media (max-width: 479.98px) {
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}

.hero__media {
  position: relative;
  z-index: 1;
  margin-top: var(--space-xl);
  aspect-ratio: 4 / 3.3;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.hero__media-inner { position: absolute; inset: -6% 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 22, .55), rgba(7, 18, 22, 0) 32%);
  pointer-events: none;
}
/* Graphite panel that slides off the photograph during the intro. The image
   itself is painted from the first frame, so LCP is never held back. */
.hero__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink-950);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
/* Diagonal energy line tracing the photo's cut edge (desktop) */
.hero__edge { display: none; }

/* Technical annotation pinned to the real rooftop array (positioned by JS) */
.hero__note {
  position: absolute;
  z-index: 1;
  left: var(--nx, -999px);
  top: var(--ny, -999px);
  display: none;
  width: 0; height: 0;
  margin: 0;
  pointer-events: none;
}
.hero__note.is-placed { display: block; }
.hero__note-dot {
  position: absolute;
  left: -5px; top: -5px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--green);
  background: rgba(7, 18, 22, .6);
  transform: rotate(45deg);
}
.hero__note-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--green);
}
.hero__note-line {
  position: absolute;
  left: 4px; top: 0;
  width: 92px; height: 1px;
  background: rgba(255, 255, 255, .85);
  transform: rotate(38deg);
  transform-origin: left center;
}
.hero__note-label {
  position: absolute;
  left: 72px; top: 46px;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  background: var(--ink-950);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.hero__note-label b { font-weight: 600; color: var(--teal); }
.hero__trace {
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--energy);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  top: var(--header-h);
  pointer-events: none;
}
.hero__leaf {
  position: absolute;
  z-index: 2;
  right: -8%;
  top: calc(var(--header-h) + 1rem);
  width: clamp(200px, 58vw, 340px);
  opacity: .22;
  pointer-events: none;
  display: none; /* shown on desktop only, where it sits on the photograph */
}
.hero__base {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
  padding-block: var(--space-md) var(--space-lg);
}
.hero__contact {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  min-height: 44px;
  transition: color var(--dur-fast) ease;
}
.hero__contact:hover { color: var(--teal); }
.hero__scroll { display: none; }

/* Mobile / tablet: energy line along the photo's angled top edge */
@media (max-width: 1023.98px) {
  .hero__media::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: 3;
    height: 14%;
    background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--teal) 50%, transparent calc(50% + 1.5px));
    pointer-events: none;
  }
}
@media (min-width: 640px) {
  .hero__media { aspect-ratio: 16 / 9.5; }
  .hero__media img { object-position: 30% 50%; }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: max(700px, 100svh);
  }
  .hero__inner {
    align-self: center;
    padding-top: calc(var(--header-h) + var(--space-xl));
    padding-bottom: var(--space-lg);
  }
  .hero__title { font-size: clamp(4.5rem, min(9.6vw, 15.5svh), 8.64rem); }
  .hero__media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    /* Photo edge follows the content column on wide screens, so it never reaches the headline */
    left: max(36%, calc(50% - 180px));
    width: auto;
    margin: 0;
    aspect-ratio: auto;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__media img { object-position: 28% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 22, .78) 0%, rgba(7, 18, 22, .35) 9%, rgba(7, 18, 22, 0) 18%),
      linear-gradient(90deg, rgba(7, 18, 22, .7) 0%, rgba(7, 18, 22, .1) 34%, rgba(7, 18, 22, 0) 55%),
      linear-gradient(0deg, rgba(7, 18, 22, .88) 0%, rgba(7, 18, 22, 0) 26%);
  }
  /* Leaf lines sit on the cut edge over the van, echoing the livery, not behind the type */
  .hero__leaf {
    display: block;
    right: auto;
    left: max(42%, calc(50% - 115px));
    top: auto;
    bottom: 12%;
    width: clamp(190px, 15vw, 280px);
    opacity: .85;
  }
  @media (max-width: 1279.98px) {
    .hero__leaf { display: none; } /* copy column reaches the photo edge here */
  }
  .hero__edge {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0; right: 0; bottom: 0;
    left: max(36%, calc(50% - 180px));
    width: auto;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .hero__edge line { stroke-width: 1.5; }
  .hero__note.is-placed { display: block; }
  .hero__base {
    align-items: center;
    padding-block: var(--space-md);
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ink-950) 30%, transparent);
  }
  .hero__base::before {
    content: "";
    position: absolute;
    left: var(--gutter); top: -1px;
    width: 4.5rem; height: 1px;
    background: var(--energy);
  }
  .hero__contact { flex-direction: row; align-items: center; gap: var(--space-xs); }
  .hero__contact .label { display: inline; }
  .hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
  }
  .hero__scroll i {
    position: relative;
    width: 1px; height: 2.75rem;
    background: var(--line-strong);
    overflow: hidden;
  }
  .hero__scroll i::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 40%;
    background: var(--teal);
  }
}

/* ---------- Service rail ---------- */
.rail {
  position: relative;
  padding-block: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  overflow: hidden;
  user-select: none;
}
.rail__row {
  display: flex;
  align-items: center;
  gap: .32em;
  width: max-content;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5.4vw, 5.4rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  will-change: transform;
}
.rail__row--outline {
  margin-left: -30vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .32);
}
.rail__sep {
  position: relative;
  display: inline-block;
  width: .32em;
  height: .32em;
  flex: none;
}
.rail__sep::before, .rail__sep::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--teal);
  transform: skewX(-28deg);
}
.rail__sep::before { left: 30%; }
.rail__sep::after { left: 65%; background: var(--green); }

/* ---------- Clip cut (angled corner from the flyer artwork) ---------- */
.clip-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }


[data-reveal-image], .media { overflow: hidden; }
[data-reveal-image] img, .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services ---------- */
.services { padding-block: var(--section-y); }
.services__grid { display: grid; gap: var(--space-2xl); }
.services__lede { margin-bottom: var(--space-lg); color: var(--muted-ink); }
.services__figure {
  margin-top: var(--space-xl);
  aspect-ratio: 16 / 10;
}
.services__figure img { object-position: var(--pos, 42% 50%); }

/* Service index: an accordion. Every title shares one size; the description
   and enquiry link sit in a panel that opens beneath the title. */
.service-index { list-style: none; border-top: 1px solid var(--line-ink); }
.service { position: relative; }
/* Row rule, drawn in by GSAP via --rule (defaults to fully drawn) */
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-ink);
  transform: scaleX(var(--rule, 1));
  transform-origin: left center;
}
.service--feature::after { display: none; }
.service::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  z-index: 1;
  height: 2px;
  background: var(--energy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.service:hover::before, .service:focus-within::before { transform: scaleX(1); transform-origin: left; }

.service__summary {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: 0 var(--space-xs);
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-md);
  list-style: none;
  cursor: pointer;
}
.service__summary::-webkit-details-marker { display: none; }
.service__summary::marker { content: ""; }
.service__summary:focus-visible { outline-offset: 4px; }

.service__num {
  font-size: var(--fs-label);
  line-height: 1;
  font-weight: 600;
  letter-spacing: var(--ls-label);
  font-variant-numeric: tabular-nums;
  color: var(--teal-ink);
}
.service__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .004em;
  transition: color var(--dur-fast) ease;
}
.service__summary:hover .service__title { color: var(--teal-ink); }

/* Plus that turns into a minus when the row is open */
.service__toggle {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-ink-strong);
  border-radius: 2px;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.service__toggle::before, .service__toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .9rem; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
}
.service__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service__details[open] .service__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.service__summary:hover .service__toggle,
.service__details[open] .service__toggle { border-color: var(--teal-ink); color: var(--teal-ink); }

.service__panel {
  display: grid;
  gap: var(--space-xs) var(--space-lg);
  padding: 0 0 var(--space-md) calc(2.75rem + var(--space-xs));
}
.service__text { max-width: var(--measure); color: var(--muted-ink); line-height: 1.6; }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  justify-self: start;
  min-height: 44px;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-900);
  transition: color var(--dur-fast) ease;
}
.service__link:hover { color: var(--teal-ink); }

.service--feature {
  margin-top: var(--space-md);
  padding-inline: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--ink-900);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 1.75rem) 0, 100% 1.75rem, 100% 100%, 0 100%);
}
.service--feature .service__num { color: var(--teal); }
.service--feature .service__text { color: var(--muted); }
.service--feature .service__link { color: var(--white); }
.service--feature .service__link:hover,
.service--feature .service__summary:hover .service__title { color: var(--teal); }
.service--feature .service__toggle { border-color: var(--line-strong); }
.service--feature .service__summary:hover .service__toggle,
.service--feature .service__details[open] .service__toggle { border-color: var(--teal); color: var(--teal); }
.service--feature :focus-visible { outline-color: var(--cyan); }
.service__tag {
  justify-self: start;
  padding: .3rem var(--space-2xs);
  border: 1px solid var(--teal);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal);
}

@media (min-width: 640px) {
  .service__summary { grid-template-columns: 4rem minmax(0, 1fr) auto; }
  .service__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-left: calc(4rem + var(--space-xs));
    padding-right: calc(2.75rem + var(--space-xs));
  }
  .service__tag { grid-column: 1 / -1; }
  .service__link { justify-self: end; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* Only the text sticks; the van photograph lands at the foot of the column,
     level with the cleaning feature, so nothing is clipped on short screens. */
  .services__intro { display: flex; flex-direction: column; }
  .services__sticky { flex: 1; }
  .services__intro-inner { position: sticky; top: calc(var(--header-h) + var(--space-xl)); }
}

/* ---------- Solar feature ---------- */
.solar { padding-block: var(--section-y); overflow: hidden; }
.solar__head { margin-bottom: var(--space-xl); }

.solar__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.solar__media { position: absolute; inset: -8% 0; }
.solar__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 42% 78%);
}
.solar__caption {
  position: absolute;
  left: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--gutter);
  background: var(--ink-950);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}

.solar__body {
  display: grid;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
}
.solar__copy { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; }
.solar__copy p { max-width: var(--measure); color: var(--muted); }
.solar__copy .btn { margin-top: calc(var(--space-lg) - var(--space-sm)); }

.system-wrap { position: relative; }
.system {
  display: grid;
  gap: var(--space-lg);
  list-style: none;
  padding-left: var(--space-lg);
}
.system__line {
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--green), var(--teal) 50%, var(--cyan));
  transform-origin: top;
}
.system__step { position: relative; }
.system__node {
  position: absolute;
  left: calc(var(--space-lg) * -1 + 1px);
  top: .3rem;
  width: 10px; height: 10px;
  background: var(--ink-950);
  border: 1.5px solid var(--teal);
  transform: rotate(45deg);
}
.system__step:first-child .system__node { border-color: var(--green); }
.system__step:last-child .system__node { border-color: var(--cyan); }
.system__index {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal);
}
.system__title, .quote__title {
  margin-bottom: var(--space-2xs);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: .95;
  text-transform: uppercase;
}
.system__step p { color: var(--muted); font-size: 1rem; }

@media (min-width: 640px) {
  .solar__frame { aspect-ratio: 16 / 10; }
  .solar__media img { object-position: var(--pos, 50% 74%); }
}
@media (min-width: 1024px) {
  .solar__frame { aspect-ratio: 21 / 9; }
  .solar__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .system { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); padding-left: 0; padding-top: var(--space-lg); }
  .system__line {
    left: 0; right: 0; top: 5px; bottom: auto;
    width: auto; height: 1px;
    background: var(--energy);
    transform-origin: left;
  }
  .system__node { left: 0; top: calc(var(--space-lg) * -1 + 1px); }
}

/* ---------- Electrical ---------- */
.electrical {
  position: relative;
  padding-block: var(--section-y-sm) var(--section-y);
  overflow: hidden;
}
.electrical__word {
  display: block;
  padding-inline: var(--gutter);
  margin-bottom: var(--space-lg);
  font-family: var(--f-display);
  font-size: clamp(5.5rem, 26vw, 13rem);
  line-height: .8;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(7, 18, 22, .2);
  pointer-events: none;
}
.electrical__grid { position: relative; display: grid; gap: var(--space-2xl); }
.electrical__lede { color: var(--muted-ink); }

.spec-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: var(--space-lg) 0;
  list-style: none;
  border-top: 1px solid var(--line-ink);
}
.spec-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-ink);
  font-weight: 600;
  font-size: 1.05rem;
}
.spec-list small {
  grid-column: 2;
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted-ink);
}
.spec-list__num { grid-row: span 2; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); font-variant-numeric: tabular-nums; color: var(--teal-ink); }

.electrical__media { position: relative; }
.electrical__main { aspect-ratio: 4 / 3.4; }
.electrical__main img { object-position: var(--pos, 66% 60%); }
.electrical__secondary {
  position: relative;
  z-index: 2;
  margin-top: var(--space-sm);
}
.electrical__secondary img { width: 100%; height: auto; aspect-ratio: 1600 / 578; object-fit: cover; object-position: var(--pos, 50% 50%); }
.electrical__secondary figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}

@media (min-width: 640px) {
  .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); }
}
@media (min-width: 1024px) {
  .electrical { padding-top: var(--section-y); }
  .electrical__word {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    padding: 0;
    writing-mode: vertical-rl;
    font-size: clamp(9rem, 17vw, 19rem);
    translate: -.06em -50%;
    rotate: 180deg;
  }
  .electrical__grid { padding-left: calc(var(--gutter) + clamp(6rem, 10vw, 11rem)); }
  .electrical__main { aspect-ratio: 16 / 10; }
}
/* Side-by-side only once the copy column can hold the two-column spec list */
@media (min-width: 1200px) {
  .electrical__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }
  .electrical__main { aspect-ratio: 4 / 3.4; }

}

/* ---------- Solar panel cleaning ---------- */
.cleaning { background: var(--ink-900); overflow: hidden; }
.cleaning__grid { display: grid; }
.cleaning__media {
  position: relative;
  aspect-ratio: 4 / 4.6;
}
.cleaning__media img { object-position: 50% 58%; }
.cleaning__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--energy);
}
.cleaning__content {
  position: relative;
  padding: var(--section-y) var(--gutter);
  display: grid;
  align-content: center;
  justify-items: start;
}
.cleaning__content p { max-width: var(--measure); color: var(--muted); }
.cleaning__content .cleaning__lede { margin-bottom: var(--space-sm); }
.cleaning__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  width: 100%;
  max-width: var(--measure);
  margin: var(--space-lg) 0;
}
.cleaning__facts div { padding-top: var(--space-sm); border-top: 1px solid var(--line-strong); }
.cleaning__facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--teal); }
.cleaning__facts dd { margin: var(--space-2xs) 0 0; font-weight: 600; }
.cleaning__content .btn { white-space: normal; text-align: left; padding-block: var(--space-sm); }

@media (min-width: 640px) {
  .cleaning__media { aspect-ratio: 16 / 12; }
}
@media (min-width: 1024px) {
  .cleaning__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(100svh, 980px); }
  .cleaning__media { aspect-ratio: auto; min-height: 100%; }
  .cleaning__media img { position: absolute; inset: 0; }
  .cleaning__media::after { left: auto; top: 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--green), var(--teal) 50%, var(--cyan)); }
  .cleaning__content { padding-inline: var(--space-2xl) var(--gutter); }
}
@media (min-width: 1440px) {
  .cleaning__content { padding-right: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}

/* ---------- About ---------- */
.about { padding-block: var(--section-y); }
.about__head {
  display: grid;
  gap: var(--space-md) var(--space-2xl);
  align-items: end;
}
.about__lede { color: var(--muted-ink); }

.about__team {
  position: relative;
  margin-block: var(--space-xl);
  aspect-ratio: 16 / 9; /* wide panorama: a squarer crop on phones zooms in too far */
}
.about__team-inner { position: absolute; inset: -5% 0; }
.about__team img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }

.about__grid { display: grid; gap: var(--space-2xl); align-items: start; }
.about__fleet { aspect-ratio: 16 / 9; }
.about__fleet img { object-position: var(--pos, 55% 60%); }

.about__copy { align-self: center; }
.about__copy .about__lede { margin: 0; }


@media (min-width: 640px) {
  .about__team { aspect-ratio: 16 / 7; }
}
@media (min-width: 1024px) {
  .about__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .about__team { aspect-ratio: 1600 / 520; }
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .about__fleet { aspect-ratio: 1600 / 760; }
}

/* ---------- Gallery ----------
   Default (no JS / reduced motion): every set is laid out as a static grid.
   With motion, .is-pinned stacks the sets on one stage and GSAP swaps them as
   the visitor scrolls. */
.gallery { padding-block: var(--section-y); background: var(--surface-2); }
.gallery__head {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.gallery__head .display { margin: 0; }

.gallery__meta { display: none; }

.gallery__set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-xs);
  aspect-ratio: 3 / 4.4;
  margin-bottom: var(--space-xl);
}
.gallery__set--2 { grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); }
.gallery__set-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xs);
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal-ink);
}
.gallery__set-num { color: var(--muted-ink); font-variant-numeric: tabular-nums; }
.gallery__item { position: relative; overflow: hidden; min-height: 0; background: var(--ink-900); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.gallery__set--3 .gallery__item:first-of-type { grid-column: 1 / -1; }
.gallery__set--2 .gallery__item { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  .gallery__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .gallery__set {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-sm);
    aspect-ratio: 16 / 8.6;
  }
  .gallery__set--3 .gallery__item:first-of-type { grid-column: 1; grid-row: 2 / 4; }
  .gallery__set--2 .gallery__item { grid-column: auto; grid-row: 2 / 4; }
  .gallery__set--2 .gallery__item + .gallery__item { margin-top: 12%; }
}

/* ---------- Pinned, scroll-driven mode ---------- */
.gallery.is-pinned { padding-block: 0; }
.gallery.is-pinned .gallery__pin {
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: calc(var(--header-h) + var(--space-md)) var(--space-md);
}
.gallery.is-pinned .gallery__head { margin-bottom: var(--space-md); }
/* Phones/tablets: keep the photographs clear of the fixed Call / Get a Quote bar */
@media (max-width: 1023.98px) {
  .gallery.is-pinned .gallery__pin { padding-bottom: calc(var(--space-md) + 3.5rem + env(safe-area-inset-bottom)); }
}
.gallery.is-pinned .gallery__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: var(--space-2xs) var(--space-md);
  min-width: min(100%, 22rem);
}
.gallery__count {
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: .85;
  font-variant-numeric: tabular-nums;
}
.gallery__count-total { color: var(--muted-ink); font-size: .5em; }
.gallery__labels {
  position: relative;
  height: 1.6em;
  overflow: hidden;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal-ink);
}
.gallery__labels span { position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1.6; }
.gallery__bar { position: relative; display: block; height: 2px; background: var(--line-ink); }
.gallery__bar i {
  position: absolute; inset: 0;
  background: var(--energy);
  transform: scaleX(0);
  transform-origin: left;
}
.gallery.is-pinned .gallery__stage-wrap { flex: 1; min-height: 0; }
.gallery.is-pinned .gallery__stage { position: relative; height: 100%; }
.gallery.is-pinned .gallery__set {
  position: absolute;
  inset: 0;
  margin: 0;
  aspect-ratio: auto;
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
}
.gallery.is-pinned .gallery__set--2 { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.gallery.is-pinned .gallery__set-label {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .gallery.is-pinned .gallery__set,
  .gallery.is-pinned .gallery__set--2 { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery.is-pinned .gallery__set--3 .gallery__item:first-of-type { grid-row: 1 / 3; }
  .gallery.is-pinned .gallery__set--2 .gallery__item { grid-row: 1 / 3; }
}

/* ---------- Contact / final scene ---------- */
/* The final scene cuts in on the same diagonal as the hero photograph */
.contact {
  --slant: clamp(2.5rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
  margin-top: calc(var(--slant) * -1);
  padding-block: calc(var(--section-y) + var(--slant) * .5) var(--section-y-sm);
  overflow: hidden;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.contact::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--slant);
  background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--teal) 50%, transparent calc(50% + 1.5px));
  opacity: .7;
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; gap: var(--space-2xl); }
.contact__lede { color: var(--muted); }
.contact__direct {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.contact__phone {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: .95;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.contact__phone .label, .contact__email .label { margin-bottom: var(--space-2xs); }
.contact__phone:hover { color: var(--teal); }
.contact__email {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) ease;
}
.contact__email:hover { color: var(--teal); }
.contact__media { margin-top: var(--space-xl); aspect-ratio: 16 / 9; }
.contact__media img { object-position: var(--pos, 50% 62%); }

.quote {
  position: relative;
  padding: clamp(var(--space-md), 3.2vw, 2.75rem);
  background: var(--ink-900);
  border: 1px solid var(--line);
}
.quote::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 4.5rem; height: 2px;
  background: var(--energy);
}
.quote__sub { margin: 0 0 var(--space-lg); color: var(--muted); }
.quote__alt { margin-top: var(--space-md); color: var(--muted); font-size: .95rem; }
.quote__alt a { color: var(--white); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: .2em; }

.form { display: grid; gap: var(--space-md); }
.form__row { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); }
.field label {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}
.field__req { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  color: var(--white);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--teal);
  box-shadow: 0 1px 0 0 var(--teal);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__hint { font-size: .85rem; color: var(--muted); }
.field__error { font-size: .88rem; font-weight: 500; color: var(--error); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer; }
.select select option { color: var(--ink-950); background: var(--white); }
.select::after {
  content: "";
  position: absolute;
  right: .4rem; top: 50%;
  width: .5rem; height: .5rem;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.form__required { font-size: .82rem; color: var(--muted); }
.form__required span { color: var(--teal); }
.form__status {
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--teal);
  background: var(--ink-800);
  font-size: .98rem;
  line-height: 1.55;
}
.form__status.is-error { border-left-color: var(--error); }
.form__status:focus { outline: none; }
.form__status a { color: var(--white); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: .2em; }
.form__status .btn { margin-top: var(--space-sm); }

@media (max-width: 1023.98px) {
  /* Mobile order: heading, direct contact, form, then the closing photograph */
  .contact__grid { display: flex; flex-direction: column; gap: 0; }
  .contact__intro { display: contents; }
  .quote { order: 2; margin-top: var(--space-xl); }
  .contact__media { order: 3; }
}
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__direct { grid-template-columns: auto 1fr; align-items: end; gap: var(--space-xl); }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
    .quote { position: sticky; top: calc(var(--header-h) + var(--space-md)); }
}

/* ---------- Footer ---------- */
.footer {
  background: #050d10;
  color: var(--muted);
  font-size: .95rem;
  border-top: 1px solid var(--line);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-md);
  padding-block: var(--section-y-sm);
}
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: 150px; }
.footer__label {
  margin-bottom: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--white);
}
/* Links and plain facts share one row height so the columns line up */
.footer__col ul { list-style: none; display: grid; }
.footer__col li { display: flex; align-items: center; min-height: 44px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color var(--dur-fast) ease; }
.footer__col a:hover { color: var(--teal); }
.footer__col--services { grid-column: 1 / -1; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color var(--dur-fast) ease;
}
.footer__top:hover { color: var(--teal); }

@media (max-width: 639.98px) {
  .footer__col--services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-md); }
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__col--services { grid-column: auto; }
}
@media (min-width: 1024px) {
  .footer { padding-bottom: 0; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__col li, .footer__col a { min-height: 36px; }
  .footer__brand { grid-column: auto; }
}

/* ---------- Mobile quick actions ---------- */
.quickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}
.quickbar.is-visible { transform: none; }
.quickbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3.5rem;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
}
.quickbar__call { color: var(--white); }
.quickbar__call .icon { color: var(--teal); }
.quickbar__quote { background: var(--teal); color: var(--ink-950); }
html.menu-open .quickbar { transform: translateY(110%); }
/* Without JavaScript: keep quick actions visible and hide the menu control */
html:not(.js) .quickbar { transform: none; }
html:not(.js) .menu-toggle { display: none; }
@media (min-width: 1024px) {
  .quickbar { display: none; }
}

/* ==========================================================================
   Multi-page components
   ========================================================================== */
.mobile-menu__list a[aria-current] { color: var(--teal); }

/* Text link with arrow, paired with a button inside .actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-lg);
}
.solar__copy .actions { margin-top: calc(var(--space-lg) - var(--space-sm)); }
.solar__copy .actions .btn { margin-top: 0; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) ease;
}
.section--dark .link-arrow:hover, .cleaning .link-arrow:hover { color: var(--teal); }
.section--light .link-arrow:hover, .cleaning--light .link-arrow:hover { color: var(--teal-ink); }
.about__more { margin-top: var(--space-md); }

/* Breadcrumb */
.breadcrumb { margin-bottom: var(--space-md); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: var(--space-2xs);
  vertical-align: middle;
  background: var(--teal);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--white);
  transition: color var(--dur-fast) ease;
}
.breadcrumb a:hover { color: var(--teal); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-950);
  color: var(--white);
  overflow: hidden;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  order: 1;
  padding-top: calc(var(--header-h) + var(--space-xl));
}
.page-hero__media { order: 2; }
.page-title { font-size: clamp(3.1rem, 13vw, 5.5rem); line-height: .88; }
.page-hero__lede {
  max-width: var(--measure);
  margin-top: var(--space-md);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .84);
}
.page-hero__media {
  position: relative;
  margin-top: var(--space-xl);
  aspect-ratio: 4 / 3.3;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.page-hero__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
  height: 14%;
  background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--teal) 50%, transparent calc(50% + 1.5px));
  pointer-events: none;
}
.page-hero--plain { min-height: 70svh; justify-content: center; padding-bottom: var(--section-y-sm); }
/* Phones: keep the page title and both actions above the fold */
@media (max-width: 639.98px) {
  .page-hero__inner { padding-top: calc(var(--header-h) + var(--space-md)); }
  .page-hero .breadcrumb { margin-bottom: var(--space-2xs); }
}
@media (max-width: 479.98px) {
  .page-hero .hero__actions .btn { flex: 1 1 0; justify-content: center; }
  .hide-sm { display: none; }
}

@media (min-width: 640px) {
  .page-hero__media { aspect-ratio: 16 / 9.5; }
}
@media (min-width: 1024px) {
  .page-hero { min-height: clamp(600px, 84svh, 860px); justify-content: center; }
  .page-hero__inner { padding-bottom: var(--section-y-sm); }
  .page-hero__inner > * { max-width: 44%; }
  .page-title { font-size: clamp(4rem, min(5.6vw, 11svh), 6rem); }
  .page-hero:not(.page-hero--wide) .page-hero__media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 52%;
    margin: 0;
    aspect-ratio: auto;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  }
  /* The energy line follows the diagonal cut on desktop */
  .page-hero:not(.page-hero--wide) .page-hero__media::after {
    inset: 0;
    height: auto;
    background:
      linear-gradient(to bottom right, transparent calc(50% - 1px), var(--teal) 50%, transparent calc(50% + 1px)) left / 22% 100% no-repeat,
      linear-gradient(180deg, rgba(7, 18, 22, .78) 0%, rgba(7, 18, 22, .35) 9%, rgba(7, 18, 22, 0) 18%);
  }

  /* Wide variant: heading and lede side by side, photograph full width below */
  .page-hero--wide { min-height: 0; }
  .page-hero--wide .page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-md) var(--space-2xl);
    align-items: end;
    padding-bottom: 0;
  }
  .page-hero--wide .page-hero__inner > * { max-width: none; }
  .page-hero--wide .page-hero__media { aspect-ratio: 1600 / 560; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .page-hero--wide .page-hero__media::after { height: 18%; }
}

/* Solar page: the feature section follows the hero directly */
.solar--page { border-top: 1px solid var(--line); }

/* About page */
.about__title { margin-bottom: var(--space-xl); }

/* Full-bleed photographic band */
.band {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-950);
}
.band__inner { position: absolute; inset: -5% 0; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 62% 50%); }
.solar__caption, .photo-tag {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--gutter);
  background: var(--ink-950);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 640px) { .band { aspect-ratio: 16 / 7; } }
@media (min-width: 1024px) { .band { aspect-ratio: 1600 / 560; } }

/* Light variant of the cleaning split */
.cleaning--light { background: var(--surface); color: var(--ink-900); }
.cleaning--light .cleaning__content p { color: var(--muted-ink); }
.cleaning--light .cleaning__content .cleaning__lede { color: var(--ink-900); }
.cleaning--light .cleaning__facts div { border-top-color: var(--line-ink-strong); }
.cleaning--light .cleaning__facts dt { color: var(--teal-ink); }
.cleaning--light :focus-visible { outline-color: var(--ink-900); }

/* Text-only variant (cleaning page): the hero carries the single featured photograph */
.cleaning--text { padding-block: var(--section-y); }
.cleaning--text .cleaning__layout { display: grid; gap: var(--space-md) var(--space-2xl); }
.cleaning--text .cleaning__content { padding: 0; }
.cleaning--text .cleaning__head .display { margin-bottom: 0; }
@media (min-width: 1024px) {
  .cleaning--text .cleaning__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .cleaning--text .cleaning__content { padding: 0; align-content: start; }
}

/* Closing CTA band on subpages: same diagonal entry as the home page's final scene */
.cta-band {
  --slant: clamp(2.5rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
  margin-top: calc(var(--slant) * -1);
  padding-block: calc(var(--section-y) + var(--slant) * .5) var(--section-y-sm);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--slant);
  background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--teal) 50%, transparent calc(50% + 1.5px));
  opacity: .7;
  pointer-events: none;
}
.cta-band__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.cta-band__copy .display { margin-bottom: var(--space-md); }
.cta-band__actions {
  display: grid;
  gap: var(--space-md);
  align-content: end;
  justify-items: start;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .cta-band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .cta-band__actions { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 var(--space-xl); }
}

/* Contact page: the final scene becomes the page itself */
.contact--page {
  margin-top: 0;
  clip-path: none;
  padding-top: calc(var(--header-h) + var(--space-xl));
}
.contact--page::before { display: none; }
.contact--page .page-title { font-size: clamp(3.3rem, 7.6vw, 8.2rem); line-height: .86; }
.contact--page .breadcrumb { margin-bottom: var(--space-md); }

/* ---------- About page ---------- */
/* Rows whose top rule is drawn in by GSAP (same --rule technique as the service rows) */
.rule-row { position: relative; }
.rule-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line-ink);
  transform: scaleX(var(--rule, 1));
  transform-origin: left center;
}
.section--dark .rule-row::before { background: var(--line-strong); }

.page-hero__kicker {
  margin-top: var(--space-md);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal);
}

/* Overview: statement + facts strip */
.overview { padding-block: var(--section-y-sm) var(--section-y); }
.overview__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.overview__statement {
  max-width: 40rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-900);
}
.facts { margin: 0; display: grid; gap: 0 var(--space-lg); }
.facts div { display: grid; gap: .2rem; padding-block: var(--space-sm); }
.facts dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal-ink);
}
.facts dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* Founder */
.founder { padding-block: var(--section-y); }
.founder__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.founder__role {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  line-height: 1.3;
  color: var(--muted);
}
.founder__copy { display: grid; gap: var(--space-sm); max-width: var(--measure); }
.founder__copy p { color: var(--muted); }
.founder__copy .founder__lede {
  color: var(--white);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
}

/* No job too big or too small */
.statement { padding-block: var(--section-y); background: var(--ink-900); }
.statement__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.statement__copy { display: grid; gap: var(--space-sm); max-width: var(--measure); align-content: end; }
.statement__copy p { color: var(--muted); }
.statement__copy .statement__lede {
  color: var(--white);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
}

/* Why choose */
.reasons { padding-block: var(--section-y); }
.reasons__head { display: grid; gap: var(--space-md) var(--space-2xl); margin-bottom: var(--space-xl); align-items: end; }
.reasons__intro { max-width: var(--measure); color: var(--muted-ink); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.reasons__list { list-style: none; display: grid; gap: 0 var(--space-lg); }
.reason { padding-block: var(--space-md) var(--space-lg); }
.reason__num {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  font-variant-numeric: tabular-nums;
  color: var(--teal-ink);
}
.reason__title {
  margin-bottom: var(--space-2xs);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: .95;
  text-transform: uppercase;
}
.reason p { max-width: 30rem; color: var(--muted-ink); }

/* Service areas */
.areas { padding-block: var(--section-y); }
.areas__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }
.areas__intro { display: grid; gap: var(--space-sm); align-content: start; justify-items: start; }
.areas__intro .display { margin-bottom: var(--space-2xs); font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
.areas__intro p { max-width: var(--measure); color: var(--muted); }
.areas__intro .btn { margin-top: calc(var(--space-lg) - var(--space-sm)); }
.areas__label {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}
.counties { list-style: none; }
.county { display: grid; gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-md); }
.county:last-child { box-shadow: inset 0 -1px 0 var(--line-strong); }
.county__name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: .9;
  text-transform: uppercase;
}
.county__tag {
  padding: .3rem var(--space-2xs);
  border: 1px solid var(--teal);
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  line-height: 1;
  color: var(--teal);
}
.county p { max-width: 28rem; color: var(--muted); }

/* About CTA extras */
.cta-band__note { margin-top: var(--space-sm); }
.cta-band__serving { font-weight: 600; }
.cta-band__serving .label { margin-bottom: var(--space-2xs); }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .county { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 1024px) {
  .overview__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .founder__grid,
  .statement__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: end; }
  .reasons__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .reasons__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .areas__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .areas__intro { position: sticky; top: calc(var(--header-h) + var(--space-xl)); }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--ink-950);
  color: var(--white);
  border-top: 1px solid var(--line-strong);
  transform: translateY(105%);
  transition: transform var(--dur) var(--ease-out);
}
.consent::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 4.5rem; height: 2px;
  background: var(--energy);
}
.consent.is-visible { transform: none; }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent__inner { display: grid; gap: var(--space-sm); padding: var(--space-md) var(--gutter); }
.consent__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: .95;
  text-transform: uppercase;
}
.consent__text { max-width: 40rem; font-size: .95rem; color: var(--muted); }
.consent__text a, .consent a { color: var(--white); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: .2em; }
.consent__prefs { display: grid; border-top: 1px solid var(--line); }
.consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--line);
}
.consent__option-title { font-weight: 600; }
.consent__option-text { font-size: .88rem; color: var(--muted); }
.consent__always {
  flex: none;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal);
}
/* On/off switch */
.consent__switch {
  flex: none;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 3rem; height: 1.6rem;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink-800);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.consent__switch::after {
  content: "";
  position: absolute;
  left: 3px; top: 50%;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-50%);
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.consent__switch:checked { background: var(--teal); border-color: var(--teal); }
.consent__switch:checked::after { background: var(--ink-950); transform: translate(1.4rem, -50%); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.consent__actions .btn { flex: 1 1 10rem; }
.consent__settings {
  min-height: 44px;
  padding: 0 var(--space-xs);
  border: 0;
  background: none;
  color: var(--white);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: var(--ls-ui);
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: .3em;
  cursor: pointer;
}
html.consent-open .quickbar { transform: translateY(110%); }

@media (min-width: 768px) {
  .consent {
    left: auto;
    right: var(--gutter);
    bottom: var(--gutter);
    width: min(30rem, calc(100vw - 2 * var(--gutter)));
    border: 1px solid var(--line-strong);
    transform: translateY(calc(100% + var(--gutter) + 2rem));
  }
  .consent__inner { padding: var(--space-md); }
}

/* Footer "Cookie settings" control, styled like the footer links */
.footer__cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color var(--dur-fast) ease;
}
.footer__cookie-btn:hover { color: var(--teal); }

.legal__cookie-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-900);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--teal-ink);
  text-underline-offset: .2em;
  cursor: pointer;
}
.legal__cookie-btn:hover { color: var(--teal-ink); }

/* ---------- Privacy policy (legal page) ---------- */
.page-hero--legal { min-height: 0; padding-bottom: var(--section-y-sm); }
.page-hero--legal .page-hero__inner { padding-bottom: 0; }
.legal { padding-block: var(--section-y); }
.legal__grid { display: grid; gap: var(--space-xl) var(--space-2xl); }

.legal__toc-label {
  margin-bottom: var(--space-xs);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted-ink);
}
.legal__toc ol { list-style: none; counter-reset: toc; border-top: 1px solid var(--line-ink); }
.legal__toc li { counter-increment: toc; border-bottom: 1px solid var(--line-ink); }
.legal__toc a {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  min-height: 44px;
  padding-block: .6rem;
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink-900);
  transition: color var(--dur-fast) ease;
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  min-width: 1.75rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--teal-ink);
}
.legal__toc a:hover { color: var(--teal-ink); }

.legal__body { max-width: 46rem; }
.legal__body section { scroll-margin-top: calc(var(--header-h) + var(--space-md)); }
.legal__body section + section { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--line-ink); }
.legal__body h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: .95;
  text-transform: uppercase;
}
.legal__num {
  flex: none;
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--teal-ink);
}
.legal__body h3 {
  margin: var(--space-md) 0 var(--space-2xs);
  font-size: 1.05rem;
  font-weight: 600;
}
.legal__body p, .legal__body li, .legal__body dd { color: var(--muted-ink); line-height: 1.65; }
.legal__body p + p { margin-top: var(--space-sm); }
.legal__body ul { list-style: none; margin: var(--space-sm) 0; display: grid; gap: var(--space-2xs); }
.legal__body ul + p, .legal__body dl + p { margin-top: var(--space-sm); }
.legal__body li { position: relative; padding-left: 1.4rem; }
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0; top: .7em;
  width: .45rem; height: .45rem;
  border: 1.5px solid var(--teal-ink);
  transform: rotate(45deg);
}
.legal__body a { color: var(--ink-900); font-weight: 600; text-decoration-color: var(--teal-ink); text-underline-offset: .2em; }
.legal__body a:hover { color: var(--teal-ink); }

.legal__details, .legal__terms { margin: var(--space-sm) 0; border-top: 1px solid var(--line-ink); }
.legal__details div, .legal__terms div {
  display: grid;
  gap: .2rem var(--space-md);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--line-ink);
}
.legal__details dt, .legal__terms dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-900);
}
.legal__details dd, .legal__terms dd { margin: 0; }

@media (min-width: 640px) {
  .legal__details div { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
  .legal__terms div { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 1024px) {
  .legal__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + var(--space-md)); }
  /* Mouse/trackpad layout: compact rows so all 18 entries fit without an inner scrollbar */
  .legal__toc a { min-height: 0; padding-block: .32rem; font-size: .9rem; }
}

/* Footer legal line and form privacy link */
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.footer__legal > span[aria-hidden="true"] { color: var(--line-strong); }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; transition: color var(--dur-fast) ease; }
.footer__legal a:hover { color: var(--teal); }
@media (max-width: 639.98px) {
  /* Phones: the designer credit takes its own line, without a dangling divider */
  .footer__legal > span[aria-hidden="true"] { display: none; }
  .footer__legal { column-gap: var(--space-md); }
  .footer__credit { flex-basis: 100%; }
}
.form__privacy { font-size: .85rem; color: var(--muted); }
.form__privacy a { color: var(--white); font-weight: 600; text-decoration-color: var(--teal); text-underline-offset: .2em; }

/* ==========================================================================
   Motion states
   Only applied when JS is running and motion is allowed. If GSAP fails to
   load, .motion-failed (set by the inline failsafe) restores everything.
   ========================================================================== */
.motion:not(.motion-failed):not(.intro-done) .hero__title .line > span,
.motion:not(.motion-failed):not(.intro-done) .page-title .line > span { transform: translateY(110%); }
.motion:not(.motion-failed):not(.intro-done) [data-hero-fade] { opacity: 0; }
.motion:not(.motion-failed):not(.intro-done) .hero__cover { transform: scaleX(1); }
.motion:not(.motion-failed):not(.intro-done) .hero__edge line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion:not(.motion-failed):not(.intro-done) .hero__note { opacity: 0; }
.motion:not(.motion-failed):not(.intro-done) .site-header { opacity: 0; }
.motion:not(.motion-failed):not(.intro-done) .hero__leaf path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ==========================================================================
   Electrical-first restructure (October 2026): navigation submenu, service
   detail pages (checklists, FAQs, related services) and linked spec rows.
   ========================================================================== */

/* Header: Electrical Services submenu (hover or keyboard focus) */
.nav__item--sub { position: relative; }
.nav__sub {
  position: absolute;
  top: 100%;
  left: -1.1rem;
  z-index: 2;
  min-width: 17rem;
  padding: var(--space-2xs) 0;
  list-style: none;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility 0s linear var(--dur-fast);
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__sub a { display: flex; padding: .7rem 1.1rem; }
.nav__sub a::after { display: none; }
.nav__sub a:hover, .nav__sub a[aria-current] { color: var(--teal); }
.nav__long { display: none; }
@media (min-width: 1360px) { .nav__long { display: inline; } }

/* Mobile menu: electrical service links under their parent */
.mobile-menu__list a { font-size: clamp(2.1rem, 9vw, 3.75rem); }
.mobile-menu__sub {
  list-style: none;
  display: grid;
  padding: 0 0 var(--space-xs) calc(1.75rem + var(--space-sm));
}
.mobile-menu__list .mobile-menu__sub li { border: 0; }
.mobile-menu__list .mobile-menu__sub a {
  padding: .45rem 0;
  min-height: 44px;
  align-items: center;
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  color: rgba(255, 255, 255, .78);
}

/* Home hero: crop set per photograph with --pos (and --pos-lg on desktop) */
.hero__media img { object-position: var(--pos, 50% 50%); }
@media (min-width: 640px) { .hero__media img { object-position: var(--pos, 50% 50%); } }
@media (min-width: 1024px) {
  .hero__media img { object-position: var(--pos-lg, var(--pos, 50% 50%)); }
  /* "Professional" / "Electricians" are longer than the original headline words */
  .hero__title { font-size: clamp(4.25rem, min(8.2vw, 13.5svh), 7.5rem); }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hero__lede { max-width: 22rem; }
}
p.hero__contact { margin: 0; }

/* Full-bleed hero: the photograph fills the whole hero, under a 65% overlay in the brand's ink colour */
.hero--full { min-height: max(600px, 100svh); }
.hero--full .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  aspect-ratio: auto;
  clip-path: none;
}
.hero--full .hero__media::after { display: none; }   /* no angled edge line */
.hero--full .hero__media-inner { inset: -3% 0; }
.hero--full .hero__shade { background: rgba(7, 18, 22, .65); }
.hero--full .hero__edge,
.hero--full .hero__note { display: none !important; }
.hero--full .hero__base { margin-top: auto; }
@media (min-width: 1024px) {
  .hero--full .hero__media { left: 0; }
  .hero--full .hero__base { background: none; }
}
/* About page hero: crossfading van photographs */
.page-hero__media--slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.page-hero__media--slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-hero__media--slides img { transition: none; }
}
/* Home About section: no team band between the heading and the photo/copy row */
.about__head + .about__grid { margin-top: var(--space-xl); }

/* Overview with heading and supporting copy (service pages, About) */
.overview__main { display: grid; gap: var(--space-md); align-content: start; }
.overview__main .display { margin-bottom: 0; }
.overview__copy { display: grid; gap: var(--space-sm); max-width: var(--measure); }
.overview__copy p { color: var(--muted-ink); }
.facts a { text-decoration-color: var(--teal-ink); text-underline-offset: .2em; }
.facts a:hover { color: var(--teal-ink); }

/* Checklist inside the dark statement section */
.checks { list-style: none; margin: var(--space-2xs) 0 var(--space-xs); }
.checks li {
  padding: var(--space-sm) 0 var(--space-sm) 1.75rem;
  color: var(--white);
  font-weight: 500;
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--space-sm) + .55em);
  width: .7rem; height: .7rem;
  border: 1.5px solid var(--teal);
  transform: rotate(45deg) scale(.8);
}
.checks li:last-child { box-shadow: inset 0 -1px 0 var(--line-strong); }
.statement__copy .link-arrow { justify-self: start; margin-top: var(--space-xs); }

/* FAQs: same accordion as the service lists, with question-sized titles */
.services--faq { border-top: 1px solid var(--line-ink); }
.service-index--faq .service__title {
  font-family: var(--f-body);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.services__lede a { color: inherit; text-decoration-color: var(--teal-ink); text-underline-offset: .2em; }
.services__lede a:hover { color: var(--teal-ink); }

/* Related services strip */
.related { padding-block: var(--section-y-sm); border-top: 1px solid var(--line-ink); }
.related__title { margin-bottom: var(--space-md); }
.related__list {
  list-style: none;
  display: grid;
  margin-bottom: var(--space-md);
  border-top: 1px solid var(--line-ink);
}
.related__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: .3rem var(--space-xs);
  align-items: baseline;
  height: 100%;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line-ink);
  text-decoration: none;
}
.related__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--ls-label); color: var(--teal-ink); }
.related__name {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: .95;
  text-transform: uppercase;
  transition: color var(--dur-fast) ease;
}
.related__text { grid-column: 2; color: var(--muted-ink); font-size: .95rem; }
.related__link .btn__arrow { grid-column: 3; grid-row: 1; align-self: center; }
.related__link:hover .related__name { color: var(--teal-ink); }
@media (min-width: 1024px) {
  .related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-lg); }
}

/* Home: linked spec rows */
.spec-list--links li { padding: 0; }
.spec-list--links a {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  grid-column: 1 / -1;
  padding: var(--space-sm) 0;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.spec-list--links li { display: block; }
.spec-list--links a:hover { color: var(--teal-ink); }

/* Home: solar & battery split (reuses the cleaning layout) */
.cleaning__media img { object-position: var(--pos, 50% 58%); }
@media (min-width: 640px) {
  .cleaning__facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Additional services stay smaller than the electrical sections */
@media (min-width: 1024px) {
  .cleaning--compact .cleaning__grid { min-height: min(72svh, 680px); }
  .cleaning--compact .cleaning__content { padding-block: var(--section-y-sm); }
}

/* Footer service-area line */
.footer__areas { margin-top: var(--space-sm); max-width: 22rem; font-size: .9rem; color: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .service::before,
  .service__toggle::before,
  .service__toggle::after,
  .nav__list a::after,
  .btn__arrow,
  .mobile-menu,
  .mobile-menu__list a,
  .quickbar,
  .consent,
  .site-header,
  .menu-toggle__bars span { transition-property: opacity, color, background-color, border-color; }
  .mobile-menu { clip-path: none; }
  .mobile-menu__list a { transform: none; opacity: 1; }
  .btn:active { transform: none; }
  a:hover > .btn__arrow, a:focus-visible > .btn__arrow,
  button:hover > .btn__arrow, button:focus-visible > .btn__arrow { transform: none; }
  a:hover > .btn__arrow--down, a:focus-visible > .btn__arrow--down { transform: rotate(90deg); }
  a:hover > .btn__arrow--up, a:focus-visible > .btn__arrow--up { transform: rotate(-90deg); }
  .btn::before { transform: scaleX(1); opacity: 0; transition: opacity var(--dur-fast) ease; }
  .btn:hover::before, .btn:focus-visible::before { opacity: 1; }
  .service::before { transform: scaleX(1); opacity: 0; }
  .service:hover::before, .service:focus-within::before { opacity: 1; }
  .nav__list a::after { transform: scaleX(1); opacity: 0; }
  .nav__list a:hover::after, .nav__list a[aria-current]::after { opacity: 1; }
}

/* WordPress: keep the fixed header below the admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
