:root {
  color-scheme: light;
  --ink: #14202b;
  --muted: #5d6975;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d8ddd8;
  --brand: #205f4f;
  --brand-dark: #123c34;
  --accent: #b24b2f;
  --gold: #d9a441;
  --blue: #355f8f;
  --shadow: 0 18px 55px rgba(20, 32, 43, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a,
.button,
button {
  min-height: 2.6rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-dark);
  background: #edf3ee;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 5rem);
  padding: clamp(2rem, 4vw, 6rem) clamp(2rem, 4vw, 6rem);
  background:
    linear-gradient(110deg, rgba(251, 250, 247, 0.98), rgba(246, 247, 241, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(53, 95, 143, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(32, 95, 79, 0.1) 0 1px, transparent 1px 100%);
  background-size: auto, auto, 2rem 2rem;
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 4.8rem, 4.8rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 46rem;
  color: #33404d;
  font-size: 1.2rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary,
button[type="submit"] {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover,
button[type="submit"]:hover {
  background: var(--brand-dark);
}

.button.secondary,
.button.tertiary,
button[type="reset"] {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--line);
}

.button.tertiary {
  color: var(--blue);
}

.hero-visual {
  margin: 0;
}

.system-panel {
  display: grid;
  gap: 1.35rem;
  min-height: 27rem;
  padding: 1.2rem;
  color: #eaf4ee;
  background:
    linear-gradient(150deg, rgba(18, 60, 52, 0.98), rgba(16, 24, 32, 0.98)),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: auto, 2rem 2rem, 2rem 2rem;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-topline,
.stack-group,
.capability-cloud,
.panel-note {
  position: relative;
  z-index: 1;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #f3d38c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.logo-grid span {
  display: grid;
  min-height: 3.6rem;
  place-items: center;
  padding: 0.55rem;
  background: rgba(8, 17, 24, 0.68);
  border: 1px solid rgba(217, 164, 65, 0.32);
  border-radius: 6px;
}

.logo-grid img {
  max-width: 100%;
  max-height: 2.25rem;
  object-fit: contain;
  image-rendering: auto;
}

.stack-group {
  display: grid;
  gap: 0.65rem;
}

.stack-label {
  color: #f3d38c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-self: end;
}

.capability-cloud span {
  padding: 0.5rem 0.68rem;
  color: #0f1c25;
  background: #f4efe2;
  border-radius: 999px;
  font-weight: 400;
}

.panel-note {
  max-width: 30rem;
  color: #c9d8d2;
  font-size: 0.98rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f2f5f0;
}

.metrics div {
  padding: 1.35rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--brand-dark);
  font-size: 1.6rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(2rem, 4vw, 6rem) clamp(2rem, 4vw, 6rem);
}

.section-heading {
  max-width: 154rem;
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 42rem;
}

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

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

.service-grid article,
.fit-grid article,
.contact-form fieldset {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.service-grid article,
.fit-grid article {
  padding: 1.35rem;
}

.service-grid p,
.fit-grid p,
.engagement-list span,
.contact-form p {
  color: var(--muted);
}

.fit {
  color: #fff;
  background: var(--brand-dark);
}

.fit .eyebrow,
.fit h2,
.fit .section-heading p:not(.eyebrow) {
  color: #fff;
}

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

.fit-grid article {
  color: var(--ink);
}

.engagement-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.engagement-list div {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem;
  background: var(--panel);
}

.engagement-list strong {
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.credibility-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  background: #f7f5ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credibility-band p {
  margin: 0;
  color: var(--muted);
}

.credibility-band a {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

.contact {
  background: #eef3ed;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form fieldset {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
}

.contact-form legend {
  padding: 0 0.35rem;
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field-grid,
.check-grid,
.captcha-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: #2b3742;
  font-weight: 700;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem 0.78rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8d1ca;
  border-radius: 6px;
  font: inherit;
}

input[type="checkbox"] {
  width: 1rem;
  min-height: 1rem;
  accent-color: var(--brand);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.5);
  outline-offset: 2px;
}

.verification p {
  margin-bottom: 0;
}

.captcha-row {
  align-items: end;
}

.captcha-image {
  display: grid;
  min-height: 5rem;
  place-items: center;
  color: #101820;
  background:
    repeating-linear-gradient(35deg, rgba(32, 95, 79, 0.08) 0 0.45rem, rgba(178, 75, 47, 0.08) 0.45rem 0.9rem),
    #fff;
  border: 1px solid #bdc8c0;
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem;
}

.captcha-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.captcha-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding: 2rem clamp(1rem, 5vw, 6rem);
  color: #dfe7df;
  background: #101820;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer a {
  color: #fff;
}

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

  .site-header {
    position: static;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .metrics,
  .service-grid,
  .fit-grid,
  .engagement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header,
  .brand,
  .hero-actions,
  .form-actions {
    align-items: stretch;
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .metrics,
  .service-grid,
  .fit-grid,
  .engagement-list,
  .field-grid,
  .check-grid,
  .captcha-row {
    grid-template-columns: 1fr;
  }

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

  .metrics div,
  .metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }
}