:root {
  --bg: #0d1117;
  --panel: #11161d;
  --panel-strong: #0a0f14;
  --text: #e6edf3;
  --muted: #9ca7b3;
  --accent: #3fb950;
  --accent-soft: rgba(63, 185, 80, 0.12);
  --border: #2f3944;
  --steel: #7aa2c7;
  --gold: #d6b15e;
  --danger: #e06464;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(63, 185, 80, 0.08), transparent 26rem),
    repeating-linear-gradient(0deg, transparent 0, transparent 2.95rem, rgba(230, 237, 243, 0.04) 2.95rem, rgba(230, 237, 243, 0.04) 3rem),
    var(--bg);
  color: var(--text);
  font-family: Consolas, Monaco, "Courier New", monospace;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3 {
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.92;
}

h2 {
  max-width: 18ch;
  margin-bottom: 0.85rem;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
}

.sr-only {
  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: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-icon {
  width: 2.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border: 1px solid rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.08);
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
}

.site-nav a {
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.eyebrow,
.prompt {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-0.45rem);
}

.nav-toggle-bars::after {
  transform: translateY(0.35rem);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.section-band {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

.hero {
  min-height: calc(100vh - 6rem);
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.hero-grid,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
}

.lead {
  max-width: 47rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.button.secondary {
  background: var(--panel-strong);
}

.button:hover,
.button:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.button.wide {
  width: 100%;
}

.mission-panel,
.check-panel,
.contact-panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(230, 237, 243, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(230, 237, 243, 0.05) 1px, transparent 1px),
    var(--panel-strong);
  background-size: 1rem 1rem;
  padding: 1rem;
}

.terminal-line {
  margin-bottom: 1rem;
  color: var(--text);
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-item {
  display: grid;
  gap: 0.55rem;
  min-height: 8rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.proof-item:last-child {
  border-right: 0;
}

.visual-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.visual-copy p:last-child {
  margin-bottom: 0;
}

.image-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.metric {
  color: var(--gold);
  font-size: 1.45rem;
}

.section-heading {
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem) 0;
}

.delivery-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(230, 237, 243, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(230, 237, 243, 0.04) 1px, transparent 1px),
    rgba(10, 15, 20, 0.72);
  background-size: 1rem 1rem;
}

.delivery-pipeline article {
  position: relative;
  min-height: 16rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.delivery-pipeline article::after {
  position: absolute;
  top: 2.1rem;
  right: -0.55rem;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  background: var(--panel-strong);
  transform: rotate(45deg);
  content: "";
}

.delivery-pipeline article:last-child {
  border-right: 0;
}

.delivery-pipeline article:last-child::after {
  display: none;
}

.pipeline-index {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

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

.service-card,
.engagement-grid article {
  min-height: 15rem;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.service-card:last-child,
.engagement-grid article:last-child {
  border-right: 0;
}

.service-card:nth-child(2) h3 {
  color: var(--steel);
}

.service-card:nth-child(3) h3 {
  color: var(--gold);
}

.service-card:nth-child(4) h3 {
  color: var(--accent);
}

.split-section,
.contact-section,
.engagement {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.diagram-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(230, 237, 243, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(230, 237, 243, 0.045) 1px, transparent 1px),
    rgba(10, 15, 20, 0.84);
  background-size: 1rem 1rem;
}

.federal-visual {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
}

.diagram-node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: rgba(17, 22, 29, 0.92);
}

.diagram-node::after {
  position: absolute;
  top: 50%;
  right: -1.2rem;
  width: 1.2rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.diagram-node:last-child::after {
  display: none;
}

.diagram-node.source,
.diagram-node.target {
  border-color: rgba(63, 185, 80, 0.75);
  background: rgba(63, 185, 80, 0.1);
}

.node-label {
  color: var(--text);
  text-transform: uppercase;
}

.node-detail {
  color: var(--muted);
}

.diagram-rail {
  position: absolute;
  inset: 50% 2rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--steel), transparent);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: ">";
}

.engagement {
  display: grid;
  gap: 1.25rem;
}

.engagement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.copy-status {
  width: 100%;
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 900px) {
  h1 {
    max-width: 13ch;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .visual-feature,
  .split-section,
  .contact-section,
  .proof-strip,
  .service-grid,
  .delivery-pipeline,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .service-card,
  .delivery-pipeline article,
  .engagement-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .proof-item:last-child,
  .service-card:last-child,
  .delivery-pipeline article:last-child,
  .engagement-grid article:last-child {
    border-bottom: 0;
  }

  .delivery-pipeline article::after {
    top: auto;
    right: calc(50% - 0.5rem);
    bottom: -0.55rem;
    transform: rotate(135deg);
  }

  .federal-visual {
    grid-template-columns: 1fr;
  }

  .diagram-node::after {
    top: auto;
    right: calc(50% - 0.5rem);
    bottom: -1.05rem;
    width: 1rem;
    height: 1rem;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    background: var(--panel-strong);
    transform: rotate(135deg);
  }

  .diagram-rail {
    inset: 2rem auto 2rem 50%;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--accent), var(--steel), transparent);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand span {
    max-width: 13rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero-actions,
  .contact-panel {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}

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