/* ==========================================================================
   ZOLAR ENERGY — Design System
   ========================================================================== */

@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/SF-Pro-Text-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/SF-Pro-Text-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/SF-Pro-Text-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/SF-Pro-Text-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --blue: #213ce6;
  --blue-light: #4d63ff;
  --blue-dim: #17287a;
  --black: #0a0a0a;
  --paper: #f7f5f5;
  --paper-dim: #e9e9e9;
  --slate: #2d3435;
  --error: #c8362e;
  --error-bg: rgba(200,54,46,0.08);

  /* Semantic tokens — light surface (default) */
  --bg: var(--paper);
  --bg-elevated: #ffffff;
  --text: var(--black);
  --text-muted: #5b6465;
  --border: rgba(10, 10, 10, 0.1);
  --accent: var(--blue);

  /* Fonts */
  --font-display: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --fs-2xs: 0.75rem;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.5rem;
  --fs-3xl: 3.5rem;
  --fs-4xl: 5rem;
  --fs-5xl: 7rem;

  /* Spacing scale (8px rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --sp-9: 12rem;

  --container-w: 1280px;
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1s;

  --nav-h: 76px;
}

[data-surface='dark'] {
  --bg: var(--black);
  --bg-elevated: #141517;
  --text: var(--paper);
  --text-muted: #9aa0a1;
  --border: rgba(247, 245, 245, 0.12);
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--blue); color: var(--paper); }

/* ---------------------------------- Type ---------------------------------- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
[data-surface='dark'] .eyebrow { color: var(--blue-light); }

.h1 { font-size: clamp(2.75rem, 6vw, var(--fs-5xl)); }
.h2 { font-size: clamp(2.25rem, 4.4vw, var(--fs-3xl)); }
.h3 { font-size: clamp(1.5rem, 2.6vw, var(--fs-2xl)); }
.h4 { font-size: clamp(1.15rem, 1.6vw, var(--fs-lg)); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, var(--fs-md));
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
}
.text-balance { text-wrap: balance; }

/* ---------------------------------- Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

section { position: relative; }
.section { padding-block: var(--sp-7); }
@media (max-width: 640px) { .section { padding-block: var(--sp-6); } }
.section-tight { padding-block: var(--sp-5); }

.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--sp-4); }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 52px;
  padding-inline: 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue-dim); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: currentColor; transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--black); }
.btn-light:hover { background: var(--paper-dim); transform: translateY(-2px); }
.btn-sm { height: 44px; padding-inline: 1.3em; font-size: var(--fs-2xs); }
.btn-arrow { display: inline-flex; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------------------------------- Nav ---------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--bg-elevated);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 32px -26px rgba(10,10,10,0.35);
}
.nav-inner {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
@media (min-width: 768px) { .nav-inner { padding-inline: var(--sp-5); } }
.nav-logo { height: 30px; width: auto; flex-shrink: 0; position: relative; }
.nav-logo img { height: 100%; width: auto; }
/* Homepage only: the hero opens on a photo, so the nav starts light-on-dark and
   swaps to the standard dark logo once .is-scrolled gives the bar a solid backing. */
.nav-logo .logo-light { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity var(--dur-fast); }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-logo .logo-dark { opacity: 0; }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-logo .logo-light { opacity: 1; }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-links a { color: rgba(247,245,245,0.88); }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-links a:hover,
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-links a.is-active { color: var(--paper); }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-lang { color: rgba(247,245,245,0.68); }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-lang a.is-active { color: var(--paper); background: rgba(255,255,255,0.14); }
body[data-hero='photo'] .nav:not(.is-scrolled) .nav-burger span { background: var(--paper); }
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-5);
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  transition: right var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: var(--sp-3); }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-muted);
}
.nav-lang a { padding: 4px 6px; border-radius: 6px; transition: color var(--dur-fast), background var(--dur-fast); }
.nav-lang a.is-active { color: var(--text); background: rgba(10,10,10,0.06); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--bg-elevated);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-3);
  gap: var(--sp-2);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  color: var(--text);
  padding-block: var(--sp-1);
  border-bottom: 1px solid var(--border);
}
.nav-mobile .nav-mobile-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
}
.nav-mobile .nav-lang { font-size: var(--fs-sm); gap: var(--sp-2); color: var(--text-muted); }

/* ---------------------------------- Sections: Hero ---------------------------------- */
/* Light, photo-led hero: headline + CTAs on one side, a real installation photo
   on the other. No dark canvas, no full-bleed scrim — the paper background carries
   straight through from the nav, so the page opens quiet instead of heavy. */
/* Full-bleed photo hero — the opening statement is a real installation photo,
   not a solid canvas. A flat scrim (not a gradient) keeps the headline legible;
   the image itself gets a mask-reveal + slow parallax drift (see main.js). */
.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  color: var(--paper);
  background: var(--slate);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  position: absolute;
  left: 0; top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,0.68); }
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--sp-3) var(--sp-6);
}
@media (min-width: 768px) { .hero-inner { padding: 0 var(--sp-5) var(--sp-7); } }
/* Eyebrow over a photo needs to stay legible regardless of what's behind it (sky,
   roofline, etc.) — white instead of the default accent blue, which can wash out
   against a blue sky. The dash stays blue-light as a small accent, not the text. */
.hero .eyebrow { color: var(--paper); }
.hero .eyebrow::before { background: var(--blue-light); }
.hero h1 { color: var(--paper); font-size: clamp(2.5rem, 7vw, 5.4rem); max-width: 15ch; }
.hero .lede { color: rgba(247,245,245,0.82); margin-top: var(--sp-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.hero-stats {
  border-top: 1px solid rgba(247,245,245,0.22);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 560px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.35rem, 1.9vw, 1.85rem); font-weight: 600; color: var(--paper); }
.hero-stat .lbl { font-size: var(--fs-2xs); color: rgba(247,245,245,0.65); margin-top: 4px; max-width: 16ch; }

/* ---------------------------------- Full-bleed photo bands ---------------------------------- */
/* Used for the mid-page statement and CTA moments — a real photo edge-to-edge,
   not a card. Same flat-scrim rule as the hero: no gradients. */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.photo-band {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: var(--paper);
}
@media (max-width: 640px) { .photo-band { min-height: 52vh; } }
.photo-band img {
  position: absolute;
  left: 0; top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
}
/* Scrim strengthened from 0.46 → 0.6: bright sky/foliage in a photo could
   otherwise wash out the eyebrow and lede text sitting on top of it. */
.photo-band::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,0.6); }
.photo-band-inner { position: relative; z-index: 1; width: 100%; }
.photo-band .statement { color: rgba(247,245,245,0.32); }
.photo-band .statement .accent { color: var(--blue-light); }
.photo-band-cta { text-align: center; padding-block: var(--sp-7); }
.photo-band-cta .eyebrow { color: var(--paper); justify-content: center; }
.photo-band-cta .eyebrow::before { display: none; }
.photo-band-cta h2 { color: var(--paper); max-width: 20ch; margin-inline: auto; }
.photo-band-cta .lede { color: rgba(247,245,245,0.86); margin-inline: auto; }
.photo-band-cta .cta-band-actions { margin-top: var(--sp-4); }

/* ---------------------------------- Cards ---------------------------------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,10,10,0.25); }
[data-surface='dark'] .card:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.2); }

.service-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.service-card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(33,60,230,0.08);
  color: var(--blue);
}
[data-surface='dark'] .service-card .icon { background: rgba(77,99,255,0.14); color: var(--blue-light); }
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: var(--fs-lg); }
.service-card p { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.65; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-2); }
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10,10,10,0.05);
  color: var(--text-muted);
}
[data-surface='dark'] .tag { background: rgba(255,255,255,0.08); }

/* ---------------------------------- Process ---------------------------------- */
.process-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-num { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; padding-top: 2px; }
.process-item h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.process-item p { color: var(--text-muted); max-width: 60ch; }

/* ---------------------------------- Gallery / Portfolio ---------------------------------- */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.gallery-item .visual-card { aspect-ratio: 4/3; border-radius: 0; }
.gallery-item:hover .glyph { transform: scale(1.05); transition: transform var(--dur-med) var(--ease-out); }
.gallery-item .overlay {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
  color: var(--text);
}
.gallery-item .cat { font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.gallery-item .ttl { font-family: var(--font-display); font-size: var(--fs-md); }
.gallery-item--wide { grid-column: span 1; }
@media (min-width: 720px) { .gallery-item--wide { grid-column: span 2; } .gallery-item--wide .visual-card { aspect-ratio: 21/9; } }

/* ---------------------------------- Stats band ---------------------------------- */
.band {
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  position: relative;
}
.stat-grid { position: relative; display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-5); }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4,1fr); } }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; }
.stat .num .unit { font-size: 0.5em; color: var(--blue-light); }
.stat .lbl { color: rgba(247,245,245,0.6); font-size: var(--fs-xs); margin-top: 6px; max-width: 20ch; }

/* ---------------------------------- CTA ---------------------------------- */
.cta-band {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  color: var(--paper);
  text-align: center;
  position: relative;
}
.cta-band.on-black { background: var(--black); }
.cta-band.on-paper { background: var(--paper); color: var(--black); }
.cta-band.on-paper .lede { color: var(--text-muted); }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { color: rgba(255,255,255,0.82); margin-inline: auto; }
.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---------------------------------- Footer ---------------------------------- */
.footer { background: var(--black); color: rgba(247,245,245,0.7); padding-top: var(--sp-7); }
.footer-top { display: grid; gap: var(--sp-5); grid-template-columns: 1.4fr repeat(3, 1fr); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(247,245,245,0.1); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { height: 24px; margin-bottom: var(--sp-2); }
.footer-brand p { max-width: 32ch; font-size: var(--fs-xs); }
.footer h4 { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper); margin-bottom: var(--sp-2); }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: var(--fs-xs); transition: color var(--dur-fast); }
.footer a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); padding-block: var(--sp-3); font-size: var(--fs-2xs); color: rgba(247,245,245,0.62); }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,245,245,0.2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--paper); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------------------------------- Forms ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  height: 54px;
  padding-inline: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}
.field textarea { height: auto; min-height: 130px; padding-block: 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(33,60,230,0.14);
}
.field-error { font-size: var(--fs-2xs); color: var(--error); min-height: 1em; }
.field-hint { font-size: var(--fs-2xs); color: var(--text-muted); }
.form-row { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
}
/* Overrides the generic `.field input` rule (width:100%, height:54px, etc.) —
   without this, the hidden radio input inflates to its positioned ancestor's
   width instead of staying invisible inside the pill. */
.radio-pill input {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.radio-pill:has(input:checked) { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.form-status { font-size: var(--fs-xs); font-weight: 600; padding: 14px 18px; border-radius: var(--radius-sm); display: none; }
.form-status.is-success { display: block; background: rgba(33,60,230,0.08); color: var(--blue); }
.form-status.is-error { display: block; background: var(--error-bg); color: var(--error); }

/* ---------------------------------- Calculator ---------------------------------- */
.calc {
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; padding: var(--sp-5); } }
.calc > div { min-width: 0; }
.calc-slider-val { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--blue); }
[data-surface='dark'] .calc-slider-val { color: var(--blue-light); }
.calc input[type='range'] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin-block: var(--sp-2);
}
.calc input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--paper);
  cursor: grab;
}
.calc input[type='range']::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--paper);
  cursor: grab;
}
.calc-result {
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: center;
}
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding-block: 10px; border-bottom: 1px solid rgba(247,245,245,0.1); }
.calc-result-row:last-of-type { border-bottom: 0; }
.calc-result-row .lbl { font-size: var(--fs-xs); color: rgba(247,245,245,0.65); }
.calc-result-row .val { font-family: var(--font-display); font-size: var(--fs-lg); }
.calc-result-row .val .unit { font-size: 0.55em; color: var(--blue-light); margin-left: 4px; }
.calc-disclaimer { font-size: var(--fs-2xs); color: var(--text-muted); }

/* ---------------------------------- Misc components ---------------------------------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-nav button {
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur-fast);
}
.pill-nav button.is-active, .pill-nav button:hover { background: var(--black); border-color: var(--black); color: var(--paper); }

.split {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--slate);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Two-photo stack — the team photo and the install photo sit one above the
   other as equal frames, no overlap. */
.media-collage { display: flex; flex-direction: column; gap: var(--sp-3); }
.media-collage .media-frame { aspect-ratio: 16/10; }

.badge-float {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.badge-float .num { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--blue-light); }
.badge-float .lbl { font-size: var(--fs-2xs); color: rgba(247,245,245,0.7); max-width: 14ch; }

.value-list { display: grid; gap: var(--sp-3); }
.value-item { display: flex; gap: var(--sp-2); align-items: flex-start; }
.value-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 9px; flex-shrink: 0; }
.value-item h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.value-item p { color: var(--text-muted); font-size: var(--fs-xs); }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }

/* Checklist */
.check-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; } }
.check-item { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.check-item svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--blue); }
[data-surface='dark'] .check-item svg { color: var(--blue-light); }

/* Service detail section */
.service-detail { border-top: 1px solid var(--border); padding-block: var(--sp-7); }
.service-detail:first-of-type { border-top: 0; }
@media (max-width: 640px) { .service-detail { padding-block: var(--sp-6); } }
.service-detail .kicker-num { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--blue); font-weight: 600; }

/* FAQ accordion — centered, contained card (matches reference: FAQ eyebrow +
   heading centered above a bordered card housing the accordion items) */
.faq-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
}
.faq-card .faq-list { text-align: left; margin-top: var(--sp-4); }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-item .plus::before, .faq-item .plus::after {
  content: ''; position: absolute; background: var(--text); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.faq-item .plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-item .plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .plus::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq-item p { color: var(--text-muted); padding-bottom: var(--sp-3); max-width: 68ch; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--bg-elevated);
}
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); }
.compare th { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); background: var(--paper); }
[data-surface='dark'] .compare th { background: var(--bg-elevated); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child, .compare th:first-child { color: var(--text-muted); font-weight: 600; }

/* Team / people */
/* Two-up on phones (four stacked portraits made the section far too tall),
   four-across from tablet width upward. */
.people-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .people-grid { grid-template-columns: repeat(4, 1fr); } }
.people-card { text-align: left; }
.people-card .photo { border-radius: var(--radius-md); aspect-ratio: 4/5; overflow: hidden; background: var(--slate); margin-bottom: var(--sp-2); }
.people-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.people-card h4 { font-size: var(--fs-md); }
.people-card .role { font-size: var(--fs-2xs); color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
[data-surface='dark'] .people-card .role { color: var(--blue-light); }

/* Timeline (about page story) */
.timeline { display: grid; gap: var(--sp-4); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: var(--sp-3); }
.timeline-item .yr { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--blue); }
[data-surface='dark'] .timeline-item .yr { color: var(--blue-light); }
.timeline-item p { color: var(--text-muted); }

.page-hero {
  background: var(--paper);
  color: var(--text);
  padding-top: calc(var(--nav-h) + var(--sp-5));
  padding-bottom: var(--sp-5);
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; }

/* ---------------------------------- Brand mark accent (flat, solid) ---------------------------------- */
/* The chevron brandmark, reused as a quiet corner watermark on solid-color bands
   (e.g. the CTA band) instead of dominating the hero. Flat fill only — no glow, no blur. */
.brand-mark-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}
.brand-mark-accent svg { width: 100%; height: auto; display: block; }
.brand-mark-accent .fill-path { fill: currentColor; }

/* Visual card — flat solid placeholder used across split/gallery layouts until real
   project photography replaces it. Deliberately plain: one flat surface color, one
   line-drawn category glyph, no pattern, no animation. */
.visual-card {
  position: relative;
  width: 100%; height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.visual-card--slate { background: var(--slate); }
.visual-card .glyph {
  width: 34%;
  max-width: 132px;
  color: var(--blue-light);
  opacity: 0.9;
}
.visual-card .mark {
  position: absolute; right: 7%; bottom: 7%;
  width: 22%;
  max-width: 84px;
  opacity: 0.5;
}
.visual-card .mark img { width: 100%; }
.visual-card img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover .visual-card img.photo { transform: scale(1.045); }

/* ---------------------------------- Signature brand motifs ---------------------------------- */
/* Kinetic statement — oversized editorial line, breaks the eyebrow/h2/lede rhythm */
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.statement .accent { color: var(--blue); }
[data-surface='dark'] .statement .accent, .statement.on-dark .accent { color: var(--blue-light); }
.statement .word { display: inline-block; opacity: 0.16; }
.statement.on-dark { color: rgba(247,245,245,0.3); }
.statement .num-inline {
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
[data-surface='dark'] .statement .num-inline, .statement.on-dark .num-inline { color: var(--blue-light); }

.statement-wrap { padding-block: var(--sp-8); }
@media (max-width: 640px) { .statement-wrap { padding-block: var(--sp-6); } }

/* System animation — the brand motion graphic (sun → panel → inverter →
   battery/home/grid). Its background is a grey-blue gradient rather than white,
   so no blend mode melts it into the paper; it is framed with the same radius
   as the photo media-frames instead, which reads as deliberate.
   Playback starts only when it scrolls into view (see main.js), so the file
   costs nothing on initial page load. */
.statement-video { max-width: 900px; margin: var(--sp-7) auto 0; }
.statement-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-dim);
}
/* Kept for the static schematic, still used if the animation is swapped back. */
.statement-diagram { max-width: 860px; margin: var(--sp-7) auto 0; }
.statement-diagram img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

/* ---------------------------------- Energy-flow diagram (signature element) ---------------------------------- */
/* A plain line-drawn schematic of how power actually moves through a ZOLAR system —
   sun to panel to inverter to home/battery/grid. Flat strokes only, no render, no photo. */
.flow-diagram {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
@media (max-width: 760px) {
  .flow-diagram { flex-direction: column; align-items: stretch; }
}
.flow-node { display: flex; flex-direction: column; align-items: center; text-align: center; width: 132px; flex-shrink: 0; }
@media (max-width: 760px) { .flow-node { flex-direction: row; text-align: left; width: auto; gap: var(--sp-3); } }
.flow-node .ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.flow-node.is-key .ring { border-color: var(--blue); }
.flow-node svg { width: 34px; height: 34px; color: var(--blue); }
[data-surface='dark'] .flow-node svg { color: var(--blue-light); }
.flow-node .lbl { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 500; margin-top: var(--sp-2); }
@media (max-width: 760px) { .flow-node .lbl { margin-top: 0; } }
.flow-node .sub { font-size: var(--fs-2xs); color: var(--text-muted); margin-top: 2px; max-width: 22ch; }
.flow-connector {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin-top: 41px;
  position: relative;
  min-width: 24px;
}
.flow-connector::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--text-muted);
  border-right: 1.5px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 760px) {
  .flow-connector { width: 1.5px; height: 28px; margin: 0 0 0 41px; }
  .flow-connector::after { right: auto; left: 50%; top: 100%; transform: translate(-50%, -100%) rotate(135deg); }
}

/* ---------------------------------- Reveal animation hooks ---------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-fade { opacity: 0; }
.reveal-scale { opacity: 0; transform: scale(0.94); }
.js-ready .reveal, .js-ready .reveal-fade, .js-ready .reveal-scale { transition: none; }
.no-js .reveal, .no-js .reveal-fade, .no-js .reveal-scale { opacity: 1; transform: none; }

/* ---------------------------------- Utilities ---------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); }
.surface-dark { background: var(--black); color: var(--paper); }
.surface-paper { background: var(--paper); }
.surface-white { background: var(--paper); }
.rounded-lg { border-radius: var(--radius-lg); }
.max-w-header { max-width: 44ch; }
.header-row { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
@media (min-width: 860px) { .header-row.split-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: var(--sp-2); top: -60px;
  background: var(--blue); color: var(--paper); padding: 12px 20px; border-radius: 8px;
  z-index: 200; transition: top var(--dur-fast);
  font-size: var(--fs-xs); font-weight: 600;
}
.skip-link:focus { top: var(--sp-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}
