:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --surface-glass: rgba(248, 250, 252, 0.78);
  --ink: #17283b;
  --muted: #56697c;
  --quiet: #718296;
  --line: #dce4eb;
  --line-strong: #c3cfda;
  /* Assay design-system steel blue — keep in sync with the home page tokens. */
  --blue: #345c85;
  --blue-hover: #2b4d70;
  --blue-soft: #e3ebf4;
  --gold: #a77c1c;
  --success: #277058;
  --shadow-small: 0 1px 2px rgba(15, 37, 57, 0.05), 0 8px 24px rgba(15, 37, 57, 0.05);
  --shadow-large: 0 18px 50px rgba(15, 37, 57, 0.1);
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: -28vh -20vw auto 45vw;
  height: 72vw;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 92, 133, 0.1), rgba(52, 92, 133, 0) 68%);
  content: "";
  pointer-events: none;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(52, 92, 133, 0.42);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: var(--blue-soft);
}

.shell {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow-large);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(195, 207, 218, 0.72);
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(1.55) blur(20px);
  backdrop-filter: saturate(1.55) blur(20px);
}

.nav-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.desktop-nav a,
.language-link,
.portal-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 130ms ease;
}

.desktop-nav a {
  padding-inline: 12px;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

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

.language-link {
  padding-inline: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
}

.language-link:hover {
  border-color: #9eb3c4;
  background: var(--surface);
  color: var(--blue-hover);
}

.portal-link {
  padding-inline: 15px;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.portal-link:hover {
  background: var(--blue);
  color: #ffffff;
}

.desktop-nav a:active,
.language-link:active,
.portal-link:active,
.button:active,
.card-link:active,
.mobile-menu summary:active {
  transform: scale(0.97);
}

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: 4px;
  border-radius: 11px;
  transition: background-color 160ms ease, transform 130ms ease;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:hover,
.mobile-menu[open] summary {
  background: var(--blue-soft);
}

.mobile-menu summary span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-menu nav {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(82vw, 310px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-large);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform-origin: top right;
  animation: menu-in 180ms var(--spring);
}

.mobile-menu nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding-inline: 14px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
}

.mobile-menu nav a:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.97);
  }
}

main {
  overflow: clip;
}

.hero,
.page-hero {
  position: relative;
}

.hero {
  padding-block: clamp(64px, 9vw, 112px) clamp(60px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(36px, 7vw, 84px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(167, 124, 28, 0.11);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(2.55rem, 6.2vw, 4.9rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 730;
  letter-spacing: -0.026em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  line-height: 1.62;
}

.service-area {
  margin: 16px 0 0;
  color: var(--ink);
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-small);
  transition: transform 130ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button.primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 10px 28px rgba(25, 77, 117, 0.19);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #9eb3c4;
  background: var(--surface);
  color: var(--blue-hover);
}

.hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(195, 207, 218, 0.84);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-large);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(var(--blue), #6d9aba);
  content: "";
}

.hero-panel > p:first-child {
  margin: 0 0 15px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-list,
.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.signal-list li:first-child {
  border-top: 0;
}

.signal-list b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
}

.signal-list span {
  color: var(--muted);
  font-size: 14px;
}

.signal-list strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.section {
  padding-block: clamp(64px, 8vw, 96px);
}

.section.alt {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  transition: transform 220ms var(--spring), border-color 180ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-large);
}

.card .tag {
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  align-self: flex-start;
  border-radius: 8px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: gap 180ms var(--spring), transform 130ms ease;
}

.card-link:hover {
  gap: 11px;
  text-decoration: underline;
}

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

.step {
  padding: 22px 20px;
  border-top: 1px solid var(--line-strong);
  counter-increment: process;
}

.step::before {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  content: "0" counter(process);
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.split-copy p,
.prose p {
  margin: 16px 0 0;
  color: var(--muted);
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-top: 1px solid var(--line);
}

.check-list li:first-child,
.plain-list li:first-child {
  border-top: 0;
}

.check-list li::before {
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #dfeee9;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  content: "✓";
}

.check-list strong,
.plain-list strong {
  display: block;
  margin-bottom: 2px;
}

.check-list span,
.plain-list span {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  padding: 22px 24px;
  border: 1px solid #d6c89e;
  border-radius: 16px;
  background: #fbf8ed;
  color: #554720;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice p {
  margin: 0;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #bdd0df;
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f1f7, #f8fafb 58%);
  box-shadow: var(--shadow-small);
}

.cta p {
  max-width: 660px;
  margin: 11px 0 0;
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(46px, 7vw, 80px) clamp(52px, 7vw, 76px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--quiet);
  font-size: 13px;
}

.breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-inline: -4px;
  padding-inline: 4px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(36px, 7vw, 80px);
  align-items: start;
}

/* Let grid items shrink below their content width so wide tables scroll
   inside .table-wrap instead of being clipped at narrow viewports. */
.content-grid > * {
  min-width: 0;
}

.prose h2 {
  margin-top: 44px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
}

.prose ul,
.prose ol {
  margin: 16px 0 0;
  padding-left: 1.35em;
  color: var(--muted);
}

.prose li + li {
  margin-top: 8px;
}

.aside-card {
  position: sticky;
  top: 92px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.aside-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.aside-card .button {
  width: 100%;
  margin-top: 20px;
}

.aside-card .plain-list {
  margin-top: 17px;
}

.aside-card .plain-list li {
  padding-left: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.related-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.related-links a:hover {
  border-color: var(--line-strong);
  background: var(--blue-soft);
}

.faq {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 56px;
  padding: 16px 34px 16px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 680;
}

.faq details p {
  margin: -4px 0 20px;
  padding-right: 28px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contact-option {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contact-option a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.contact-option p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(238, 243, 247, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, 0.6fr));
  gap: 40px;
  padding-block: 54px 38px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 740;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-copy {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-column strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
}

.footer-bottom a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .content-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 640px;
  }

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

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

  .aside-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav-row {
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .portal-link {
    display: none;
  }

  .language-link {
    padding-inline: 10px;
    font-size: 13px;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .actions .button {
    width: 100%;
  }

  .card-grid,
  .card-grid.two,
  .steps,
  .contact-options,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

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

  .cta .button {
    width: 100%;
  }

  .footer-grid {
    gap: 26px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .hero-panel,
  .mobile-menu nav {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #34495b;
    --quiet: #43586b;
    --line: #8fa1b0;
    --line-strong: #65798b;
  }

  .site-header,
  .card,
  .hero-panel,
  .aside-card,
  .contact-option {
    background: var(--surface);
  }
}

@media (forced-colors: active) {
  .eyebrow::before,
  .hero-panel::before {
    background: CanvasText;
  }

  .button,
  .language-link,
  .portal-link,
  .card,
  .hero-panel {
    border: 1px solid ButtonText;
  }
}

/* Assay & pricing tables on service pages */
.table-wrap {
  margin: 18px 0 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.assay-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.assay-table th,
.assay-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.assay-table thead th {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
}

.assay-table tbody tr:last-child td {
  border-bottom: none;
}

.assay-table tbody tr:hover {
  background: var(--blue-soft);
}

.assay-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--quiet);
  white-space: nowrap;
}

.assay-table td:nth-child(3) {
  white-space: nowrap;
  color: var(--muted);
}

.assay-table td:last-child {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.assay-table thead th:last-child {
  text-align: right;
}

.table-note {
  margin: 10px 2px 0;
  font-size: 13.2px;
  color: var(--muted);
}
