:root {
  color-scheme: light;
  --ink: #162126;
  --muted: #5d6870;
  --line: #d9e1e5;
  --surface: #ffffff;
  --band: #f3f6f5;
  --deep: #10262b;
  --accent: #0f766e;
  --accent-strong: #c47a25;
  --focus: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.875rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(16, 38, 43, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  max-width: 14rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-toggle {
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.primary-nav {
  position: fixed;
  inset: 72px 0 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  background: var(--deep);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  overflow-y: auto;
}

.menu-open .primary-nav {
  display: flex;
  min-height: calc(100vh - 72px);
}

.primary-nav a {
  min-height: 48px;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: 62vh;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(9, 30, 34, 0.92) 0%, rgba(9, 30, 34, 0.7) 45%, rgba(9, 30, 34, 0.08) 100%),
    url("../img/hero-engineering.png") center / cover no-repeat;
}

.hero-content {
  width: min(100%, 760px);
  align-self: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 7vw, 4.65rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  max-width: 70ch;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
}

.logo-marquee {
  overflow: hidden;
  padding: 1rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: logo-scroll 32s linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 58px;
  color: var(--deep);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef3f1);
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stats-band div {
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: var(--deep);
  color: #ffffff;
}

.stats-band strong {
  display: block;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1;
}

.stats-band span {
  color: rgba(255, 255, 255, 0.78);
}

.content-band,
.panel,
.page-header,
.content-list {
  padding: clamp(2.75rem, 8vw, 5.75rem) clamp(1rem, 4vw, 3rem);
}

.content-band > *,
.panel,
.page-header,
.content-list {
  max-width: 1120px;
  margin-inline: auto;
}

.muted-band {
  background: var(--band);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-grid,
.project-grid,
.news-list {
  display: grid;
  gap: 1rem;
}

.summary-card,
.project-card,
.news-list article {
  min-height: 160px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.summary-card h2,
.summary-card h3,
.content-list h2 {
  margin-top: 0;
}

.summary-card p,
.project-card span,
.news-list p {
  color: var(--muted);
}

.project-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(16, 38, 43, 0.1), rgba(16, 38, 43, 0.92)),
    url("../img/hero-engineering.png") center / cover no-repeat;
}

.project-card:nth-child(2) {
  background-position: 35% center;
}

.project-card:nth-child(3) {
  background-position: 70% center;
}

.project-card p,
.project-card span {
  color: rgba(255, 255, 255, 0.84);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-list span {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
}

.content-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  body.menu-open {
    overflow: auto;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    background: transparent;
  }

  .primary-nav a {
    min-height: auto;
    padding: 0.35rem 0;
    border-bottom: 0;
    font-size: 0.94rem;
  }

  .hero {
    min-height: 68vh;
    background-position: center;
  }

  .stats-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-grid,
  .project-grid,
  .news-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 58vh;
    background:
      linear-gradient(180deg, rgba(9, 30, 34, 0.94) 0%, rgba(9, 30, 34, 0.74) 58%, rgba(9, 30, 34, 0.34) 100%),
      url("../img/hero-engineering.png") 58% center / cover no-repeat;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
}
