/* =========================================================
   Advanced Electrical Contractors — site styles
   Brand: charcoal #111 / safety yellow / white (from logo)
   ========================================================= */
:root {
  --yellow: #FDB913;
  --yellow-hi: #FFCB3D;
  --ink: #111214;          /* logo charcoal */
  --bg: #111214;
  --surface: #191B1F;
  --surface-2: #22252A;
  --line: #2E3238;
  --text: #F5F5F2;
  --muted: #A9AEB6;
  --paper: #F4F2EC;
  --paper-line: #DEDAD0;
  --paper-muted: #55585E;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125%;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 260ms;

  --z-header: 50;
  --z-bar: 40;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-stretch: var(--wide); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.75rem); font-weight: 850; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-lg { width: 28px; height: 28px; }

/* Placeholder highlighting — remove the .ph class once real content is in */
.ph { outline: 1.5px dashed var(--yellow); outline-offset: 2px; border-radius: 3px; background: rgba(253, 185, 19, .12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-hi); }
.btn-primary .i { transition: transform var(--t) var(--ease-out); }
.btn-primary:hover .i { transform: translateX(3px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--text); background: rgba(17,18,20,.35); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2c30; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(17,18,20,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-stretch: var(--wide); text-transform: uppercase; line-height: 1; }
.brand-1 { font-weight: 800; font-size: .95rem; letter-spacing: .08em; }
.brand-2 { font-weight: 800; font-size: .72rem; letter-spacing: .32em; color: var(--yellow); margin-top: 4px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 10px; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #D8DADD; border-radius: var(--r-sm); transition: color var(--t-fast); }
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--yellow); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease-out), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 22%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,18,20,.55) 0%, rgba(17,18,20,0) 22%, rgba(17,18,20,.15) 55%, rgba(17,18,20,.97) 100%),
    linear-gradient(90deg, rgba(17,18,20,.9) 0%, rgba(17,18,20,.65) 38%, rgba(17,18,20,.05) 75%);
}
.hero-inner { max-width: 1240px; }
.hero h1 { max-width: 14ch; }
.hl { color: var(--yellow); }
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #E4E5E7; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(253,185,19,.25); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #DADCDF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding: 0; max-width: 600px; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 4px 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dd { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--text); font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; font-stretch: 110%; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dd em { font-style: normal; color: var(--yellow); }
.hero-stats .star { width: .62em; height: .62em; margin-left: 4px; fill: var(--yellow); }
.hero-stats dt { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 520px) {
  .hero-stats { flex-wrap: nowrap; justify-content: space-between; }
  .hero-stats > div { padding: 2px 14px; }
  .hero-stats dt { font-size: .62rem; letter-spacing: .1em; }
}

/* ---------- Trust bar ---------- */

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface); }
.section-light { background: var(--paper); color: var(--ink); }
.section-light .sub, .section-light p { color: var(--paper-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.section-head.split h2 { margin-bottom: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-light .kicker { color: #8A6500; }
.sub { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: var(--bg); padding: 30px 26px 26px; display: flex; flex-direction: column; transition: background var(--t); }
.svc:hover { background: var(--surface); }
.svc-i { width: 40px; height: 40px; color: var(--yellow); stroke-width: 1.75; margin-bottom: 22px; }
.svc p { color: var(--muted); flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: .9rem; text-decoration: none; color: var(--text); padding: 8px 0; min-height: 44px; }
.more .i { color: var(--yellow); transition: transform var(--t) var(--ease-out); }
.more:hover .i { transform: translateX(4px); }

/* ---------- Batteries ---------- */
.pw3 { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.pw3-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; aspect-ratio: 4 / 5; }
.pw3-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.pw3-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.pw3-body > p { color: var(--muted); max-width: 52ch; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 5px 10px; border-radius: 4px; margin-bottom: 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 8px 0 28px; width: 100%; }
.specs div { background: var(--surface); padding: 14px 16px; }
.specs dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-stretch: var(--wide); font-weight: 800; font-size: 1.1rem; }


.callout { display: flex; gap: 18px; align-items: flex-start; margin-top: 20px; padding: 24px 26px; border-radius: var(--r-lg); border: 1px solid rgba(253,185,19,.4); background: linear-gradient(135deg, rgba(253,185,19,.12), rgba(253,185,19,.03)); }
.callout .i { color: var(--yellow); }
.callout strong { font-stretch: var(--wide); display: block; margin-bottom: 4px; }
.callout p { margin: 0; color: #D3D5D8; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: 28px 24px; position: relative; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--yellow); transform: scaleX(.18); transform-origin: left; transition: transform 500ms var(--ease-out); }
.step:hover::after { transform: scaleX(1); }
.step-n { display: block; font-stretch: var(--wide); font-weight: 850; font-size: 2.2rem; color: var(--ink); line-height: 1; margin-bottom: 18px; }
.step h3 { color: var(--ink); }
.step p { margin: 0; font-size: .98rem; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); touch-action: manipulation; }
.chip:hover { border-color: #5a5f66; }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: opacity var(--t), transform var(--t) var(--ease-out); }
.proj[hidden] { display: none; }
.proj img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.proj-body { padding: 18px 20px 22px; }
.proj-meta { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 8px; }
.proj h3 { font-size: 1.05rem; }
.proj-specs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proj-specs li { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: #D4D6D9; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-body > p { color: #D3D5D8; max-width: 58ch; }
.about-body > .about-lead { color: var(--text); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; }
.about-side .ticks { grid-template-columns: 1fr; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.ticks .i { color: var(--ink); background: var(--yellow); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.stars { color: var(--yellow); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 14px; }
.rev p { flex: 1; font-size: 1.02rem; }
.rev footer { font-weight: 700; font-size: .9rem; }
.rev footer span { color: var(--muted); font-weight: 600; }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.area-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-cols h3 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.area-list { list-style: none; padding: 0; margin: 0; }
.area-list li { padding: 11px 0; border-bottom: 1px solid var(--paper-line); font-weight: 650; display: flex; align-items: center; gap: 10px; }
.area-list li::before { content: ""; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 750; font-size: 1.08rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: translateY(-70%) rotate(45deg); transition: transform var(--t) var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 64ch; }

/* ---------- Quote ---------- */
.quote-sec { background: radial-gradient(1200px 500px at 85% 0%, rgba(253,185,19,.10), transparent 60%), var(--surface); border-top: 1px solid var(--line); }
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 650; font-size: 1.05rem; }
.contact-list .i { color: var(--yellow); width: 22px; height: 22px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--yellow); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field label span { color: var(--yellow); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #747a82; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253,185,19,.25); }
.field [aria-invalid="true"] { border-color: #FF6B5E; }
.err { color: #FF8A80; font-size: .85rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.form-status { margin: 14px 0 0; font-weight: 650; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: #7EE2A8; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: #0B0C0D; border-top: 1px solid var(--line); padding: 64px 0 120px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.foot-badge { display: block; }
.site-footer h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #CFD2D6; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .small li { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-bottom p { margin: 0; }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal (progressive: content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: rgba(17,18,20,.98); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t), transform var(--t) var(--ease-out), visibility var(--t); }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 4px; font-size: .9rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .site-header:has(.nav.open) { background: rgba(17,18,20,.98); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .pw3, .about, .areas, .faq, .quote { grid-template-columns: 1fr; }
  .pw3-media img { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand-mark { width: 40px; }
  .brand { gap: 10px; }
  .brand-1 { font-size: .86rem; }
  .brand-2 { font-size: .64rem; letter-spacing: .3em; }
  .eyebrow { font-size: .7rem; letter-spacing: .12em; }
  .eyebrow-sep { display: none; }
  .eyebrow > span:last-child { flex-basis: 100%; padding-left: 18px; color: var(--yellow); }
  .svc-grid, .rev-grid, .steps { grid-template-columns: 1fr; }
  .proj-body { padding: 14px; }
  .proj h3 { font-size: .95rem; }
  .proj-specs { display: none; }
  .field-row, .ticks, .area-cols { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .header-cta .btn-primary { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(17,18,20,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Additions ---------- */
.muted-note { font-size: .95rem; color: var(--muted) !important; font-style: italic; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #CFD2D6; transition: color var(--t-fast), border-color var(--t-fast); }
.socials a:hover { color: var(--yellow); border-color: var(--yellow); }
.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.rating-num { font-stretch: var(--wide); font-weight: 850; font-size: 2rem; line-height: 1; }
.rating .stars { margin: 0; }
.rating-src { color: var(--muted); font-weight: 650; }
.contact-note { display: block; font-size: .85rem; font-weight: 700; color: var(--yellow); margin-top: 2px; }
.eyebrow-sep { color: var(--yellow); }
.eyebrow > span:not(.dot) { white-space: nowrap; }
.elkie { display: flex; align-items: center; gap: 16px; margin: 4px 0 8px; padding: 12px 18px 12px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 460px; }
.elkie-img { width: 88px; height: 88px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.elkie img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); transform-origin: 52% 66%; }
.elkie strong { display: block; font-stretch: var(--wide); font-size: .95rem; }
.elkie span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- Projects slider ---------- */
.proj-track {
  --per-view: 3.4;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 20px) / var(--per-view));
  gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-track.at-end { -webkit-mask-image: none; mask-image: none; }
.proj-track:focus-visible { outline-offset: 6px; }
.proj { scroll-snap-align: start; }
.proj img { transition: transform 700ms var(--ease-out); }
.proj:hover img { transform: scale(1.04); }
.proj > img { display: block; }
.proj { isolation: isolate; }
.proj > img + .proj-body { position: relative; z-index: 1; background: var(--surface); }

.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.slider-progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-right: 10px; }
.slider-progress span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 3px; transition: width 300ms var(--ease-out); }
.slider-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); touch-action: manipulation; }
.slider-btn:hover:not(:disabled) { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.slider-btn:active:not(:disabled) { transform: scale(.94); }
.slider-btn:disabled { opacity: .4; cursor: default; }
.slider-btn .i-play { display: none; }
.slider-btn[aria-pressed="true"] .i-play { display: block; }
.slider-btn[aria-pressed="true"] .i-pause { display: none; }

@media (max-width: 1080px) { .proj-track { --per-view: 2.4; } }
@media (max-width: 600px) {
  .proj-track { --per-view: 1.2; gap: 14px; grid-auto-columns: calc((100% - .2 * 14px) / 1.2); }
  .proj-specs { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .proj-track { scroll-behavior: auto; } }

/* ---------- Brand filters ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip-n { font-size: .72rem; font-weight: 800; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-n { background: rgba(17,18,20,.18); color: var(--ink); }
.section-head.split .filters { max-width: 100%; }
@media (max-width: 860px) {
  .section-head.split { flex-direction: column; align-items: stretch; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}
/* Landscape photos take two slots so the whole install shows */
.proj--wide { grid-column: span 2; }
.proj--wide img { aspect-ratio: 3 / 2; }
@media (max-width: 600px) {
  .proj--wide { grid-column: auto; }
  .proj--wide img { aspect-ratio: 3 / 4; }
}

/* =========================================================
   Tesla Powerwall
   ========================================================= */
.hero-badge { display: inline-block; margin: 26px 0 -14px -27px; border-radius: var(--r); }
.hero-badge img { width: 200px; height: auto; }

.pw-section { background: #09090A; }
.pw-banner { position: relative; isolation: isolate; overflow: hidden; background: #000; min-height: min(86vh, 760px); display: flex; align-items: center; }
.pw-banner-bg { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 40% 50%; z-index: -2; }
.pw-banner-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #000 0%, #000 28%, rgba(0,0,0,.6) 40%, rgba(0,0,0,0) 58%),
    linear-gradient(0deg, #09090A 0%, rgba(9,9,10,0) 22%); }
.pw-banner-inner { padding-top: 96px; padding-bottom: 96px; }
.pw-banner-inner > * { max-width: 34rem; }
.pw-banner h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 6px; }
.pw-badge { width: 230px; height: auto; margin-left: -31px; }

.pw-body { padding-top: 24px; padding-bottom: var(--section); }
.pw-body > * + * { margin-top: clamp(56px, 8vw, 104px); }
.pw-body > .pw3 { margin-top: 20px; }

.pw-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pw-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.pw-feature .i { width: 30px; height: 30px; color: var(--yellow); margin-bottom: 18px; stroke-width: 1.75; }
.pw-feature h3 { font-size: 1.08rem; }
.pw-feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.pw-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pw-split-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); }
.pw-split h3, .pw-video h3, .pw-compare h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; }
.pw-split-body > p:not(.kicker) { color: #D3D5D8; max-width: 56ch; }
.pw-split .ticks { grid-template-columns: 1fr; }

.pw-video-head, .pw-compare-head { max-width: 680px; margin-bottom: 28px; }
.pw-video-head > p:not(.kicker), .pw-compare-head > p:not(.kicker) { color: var(--muted); }
.pw-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1px solid var(--line); background: #000; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.pw-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .98rem; }
.pw-compare th, .pw-compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pw-compare tbody tr:last-child > * { border-bottom: 0; }
.pw-compare thead th { font-stretch: var(--wide); font-weight: 800; background: var(--surface); }
.pw-compare thead th:nth-child(2) { color: var(--yellow); }
.pw-compare tbody th { font-weight: 700; color: var(--muted); width: 26%; }

.pw-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pw-doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 76px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast); }
.pw-doc:hover { border-color: var(--yellow); background: var(--surface-2); }
.pw-doc > span:nth-child(2) { flex: 1; }
.pw-doc strong { display: block; }
.pw-doc small { color: var(--muted); font-size: .88rem; }
.pw-doc > .i { color: var(--yellow); transition: transform var(--t) var(--ease-out); }
.pw-doc:hover > .i { transform: translateX(4px); }
.pw-doc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 850; font-size: .72rem; letter-spacing: .06em; flex-shrink: 0; }

.foot-badge { width: 190px; height: auto; margin: 10px 0 0 -26px; }

@media (max-width: 1180px) {
  .pw-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pw-banner { display: block; min-height: 0; }
  .pw-banner-bg { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 48% 50%; display: block; }
  .pw-banner-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, #000 calc(75vw - 2px)); }
  .pw-banner-inner { padding-top: 0; padding-bottom: 40px; margin-top: -40px; position: relative; }
  .pw-split, .pw-downloads { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pw-features { grid-template-columns: 1fr; }
  .hero-badge img { width: 170px; }
  .hero-badge { margin-left: -23px; }
}
@media (max-width: 600px) {
  .pw-compare table { min-width: 0; font-size: .86rem; table-layout: fixed; }
  .pw-compare th, .pw-compare td { padding: 12px 10px; }
  .pw-compare tbody th { width: 30%; }
  .pw-compare thead th { font-size: .82rem; }
}
@media (max-width: 1320px) { .header-cta .hide-sm { display: none; } }

/* ---------- Rebates & loans ---------- */
.rebate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rebate { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: 32px 28px 28px; position: relative; overflow: hidden; }
.rebate::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--yellow); }
.rebate h3 { color: var(--ink); margin-bottom: 0; }
.rebate .rebate-tag { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8A6500; }
.rebate .rebate-big { margin: 14px 0 20px; font-stretch: var(--wide); font-weight: 850; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--ink); }
.rebate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rebate li { display: flex; gap: 10px; align-items: flex-start; color: var(--paper-muted); }
.rebate .rebate-fine { margin: 18px 0 0; font-size: .82rem; line-height: 1.5; }
.rebate li .i { margin-top: 2px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--yellow); color: var(--ink); stroke-width: 3; }
.rebate-foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--ink); }
.section-light .rebate-foot p { margin: 0; max-width: 68ch; color: #D3D5D8; }
.rebate-foot strong { color: #fff; }
@media (max-width: 860px) { .rebate-grid { grid-template-columns: 1fr; } }

/* ---------- Review actions ---------- */
.section-head.split .rating { margin-top: 16px; }
.rev-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .rev-actions, .rev-actions .btn { width: 100%; } }

/* Featured (long) review spans two columns until the grid collapses to one */
.rev--wide { grid-column: span 2; }
@media (max-width: 1180px) { .rev--wide-lg { grid-column: auto; } }
@media (max-width: 860px) { .rev--wide { grid-column: auto; } }

/* Google "G" badge beside the review rating */
.rating-src { display: inline-flex; align-items: center; gap: 10px; }
.g-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.g-badge svg { width: 17px; height: 17px; }

/* ---------- Tesla Powerwall page ---------- */
.pw-banner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 6px; max-width: 36rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: var(--text); }
.pw-jobs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pw-cta-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.pw-cta-inner .sub { max-width: 52ch; margin-bottom: 0; }
.pw-cta h2 { margin-bottom: 10px; }
@media (max-width: 1180px) { .pw-jobs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pw-jobs-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .pw-banner .crumbs { margin-top: 8px; } }
.pw-banner .ticks { grid-template-columns: 1fr; margin: 20px 0 30px; }

/* ---------- Team member card (About) ---------- */
.team-card { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "img head" "img bio"; gap: 6px 20px; margin: 0 0 16px; padding: 14px 20px 14px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 460px; }
.team-card img { grid-area: img; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r); }
.team-head { grid-area: head; padding-top: 4px; }
.team-head h3 { margin: 0; font-size: 1.05rem; }
.team-role { display: block; margin-top: 4px; color: var(--yellow); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.about-side .team-card p { grid-area: bio; margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 600px) {
  .team-card { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; grid-template-areas: "img head" "bio bio"; }
  .team-head { align-self: center; padding-top: 0; }
}


/* ---------- Top-pick batteries ---------- */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .sub { margin-inline: auto; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 980px; margin: 0 auto; }
.pick { display: flex; flex-direction: column; overflow: hidden; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pick > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 26px 28px 30px; }
.pick h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 8px; }
.pick-body > p { max-width: 40ch; margin: 0 0 22px; color: var(--muted); }
.pick-more { width: 100%; margin-top: auto; }
.pick-more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 750; cursor: pointer; list-style: none; transition: background var(--t); }
.pick-more summary::-webkit-details-marker { display: none; }
.pick-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease-out); }
.pick-more summary:hover { background: var(--yellow-hi); }
.pick-more summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pick-more[open] summary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pick-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pick-more .ticks { grid-template-columns: 1fr; max-width: 36ch; margin: 22px auto 0; text-align: left; }
.pick-more .ticks li { align-items: flex-start; }
.pick-more .ticks .i { margin-top: 1px; }
.pick-more .btn { margin-top: 22px; }
@media (max-width: 860px) { .pick-grid { grid-template-columns: 1fr; max-width: 520px; } }
.pick .specs { margin: 0 0 22px; text-align: left; }
.pick .specs dd { font-size: 1rem; }
.spec-note { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.pick-note { max-width: 980px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) {
  .pick-body { padding: 22px 16px 26px; }
  .pick .specs div { padding: 12px; }
  .pick .specs dt { font-size: .66rem; letter-spacing: .1em; }
  .pick .specs dd { font-size: .95rem; }
}

/* ---------- Battery comparison table (Tesla / Sigenergy / Enphase) ---------- */
.bat-compare { max-width: 980px; margin: clamp(48px, 7vw, 80px) auto 0; }
.bat-compare table { min-width: 720px; }
.bat-compare thead th:nth-child(2), .bat-compare thead th:nth-child(3), .bat-compare thead th:nth-child(4) { color: var(--yellow); }
.bat-compare tbody th { width: 20%; }
/* Keep the feature names visible while the table scrolls sideways on phones */
.bat-compare thead th:first-child, .bat-compare tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.swipe-hint { display: none; margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.swipe-hint::after { content: " →"; color: var(--yellow); }
@media (max-width: 760px) { .swipe-hint { display: block; } }
@media (max-width: 600px) {
  .bat-compare table { min-width: 640px; table-layout: auto; font-size: .88rem; }
  .bat-compare tbody th { width: 110px; }
}

/* ---------- Services ticker: two crossing bands (under the hero) ---------- */
.ticker { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 72px) 0; background: var(--bg); }
.ticker-band { width: 104%; margin-left: -2%; overflow: hidden; }
.ticker-front { position: relative; z-index: 1; background: var(--yellow); color: var(--ink); transform: rotate(-3deg); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.ticker-back { position: absolute; left: 0; top: 50%; background: #2A2D33; color: transparent; border-block: 1px solid rgba(253, 185, 19, .35); transform: translateY(-50%) rotate(3deg); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-back .ticker-track { animation-duration: 60s; animation-direction: reverse; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; gap: 30px; padding: 16px 0 16px 30px; font-stretch: var(--wide); font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 850; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ticker-front li::after { content: ""; width: 14px; height: 24px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='590 0 480 860'%3E%3Cpolygon points='765,20 1063,857 606,857 782,418 600,410'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='590 0 480 860'%3E%3Cpolygon points='765,20 1063,857 606,857 782,418 600,410'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticker-back li { -webkit-text-stroke: 1px rgba(255, 255, 255, .6); }
.ticker-back li::after { content: "•"; color: var(--yellow); -webkit-text-stroke: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker3 { to { transform: translateX(-33.333%); } }
.ticker-back .ticker-track { animation-name: ticker3; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-front .ticker-track { width: auto; }
  .ticker-front ul { flex-wrap: wrap; justify-content: center; }
  .ticker-front ul[aria-hidden] { display: none; }
}

/* ---------- More yellow on the black ---------- */
/* Headline highlights: yellow text on dark, a highlighter stroke on light */
.section-light .hl, .pw-cta .hl { color: inherit; padding-bottom: .06em; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* A soft yellow glow in the corner of each dark section */
.section:not(.section-light):not(.quote-sec) { background-image: radial-gradient(900px 420px at 0% 0%, rgba(253, 185, 19, .07), transparent 60%); }
.section-alt:not(.section-light) { background-image: radial-gradient(900px 420px at 100% 0%, rgba(253, 185, 19, .07), transparent 60%); }
/* Yellow edges on cards */
.svc { box-shadow: inset 0 0 0 transparent; transition: background var(--t), box-shadow var(--t); }
.svc:hover { box-shadow: inset 0 3px 0 var(--yellow); }
.rev { position: relative; overflow: hidden; }
.rev::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--yellow); transform: scaleX(.18); transform-origin: left; transition: transform 500ms var(--ease-out); }
.rev:hover::after { transform: scaleX(1); }
.faq-list details[open] summary { color: var(--yellow); }

/* ---------- Footer accreditation logos ---------- */
.foot-accred { margin-top: 44px; }
.foot-accred ul { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-accred li { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px 16px; background: #fff; border-radius: var(--r); }
.foot-accred img { display: block; width: auto; height: 100%; max-width: 180px; object-fit: contain; }
@media (max-width: 600px) {
  .foot-accred ul { display: grid; grid-template-columns: 1fr 1fr; }
  .foot-accred li { height: 64px; }
}

/* ---------- Footer logo + big watermark ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.site-footer > .wrap { position: relative; }
.foot-mark { position: absolute; z-index: -1; right: -3%; bottom: -14%; width: min(70vw, 900px); height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 92%); mask-image: linear-gradient(to top, #000 25%, transparent 92%); }
.foot-mark polygon { fill: #fff; fill-opacity: .04; }
.foot-mark .bolt { fill: var(--yellow); fill-opacity: .11; }
.site-footer .foot-logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.foot-logo .brand-mark { width: 64px; height: auto; }
.foot-logo .brand-1 { font-size: 1.15rem; }
.foot-logo .brand-2 { font-size: .86rem; }
.foot-logo .brand-3 { margin-top: 6px; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .22em; }
@media (max-width: 600px) { .foot-mark { width: 120vw; right: -30vw; bottom: 40px; } }

/* Hero photo is portrait: on phones show it from the top so the sun and tree are in frame */
@media (max-width: 760px) { .hero-bg { object-position: center 10%; } }

/* ---------- Quote section: the solar photo behind the form ---------- */
.quote-sec {
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(253, 185, 19, .10), transparent 60%),
    linear-gradient(rgba(17, 18, 20, .3), rgba(17, 18, 20, .45)),
    linear-gradient(90deg, rgba(17, 18, 20, .8) 0%, rgba(17, 18, 20, .35) 55%, rgba(17, 18, 20, .15) 100%),
    url("../img/hero-solar-tile-roof.jpg") 70% 45% / cover no-repeat,
    var(--surface);
}
.quote-sec .form { background: rgba(17, 18, 20, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }

/* ---------- Modern panels: cream, grey and photo sections float as rounded cards on the black ---------- */
:root { --panel-gap: clamp(8px, 1.2vw, 16px); --panel-r: clamp(22px, 3vw, 40px); }
.section-light, .section-alt, .quote-sec, main > .pw-section:not(:first-child) .pw-banner {
  margin: var(--panel-gap); border-radius: var(--panel-r); overflow: clip;
}
.section-alt:not(.section-light), .quote-sec { border: 1px solid rgba(255, 255, 255, .06); }
.quote-sec { border-top: 1px solid rgba(255, 255, 255, .06); }
main > .pw-section:not(:first-child) { background: transparent; }
.site-footer { border-top: 0; background: #0B0C0D; }
@media (max-width: 600px) { :root { --panel-gap: 8px; --panel-r: 24px; } }

.chip[hidden] { display: none; }

/* ---------- Battery comparison: each battery gets its own column card ---------- */
.bat-compare .table-scroll { border: 0; border-radius: 0; }
.bat-compare table { border-collapse: separate; border-spacing: 12px 0; }
.bat-compare th, .bat-compare td { border-bottom: 0; }
/* Row labels: plain text on the section background, lined up with a hairline */
.bat-compare thead th:first-child, .bat-compare tbody th { background: var(--surface); padding-left: 0; }
.bat-compare tbody th { color: var(--text); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 18px; }
/* Column cards */
.bat-compare td, .bat-compare thead th + th { background: var(--bg); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.bat-compare td { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 18px; padding-bottom: 18px; }
.bat-compare thead th + th { border-top: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; box-shadow: inset 0 3px 0 var(--yellow); padding: 22px 20px 18px; font-size: 1.05rem; line-height: 1.25; vertical-align: bottom; }
.bat-compare tbody tr:last-child td { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
.bat-compare tbody tr:last-child td, .bat-compare tbody tr:last-child th { padding-bottom: 22px; }
/* The "Best for" row is the takeaway, so it stands out */
.bat-compare tbody tr:last-child td { color: var(--yellow); font-weight: 650; }
@media (max-width: 760px) {
  .bat-compare table { border-spacing: 8px 0; }
  .bat-compare tbody th { font-size: .68rem; letter-spacing: .06em; }
  .bat-compare thead th + th { padding: 18px 12px 14px; font-size: .9rem; }
}

/* ---------- Datasheet links (battery cards + comparison) ---------- */
.pick-docs, .doc-row td { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-docs { justify-content: center; margin: 0 0 22px; }
.doc-row td { display: table-cell; }
.pick-docs a, .doc-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .85rem; font-weight: 700; text-decoration: none; transition: border-color var(--t-fast), color var(--t-fast); }
.pick-docs a:hover, .doc-row a:hover { border-color: var(--yellow); color: var(--yellow); }
.pick-docs a span, .doc-row a span { display: grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .62rem; font-weight: 850; letter-spacing: .06em; }

/* ---------- Finance (Brighte) ---------- */
.finance { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.finance-copy .sub { max-width: 52ch; }
.finance-card { padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: inset 0 3px 0 var(--yellow); }
.finance-brand { margin: 0 0 22px; font-stretch: var(--wide); font-size: 1.5rem; font-weight: 850; }
.finance-brand span { display: block; margin-top: 4px; color: var(--yellow); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.finance-steps { list-style: none; counter-reset: fstep; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; }
.finance-steps li { counter-increment: fstep; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.finance-steps li::before { content: counter(fstep); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 850; }
.finance-steps strong { align-self: end; }
.finance-steps span { color: var(--muted); font-size: .95rem; }
.finance-ticks { grid-template-columns: 1fr 1fr; padding-top: 18px; border-top: 1px solid var(--line); }
.finance-fine { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: .92rem; font-weight: 600; cursor: pointer; }
.form-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--yellow); flex: none; }
@media (max-width: 860px) {
  .finance { grid-template-columns: 1fr; }
  .finance-ticks { grid-template-columns: 1fr; }
}
.finance-brand img { display: block; width: 150px; height: auto; }
.finance-brand span { margin-top: 10px; }
.rebate-logo { display: block; width: 120px; height: auto; margin-bottom: 14px; }

/* ---------- Team cards (About) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.team-member { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.team-member img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.team-member-body { padding: 22px 24px 26px; box-shadow: inset 0 3px 0 var(--yellow); }
.team-member h3 { margin: 0; font-size: 1.3rem; }
.team-member .team-role { margin: 6px 0 12px; }
.team-member-body > p:last-child { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
/* Smaller, calmer team photos */
.team-grid { max-width: 900px; margin-inline: auto; }
.team-member img { aspect-ratio: 1 / 1; object-position: 50% 18%; filter: saturate(.9); }
@media (max-width: 860px) { .team-grid { max-width: 420px; } }
/* Team photos sit closer to the intro; Elkie closes the section */
.team-grid { margin-top: clamp(28px, 4vw, 40px); }
.elkie-row { display: flex; justify-content: center; margin-top: 28px; }
.elkie-row .elkie { max-width: 460px; margin: 0; }
/* About intro is a single column now the ticks live in the footer */
.about { grid-template-columns: 1fr; }
/* "Contractors" line under the header wordmark */
.brand-3 { margin-top: 4px; color: #CFD2D6; font-size: .52rem; font-weight: 700; letter-spacing: .42em; }
.foot-logo .brand-3 { letter-spacing: .22em; }
@media (max-width: 600px) { .brand-3 { font-size: .48rem; letter-spacing: .38em; } }
