/* ==========================================================================
   Greenlight Engineering — Design System
   Single source of truth for the public site.
   Loaded once, cached by the browser. Page-specific rules live at the bottom
   under clearly-marked page blocks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — electrical green */
  --brand:        #22c55e;
  --brand-600:    #16a34a;
  --brand-300:    #4ade80;
  --brand-glow:   rgba(34, 197, 94, 0.12);
  --brand-line:   rgba(34, 197, 94, 0.32);

  /* Solar — gold accent. Reserved for solar content so it reads as a
     distinct business line at a glance. */
  --solar:        #fbbf24;
  --solar-600:    #d97706;
  --solar-300:    #fcd34d;
  --solar-glow:   rgba(251, 191, 36, 0.12);
  --solar-line:   rgba(251, 191, 36, 0.34);

  /* Surfaces */
  --bg:           #0b0f14;
  --surface-1:    #121821;
  --surface-2:    #19212c;
  --surface-3:    #222c3a;

  /* Lines */
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text. Ratios measured against the lightest surface these sit on
     (--surface-2 #19212c); every step clears WCAG AA 4.5:1 for normal text,
     including the small mono labels, which is where low contrast hurts most. */
  --text:       #f1f5f9;                    /* 15.1:1 */
  --text-muted: rgba(241, 245, 249, 0.82);  /* 10.4:1 */
  --text-dim:   rgba(241, 245, 249, 0.68);  /*  7.2:1 */
  --text-faint: rgba(241, 245, 249, 0.56);  /*  5.2:1 — small labels */

  --danger:  #f87171;
  --success: #4ade80;

  /* Type */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing — 4/8px rhythm */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.30);
  --shadow-3: 0 18px 48px rgba(0, 0, 0, 0.42);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur:      240ms;
  --dur-slow: 400ms;

  /* Layout */
  --nav-h:  72px;
  --shell:  1320px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Layers */
  --z-base: 1;
  --z-sticky: 60;
  --z-nav: 100;
  --z-drawer: 140;
  --z-overlay: 400;
  --z-modal: 420;
  --z-toast: 600;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchors and in-page jumps clear the fixed nav. */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* Visible focus everywhere — never removed, only restyled. */
:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--brand); color: #04140a; }

/* Screen-reader-only helper */
.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-link {
  position: absolute; top: -100px; left: var(--space-4);
  z-index: var(--z-toast);
  background: var(--brand); color: #04140a;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.5px;
  color: #fff;
  text-wrap: balance;
}
.display-1 { font-size: clamp(48px, 8.5vw, 116px); }
.display-2 { font-size: clamp(38px, 5.5vw, 76px); }
.display-3 { font-size: clamp(28px, 3.4vw, 46px); }

.display-1 em, .display-2 em, .display-3 em { font-style: normal; color: var(--brand); }
.display-1 .solar, .display-2 .solar, .display-3 .solar { color: var(--solar); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: currentColor; flex-shrink: 0;
}
.eyebrow.is-solar { color: var(--solar); }

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62ch;
}

.prose { color: var(--text-muted); line-height: 1.85; max-width: 68ch; }
.prose p + p { margin-top: var(--space-4); }
.prose strong { color: var(--text); font-weight: 500; }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Tabular figures stop numbers jittering in stat rows and spec tables. */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.band { background: var(--surface-1); border-block: 1px solid var(--border); }
.band--deep { background: var(--surface-2); border-block: 1px solid var(--border); }

.section-head { max-width: 700px; margin-bottom: var(--space-7); }
.section-head .lede { margin-top: var(--space-4); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.stack   { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;              /* comfortably above the 44px touch minimum */
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--brand); color: #04140a; }
.btn--primary:hover { background: var(--brand-300); }

.btn--solar { background: var(--solar); color: #1a1204; }
.btn--solar:hover { background: var(--solar-300); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-line); color: var(--brand-300); background: var(--brand-glow); }

.btn--outline { background: transparent; color: var(--brand-300); border-color: var(--brand-line); }
.btn--outline:hover { background: var(--brand-glow); }

.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inline text link with a nudging arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--brand-300); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding-block: 8px;
  transition: gap var(--dur-fast) ease, color var(--dur-fast) ease;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: var(--space-3); color: var(--brand); }
.link-arrow.is-solar { color: var(--solar); }

/* --------------------------------------------------------------------------
   6. BADGES / CHIPS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--brand { color: var(--brand-300); border-color: var(--brand-line); background: var(--brand-glow); }
.badge--solar { color: var(--solar-300); border-color: var(--solar-line); background: var(--solar-glow); }

/* Filter chips */
.chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand);
  color: #04140a; font-weight: 500;
}
.chip--solar[aria-pressed="true"] { background: var(--solar); border-color: var(--solar); color: #1a1204; }

/* --------------------------------------------------------------------------
   7. NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding-inline: var(--gutter);
  background: rgba(11, 15, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}
.nav.is-scrolled {
  background: rgba(11, 15, 20, 0.95);
  border-bottom-color: var(--border);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.nav-logo img { width: 170px; height: auto; }

.nav-menu {
  display: flex; align-items: center; gap: var(--space-1);
  list-style: none;
  margin-left: auto;
}
.nav-menu a {
  display: block;
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.nav-menu a::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--text); }
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }

/* Solar gets its own accent in the nav — it is the lead business line. */
.nav-menu a.nav-solar { color: var(--solar-300); }
.nav-menu a.nav-solar::after { background: var(--solar); }
.nav-menu a.nav-solar:hover { color: var(--solar); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.8; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open .nav-toggle .icon-open  { display: none; }

/* Mobile drawer */
@media (max-width: 960px) {
  .nav-logo img { width: 140px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .nav-menu {
    position: fixed;
    /* NOT `inset: var(--nav-h) 0 0 0`.
       .nav uses backdrop-filter, which makes it the containing block for its
       fixed-position descendants — so `bottom: 0` resolved against the 72px
       nav instead of the viewport and collapsed the drawer to zero height.
       These four values compute the same whether the containing block is the
       viewport or the nav's padding box (the nav is full-width and pinned to
       the top), so the drawer is correct either way. */
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-5) var(--gutter) calc(var(--space-8) + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    /* Hidden by default, revealed by the toggle.
       `visibility` is deliberately NOT interpolated: on open it flips to
       visible immediately (delay 0) so the first link is focusable on the
       same tick the class lands; on close it is delayed until the fade-out
       has finished. Transitioning it instead makes focus depend on animation
       progress, which silently breaks keyboard access. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out),
                visibility 0s linear var(--dur);
  }
  body.nav-open .nav-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out),
                visibility 0s linear 0s;
  }
  body.nav-open { overflow: hidden; }

  /* While the drawer is open the bar sits on solid colour, so the blur has
     nothing useful to do — dropping it also removes the containing-block
     quirk above entirely rather than just working around it. */
  body.nav-open .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--border);
  }

  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu a { padding: 18px 4px; font-size: 18px; color: var(--text); border-radius: 0; }
  .nav-menu a::after { display: none; }
  .nav-menu a[aria-current="page"] { color: var(--brand); }
  .nav-menu .nav-drawer-cta { display: block; margin-top: var(--space-6); border-bottom: none; }
  .nav-menu .nav-drawer-cta .btn { width: 100%; }
}
@media (min-width: 961px) {
  .nav-menu .nav-drawer-cta { display: none; }
}

/* --------------------------------------------------------------------------
   8. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg);
}
.page-head__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 100%, var(--brand-glow), transparent 62%),
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(34, 197, 94, 0.05), transparent 60%);
}
.page-head--solar .page-head__bg {
  background:
    radial-gradient(ellipse 75% 85% at 15% 100%, var(--solar-glow), transparent 62%),
    radial-gradient(ellipse 55% 60% at 90% 10%, rgba(34, 197, 94, 0.06), transparent 60%);
}
.page-head__grid {
  position: absolute; inset: 0; overflow: hidden; opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}
.page-head__grid::before {
  content: ''; position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  animation: gridDrift 24s linear infinite;
}
.page-head--solar .page-head__grid::before {
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.06) 1px, transparent 1px);
}
@keyframes gridDrift { to { transform: translateY(88px); } }

.page-head__inner {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
}

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; padding-block: 4px; transition: color var(--dur-fast) ease; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--brand); }
.page-head--solar .breadcrumb [aria-current="page"] { color: var(--solar); }
.breadcrumb .sep { opacity: 0.5; }

/* --------------------------------------------------------------------------
   9. STAT ROW
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--brand);
}
.stat--solar .stat__num { color: var(--solar); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}
.stat__unit { font-size: 0.55em; margin-left: 2px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out),
              box-shadow var(--dur) ease;
}
.card:hover { border-color: var(--border-strong); }

/* Whole-card link: the <a> covers the card, keeping one tab stop and a
   real 44px+ target without nesting interactive elements. */
.card__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.card__link { text-decoration: none; color: inherit; }
.card:focus-within { border-color: var(--brand-line); }

/* Media */
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__media-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
}
.card__media-fallback svg { width: 56px; height: 56px; stroke: var(--brand); fill: none; stroke-width: 1.2; opacity: 0.35; }
.card__media-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.15) 55%, transparent 100%);
}
.card__media-badges {
  position: absolute; top: var(--space-3); left: var(--space-3); right: var(--space-3);
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  z-index: 3; pointer-events: none;
}

.card__body { padding: var(--space-5); }
.card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.8px;
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card__meta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card__title {
  font-size: 17px; font-weight: 500; color: #fff; line-height: 1.35;
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
.card:hover .card__title { color: var(--brand-300); }
.card--solar:hover .card__title { color: var(--solar-300); }
.card__desc {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-4); }
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 9px; border-radius: var(--radius-sm);
}

/* Solar spec strip inside a card */
.card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.card__spec { padding: var(--space-3) var(--space-2); text-align: center; border-right: 1px solid var(--border); }
.card__spec:last-child { border-right: none; }
.card__spec-val {
  font-family: var(--font-display); font-size: 22px; line-height: 1;
  color: var(--solar);
}
.card__spec-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-faint); margin-top: 5px;
}

/* Card grids */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-5);
}
.grid-cards--wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

/* --------------------------------------------------------------------------
   11. FEATURE / SERVICE TILES
   -------------------------------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile {
  position: relative;
  background: var(--bg);
  padding: var(--space-6) var(--space-5);
  overflow: hidden;
  transition: background var(--dur) ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile:hover { background: var(--surface-1); }
.tile__num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--text-faint); margin-bottom: var(--space-5);
}
.tile__icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  transition: background var(--dur) ease, border-color var(--dur) ease;
}
.tile__icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .tile__icon { background: var(--brand-glow); border-color: var(--brand-line); }
.tile--solar .tile__icon svg { stroke: var(--solar); }
.tile--solar:hover .tile__icon { background: var(--solar-glow); border-color: var(--solar-line); }
.tile__title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: var(--space-2); }
.tile__desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.tile__ghost {
  position: absolute; right: -8px; bottom: -24px;
  font-family: var(--font-display); font-size: 132px; line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.field__req { color: var(--brand); font-size: 15px; line-height: 1; }
.field__hint { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;                 /* touch target + stops iOS zoom with 16px */
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: var(--surface-3);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f1f5f9' stroke-opacity='0.55' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select option { background: var(--surface-2); color: var(--text); }

/* Error state — colour plus an icon and text, never colour alone. */
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}
.field__error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; color: var(--danger); line-height: 1.5;
}
.field__error svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Checkbox grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2);
}
.check { position: relative; }
.check input {
  position: absolute; opacity: 0;
  width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.check label {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.check label svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.check input:hover + label { border-color: var(--border-strong); color: var(--text); }
.check input:checked + label {
  border-color: var(--brand-line);
  background: var(--brand-glow);
  color: var(--brand-300);
}
.check input:focus-visible + label { outline: 2px solid var(--brand-300); outline-offset: 2px; }

/* Alerts */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 14px; line-height: 1.65;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.alert--success { color: var(--success); border-color: var(--brand-line); background: var(--brand-glow); }
.alert--error   { color: var(--danger);  border-color: rgba(248, 113, 113, 0.34); background: rgba(248, 113, 113, 0.09); }
.alert strong { display: block; color: var(--text); margin-bottom: 3px; }
.alert a { color: inherit; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--surface-1); border-top: 1px solid var(--border); }
.footer__inner { padding-block: clamp(56px, 7vw, 80px) var(--space-6); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: var(--space-8);
}
.footer__brand > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__brand img { width: 180px; margin-bottom: var(--space-4); }
.footer__desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 34ch; margin-bottom: var(--space-5); }

.footer h2 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 2px; }
.footer li a {
  display: inline-block;
  padding: 7px 0;
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.footer li a:hover { color: var(--brand-300); }

.social-row { display: flex; gap: var(--space-2); }
.social-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.social-btn svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill var(--dur-fast) ease; }
.social-btn:hover { border-color: var(--brand-line); background: var(--brand-glow); }
.social-btn:hover svg { fill: var(--brand-300); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__bottom a { color: var(--text-dim); text-decoration: none; padding-block: 6px; }
.footer__bottom a:hover { color: var(--brand-300); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   14. FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: max(var(--space-5), env(safe-area-inset-right));
  bottom: max(var(--space-5), env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.07); box-shadow: var(--shadow-3); }
.wa-float:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   15. MOTION UTILITIES
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
.reveal[data-delay="5"] { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   15b. TOUCH TARGETS
   Text links stay visually compact on mouse-driven screens, but grow to the
   44px minimum on touch devices where a mis-tap actually costs the user
   something. Matches either a coarse pointer or a phone-width viewport —
   some devices and emulators misreport pointer type, so width is the backstop.
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 768px) {
  .footer li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 4px;
  }
  .breadcrumb a,
  .breadcrumb [aria-current="page"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .link-arrow { min-height: 44px; }
}

/* Never let motion preferences be overridden. Content must always be visible. */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Safety net: if JavaScript fails or is disabled, reveal everything. */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   PAGE BLOCKS
   ========================================================================== */

/* --------------------------------------------------------------------------
   P1. HOME — HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11, 15, 20, 0.97) 4%, rgba(11, 15, 20, 0.62) 42%, rgba(11, 15, 20, 0.32) 100%),
    linear-gradient(to right, rgba(11, 15, 20, 0.78) 0%, transparent 68%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px);
  width: 100%;
}
.hero__content { max-width: 780px; }
.hero__title { margin-bottom: var(--space-5); }
.hero__sub { margin-bottom: var(--space-6); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 5vw, 48px);
  z-index: 3;
  display: flex; align-items: center; gap: var(--space-3);
}
.hero__dots { display: flex; gap: var(--space-2); }
.hero__dot {
  width: 40px; height: 44px;                    /* 44px tall tap target */
  display: flex; align-items: center;
  padding: 0;
}
.hero__dot::before {
  content: ''; display: block;
  width: 100%; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background var(--dur) ease;
}
.hero__dot[aria-selected="true"]::before { background: var(--brand); }
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.55); }

.hero__pause {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
}
.hero__pause svg { width: 15px; height: 15px; stroke: var(--text); fill: none; stroke-width: 2; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play  { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

@media (max-width: 640px) {
  .hero__controls { left: var(--gutter); right: auto; }
}

/* Trust strip under the hero */
.trust-strip {
  background: var(--surface-1);
  border-block: 1px solid var(--border);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-6);
}
.trust-item { display: flex; align-items: center; gap: var(--space-3); }
.trust-item__num {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1; color: var(--brand);
  flex-shrink: 0;
}
.trust-item--solar .trust-item__num { color: var(--solar); }
.trust-item__label { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* Solar spotlight band on the homepage */
.solar-spotlight { position: relative; overflow: hidden; }
.solar-spotlight::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 20%, var(--solar-glow), transparent 62%);
  pointer-events: none;
}
.solar-spotlight > * { position: relative; }

/* --------------------------------------------------------------------------
   P2. SOLAR PAGE
   -------------------------------------------------------------------------- */
.solar-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.solar-metric { background: var(--surface-1); padding: var(--space-6) var(--space-5); }
.solar-metric__val {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1; color: var(--solar);
}
.solar-metric__val .unit { font-size: 0.42em; color: var(--text-dim); margin-left: 4px; }
.solar-metric__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-faint); margin-top: var(--space-2);
}
.solar-metric__note { font-size: 12px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }

.filter-bar {
  position: sticky; top: var(--nav-h);
  z-index: var(--z-sticky);
  background: rgba(18, 24, 33, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--border);
}
.filter-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
  min-height: 64px;
}
.filter-bar__chips {
  display: flex; gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 2px;
  /* Keeps the chip row from clipping focus rings while still scrolling. */
  scroll-padding-inline: var(--space-3);
}
.filter-bar__chips::-webkit-scrollbar { display: none; }
.filter-bar__count {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  color: var(--text-dim); white-space: nowrap;
}

.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.empty-state__icon {
  width: 64px; height: 64px; margin: 0 auto var(--space-4);
  border: 1px solid var(--border-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.empty-state__icon svg { width: 28px; height: 28px; stroke: var(--text-faint); fill: none; stroke-width: 1.4; }
.empty-state h2 { font-family: var(--font-display); font-size: 30px; color: #fff; margin-bottom: var(--space-2); font-weight: 400; }
.empty-state p { color: var(--text-muted); max-width: 46ch; margin: 0 auto var(--space-5); font-size: 14.5px; }

/* Solar process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-5);
  position: relative;
}
.timeline::before {
  content: ''; position: absolute;
  top: 26px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.timeline__step { position: relative; text-align: center; }
.timeline__num {
  width: 52px; height: 52px; margin: 0 auto var(--space-4);
  border: 1px solid var(--solar-line); border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--solar);
  position: relative;
}
.timeline__title { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.timeline__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 720px) { .timeline::before { display: none; } }

/* Comparison / spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table caption { text-align: left; color: var(--text-dim); font-size: 13px; padding-bottom: var(--space-3); }
.spec-table th, .spec-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table thead th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-faint); font-weight: 400;
  background: var(--surface-2);
}
.spec-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.spec-table td:first-child { color: var(--text); font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   P3. PROJECT DETAIL
   -------------------------------------------------------------------------- */
.detail-hero {
  position: relative;
  padding-top: var(--nav-h);
  min-height: clamp(380px, 56vw, 560px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.detail-hero__img { position: absolute; inset: 0; }
.detail-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(11, 15, 20, 0.74) 42%, rgba(11, 15, 20, 0.3) 100%);
}
.detail-hero__inner { position: relative; padding-block: clamp(32px, 5vw, 56px); width: 100%; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  margin-top: var(--space-5);
}
.detail-meta__item { display: flex; align-items: center; gap: var(--space-2); font-size: 13.5px; color: var(--text-muted); }
.detail-meta__item svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 1.8; flex-shrink: 0; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 104px);
}
@media (max-width: 1024px) { .detail-layout { grid-template-columns: 1fr; } }

.info-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-card--solar { border-color: var(--solar-line); }
.info-card__head {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--text-faint);
}
.info-card__head svg { width: 14px; height: 14px; stroke: var(--solar); fill: none; stroke-width: 1.8; }
.info-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: var(--text-dim); font-size: 13px; flex-shrink: 0; }
.info-row dd { color: var(--text); font-weight: 500; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.gallery__item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; padding: 0; background: var(--surface-2);
  aspect-ratio: 4 / 3;
  transition: border-color var(--dur) ease;
}
.gallery__item:hover { border-color: var(--brand-line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  border: none;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.16); }

.pager { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-1); border-top: 1px solid var(--border); }
.pager__item {
  padding: var(--space-6) var(--gutter);
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--border);
  transition: background var(--dur-fast) ease;
}
.pager__item:last-child { border-right: none; text-align: right; align-items: flex-end; }
.pager__item:hover { background: var(--surface-2); }
.pager__dir {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-faint);
}
.pager__dir svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.pager__title { font-size: 15px; color: var(--text); font-weight: 500; }
.pager__cat { font-size: 12px; color: var(--brand-300); }
@media (max-width: 720px) {
  .pager { grid-template-columns: 1fr; }
  .pager__item { border-right: none; border-bottom: 1px solid var(--border); }
  .pager__item:last-child { border-bottom: none; text-align: left; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   P4. SERVICES
   -------------------------------------------------------------------------- */
.svc-nav {
  position: sticky; top: var(--nav-h); z-index: var(--z-sticky);
  background: rgba(18, 24, 33, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--border);
}
.svc-nav__inner {
  display: flex; gap: var(--space-1);
  overflow-x: auto; scrollbar-width: none;
}
.svc-nav__inner::-webkit-scrollbar { display: none; }
.svc-nav a {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 18px var(--space-4);
  font-size: 13.5px; color: var(--text-dim); text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.svc-nav a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.svc-nav a:hover { color: var(--text); }
.svc-nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.svc-nav a.is-active.is-solar { color: var(--solar); border-bottom-color: var(--solar); }

.svc-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 70px);
}
.svc-block:last-of-type { border-bottom: none; }
@media (min-width: 961px) { .svc-block.is-reversed .svc-block__visual { order: 2; } }
@media (max-width: 960px) { .svc-block { grid-template-columns: 1fr; } }

.svc-block__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center;
}
.svc-block__visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-block__visual svg.glyph { width: 84px; height: 84px; stroke: var(--brand); fill: none; stroke-width: 0.9; opacity: 0.3; }
.svc-block--solar .svc-block__visual svg.glyph { stroke: var(--solar); }
.svc-block__index {
  position: absolute; top: var(--space-4); left: var(--space-4);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--text-faint);
}

.feature-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-block: var(--space-5); }
.feature-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted);
  list-style: none;
  transition: background var(--dur-fast) ease;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li:hover { background: var(--surface-2); }
.feature-list b { color: var(--text); font-weight: 500; min-width: 165px; }
.feature-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}
.svc-block--solar .feature-list li::before { background: var(--solar); }

/* --------------------------------------------------------------------------
   P5. ABOUT
   -------------------------------------------------------------------------- */
.mission-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.mission-card { background: var(--surface-1); padding: var(--space-6) var(--space-5); }
.mission-card__title { font-family: var(--font-display); font-size: 28px; color: var(--brand); margin-bottom: var(--space-3); }
.mission-card__desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.8; }

.milestones { display: flex; flex-direction: column; }
.milestone {
  display: flex; align-items: baseline; gap: var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.milestone:last-child { border-bottom: none; }
.milestone__num {
  font-family: var(--font-display); font-size: 46px; line-height: 1;
  color: var(--brand); min-width: 110px;
}
.milestone__label { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
.milestone__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

/* --------------------------------------------------------------------------
   P6. CONTACT
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 80px) clamp(64px, 9vw, 104px);
}
@media (max-width: 1024px) { .contact-layout { grid-template-columns: 1fr; } }

.quick-strip { background: var(--surface-1); border-block: 1px solid var(--border); }
.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--border);
}
.quick-card {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--surface-1);
  padding: var(--space-5);
  text-decoration: none;
  transition: background var(--dur-fast) ease;
}
a.quick-card:hover { background: var(--surface-2); }
.quick-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.quick-card__icon svg { width: 19px; height: 19px; stroke: var(--brand); fill: none; stroke-width: 1.6; }
.quick-card__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.quick-card__value { font-size: 15px; color: var(--text); font-weight: 500; }
.quick-card__sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.35) contrast(1.05); }
.map-frame__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-1); border-top: 1px solid var(--border);
}
.map-frame__name { font-size: 14px; color: var(--text); font-weight: 500; }
.map-frame__sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.hours-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hours-row:last-child { border-bottom: none; }
.hours-row dt { color: var(--text-muted); }
.hours-row dd { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   P7. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--surface-1); border-top: 1px solid var(--border); }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--brand-glow), transparent 65%);
}
.cta-band--solar::before { background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--solar-glow), transparent 65%); }
.cta-band__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (max-width: 860px) {
  .cta-band__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE FALLBACKS
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .detail-meta { gap: var(--space-4); }
}
@media (max-width: 560px) {
  .card__specs { grid-template-columns: 1fr 1fr; }
  .card__spec:nth-child(2) { border-right: none; }
  .card__spec:nth-child(3) { border-top: 1px solid var(--border); grid-column: span 2; }
  .milestone { flex-direction: column; gap: var(--space-2); }
  .milestone__num { min-width: 0; }
}
