/* texpowers.ca sales pages, look A "Big sky" (Robin, Nov 11, 2026: "销售网页，也就是home网页，用A"): a dark page, the
   home page opening on our prairie array under a wide sky. /subcontract keeps design C in subcontract.css.
   Colours: the old texpowers.com palette. */
:root {
  --night: #041D24;
  --deep: #0A2B33;
  --panel: #0D3540;
  --abyss: #021419;
  --sky: #27B0E0;
  --sky-hover: #52C3EA;
  --mint: #41D89F;
  --snow: #F2F6F7;
  --text: #B4C6CB;
  --fog: #A9BCC2;
  --muted: #8FA4AA;
  --line: rgba(242, 246, 247, 0.14);
  --line-strong: rgba(242, 246, 247, 0.3);
  --error: #FF9B8F;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --edge: max(40px, calc((100vw - 1280px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body { font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--night); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wrap { padding: 0 var(--edge); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 10px 16px; border-radius: 4px; background: var(--sky); color: var(--night); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* Header: solid and sticky. On the home page it sits on the photo, see-through, while the page is at its very top;
   it turns solid as soon as the page moves (site.js). */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--night); color: var(--snow); border-bottom: 1px solid var(--line); transition: background-color 0.2s, border-color 0.2s; }
.site-header--over { position: fixed; inset: 0 0 auto 0; }
.js .site-header--over:not(.is-solid) { background: transparent; border-bottom-color: transparent; }
/* Over the photo the menu links are full white, and the photo's top shade (.hero--home::after) is deep enough to keep them at 4.5:1 */
.js .site-header--over:not(.is-solid) .main-nav a { color: var(--snow); }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: 0.12em; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.main-nav { display: flex; align-self: stretch; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; white-space: nowrap; }
.main-nav a { display: flex; align-items: center; color: rgba(242, 246, 247, 0.82); text-decoration: none; box-shadow: inset 0 -3px 0 transparent; }
.main-nav a:hover { color: var(--snow); }
.main-nav a[aria-current="page"] { color: var(--snow); box-shadow: inset 0 -3px 0 var(--sky); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-btn, .menu-close { display: none; padding: 8px 16px; border: 1px solid rgba(242, 246, 247, 0.6); border-radius: 4px; background: none; color: var(--snow); font-weight: 600; font-size: 16px; cursor: pointer; }
.menu-close { display: block; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 4px; font-weight: 600; font-size: 17px; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--sky); color: var(--night); }
.btn-primary:hover { background: var(--sky-hover); }
.btn-ghost { color: var(--snow); box-shadow: inset 0 0 0 1px rgba(242, 246, 247, 0.65); }
.btn-ghost:hover { background: rgba(242, 246, 247, 0.08); box-shadow: inset 0 0 0 1px var(--snow); }
.site-header .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wa-icon { flex: none; width: 20px; height: 20px; color: #25D366; }
.btn-wa { gap: 10px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.text-link { color: var(--sky); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--sky-hover); }
.section-foot { margin-top: 32px; }

/* Phone menu */
html.menu-open { overflow: hidden; }
.mobile-menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow-y: auto; background: var(--night); color: var(--snow); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; flex: none; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mobile-menu-top .brand { font-size: 20px; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 20px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 26px; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--sky); }
.mobile-menu-foot { display: grid; gap: 12px; margin-top: auto; padding: 24px 20px 28px; }

/* Headings */
h1 { font-family: var(--display); font-weight: 600; line-height: 0.95; letter-spacing: -0.01em; color: var(--snow); text-wrap: balance; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--snow); text-wrap: balance; }
.section-sub { max-width: 58ch; margin-top: 16px; font-size: 20px; line-height: 1.5; }
.lede { max-width: 38ch; margin-top: 24px; color: #DCE7EA; font-size: 21px; line-height: 1.45; }

/* Home: the prairie and the sky */
.hero--home { position: relative; display: flex; align-items: flex-end; min-height: min(94vh, 880px); overflow: hidden; background: var(--night); color: var(--snow); }
.hero--home > picture img, .hero--home > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* The drone video fades in over its own first frame once it's playing (site.js) */
.hero--home > video { opacity: 0; transition: opacity 0.8s ease; }
.hero--home > video.is-playing { opacity: 1; }
.hero--home::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 29, 36, 0.86) 0%, rgba(4, 29, 36, 0.5) 40%, rgba(4, 29, 36, 0) 66%),
    linear-gradient(0deg, rgba(4, 29, 36, 0.95) 0%, rgba(4, 29, 36, 0) 42%),
    linear-gradient(180deg, rgba(4, 29, 36, 0.7) 0%, rgba(4, 29, 36, 0) 26%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 140px var(--edge) 52px; }
.hero--home h1 { max-width: 11ch; font-size: clamp(62px, 8.6vw, 132px); line-height: 0.9; }
/* The line under the headline is about as wide as the headline and breaks into even lines, so no word is left alone
   on the last one (Nov 22, 2026; design review, finding 8) */
.hero--home .lede { max-width: 46ch; text-wrap: balance; }
.trust { display: flex; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: #CFDBDF; font-size: 16px; }
.trust li { padding: 0 24px; border-left: 1px solid var(--line); }
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust li:last-child { padding-right: 0; }

/* Inner pages: the title on a photo taken from above */
.page-hero { position: relative; display: grid; min-height: clamp(380px, 50vh, 540px); overflow: hidden; background: var(--night); color: var(--snow); }
.page-hero > * { grid-area: 1 / 1; }
.hero-media { position: relative; min-height: 100%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 29, 36, 0.92) 0%, rgba(4, 29, 36, 0.66) 42%, rgba(4, 29, 36, 0.12) 78%),
    linear-gradient(0deg, rgba(4, 29, 36, 0.9) 0%, rgba(4, 29, 36, 0) 46%); }
.hero-copy { position: relative; z-index: 1; align-self: end; padding: 96px var(--edge) 56px; }
.page-hero h1 { max-width: 13ch; font-size: clamp(52px, 6vw, 92px); }
/* An opening photo whose subject sits beside the title, not under it (Residential solar; Nov 22, 2026; design review,
   finding 2). The shade is only behind the words: down the left side on a computer, and up from the bottom on a phone,
   where the section is taller so the subject shows above the title. --pos and --pos-phone place the photo. */
.page-hero--clear .hero-media img { object-position: var(--pos, 70% 50%); }
.page-hero--clear .hero-media::after { background:
    linear-gradient(90deg, rgba(4, 29, 36, 0.9) 0%, rgba(4, 29, 36, 0.84) 34%, rgba(4, 29, 36, 0.66) 48%, rgba(4, 29, 36, 0) 70%),
    linear-gradient(0deg, rgba(4, 29, 36, 0.7) 0%, rgba(4, 29, 36, 0) 24%); }
.page-hero--plain { min-height: 0; border-bottom: 1px solid var(--line); }
.page-hero--plain .hero-copy { padding: 96px var(--edge) 64px; }

/* Sections */
.section { padding: 96px 0; }
.band { background: var(--deep); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin-top: 36px; color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--sky); font-weight: 600; }
.bullets li { position: relative; padding-left: 24px; }
.bullets li + li { margin-top: 8px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 2px; background: var(--mint); }
.callout { padding: 20px 24px; border-left: 4px solid var(--sky); background: var(--deep); }
.band .callout { background: var(--panel); }

/* Who does what */
.roles { border-bottom: 1px solid var(--line); }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roles-grid > div { padding: 44px 32px 48px; border-left: 1px solid var(--line); }
.roles-grid > div:first-child { padding-left: 0; border-left: 0; }
.roles-grid h2, .roles-grid h3 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.roles-grid p { max-width: 32ch; margin-top: 10px; }
.section .roles-grid { margin-top: 28px; }
.section .roles-grid > div { padding-top: 8px; padding-bottom: 8px; }

/* What we do: four tiles */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 88px; padding-bottom: 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.tile { position: relative; display: block; background: var(--deep); text-decoration: none; }
/* The critter guard photo carries the two "no" signs (squirrel, pigeon) in its sky */
.tile-photo { position: relative; }
.tile-signs { position: absolute; top: 6%; right: 5%; width: 28%; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)); }
/* Home solar's critter guard section shows the same photo and signs as the home page's tile (Robin, Nov 12, 2026). */
.critter-photo { position: relative; max-width: 420px; margin-top: 32px; }
.critter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tile img, .tile .art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tile picture { display: block; }
.tile-text { padding: 22px 24px 30px; }
.tile h3 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.tile p { margin-top: 8px; font-size: 17px; }
.tile:hover h3 { color: var(--sky-hover); }
/* An arrow after each tile's title shows that the tile opens a page: on a phone there's no hover to say so (Nov 22,
   2026; design review, finding 8). It begins with a no-break space, so it never drops to a line of its own. */
.tile h3::after { content: "\00a0"; padding-right: 0.95em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 9h19M14 2.5 20.5 9 14 15.5' fill='none' stroke='%2327B0E0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 58% / 0.8em auto no-repeat; }
.art { display: grid; place-items: center; background: var(--panel); }
.art svg { width: 62%; }
.art .svg-wide { width: 84%; }
.art--panel { aspect-ratio: 4 / 3; max-width: 380px; margin-top: 32px; }
.art--panel .svg-wide { width: auto; height: 88%; }

/* Price */
.price { background: var(--deep); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-top: 64px; padding-bottom: 64px; }
.price-line { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: clamp(38px, 3.8vw, 54px); line-height: 1.05; text-wrap: balance; }
.price-note p { max-width: 40ch; }
.price-note .text-link { display: inline-block; margin-top: 14px; }

/* Steps */
.track { display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); margin-top: 48px; counter-reset: step; }
.track li { position: relative; padding: 50px 28px 0 0; counter-increment: step; }
.track li::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: var(--night); font-weight: 700; font-size: 15px; line-height: 34px; text-align: center; }
.track li::after { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: rgba(242, 246, 247, 0.18); }
.track li:last-child::after { right: auto; width: 34px; }
.track h3 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.15; }
.track p { margin-top: 8px; font-size: 16px; }
/* Home page: on a computer the six steps sit three across and two down, as they already did on a tablet. Six narrow
   columns left about 25 characters a line (Nov 22, 2026; design review, finding 8). */
@media (min-width: 961px) {
  .track--3 { --steps: 3; row-gap: 52px; }
  .track--3 li { padding-right: 48px; }
  .track--3 li:nth-child(3n)::after { right: auto; width: 34px; }
  .track--3 p { max-width: 38ch; font-size: 17px; }
}

/* Pairs */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.pair--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair > div { padding-top: 22px; border-top: 2px solid var(--line-strong); }
.pair h3 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.pair p { margin-top: 10px; }

/* Lists with rules */
.rule-list > li { padding: 22px 0; border-top: 1px solid var(--line); }
.rule-list > li:last-child { border-bottom: 1px solid var(--line); }
.rule-list h3 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.2; }
.rule-list p { max-width: 64ch; margin-top: 6px; }

/* Tables */
.table { width: 100%; margin-top: 36px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { padding-top: 0; border-bottom: 2px solid var(--line-strong); color: var(--snow); font-size: 15px; font-weight: 600; }
.table tbody th { color: var(--snow); font-weight: 600; }
.table td small, .table th small { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; font-weight: 400; }
.table-note { max-width: 64ch; margin-top: 16px; font-size: 16px; }

/* Photos edge to edge */
.photo-strip img { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.photo-pair img { width: 100%; height: clamp(200px, 26vw, 400px); object-fit: cover; }

/* Brands we install */
/* Brands we install (Robin, Nov 12, 2026: design C, each brand's own logo in its colours on a white tile). */
.brand-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-top: 44px; }
.brand-label { color: var(--sky); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-tiles { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.brand-tiles li { display: grid; place-items: center; height: 112px; padding: 0 18px; border-radius: 6px; background: #fff; }
.brand-tiles img { width: auto; max-width: 100%; height: var(--lh); object-fit: contain; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.faq-grid > nav { position: sticky; top: 104px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 { margin-bottom: 12px; color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 0; color: var(--snow); font-weight: 600; font-size: 20px; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-top: 6px; background: linear-gradient(var(--sky), var(--sky)) center / 100% 2px no-repeat, linear-gradient(var(--sky), var(--sky)) center / 2px 100% no-repeat; }
.faq details[open] summary::after { background-size: 100% 2px, 0 0; }
.faq summary:hover { color: var(--sky-hover); }
.faq .answer { max-width: 68ch; padding: 0 40px 24px 0; }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer a { color: var(--sky); font-weight: 600; }
.checked { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Photo walls */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 21vw, 300px); grid-auto-flow: dense; gap: 3px; }
.wall--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 320px); }
.wall img, .wall video { width: 100%; height: 100%; object-fit: cover; }
.wall .w2 { grid-column: span 2; }
.wall .w3 { grid-column: span 3; }
.wall .h2 { grid-row: span 2; }

/* Our work page: a wall of small photos in rows of equal height, each photo whole (Robin, Nov 12, 2026: "把our work
   这些图片再缩小，变成一个照片墙"). --r on each photo is its width divided by its height. Photos grow in proportion to
   --r, so each row fills the width at one height; the empty ::after keeps the last row from stretching. The row height
   follows the screen width, so the rows break the same way on every desktop. */
.pwall { --h: clamp(70px, 6.6vw, 170px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px; }
.pwall > img { display: block; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); min-width: 0; height: auto; aspect-ratio: var(--r); object-fit: cover; }
.pwall::after { content: ""; flex: 1000000 1 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.contact-list { margin-top: 32px; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; color: var(--snow); font-weight: 600; font-size: 15px; }
.contact-list a { color: var(--sky); font-weight: 600; }
.contact-list address { margin-top: 6px; font-style: normal; }
.form-sheet { padding: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
form > .form-grid + .field, form > .field + .field { margin-top: 22px; }
.field label, .field legend { color: var(--snow); font-weight: 600; font-size: 15px; }
.optional { color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(242, 246, 247, 0.28); border-radius: 4px; background: #062731; color: var(--snow); font-size: 17px; }
.input::placeholder { color: #7F959B; }
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(39, 176, 224, 0.35); }
textarea.input { min-height: 120px; resize: vertical; }
fieldset { border: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(242, 246, 247, 0.35); border-radius: 999px; color: var(--snow); font-weight: 500; font-size: 16px; }
.choice input:checked + span { border-color: var(--sky); background: var(--sky); color: var(--night); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
/* A field to fix: a 2px red outline that stays while the field has focus, and a line under it that says what's missing (site.js) */
.input.is-invalid, .is-invalid .choice span { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.input.is-invalid:focus { border-color: var(--error); box-shadow: 0 0 0 1px var(--error), 0 0 0 4px rgba(39, 176, 224, 0.45); }
.field-error { color: var(--error); font-weight: 600; font-size: 15px; line-height: 1.4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; margin-top: 28px; }
.hint { color: var(--muted); font-size: 15px; }
.form-note { margin-top: 14px; font-size: 15px; }
.form-note a { color: var(--sky); }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-status a { color: var(--snow); }
.form-success h2 { color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.05; }
.form-success p { margin-top: 12px; }

/* Closing band and footer */
.closing { border-top: 1px solid var(--line); background: var(--night); }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 72px; padding-bottom: 88px; }
.closing p { max-width: 18ch; color: var(--snow); font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.05; }
.closing .actions { margin-top: 0; }
/* A closing line made of two sentences breaks between them, so the second never ends as one word alone on a line
   (Residential solar; Nov 22, 2026; design review, finding 8) */
.closing p > span { display: inline-block; text-wrap: balance; }
.closing--long p { max-width: 28ch; }
.site-footer { background: var(--abyss); color: var(--fog); font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { max-width: 34ch; margin-top: 14px; }
.footer-title { margin-bottom: 12px; color: var(--snow); font-weight: 600; font-size: 15px; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { color: var(--fog); text-decoration: none; }
.footer-list a:hover { color: var(--snow); text-decoration: underline; }
.footer-list .wa-icon { width: 17px; height: 17px; }
/* The Contact column gives a number for each province (Robin, Nov 14, 2026) */
.footer-list .footer-region { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.footer-list .footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-list .footer-social a { display: inline-flex; opacity: 0.9; transition: opacity 0.15s; }
.footer-list .footer-social a:hover { opacity: 1; text-decoration: none; }
.social-icon { width: 30px; height: 30px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-bottom a { color: var(--fog); }
.bottom-bar { display: none; }

/* Legal and not-found pages */
.legal .prose h2 { margin-top: 40px; color: var(--snow); font-family: var(--display); font-weight: 600; font-size: 30px; }
.legal .prose h2:first-child { margin-top: 0; }

/* The Install-only service button beside Contact us (Robin, Nov 11, 2026: make it easier to see). Where the full menu
   only just fits, the gaps tighten. From 1221 to 1299 px the button used to be hidden, with no Menu button either, so
   /subcontract was only in the footer there; now the menu text, the logo and the buttons shrink a little and it stays
   (Nov 22, 2026; design review, finding 8). */
@media (min-width: 1221px) and (max-width: 1360px) {
  .header-row { gap: 22px; }
  .main-nav { gap: 18px; }
  .header-actions { gap: 12px; }
}
@media (min-width: 1221px) and (max-width: 1309px) {
  .header-row { gap: 16px; }
  .brand { gap: 8px; font-size: 21px; letter-spacing: 0.1em; }
  .main-nav { gap: 14px; font-size: 14px; }
  .header-actions { gap: 10px; }
  .site-header .btn { padding: 0 14px; font-size: 15px; }
}

@media (max-width: 1220px) {
  .brand-groups { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .brand-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .pwall { --h: 11vw; }
  .page-hero { min-height: 360px; }
  .page-hero .hero-copy { padding: 80px var(--edge) 44px; }
  .page-hero--clear .lede { max-width: 26ch; }
  .split, .contact-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-grid > nav { position: static; }
  .contact-grid--form-first > .form-sheet { order: -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .track li:nth-child(3n)::after { right: auto; width: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --edge: 20px; }
  html { scroll-padding-top: 76px; }
  body { font-size: 17px; }
  .header-row { height: 64px; }
  .brand { font-size: 20px; }
  .brand img { width: 34px; height: 34px; }
  .header-actions .btn { display: none; }
  .hero--home { min-height: calc(100svh - 58px); }
  .hero--home::after { background: linear-gradient(0deg, rgba(4, 29, 36, 0.96) 0%, rgba(4, 29, 36, 0.78) 48%, rgba(4, 29, 36, 0) 78%), linear-gradient(180deg, rgba(4, 29, 36, 0.6) 0%, rgba(4, 29, 36, 0) 22%); }
  .hero-inner { padding-top: 110px; padding-bottom: 36px; }
  .hero--home h1 { font-size: 60px; }
  .lede { font-size: 18px; }
  .actions .btn { flex: 1; }
  .trust { flex-direction: column; gap: 6px; margin-top: 28px; }
  .trust li { padding: 0; border: 0; }
  .section-sub { font-size: 18px; }
  .section { padding: 60px 0; }
  .page-hero { min-height: 320px; }
  .page-hero .hero-copy { padding: 72px 20px 32px; }
  .page-hero h1 { font-size: 50px; }
  .page-hero--plain .hero-copy { padding: 56px 20px 40px; }
  .page-hero--clear { min-height: 430px; }
  .page-hero--clear .lede { max-width: 38ch; }
  .page-hero--clear .hero-media img { object-position: var(--pos-phone, 50% 30%); }
  .page-hero--clear .hero-media::after { background: linear-gradient(0deg, rgba(4, 29, 36, 0.97) 0%, rgba(4, 29, 36, 0.88) 30%, rgba(4, 29, 36, 0.35) 50%, rgba(4, 29, 36, 0) 66%); }
  .roles-grid { grid-template-columns: 1fr; }
  .roles-grid > div { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .roles-grid > div:first-child { border-top: 0; }
  .section .roles-grid > div { padding: 22px 0; }
  .section-head { padding-top: 60px; }
  .tile-text { padding: 14px 14px 22px; }
  .tile h3 { font-size: 22px; }
  .tile p { font-size: 15px; }
  .price-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 44px; padding-bottom: 44px; }
  .track { grid-template-columns: 1fr; row-gap: 0; margin-top: 32px; }
  .track li { padding: 0 0 28px 54px; }
  .track li::after, .track li:nth-child(3n)::after { top: 0; bottom: 0; left: 16px; right: auto; width: 2px; height: auto; }
  .track li:last-child::after { display: none; }
  .pair, .pair--3 { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .art--panel { max-width: none; }
  .bullets--cols { columns: 1; font-size: 18px; }
  .table thead { display: none; }
  .table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table th, .table td { display: block; padding: 3px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--snow); font-weight: 600; }
  .brand-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .brand-tiles li { height: 88px; padding: 0 14px; }
  .brand-tiles .brand-wide { grid-column: 1 / -1; order: 1; }
  .brand-tiles img { height: calc(var(--lh) * 0.82); }
  .faq summary { font-size: 18px; }
  .faq .answer { padding-right: 0; }
  .wall, .wall--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .wall .w2, .wall .w3 { grid-column: span 2; }
  .pwall { --h: 20vw; }
  .photo-pair img { height: 160px; }
  .form-sheet { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .closing .wrap { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 64px; }
  .closing .actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  /* Footer links were 19 px tall and 8 px apart, tight for a thumb; each is now about 44 px of tap area (Nov 22, 2026;
     design review, finding 8) */
  .footer-list li + li { margin-top: 2px; }
  .footer-list a { display: inline-block; padding: 11px 0; }
  .footer-list .footer-region { padding-top: 10px; }
  .footer-list .footer-region + a { padding-top: 2px; }
  .footer-list .footer-social { gap: 0; margin: 8px 0 0 -7px; }
  .footer-list .footer-social a { display: inline-flex; padding: 7px; }
  .footer-bottom a { display: inline-block; margin: -11px 0; padding: 11px 0; }
  .bottom-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.3fr; padding-bottom: env(safe-area-inset-bottom); background: var(--night); border-top: 1px solid var(--line); }
  .bottom-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--snow); font-weight: 600; text-decoration: none; }
  .bottom-bar .contact { background: var(--sky); color: var(--night); }
}

/* Phones: the "What we do" tiles go one to a row, each on a 16:9 crop of its photo (assets/tiles/*-wide.jpg), so the
   text has room. Two to a row left about 22 characters a line, and a blank block under the shorter text. */
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile img { aspect-ratio: 16 / 9; }
  .tile-signs { top: 8%; right: 4%; width: 13%; }
  .tile-text { padding: 16px 20px 26px; }
  .tile h3 { font-size: 26px; }
  .tile p { font-size: 16px; }
}
