:root {
  --ink: #122142;
  --muted: #4f5f79;
  --line: #d8e0ea;
  --paper: #f8fbff;
  --white: #ffffff;
  --blue: #214f9c;
  --blue-dark: #142f68;
  --green: #91bb42;
  --green-dark: #6f9930;
}

* {
  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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 224, 234, 0.88);
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: min(178px, 46vw);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  min-height: calc(76vh - 64px);
  padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 48px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5.8vw, 5.35rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3.2vw, 3.15rem);
  line-height: 1;
}

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

.lede {
  max-width: 610px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  background: var(--white);
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--white);
  box-shadow: 0 12px 42px rgba(18, 33, 66, 0.07);
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(33, 79, 156, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--blue-dark);
  background: #eef5ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  font-weight: 800;
}

.signal-panel p {
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
}

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

.feature-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.feature-grid p {
  color: var(--muted);
}

.project-link-card {
  color: var(--white);
  background: var(--blue) !important;
}

.project-link-card p {
  color: #dce8ff;
}

.project-link-card a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.project-link-card a:hover {
  text-decoration: underline;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: start;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 4vw, 48px);
  color: var(--white);
  background: var(--ink);
}

.proof .eyebrow {
  color: #b8dc74;
}

.proof p:last-child {
  margin: 4px 0 0;
  color: #d6deec;
  font-size: 1.04rem;
}

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

.services-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.services-grid p {
  color: var(--muted);
}

.consulting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: start;
}

.about .section-heading {
  margin-bottom: 0;
}

.bio-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.consulting .section-heading {
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
}

.contact-card:hover {
  background: var(--blue-dark);
}

.contact-card span {
  color: #dce8ff;
  font-weight: 700;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 1.14rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero,
  .proof,
  .consulting,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

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

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

@media (max-width: 520px) {
  h1 {
    font-size: 2.4rem;
  }

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

  .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
