:root {
  --ink: #10201f;
  --muted: #55706c;
  --paper: #f7faf6;
  --chart: #e9f2ec;
  --line: #c9dbd2;
  --clinical: #0f6d5f;
  --signal: #23b7b1;
  --plum: #5a4a73;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(201, 219, 210, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, rgba(201, 219, 210, 0.35) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(16, 32, 31, 0.12);
  background: rgba(247, 250, 246, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(16, 32, 31, 0.08);
}

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

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 13px);
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--clinical);
  background: var(--white);
}

.brand-mark span {
  width: 13px;
  height: 13px;
  background: var(--chart);
}

.brand-mark span:first-child,
.brand-mark span:last-child {
  background: var(--clinical);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section-grid,
.content-section,
.split-section,
.assurance-section,
.contact-section,
.site-footer,
.proof-strip {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 78px 0 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clinical);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 88px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
}

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

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-lede {
  max-width: 690px;
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.matrix-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(16, 32, 31, 0.16);
  background:
    linear-gradient(135deg, rgba(35, 183, 177, 0.12), transparent 44%),
    var(--white);
  box-shadow: var(--shadow);
}

.matrix-panel::before {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(15, 109, 95, 0.18);
  content: "";
  pointer-events: none;
}

.panel-topline,
.panel-foot,
.interval-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.confidence-card {
  position: relative;
  margin: 42px 0 20px;
  padding: 22px;
  border-left: 4px solid var(--clinical);
  background: var(--chart);
}

.metric-label,
.metric-note {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.confidence-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 68px;
  line-height: 0.9;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.cell {
  min-height: 52px;
  border: 1px solid var(--line);
  background: #f3f7f2;
}

.cell.active {
  background: var(--clinical);
}

.cell.soft {
  background: rgba(35, 183, 177, 0.2);
}

.interval-row {
  align-items: center;
  margin: 22px 0;
}

.interval-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
}

.interval-line i {
  position: absolute;
  left: 28%;
  width: 44%;
  height: 2px;
  background: var(--plum);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 8px;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.content-section,
.split-section,
.assurance-section,
.contact-section {
  padding: 100px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-grid article,
.process-grid article {
  min-height: 290px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
}

.service-code,
.process-grid span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--clinical);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.team-list span {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.process-section {
  padding-bottom: 60px;
}

.assurance-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  padding-top: 50px;
}

.assurance-items {
  display: grid;
  gap: 18px;
}

.assurance-items p {
  margin: 0;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--clinical);
}

.assurance-items strong {
  color: var(--ink);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 40px;
  padding: 54px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.contact-section h2,
.contact-section p {
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--signal);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
}

.contact-card a,
.contact-card span {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-card span {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .hero,
  .split-section,
  .assurance-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .service-grid,
  .process-grid,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .contact-section {
    padding: 36px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--white);
  }

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

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

  h1 {
    font-size: 46px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .matrix-panel {
    padding: 18px;
  }

  .proof-strip,
  .service-grid,
  .process-grid,
  .team-list {
    grid-template-columns: 1fr;
  }

  .content-section,
  .split-section,
  .assurance-section {
    padding: 68px 0;
  }

  .service-grid article,
  .process-grid article {
    min-height: auto;
  }

  .service-code,
  .process-grid span {
    margin-bottom: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
