:root {
  --ink: #071422;
  --navy: #090f3f;
  --blue: #2f3291;
  --blue-deep: #191b63;
  --blue-soft: #eef1ff;
  --red: #ef222a;
  --red-deep: #b70f22;
  --red-soft: #fff0f1;
  --paper: #f7f8ff;
  --white: #ffffff;
  --muted: #5d627a;
  --line: rgba(7, 20, 34, 0.12);
  --shadow: 0 24px 70px rgba(47, 50, 145, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header.is-fixed-surface {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 40px rgba(7, 20, 34, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(7, 20, 34, 0.16);
}

.brand-logo {
  width: clamp(168px, 19vw, 245px);
  height: auto;
  display: block;
  transition: width 180ms ease;
}

.site-header.is-scrolled .brand-logo,
.site-header.is-open .brand-logo,
.site-header.is-fixed-surface .brand-logo {
  width: clamp(150px, 16vw, 215px);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand,
.site-header.is-fixed-surface .brand { box-shadow: none; }

.site-nav {
  justify-self: center;
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-cta,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.header-cta {
  color: var(--white);
  background: var(--red);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(239, 34, 42, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
}

.section-link.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(18px, 5vw, 72px) 48px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 20, 34, 0.92) 0%, rgba(9, 15, 63, 0.78) 42%, rgba(47, 50, 145, 0.2) 100%),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=82") center/cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(0deg, var(--paper), transparent);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
}

h2 { font-size: clamp(2rem, 4.6vw, 4.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); }

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 132px;
  padding: 22px;
  background: rgba(9, 15, 63, 0.58);
}

.hero-panel strong {
  display: block;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.hero-panel span { color: rgba(255, 255, 255, 0.8); }

.section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 38px;
}

.subpage {
  padding-top: 88px;
}

.page-hero {
  padding: clamp(92px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(64px, 8vw, 100px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 15, 63, 0.97), rgba(47, 50, 145, 0.92)),
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.about-hero,
.expertise-hero {
  background:
    linear-gradient(135deg, rgba(7, 20, 34, 0.96), rgba(47, 50, 145, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 92px),
    url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.products-hero {
  background:
    linear-gradient(120deg, rgba(9, 15, 63, 0.96), rgba(183, 15, 34, 0.78)),
    url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.solutions-hero,
.projects-hero {
  background:
    linear-gradient(120deg, rgba(9, 15, 63, 0.94), rgba(47, 50, 145, 0.58)),
    url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1600&q=82") center/cover;
}

.insights-hero,
.contact-hero {
  background:
    linear-gradient(135deg, rgba(9, 15, 63, 0.96), rgba(7, 20, 34, 0.86)),
    url("https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.page-hero.compact h1 {
  max-width: 980px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.page-hero p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.enterprise-grid,
.stat-band,
.process-list,
.product-detail-list,
.proof-strip {
  display: grid;
  gap: 18px;
}

.enterprise-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enterprise-grid article,
.stat-band article,
.process-list article,
.product-detail-list article,
.proof-strip article,
.decision-table article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(47, 50, 145, 0.06);
}

.stat-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--blue-soft);
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.proof-strip article:nth-child(2) {
  background: var(--navy);
  color: var(--white);
}

.proof-strip article:nth-child(2) p { color: rgba(255, 255, 255, 0.76); }

.decision-table {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  background: linear-gradient(135deg, var(--blue-soft), var(--white));
}

.decision-table > div:last-child {
  display: grid;
  gap: 14px;
}

.decision-table strong,
.decision-table span {
  display: block;
}

.decision-table strong { color: var(--blue); }

.stat-band strong,
.stat-band span {
  display: block;
}

.stat-band strong,
.process-list span {
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.process-list article,
.product-detail-list article {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: start;
}

.product-detail-list ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.process-list h2,
.product-detail-list h2,
.expertise-grid article h2,
.insight-grid article h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contact-methods {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.glance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  max-width: 1180px;
}

.glance-grid p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.expertise-grid article,
.insight-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 16px;
}

.product-card,
.solution-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(47, 50, 145, 0.07);
}

.product-card p,
.solution-card p,
.expertise-grid p,
.insight-grid p,
.about-copy p,
.contact-card p,
.project-copy p {
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.icon.sun { color: var(--white); background: var(--red); }

.product-card dl { margin-top: auto; }
.product-card dt { font-weight: 800; }
.product-card dd { margin: 4px 0 0; color: var(--muted); }

.solutions {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 15, 63, 0.96), rgba(47, 50, 145, 0.9)),
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.solution-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.solution-card span {
  margin-bottom: 56px;
  color: #ff6b70;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.solution-card p { color: rgba(255, 255, 255, 0.78); }

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.project-feature.editorial {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
}

.project-image {
  min-height: 260px;
  border-radius: 8px;
  background: var(--navy) center/cover;
}

.project-image-main { min-height: 520px; background-image: url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1400&q=82"); }
.solar-farm { background-image: url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=900&q=80"); }
.street-lighting { background-image: url("https://images.unsplash.com/photo-1493246507139-91e8fad9978e?auto=format&fit=crop&w=900&q=80"); }
.battery {
  background:
    linear-gradient(135deg, rgba(9, 15, 63, 0.92), rgba(239, 34, 42, 0.22)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.16) 34px 36px),
    linear-gradient(0deg, var(--navy), var(--blue));
}
.commercial { background-image: url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=900&q=80"); }

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.project-copy .label {
  color: #ff6b70;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy p { color: rgba(255, 255, 255, 0.76); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { margin-top: 10px; font-weight: 800; }

.expertise-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about { padding-top: 0; }

.about-panel,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(30px, 6vw, 72px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mission-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.mission-grid article {
  padding: 18px;
  border-left: 4px solid var(--red);
  background: var(--paper);
}

.mission-grid strong,
.mission-grid span { display: block; }

.insights { background: linear-gradient(135deg, var(--blue-soft), var(--red-soft)); }
.insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insight-grid span { color: var(--red); font-weight: 800; }

.contact { background: var(--navy); }

.contact-card {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 15, 63, 0.94), rgba(47, 50, 145, 0.9)),
    url("https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.contact-card p { color: rgba(255, 255, 255, 0.78); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form .full,
.contact-form button { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  font: inherit;
}

select option { color: var(--ink); }
textarea { resize: vertical; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #070b2e;
}

.site-footer strong { color: var(--white); }
.site-footer p { max-width: 520px; margin: 8px 0 0; }
.site-footer span,
.site-footer a { display: block; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav,
  .header-cta { display: none; }
  .site-header.is-open .site-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav a { padding: 13px; }
  .menu-toggle { display: block; justify-self: end; }
  .hero { min-height: 0; padding-top: 108px; }
  .hero-panel,
  .glance-grid,
  .two-column,
  .solution-layout,
  .project-feature,
  .project-feature.editorial,
  .gallery-grid,
  .about-panel,
  .contact-card,
  .insight-grid,
  .stat-band,
  .decision-table,
  .process-list article,
  .product-detail-list article { grid-template-columns: 1fr; }
  .project-image-main { min-height: 340px; }
  .site-footer { display: grid; }
}

@media (max-width: 620px) {
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .tile-grid,
  .expertise-grid,
  .enterprise-grid,
  .contact-form { grid-template-columns: 1fr; }
  .product-card,
  .solution-card { min-height: 0; }
  .button { width: 100%; }
  .brand { padding: 6px 8px; }
  .brand-logo { width: 150px; }
  .section { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}