:root {
  --ink: #15262a;
  --muted: #5c696a;
  --paper: #f7f5ef;
  --line: #d7d8d0;
  --teal: #197d74;
  --teal-dark: #0f4f4c;
  --saffron: #d89132;
  --brick: #8f3f2c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: rgba(18, 32, 34, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #122024;
  background: var(--saffron);
  font-weight: 900;
  border-radius: 6px;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-mark span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

nav a:hover {
  color: var(--white);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #122024;
  background: var(--saffron);
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 122px clamp(20px, 6vw, 86px) 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 31, 35, 0.88) 0%, rgba(15, 31, 35, 0.52) 47%, rgba(15, 31, 35, 0.08) 100%),
    url("assets/hero-energy-site.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 10vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--saffron);
  color: #122024;
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--teal);
  font-weight: 900;
}

.service-grid p,
.experience-grid p,
.split p,
.contact p,
.proof span {
  color: var(--muted);
}

.experience {
  background: var(--paper);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
}

.project-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  grid-template-rows: auto;
}

.project-media {
  position: relative;
  margin: 0;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-dark);
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-card:first-child .project-media {
  aspect-ratio: 4 / 5;
}

.project-card:first-child .project-media img {
  object-position: center bottom;
}

.project-card:nth-child(2) .project-media img {
  object-position: center center;
}

.project-card-wide .project-media {
  min-height: 420px;
  aspect-ratio: auto;
}

.project-body {
  display: grid;
  align-content: start;
  padding: 28px;
}

.project-location {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 0 12px;
  color: var(--white);
  background: var(--teal);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card-wide .project-location {
  background: var(--teal-dark);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-facts div {
  padding: 12px;
  background: #fbfaf6;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-facts dd {
  margin-top: 4px;
  font-weight: 900;
}

.project-card-wide .project-facts {
  grid-template-columns: 1fr;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  min-height: 30px;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: rgba(25, 125, 116, 0.1);
  border: 1px solid rgba(25, 125, 116, 0.18);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.sector-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.sector-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--teal-dark);
}

.proof div {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 32px;
  color: var(--white);
  background: var(--teal-dark);
}

.proof strong {
  font-size: 1.18rem;
}

.proof span {
  color: rgba(255, 255, 255, 0.76);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 6vw, 82px);
  background: #efe9db;
}

address {
  display: grid;
  align-content: start;
  gap: 16px;
  font-style: normal;
  font-weight: 800;
}

address a,
address span {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(21, 38, 42, 0.18);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.76);
  background: #122024;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    gap: 14px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
    background-position: 62% center;
  }

  .service-grid,
  .experience-grid,
  .split,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-media,
  .project-card:first-child .project-media,
  .project-card-wide .project-media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .project-card:first-child .project-media img {
    object-position: center center;
  }

  .service-grid article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 128px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .button {
    width: 100%;
  }

  .project-body {
    padding: 22px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }
}
