:root {
  --ink: #16201c;
  --muted: #5f6c66;
  --line: #d9e0dc;
  --panel: #f5f7f4;
  --panel-strong: #e9f0ec;
  --white: #ffffff;
  --green: #1f6b4d;
  --green-dark: #174d39;
  --blue: #285a84;
  --gold: #b8792a;
  --shadow: 0 18px 50px rgba(22, 32, 28, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px) 42px;
  background:
    linear-gradient(135deg, rgba(31, 107, 77, 0.09), rgba(40, 90, 132, 0.07)),
    var(--white);
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 0;
  color: #35423d;
  font-size: clamp(18px, 2vw, 22px);
}

.secondary-copy {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 20px);
}

.hero-bullets {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-bullets li {
  position: relative;
  padding-left: 22px;
  color: #31403a;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 650;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

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

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.large {
  min-height: 52px;
}

.profile-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-panel img {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 460px);
  object-fit: contain;
  object-position: 50% 0%;
  padding: 26px 34px 0;
  background: #474341;
}

.profile-panel div {
  padding: 24px;
}

.profile-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
}

.profile-note {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.section,
.band {
  padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.problem-lede {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin-top: 18px;
}

.problem-lede p {
  margin: 0;
  color: #3f4d48;
  font-size: 18px;
  font-weight: 700;
}

.section-heading h2,
.two-column h2,
.split-section h2,
.credentials h2,
.contact-section h2,
.form-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.problem-grid article,
.service-card,
.panel-list article,
.diagnostic-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-grid article {
  padding: 22px;
}

.problem-grid h3,
.service-card h3,
.panel-list h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.problem-grid p,
.service-card p,
.panel-list p {
  margin: 0;
  color: var(--muted);
}

.two-column,
.split-section,
.credentials,
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.rich-text p,
.credentials-copy p,
.contact-copy p {
  max-width: 780px;
  margin: 0 0 18px;
  color: #3f4d48;
  font-size: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 26px;
  color: var(--green);
  background: var(--panel-strong);
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
}

.service-icon {
  width: 74px;
  height: 74px;
  margin-top: auto;
  color: var(--green);
  opacity: 0.95;
}

.service-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-band {
  background: #17221d;
  color: var(--white);
}

.workflow-band .eyebrow {
  color: #8ec7ac;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.steps li {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  counter-increment: workflow;
}

.steps li::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: 34px;
  color: #a6d6c0;
  font-weight: 900;
}

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

.steps strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.steps span {
  color: rgba(255, 255, 255, 0.78);
}

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

.panel-list article {
  padding: 26px;
}

.credentials {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.disclaimer {
  color: var(--muted) !important;
  font-size: 14px !important;
}

.research-collab {
  max-width: 780px;
  margin: 24px 0 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.research-collab h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.research-collab p {
  margin: 0 0 12px;
  color: #3f4d48;
  font-size: 16px;
}

.research-collab a {
  color: var(--green);
  font-weight: 800;
}

.publication-list {
  display: grid;
  gap: 10px;
}

.publication-list h3 {
  margin: 0 0 8px;
  color: #33433d;
  font-size: 18px;
  line-height: 1.25;
}

.publication-list span {
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #33433d;
  font-size: 15px;
  font-weight: 550;
}

.contact-section {
  align-items: stretch;
}

.small-note,
.form-status,
.privacy-inline {
  color: var(--muted);
  font-size: 14px;
}

.privacy-inline {
  margin: 0;
}

.diagnostic-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.form-heading {
  margin-bottom: 4px;
}

label {
  display: grid;
  gap: 8px;
  color: #31403a;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd6d0;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

.fillout-card {
  gap: 22px;
}

.fillout-standard {
  width: 100%;
  min-height: 720px;
  border-radius: 6px;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 107, 77, 0.18);
  border-color: var(--green);
}

.submit-button {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

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

.privacy-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(42px, 6vw, 68px) clamp(20px, 5vw, 64px);
  background: #f8faf8;
  border-top: 1px solid var(--line);
}

.privacy-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
}

.edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(31, 107, 77, 0.35);
  outline-offset: 4px;
}

.edit-mode [contenteditable="true"]:focus {
  outline: 3px solid rgba(31, 107, 77, 0.32);
  background: rgba(255, 255, 255, 0.7);
}

.edit-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.edit-toolbar button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 160px;
  }

  section[id] {
    scroll-margin-top: 160px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
    overflow-x: visible;
    padding-bottom: 0;
  }

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

  .problem-grid,
  .service-grid,
  .steps,
  .panel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.03;
  }

  .profile-panel img {
    height: 380px;
    padding: 44px 46px 0;
  }

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

  .problem-grid,
  .service-grid,
  .steps,
  .panel-list {
    grid-template-columns: 1fr;
  }

  .steps li,
  .service-card {
    min-height: auto;
  }

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

@media (max-width: 420px) {
  .hero h1 {
    font-size: 32px;
  }
}
