:root {
  color-scheme: light;
  --ink: #14211f;
  --muted: #63706c;
  --paper: #f7faf7;
  --line: #dfe7e2;
  --panel: #ffffff;
  --forest: #10201d;
  --teal: #0f766e;
  --amber: #b87524;
  --mist: #e9f1ed;
  --shadow: 0 18px 45px rgba(18, 34, 31, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 32, 29, 0.62);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 33, 31, 0.08);
  box-shadow: var(--shadow);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.28);
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: currentColor;
  opacity: 0.88;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover {
  background: var(--mist);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("hero-infrastructure.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.9) 0%, rgba(10, 20, 18, 0.7) 42%, rgba(10, 20, 18, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 20, 18, 0.36), rgba(10, 20, 18, 0.2) 55%, rgba(247, 250, 247, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 136px 0 92px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: #a5f3e6;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.contact-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.3);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.intro,
.section-band,
.operations,
.visual-gallery,
.contact {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 48px;
  padding: 78px 0 56px;
}

.intro h2,
.section-heading h2,
.operations h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro > p,
.operations-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  color: var(--teal);
}

.section-band {
  padding: 72px 0;
}

.section-band.muted {
  width: 100%;
  max-width: none;
  padding: 76px max(20px, calc((100vw - var(--max)) / 2));
  background: #eef4f0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.service-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(18, 34, 31, 0.06);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 34px;
  margin-bottom: 34px;
  border-radius: 6px;
  color: var(--teal);
  background: #e3f5f0;
  font-size: 0.8rem;
  font-weight: 820;
}

.service-card h3,
.standards-list h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p,
.standards-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.operations {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 48px;
  align-items: center;
  padding: 68px 0 82px;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  min-height: 86px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-list strong {
  color: var(--amber);
  font-size: 2rem;
  line-height: 1;
}

.metric-list span {
  color: var(--muted);
}

.visual-gallery {
  padding: 72px 0 84px;
}

.visual-gallery .section-heading {
  max-width: 840px;
}

.visual-gallery .section-heading p:not(.section-label) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 31, 0.1);
  border-radius: 8px;
  background: #152321;
  box-shadow: 0 10px 30px rgba(18, 34, 31, 0.08);
}

.gallery-card-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 20, 18, 0.68);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.standards-list article {
  padding-top: 18px;
  border-top: 2px solid rgba(15, 118, 110, 0.28);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 78px 0;
}

.contact div {
  max-width: 680px;
}

.contact-link {
  flex: 0 0 auto;
  color: #fff;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.site-footer a,
.footer-links a {
  color: var(--ink);
  font-weight: 680;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page {
  min-height: 100vh;
  padding-top: 112px;
}

.legal-hero,
.legal-content {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
}

.legal-hero {
  padding: 54px 0 26px;
}

.legal-hero h1 {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.legal-hero p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content {
  padding: 8px 0 84px;
}

.legal-content section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.legal-content ul {
  padding-left: 20px;
}

@media (max-width: 860px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid rgba(20, 33, 31, 0.08);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 20, 18, 0.92), rgba(10, 20, 18, 0.66)),
      linear-gradient(180deg, rgba(10, 20, 18, 0.2), rgba(247, 250, 247, 0.92) 100%);
  }

  .intro,
  .operations,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .standards-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .service-card {
    min-height: auto;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page {
    padding-top: 92px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: min(calc(100% - 32px), var(--max));
    padding-top: 128px;
  }

  .hero-actions,
  .button,
  .contact-link {
    width: 100%;
  }

  .metric-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-band.muted {
    padding-left: 20px;
    padding-right: 20px;
  }
}
