:root {
  color-scheme: dark;
  --bg: #090b0a;
  --surface: #121611;
  --surface-strong: #1b2119;
  --line: #30382f;
  --text: #f3f7fb;
  --muted: #aebdca;
  --accent: #49a078;
  --accent-strong: #63c093;
  --gold: #d6a84f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(73, 160, 120, 0.18), transparent 32rem),
    linear-gradient(180deg, #090b0a 0%, #10130f 48%, #090b0a 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 10, 0.84);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(99, 192, 147, 0.52);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(73, 160, 120, 0.26), rgba(214, 168, 79, 0.12));
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  border-radius: 8px;
  padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 8vw, 6.85rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.mission {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
}

.hero-copy,
.section-copy,
.contact-section p,
.card p,
.project-item p {
  color: var(--muted);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

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

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 33, 25, 0.95), rgba(18, 22, 17, 0.95));
  box-shadow: var(--shadow);
}

.hero-panel > div {
  padding: 28px;
}

.hero-panel > div + div {
  border-top: 1px solid var(--line);
}

.stat {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
}

.section-copy {
  font-size: 1.05rem;
}

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

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

.card,
.project-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(18, 22, 17, 0.82);
}

.card {
  min-height: 300px;
  padding: 24px;
}

.card-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.project-item {
  padding: 22px;
}

.project-item h3 {
  color: var(--accent-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(99, 192, 147, 0.42);
  border-radius: 8px;
  background: rgba(73, 160, 120, 0.13);
  padding: 28px;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.3rem;
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .brand-text {
    white-space: normal;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 7px 8px;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 64px 0;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

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

  .card-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 240px;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .site-footer {
    width: min(100% - 24px, 1120px);
    flex-direction: column;
  }
}
