/* GPG website — gpglb.com, one-page site.
   Rev 2, 2026-10-29. Brand colours from company-identity/README.md (logo EPS).
   Bands alternate: paper / white / ink (projects, video) / deep green (figures, contact). */

:root {
  --paper: #F4F6F2;
  --surface: #FFFFFF;
  --ink: #16211A;
  --ink-2: #4A5650;
  --line: #D8DDD6;
  --green: #4B7521;
  --green-dark: #3A5C19;
  --green-deep: #1F3316;
  --leaf: #8DC63E;
  --leaf-soft: #E8F2DA;
  --night: #121B15;          /* projects band: lets video and photos carry the colour */
  --on-dark: #DDE6D8;
  --on-dark-2: #A8B5A0;
  --line-dark: rgba(255, 255, 255, .14);
  --focus: #2D4A17;

  --c-solar: #8DC63E;
  --c-batt: #2F6B55;
  --c-edl: #566E81;
  --c-gen: #CF8C40;

  --radius: 6px;
  --radius-media: 10px;
  --maxw: 1180px;
  --gutter: 24px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
a, button, .btn, input, select, textarea, label { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.band--dark :focus-visible, .band--deep :focus-visible, .figures :focus-visible, .site-footer :focus-visible { outline-color: var(--leaf); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 720; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.4rem + 3.6vw, 4.25rem); font-stretch: 116%; letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.75rem); font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-stretch: 104%; font-weight: 680; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 680; line-height: 1.3; margin-bottom: 4px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.measure { max-width: 40em; }

.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(64px, 8vw, 112px); }
.band--tight { padding-block: clamp(48px, 6vw, 80px); }
.band--white { background: var(--surface); }
.band--dark { background: var(--night); color: var(--on-dark); }
.band--deep { background: var(--green-deep); color: var(--on-dark); }
.band--dark h2, .band--deep h2, .band--dark h3, .band--deep h3 { color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 650; font-stretch: 104%; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--sm { min-height: 40px; padding: .45em .95em; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { flex: none; }
.brand img { width: 150px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 560; font-size: 1rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav a.is-current { border-bottom-color: var(--green); color: var(--green-deep); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .header-inner { min-height: 64px; }
  .brand img { width: 128px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 24px rgba(22, 33, 26, .08);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.is-current { border-bottom-color: var(--line); color: var(--green); }
  .header-call { margin-top: 16px; }
}

/* ---------------------------------------------------------------- video component */
.vid { position: relative; aspect-ratio: var(--ar); border-radius: var(--radius-media); overflow: hidden; background: #0C130E; isolation: isolate; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(18, 27, 21, .62); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.vid-toggle:hover { background: rgba(18, 27, 21, .85); }
.vid-toggle span { display: block; width: 12px; height: 14px; position: relative; }
/* paused: play triangle */
.vid-toggle span::before { content: ""; position: absolute; left: 2px; top: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
/* playing: pause bars */
.vid.is-playing .vid-toggle span::before { left: 0; width: 4px; height: 14px; border: 0; background: #fff; box-shadow: 8px 0 0 #fff; }
/* tap-to-play videos: big centred play button until started, then back to the corner */
.vid--tap video { cursor: pointer; }
.vid--tap:not(.is-playing) .vid-toggle { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 64px; height: 64px; background: rgba(18, 27, 21, .7); }
.vid--tap:not(.is-playing) .vid-toggle span { transform: scale(1.5); }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.hero h1 { margin: 0; max-width: 13ch; }
.hero .lead { margin: 0; }
.hero-film { margin: 0; }
.hero-film .vid { aspect-ratio: 2.25 / 1; }
.hero-film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.hero-film figcaption a { font-weight: 620; }
@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; }
  .hero-film .vid { aspect-ratio: var(--ar); }
}

/* ---------------------------------------------------------------- figures band */
.figures { background: var(--green-deep); color: var(--on-dark); padding-block: clamp(40px, 5vw, 64px); }
.fig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-grid li { padding: 22px 28px 22px 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-dark); }
.fig-grid li:nth-child(3n+2), .fig-grid li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.fig-grid .n, .plants .n {
  font-size: clamp(2.5rem, 1.7rem + 2.6vw, 3.75rem); font-stretch: 122%; font-weight: 760; line-height: .95;
  color: var(--leaf); letter-spacing: -0.015em; font-variant-numeric: tabular-nums;
}
.fig-grid .n small, .plants .n small { font-size: .4em; font-weight: 650; margin-left: .2em; letter-spacing: 0; color: #fff; }
.fig-grid .l { color: var(--on-dark); max-width: 24em; line-height: 1.45; }
@media (max-width: 860px) {
  .fig-grid { grid-template-columns: 1fr 1fr; }
  .fig-grid li:nth-child(n) { padding: 20px 16px 20px 0; border-left: 0; }
  .fig-grid li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 480px) {
  .fig-grid .n { font-size: 2.125rem; }
  .fig-grid .l { font-size: .9375rem; }
}
@media (max-width: 340px) {
  .fig-grid { grid-template-columns: 1fr; }
  .fig-grid li:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- solar */
.solar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.solar-text .lead { margin-bottom: 28px; }
.systems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.systems li { padding: 18px 0; border-top: 1px solid var(--line); }
.systems h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.systems p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.reel-feature { margin: 0; position: sticky; top: 100px; }
.reel-feature figcaption { margin-top: 20px; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.reel-feature figcaption strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }
.reel-feature figcaption a { font-weight: 620; white-space: nowrap; }
@media (max-width: 860px) {
  .solar-grid { grid-template-columns: 1fr; }
  .reel-feature { position: static; max-width: 300px; }
}
@media (max-width: 560px) { .systems { grid-template-columns: 1fr; } }

/* 24-hour supply strip */
.day-block { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 4px solid var(--green); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.day-intro h3 { font-size: 1.5rem; font-stretch: 110%; }
.day-intro p { color: var(--ink-2); }
.day-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.day-label { font-weight: 650; line-height: 1.25; }
.day-label span { display: block; font-weight: 400; font-size: .875rem; color: var(--ink-2); }
.day-bar { display: flex; height: 52px; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.seg {
  flex: var(--h) 0 0; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .8125rem; font-weight: 650; border-right: 2px solid var(--surface); transform-origin: left center;
}
.seg:last-child { border-right: 0; }
.seg--solar { background: var(--c-solar); color: var(--ink); }
.seg--batt { background: var(--c-batt); color: #fff; }
.seg--edl { background: var(--c-edl); color: #fff; }
.seg--gen { color: var(--ink); background: repeating-linear-gradient(135deg, var(--c-gen) 0 7px, #DDA466 7px 10px); }
.day-axis { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; }
.day-axis ol { list-style: none; margin: 0; padding: 0; position: relative; height: 1.5em; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.day-axis li { position: absolute; top: 0; transform: translateX(-50%); }
.day-axis li:first-child { transform: none; }
.day-axis li:last-child { transform: translateX(-100%); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 20px 0 0; padding: 0; font-size: .9375rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .k-solar { background: var(--c-solar); }
.legend .k-batt { background: var(--c-batt); }
.legend .k-edl { background: var(--c-edl); }
.legend .k-gen { background: repeating-linear-gradient(135deg, var(--c-gen) 0 5px, #DDA466 5px 8px); }
.note { margin: 14px 0 0; font-size: .875rem; color: var(--ink-2); }
.js .day:not(.is-visible) .seg { transform: scaleX(.001); }
.js .day .seg { transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .js .day:not(.is-visible) .seg { transform: none; }
  .js .day .seg { transition: none; }
}
@media (max-width: 860px) { .day-block { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .day-row, .day-axis { grid-template-columns: 1fr; gap: 8px; }
  .day-axis > span { display: none; }
  .day-bar { height: 40px; }
  .seg { font-size: 0; }
}

/* process steps (real sequences) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--green); font-weight: 720; font-size: .875rem; color: var(--green-deep); background: var(--surface);
}
.steps p { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.steps-h { margin: clamp(56px, 7vw, 80px) 0 24px; font-size: 1.5rem; font-stretch: 110%; }
.steps--row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 18px; position: relative; }
.steps--row::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 2px; background: var(--line); }
.steps--row li::before { position: relative; z-index: 1; margin-bottom: 14px; }
.steps--row h4 { font-size: 1rem; }
@media (max-width: 1020px) {
  .steps--row { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .steps--row::before { display: none; }
  .steps--row li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
  .steps--row li::before { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) { .steps--row { grid-template-columns: 1fr; } }
.steps--compact li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps--compact li::before { grid-row: span 2; background: var(--paper); }
.steps--compact h4 { margin: 4px 0 2px; }

/* ---------------------------------------------------------------- projects (dark) */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 40em; }
.band--dark .section-head p, .band--deep .section-head p { color: var(--on-dark-2); }

/* justified rows: every item in a row shares one height, widths follow each item's aspect ratio */
.jrow { display: flex; gap: clamp(14px, 2vw, 24px); margin-bottom: clamp(28px, 3.5vw, 40px); }
.jitem { flex: calc(var(--ar)) 1 0px; min-width: 0; margin: 0; }
.jitem .vid, .jitem picture { aspect-ratio: var(--ar); border-radius: var(--radius-media); overflow: hidden; background: #0C130E; }
.jitem picture img { width: 100%; height: 100%; object-fit: cover; }
.jitem figcaption { margin-top: 12px; font-size: .875rem; color: var(--on-dark-2); }
.jitem figcaption strong { display: block; color: #fff; font-size: 1rem; font-weight: 660; margin-bottom: 6px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px 10px; font-size: .8125rem; color: var(--on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .jrow { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .jitem { flex: 0 0 auto; width: min(calc(300px * (var(--ar))), 80vw); scroll-snap-align: start; }
}

.plants { list-style: none; margin: clamp(12px, 2vw, 24px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plants li { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px 4px 0; border-top: 1px solid var(--line-dark); }
.plants li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.plants strong { color: #fff; font-size: 1.0625rem; margin-top: 8px; }
.plants li > span:last-child { color: var(--on-dark-2); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 760px) {
  .plants { grid-template-columns: 1fr; }
  .plants li + li { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- consultancy */
.consult-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.h-sm { font-size: 1.125rem; margin-bottom: 12px; }

.savings { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.savings figcaption h3 { font-size: 1.375rem; font-stretch: 108%; margin-bottom: 2px; }
.savings figcaption p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 18px; }
.bars, .bars-axis ol { list-style: none; margin: 0; padding: 0; }
.savings { --max: 2700; }
.bars li { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 4px 0; }
.bar-name { font-weight: 620; font-size: .9375rem; line-height: 1.2; }
.bar-name small { display: block; font-weight: 400; font-size: .75rem; color: var(--ink-2); margin-top: 1px; }
.bar-track {
  position: relative; height: 22px;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(500 / var(--max) * 100%) 100%;
}
.bar-fill { display: block; height: 100%; width: calc(var(--v) / var(--max) * 100%); background: var(--green); border-radius: 0 4px 4px 0; transition: background-color .15s; }
.bars li:hover .bar-fill { background: var(--green-deep); }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--v) / var(--max) * 100% + 8px); font-size: .8125rem; font-weight: 620; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar--in .bar-val { left: auto; right: calc(100% - var(--v) / var(--max) * 100% + 8px); color: #fff; }
.bars-axis { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.bars-axis ol { position: relative; height: 1.4em; font-size: .75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; border-top: 1px solid var(--ink); }
.bars-axis li { position: absolute; top: 4px; left: calc(var(--t) / var(--max) * 100%); transform: translateX(-50%); }
.bars-axis li:first-child { transform: none; }
.savings-total { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.savings-total strong { color: var(--green-deep); font-size: 1.25rem; font-stretch: 112%; }
@media (max-width: 960px) { .consult-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bars li, .bars-axis { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 2px 10px; }
  .bar-name { font-size: .8125rem; }
  .bars-axis li:nth-child(even) { display: none; }
}

.consult-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(48px, 6vw, 72px); }
.consult-more > div { border-top: 4px solid var(--green); padding-top: 18px; }
.consult-more > div:nth-child(2) { border-top-color: var(--c-batt); }
.consult-more > div:nth-child(3) { border-top-color: var(--green-deep); }
.consult-more p { color: var(--ink-2); font-size: 1rem; }
.consult-more ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 1rem; }
.consult-more li { margin-bottom: 6px; }
@media (max-width: 860px) { .consult-more { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- clients */
.clients-h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); max-width: 26ch; margin-bottom: 28px; }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.refs h3 { font-size: .9375rem; color: var(--ink-2); font-weight: 600; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.refs ul { list-style: none; margin: 0 0 24px; padding: 0; }
.refs li { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 560; }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--line); }
.creds div { padding: 18px 20px 6px 0; }
.creds div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.creds dt { font-size: 1.375rem; font-stretch: 112%; font-weight: 720; color: var(--green-deep); line-height: 1.15; }
.creds dd { margin: 6px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.person { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.person h3 { margin-bottom: 8px; }
.person h3 span { display: block; font-size: .9375rem; font-weight: 400; color: var(--ink-2); font-stretch: 100%; margin-top: 2px; }
.person p { color: var(--ink-2); max-width: 40em; margin: 0; }
.timeline { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); position: sticky; top: 100px; }
.timeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline ol::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 2.4em; width: 2px; background: rgba(141, 198, 62, .35); }
.timeline li { position: relative; padding: 0 0 22px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--green-deep); }
.tl-when { display: block; font-weight: 720; font-stretch: 112%; color: var(--leaf); font-size: 1.125rem; line-height: 1.3; }
.tl-what { display: block; color: var(--on-dark); font-size: 1rem; line-height: 1.5; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .timeline { position: static; }
}
@media (max-width: 640px) {
  .creds { grid-template-columns: 1fr; }
  .creds div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- contact (deep green) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-intro p { color: var(--on-dark); max-width: 30em; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list .k { display: block; font-size: .875rem; color: var(--on-dark-2); margin-bottom: 2px; }
.contact-list a { color: #fff; font-weight: 640; font-size: 1.125rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: #fff; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 620; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field .hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .875rem; margin-top: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8E9A92; border-radius: var(--radius); padding: .65em .8em; min-height: 48px;
}
.field input[type="file"] { padding: .55em .6em; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid #8E9A92; border-radius: var(--radius); padding: 10px 14px; cursor: pointer; margin: 0; }
.choices input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.choices label:has(input:checked) { border-color: var(--green); background: var(--leaf-soft); }
.form-note { margin: 14px 0 0; font-size: .875rem; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* utility pages */
.message { padding-block: clamp(64px, 10vw, 140px); }
.message h1 { max-width: 16ch; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #C7CFC9; padding-top: clamp(48px, 6vw, 72px); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { max-width: 22em; }
.footer-h { font-size: .875rem; color: var(--on-dark-2); font-weight: 600; margin: 0 0 10px; font-stretch: 100%; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-base { margin-top: 40px; }
.footer-base p { margin: 0; padding-block: 20px; border-top: 1px solid var(--line-dark); font-size: .875rem; color: var(--on-dark-2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } :root { --gutter: 16px; } }

@media print {
  .site-header, .site-footer, .actions, .vid-toggle, #contact form { display: none; }
  body { background: #fff; }
}

/* Rev 3: projects row labels, 4-up plant list, audit table */
.row-h { color: var(--on-dark-2); font-size: 1rem; font-stretch: 100%; font-weight: 600; margin: 0 0 14px; }
.band--dark .row-h { color: var(--on-dark-2); }
.plants { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) {
  .plants { grid-template-columns: 1fr 1fr; }
  .plants li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .plants { grid-template-columns: 1fr; }
  .plants li + li { padding-left: 0; border-left: 0; }
}

.audits { margin-top: clamp(48px, 6vw, 72px); }
.audits-head h3 { font-size: 1.375rem; font-stretch: 108%; margin-bottom: 4px; }
.audits-head p { color: var(--ink-2); font-size: .9375rem; max-width: 46em; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.audit-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9375rem; }
.audit-table th, .audit-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.audit-table tbody th { font-weight: 650; min-width: 12rem; }
.audit-table tbody th small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.audit-table td { color: var(--ink-2); }
.audit-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.audit-table tbody td.num:nth-child(3) { font-weight: 650; }
.audit-table tfoot th, .audit-table tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; color: var(--ink); }
.ab { display: inline-block; vertical-align: middle; width: 96px; height: 10px; margin-right: 10px; background: var(--paper); border-radius: 0 3px 3px 0; }
.ab span { display: block; height: 100%; width: calc(var(--v) / 102149 * 100%); background: var(--c-batt); border-radius: 0 3px 3px 0; }
.amt { display: inline-block; min-width: 5.2em; text-align: right; vertical-align: middle; }

/* =================================================================== phones (rev 4)
   Tested at 360, 390 and 430 px. Later rules override the base ones at the same specificity. */
.mbar { display: none; }
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .band { padding-block: 56px; }
  .band--tight { padding-block: 44px; }
  h2 { font-size: 1.875rem; }
  .lead { font-size: 1.0625rem; }

  /* hero: tighter type, full-width buttons, full-bleed film */
  .hero { padding-block: 24px 36px; }
  .hero-head { gap: 16px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.625rem); max-width: none; letter-spacing: -0.025em; }
  .hero .actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .actions .btn { padding-inline: .6em; font-size: .9375rem; }
  .hero-film { margin-inline: calc(-1 * var(--gutter)); }
  .hero-film .vid { aspect-ratio: 4 / 3; border-radius: 0; }
  .hero-film figcaption { padding-inline: var(--gutter); font-size: .875rem; }

  /* figures */
  .figures { padding-block: 28px 32px; }
  .fig-grid li:nth-child(n) { padding-block: 16px; }
  .fig-grid .n { font-size: 2rem; }
  .fig-grid .n small { font-size: .45em; }
  .fig-grid .l { font-size: .875rem; }

  /* solar */
  .solar-text .lead { margin-bottom: 18px; }
  .systems li { padding: 14px 0; }
  .reel-feature { max-width: none; }
  .reel-feature figcaption { margin-top: 12px; }
  .day-block { margin-top: 48px; padding-top: 24px; }
  .day-intro h3, .steps-h { font-size: 1.3125rem; }
  .steps-h { margin-top: 44px; }

  /* projects: two-column grid instead of side-scrolling rows */
  .section-head { margin-bottom: 24px; }
  .row-h { margin-bottom: 12px; font-size: .9375rem; }
  .jrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; overflow: visible; padding-bottom: 0; margin-bottom: 32px; }
  .jitem { width: auto; }
  .jitem--wide { grid-column: 1 / -1; }
  .jrow--uniform .jitem .vid, .jrow--uniform .jitem picture { aspect-ratio: 3 / 4; }
  .jitem figcaption { margin-top: 8px; }
  .jitem figcaption strong { font-size: .9375rem; margin-bottom: 4px; }
  .jitem:not(.jitem--wide) .chips span:nth-child(n+3) { display: none; }
  .chips span { font-size: .75rem; padding: 1px 8px; }
  .vid-toggle { width: 36px; height: 36px; right: 8px; bottom: 8px; }

  /* plant figures: two per row */
  .plants { grid-template-columns: 1fr 1fr; }
  .plants li:nth-child(n) { padding: 18px 12px 6px 0; border-left: 0; }
  .plants li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-dark); }
  .plants .n { font-size: 2rem; }
  .plants strong { font-size: 1rem; margin-top: 4px; }
  .plants li > span:last-child { font-size: .875rem; }

  /* consultancy */
  .steps--compact li { padding: 12px 0; }
  .savings { padding: 18px 16px; }
  .consult-more { margin-top: 44px; gap: 28px; }

  /* clients: names as compact pills */
  .clients-h { font-size: 1.5rem; margin-bottom: 20px; }
  .refs ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .refs h3 { margin-bottom: 12px; }
  .refs li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 560; }

  /* about */
  .creds dt { font-size: 1.25rem; }
  .person { margin-top: 22px; }

  /* contact */
  .contact-list a { font-size: 1.0625rem; }
  .form { padding: 20px 16px; }
  .choices label { flex: 1 1 auto; justify-content: center; padding: 10px; }

  /* quick-contact bar */
  .mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(18, 27, 21, .96); backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mbar.is-shown { transform: none; }
  .mbar .btn { min-height: 46px; font-size: .9375rem; padding-inline: .5em; }
  .btn--mbar { background: #fff; color: var(--green-deep); }
  .btn--mbar:hover { background: var(--leaf-soft); color: var(--green-deep); }
  .site-footer { padding-bottom: 76px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

/* audit table becomes one card per client on phones */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .audit-table { min-width: 0; font-size: .9375rem; }
  .audit-table, .audit-table tbody, .audit-table tfoot { display: block; }
  .audit-table thead { display: none; }
  .audit-table tr { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
  .audit-table th, .audit-table td { display: block; padding: 0; border: 0; }
  .audit-table tbody th, .audit-table td.meas { grid-column: 1 / -1; }
  .audit-table tbody th { min-width: 0; font-size: 1rem; }
  .audit-table td.meas { font-size: .875rem; line-height: 1.45; }
  .audit-table td.num { text-align: left; white-space: normal; }
  .audit-table td.num::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 400; color: var(--ink-2); margin-bottom: 2px; }
  .audit-table .ab { display: block; width: 100%; margin: 6px 0 0; order: 2; }
  .audit-table td.num:nth-of-type(2) { display: flex; flex-direction: column; }
  .amt { min-width: 0; text-align: left; }
  .audit-table tfoot tr { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
  .audit-table tfoot th, .audit-table tfoot td { border: 0; color: #fff; }
  .audit-table tfoot th { grid-column: 1 / -1; font-size: 1rem; }
  .audit-table tfoot td.meas { display: none; }
  .audit-table tfoot td.num::before { color: var(--on-dark-2); }
}
.audit-table tfoot .num { color: inherit; }
.hero-film figcaption a, .reel-feature figcaption a { display: inline-block; padding-block: 6px; }
@media (max-width: 760px) {
  /* solar: show the reel right after the intro, before the list of systems */
  .solar-grid { display: flex; flex-direction: column; gap: 0; }
  .solar-text { display: contents; }
  .solar-text h2 { order: 1; }
  .solar-text .lead { order: 2; }
  .reel-feature { order: 3; margin-bottom: 28px; }
  .systems { order: 4; }
  .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .choices label { padding: 10px 6px; font-size: .875rem; gap: 6px; }
}
@media (max-width: 700px) {
  .audit-table tfoot tr .num, .audit-table tfoot th { color: #fff; }
}
@media (max-width: 380px) {
  .hero .actions { grid-template-columns: 1fr; }
  .choices { display: flex; flex-wrap: wrap; }
  .choices label { flex: 1 1 auto; }
}

/* Rev 5: reels from the 1080x1920 originals (vertical). */
@media (max-width: 760px) {
  .jrow--tall .jitem .vid, .jrow--tall .jitem picture { aspect-ratio: 9 / 16; }
  .jrow--photos { grid-template-columns: 1fr; }
  .reel-feature .vid { aspect-ratio: 4 / 5; }
}
