:root {
  --ink: #071422;
  --navy: #0a2540;
  --blue: #0f4c81;
  --cyan: #48c7d8;
  --green: #56b870;
  --gold: #f4c542;
  --paper: #f7faf8;
  --white: #ffffff;
  --muted: #607080;
  --line: rgba(7, 20, 34, 0.12);
  --shadow: 0 24px 70px rgba(7, 20, 34, 0.15);
}

* { 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 {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 40px rgba(7, 20, 34, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--green));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong,
.brand small { display: block; }

.brand small { color: currentColor; opacity: 0.72; font-size: 0.78rem; }

.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(--ink);
  background: var(--gold);
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 16px 32px rgba(244, 197, 66, 0.25);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.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(7, 20, 34, 0.76) 42%, rgba(7, 20, 34, 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(--green);
  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;
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 132px;
  padding: 22px;
  background: rgba(7, 20, 34, 0.5);
}

.hero-panel strong {
  display: block;
  color: var(--gold);
  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;
}

.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(7, 20, 34, 0.06);
}

.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(--ink); background: var(--gold); }

.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(10, 37, 64, 0.96), rgba(15, 76, 129, 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: var(--gold);
  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-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(10, 37, 64, 0.92), rgba(72, 199, 216, 0.34)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.16) 34px 36px),
    linear-gradient(0deg, #0a2540, #0f4c81);
}
.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: var(--gold);
  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(--gold);
  background: var(--paper);
}

.mission-grid strong,
.mission-grid span { display: block; }

.insights { background: #eef5f2; }
.insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insight-grid span { color: var(--green); font-weight: 800; }

.contact { background: var(--navy); }

.contact-card {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 20, 34, 0.94), rgba(15, 76, 129, 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: #06101c;
}

.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)); }
}

@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: auto; padding-top: 108px; }
  .hero-panel,
  .glance-grid,
  .solution-layout,
  .project-feature,
  .gallery-grid,
  .about-panel,
  .contact-card,
  .insight-grid { 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,
  .contact-form { grid-template-columns: 1fr; }
  .product-card,
  .solution-card { min-height: auto; }
  .button { width: 100%; }
  .brand small { display: none; }
  .section { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}