/* ==========================================================================
   BioChroma Analytical Labs — site styles
   Design system: "chroma / spectrum". Space Grotesk display, IBM Plex Sans
   body, IBM Plex Mono labels. Green -> teal -> blue spectral accents.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
  --navy-deep: #0b1a2e;
  --navy: #0e2038;
  --ink: #102640;
  --ink-2: #244781;
  --slate: #334a5e;
  --muted: #526777;

  --green: #4db848;
  --green-bright: #5fd158;
  --green-soft: #7fd97a;
  --green-dark: #2f7d3a;
  --teal: #3fb58f;
  --teal-2: #2f9e7a;
  --blue-soft: #4a86c9;
  --blue: #315aa6;
  --blue-dark: #244781;

  --paper: #f6f7f2;
  --sage: #e7efe6;
  --mist: #eef1f4;
  --white: #ffffff;
  --header-bg: #fafbf7;

  --line: rgba(16, 38, 64, 0.1);
  --line-2: rgba(16, 38, 64, 0.12);
  --line-light: rgba(255, 255, 255, 0.1);

  --font-body: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-display: "Space Grotesk", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --display: var(--font-display);
  --body: var(--font-body);
  --mono: var(--font-mono);

  --spectral: linear-gradient(90deg, #4db848 0%, #2f9e7a 42%, #315aa6 78%, #244781 100%);
  --shell: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.form-guide-open { overflow: hidden; }

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--blue); }
address { font-style: normal; }
::selection { background: var(--green); color: var(--navy); }

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--blue); border-radius: 8px;
  padding: 0.6rem 1rem; font-weight: 700; font-size: 0.85rem;
  z-index: 200; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* ---- Utility type ------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.kicker--plain::before { display: none; }
.kicker--light { color: var(--green-soft); }

.mono { font-family: var(--mono); }

.h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08;
  letter-spacing: -0.018em;
}
.h2--lg { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.06; }
.h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; }
.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.65; color: var(--muted);
}
.lede--light { color: rgba(255, 255, 255, 0.82); }

/* ---- Spectral bar ------------------------------------------------------- */
.spectral-bar { height: 3px; background: var(--spectral); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--body); font-size: 0.92rem; font-weight: 700;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--sm { padding: 0.7rem 1.1rem; font-size: 0.8rem; }
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: var(--green-bright); color: var(--navy); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.btn--outline { border-color: rgba(16, 38, 64, 0.35); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---- Analysis Order Form guide ----------------------------------------- */
.form-guide-dialog {
  width: min(1400px, calc(100vw - 2rem));
  max-width: min(1400px, calc(100vw - 2rem));
  height: min(92svh, 940px);
  max-height: 92svh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  transform: translateY(1rem) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.form-guide-dialog[open] { opacity: 1; transform: none; }
.form-guide-dialog.is-closing { opacity: 0; transform: translateY(0.75rem) scale(0.99); }
@starting-style {
  .form-guide-dialog[open] { opacity: 0; transform: translateY(1rem) scale(0.985); }
}
.form-guide-dialog::backdrop {
  background: rgba(6, 19, 34, 0.8);
  opacity: 0;
  transition: opacity 180ms ease, overlay 180ms allow-discrete, display 180ms allow-discrete;
}
.form-guide-dialog[open]::backdrop { opacity: 1; }
.form-guide-dialog.is-closing::backdrop { opacity: 0; }
@starting-style {
  .form-guide-dialog[open]::backdrop { opacity: 0; }
}
.form-guide-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 4px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.35);
}
.form-guide-header,
.form-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 2.5vw, 2rem);
  background: var(--white);
}
.form-guide-header { border-bottom: 1px solid var(--line-2); }
.form-guide-heading { min-width: 0; }
.form-guide-heading .kicker { margin-bottom: 0.15rem; }
.form-guide-heading h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.form-guide-heading p:last-child { margin-top: 0.25rem; color: var(--muted); font-size: 0.88rem; }
.form-guide-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 400 1.7rem/1 var(--body);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.form-guide-close:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.form-guide-viewport {
  min-height: 0;
  overflow: auto;
  padding: clamp(0.5rem, 1.4vw, 1rem);
  background: #dfe5df;
}
.form-guide-document { min-height: 100%; background: var(--white); }
.form-guide-document .bcal-guide--enhanced .bcal-hint:hover > .bcal-tip,
.form-guide-document .bcal-guide--enhanced .bcal-hint:focus > .bcal-tip {
  visibility: hidden;
  opacity: 0;
}
.form-guide-loading {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.form-guide-footer { border-top: 1px solid var(--line-2); }
.form-guide-footer p { max-width: 42rem; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.form-guide-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 0.75rem; }
.form-guide-actions .btn { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .form-guide-dialog,
  .form-guide-dialog::backdrop { transition: none; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700;
  color: var(--ink-2); border-bottom: 2px solid var(--green); padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }
.link-arrow--light { color: var(--white); border-color: var(--green-soft); }
.link-arrow--light:hover { color: var(--green-soft); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 247, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 205px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); }
.nav-link {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--ink); border-bottom-color: rgba(77, 184, 72, 0.4); }
.nav-link--active { color: var(--ink); border-bottom-color: var(--green); }

.mobile-menu { display: none; }
.mobile-summary { list-style: none; cursor: pointer; }
.mobile-summary::marker { content: ""; }
.mobile-summary::-webkit-details-marker { display: none; }
.mobile-summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 999px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--white); border: 0; border-radius: 999px;
  padding: 0.6rem 1rem; font-family: inherit; font-size: 0.78rem; font-weight: 600;
  pointer-events: none;
}
.mobile-panel { display: none; }
.mobile-panel-inner { display: flex; flex-direction: column; padding: 0.5rem var(--pad) 1.25rem; gap: 0.15rem; }
.mobile-panel-inner a { padding: 0.7rem 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid rgba(16, 38, 64, 0.08); }
.mobile-panel-inner a.is-current { color: var(--green-dark); }
.mobile-panel-inner .btn { margin-top: 0.6rem; justify-content: center; border-bottom: 0; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(4rem, 7vw, 6rem); }
.section--lg { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section--sm { padding-block: clamp(3.5rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--navy); color: var(--white); }
.section--ink .h2, .section--ink .h3 { color: var(--white); }
.border-top { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--wide { max-width: 720px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(11,26,46,0.97) 0%, rgba(11,26,46,0.9) 40%, rgba(11,26,46,0.55) 68%, rgba(11,26,46,0.25) 100%);
}
.hero-shade--capabilities {
  background: linear-gradient(100deg, rgba(11,26,46,0.96) 0%, rgba(11,26,46,0.86) 45%, rgba(11,26,46,0.5) 100%);
}
.hero-trace { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 190px; opacity: 0.5; }
.hero-trace path { stroke-dasharray: none; stroke-dashoffset: 0; }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4.5rem, 9vh, 7.5rem) clamp(5.5rem, 10vh, 8rem); }
.hero-inner--page { padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6rem); }
.hero-copy { max-width: 720px; }
.hero-copy--wide { max-width: 820px; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--green-soft); }
.hero .lede { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }

/* ---- Stat strip --------------------------------------------------------- */
.stat-strip { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-light); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stat { padding: 1.75rem 1.5rem 1.9rem; border-right: 1px solid var(--line-light); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat-category { font: 600 0.72rem var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--stat-accent); }
.stat-num { margin-top: 0.55rem; font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.15; color: var(--white); }
.stat > p:last-child { margin-top: 0.65rem; font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.82); }

/* ---- Capability cards --------------------------------------------------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.head-row > div { max-width: 640px; }

.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.cap-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem;
  color: var(--ink); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cap-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent, var(--green)); opacity: 0.9; }
.cap-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(16, 38, 64, 0.5); border-color: rgba(16, 38, 64, 0.2); }
.cap-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: color-mix(in srgb, var(--accent, var(--green)) 12%, transparent); margin-bottom: 1.1rem;
}
.cap-icon svg { width: 28px; height: 28px; }
.cap-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.cap-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.cap-more { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; color: #245f46; }

/* ---- Sample band -------------------------------------------------------- */
.sample-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #173863 0%, #0e2038 60%); color: var(--white); }
.sample-glow { position: absolute; top: -40px; right: -40px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(77,184,72,0.22), transparent 70%); }
.sample-inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.step-link { display: flex; gap: 1rem; align-items: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 1.1rem 1.25rem; transition: background 0.2s ease, transform 0.2s ease; }
.step-link:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(4px); }
.step-link .n { font-family: var(--mono); font-size: 0.8rem; color: var(--green-soft); padding-top: 0.15rem; }
.step-link strong { display: block; font-weight: 600; color: var(--white); }
.step-link small { color: rgba(255, 255, 255, 0.65); font-size: 0.86rem; }
.stack { display: grid; gap: 0.7rem; }

/* ---- Split / editorial -------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.photo-card { position: relative; }
.photo-card img { width: 100%; height: clamp(340px, 42vw, 520px); object-fit: cover; border-radius: 18px; }
.photo-badge { position: absolute; left: 1.1rem; bottom: 1.1rem; background: rgba(14, 32, 56, 0.88); backdrop-filter: blur(6px); border-radius: 12px; padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; }
.photo-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(95, 209, 88, 0.25); }
.photo-badge span:last-child { color: var(--white); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; }

.situation-list { display: grid; gap: 0.15rem; }
.situation-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line-2); color: var(--ink); transition: color 0.2s ease; }
.situation-list .situation-row:last-child { border-bottom: 1px solid var(--line-2); }
.situation-row:hover { color: var(--blue); }
.situation-row .mark { width: 8px; height: 8px; margin-top: 0.5rem; transform: rotate(45deg); background: var(--accent, var(--green)); }
.situation-row strong { display: block; font-weight: 600; font-size: 1.05rem; }
.situation-row small { color: var(--muted); font-size: 0.9rem; }

/* ---- Stepper ------------------------------------------------------------ */
.stepper { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.step-card { background: var(--white); border-radius: 16px; padding: 1.5rem 1.4rem; }
.step-card .top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.step-card .num { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #23703a; }
.step-card .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--green), transparent); }
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

.step-card--dark { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.step-card--dark::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent, var(--green)); }
.step-card--dark .num2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--green-soft); }
.step-card--dark h3 { margin: 0.7rem 0 0.5rem; }
.step-card--dark p { color: rgba(255, 255, 255, 0.72); }

/* ---- Quality feature ---------------------------------------------------- */
.qfeature { position: relative; overflow: hidden; }
.qfeature-trace { position: absolute; left: 0; top: 0; width: 100%; height: 120px; opacity: 0.18; pointer-events: none; }
.section.qfeature--trace-clear { padding-top: clamp(7.5rem, 11vw, 10rem); }
.qfeature--trace-clear .qfeature-trace { height: clamp(84px, 8vw, 120px); }
.qcard { background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--accent, var(--green)); border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; }
.qcard strong { display: block; font-weight: 600; margin-bottom: 0.25rem; color: var(--white); }
.qcard small { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; }

/* ---- Phase cards (quality page) ----------------------------------------- */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.phase-card { background: rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 1.6rem; border-top: 3px solid var(--accent, var(--green)); }
.phase-card .top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.phase-card .num { flex: 0 0 auto; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--green-soft); }
.phase-card .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent, var(--green)), transparent); }
.phase-card h3 { margin: 0 0 0.6rem; font-size: 1.12rem; }
.phase-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ---- Info cards --------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.info-card { background: var(--white); border-radius: 16px; padding: 1.6rem; }
.info-card--sage { background: var(--paper); }
.info-card--accent { border-top: 3px solid var(--accent, var(--green)); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.info-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.info-card .list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.info-card .list li { color: var(--slate); font-size: 0.9rem; }

/* ---- Industries --------------------------------------------------------- */
.industry-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; border-top: 3px solid var(--accent, var(--green)); }
.industry-card h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.8rem; background: var(--mist); color: var(--ink-2); padding: 0.35rem 0.7rem; border-radius: 999px; }
.tag--white { background: var(--white); border: 1px solid var(--line-2); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: center; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-brand { min-width: 220px; }
.footer-brand img { width: 210px; height: auto; background: var(--white); padding: 0.6rem 0.8rem; border-radius: 10px; }
.footer-brand .tagline { font-family: var(--display); font-size: 1.05rem; margin-top: 1.1rem; color: var(--green-soft); }
.footer-brand .note { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; line-height: 1.55; margin-top: 0.4rem; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; }
.footer-col a:hover { color: var(--green-soft); }
.footer-col span { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem 2.2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--green-soft); }

/* ---- Anchor nav (samples) ---------------------------------------------- */
.anchor-nav { position: sticky; top: calc(var(--header-h) + 3px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.anchor-nav-inner { display: flex; gap: 1.6rem; overflow-x: auto; }
.anchor-nav a { flex: 0 0 auto; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); padding: 0.9rem 0; }
.anchor-nav a:hover { color: var(--green); }

/* ---- Directory (capabilities) ------------------------------------------ */
.index-band { background: var(--ink); color: var(--white); }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.index-grid a { display: flex; align-items: center; gap: 0.7rem; padding: 1.15rem 1rem; border-bottom: 1px solid var(--line-light); border-right: 1px solid var(--line-light); color: var(--white); transition: background 0.2s ease; }
.index-grid a:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.index-grid svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--green-soft); }
.index-grid span { font-family: var(--display); font-weight: 500; font-size: 0.86rem; line-height: 1.2; }

.dir-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dir-aside { position: sticky; top: calc(var(--header-h) + 22px); background: var(--white); border-top: 4px solid var(--green); border-radius: 0 0 14px 14px; padding: 1.4rem; }
.dir-aside label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.6rem; }
.search-field { display: flex; align-items: center; gap: 0.5rem; border: 1px solid #c3ccc4; border-radius: 10px; padding: 0 0.75rem; background: var(--header-bg); }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(49, 90, 166, 0.2); }
.search-field span { color: var(--blue); font-size: 1.1rem; }
.search-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0.7rem 0; font-family: inherit; font-size: 0.9rem; color: var(--ink); }
.dir-count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); margin-top: 0.8rem; }
.dir-browse-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 0.6rem; }
.dir-nav { display: flex; flex-direction: column; }
.dir-nav a { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; padding: 0.65rem 0; transition: color 0.2s ease, padding-left 0.2s ease; }
.dir-nav a:hover { color: var(--ink); padding-left: 0.3rem; }
.dir-note { color: var(--muted); font-size: 0.8rem; line-height: 1.55; margin-top: 1.3rem; }
.dir-note a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }
.need-browser { display: none; margin-bottom: 2.2rem; }
.js .need-browser { display: block; }
.need-browser .dir-browse-label { margin-top: 0; }
.need-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.need-filters button { min-height: 44px; border: 1px solid #9daaa2; border-radius: 999px; background: var(--white); color: var(--ink-2); padding: 0.65rem 1rem; font: 600 0.84rem var(--body); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.need-filters button:hover { border-color: var(--green-dark); color: var(--green-dark); }
.need-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.need-guidance { color: var(--muted); font-size: 0.86rem; margin-top: 0.8rem; }
.need-guidance a { font-weight: 700; text-decoration: underline; text-underline-offset: 0.16em; }

.legacy-anchor { display: block; block-size: 1px; margin-block-end: -1px; opacity: 0; pointer-events: none; scroll-margin-top: calc(var(--header-h) + 22px); }
.service-group { scroll-margin-top: calc(var(--header-h) + 22px); border-top: 1px solid var(--line-2); padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.service-group:first-of-type { border-top: 0; padding-top: 0; }
.service-group > header { max-width: 780px; margin-bottom: 1.6rem; }
.service-group .type { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #245f46; margin-bottom: 0.6rem; }
.service-group h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -0.016em; margin-bottom: 0.6rem; }
.service-group > header p { color: var(--muted); line-height: 1.6; }
.clusters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2.4rem; }
.cluster { border-top: 2px solid var(--accent, var(--green)); padding-top: 0.9rem; }
.cluster h3 { font-size: 0.98rem; line-height: 1.25; margin-bottom: 0.75rem; }
.cluster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.cluster li { color: var(--slate); font-size: 0.9rem; line-height: 1.45; padding-left: 0.9rem; position: relative; }
.cluster li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 5px; height: 5px; background: var(--accent, var(--green)); }

.dir-empty { display: none; text-align: center; padding: 4rem 0; }
.dir-empty.is-visible { display: block; }
.dir-empty .glyph { color: var(--green-dark); font-size: 2rem; }
.dir-empty h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0.6rem 0 0.5rem; }
.dir-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 1.4rem; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.25rem; }
.empty-actions a, .link-button { color: var(--blue-dark); font: 700 0.9rem var(--body); text-decoration: underline; text-underline-offset: 0.18em; }
.link-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.dir-cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 1.6rem 0; margin-top: 1.5rem; }
.dir-cta p { color: var(--muted); font-size: 0.94rem; max-width: 520px; }

/* ---- Turnaround (samples) ---------------------------------------------- */
.turn-card { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center; background: var(--white); border-radius: 16px; padding: 1.6rem; }
.turn-num { font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--accent, var(--green)); }
.turn-num small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.turn-card .type { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--green-dark)); margin-bottom: 0.35rem; }
.turn-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.turn-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* ---- Before-sending / callouts ------------------------------------------ */
.callout { background: var(--paper); border-radius: 16px; padding: 1.8rem; border-left: 3px solid var(--green); }
.check-list { display: grid; gap: 0.9rem; }
.check-list .row { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.check-list .mark { width: 7px; height: 7px; transform: rotate(45deg); margin-top: 0.5rem; background: var(--accent, var(--green)); }
.check-list span:last-child { color: var(--slate); font-size: 0.94rem; }
.inline-note { display: flex; gap: 1rem; align-items: center; background: var(--white); border-radius: 14px; padding: 1.1rem 1.4rem; border-left: 3px solid var(--green); }
.inline-note strong { font-family: var(--display); font-weight: 600; }
.inline-note span:last-child { color: var(--muted); font-size: 0.92rem; }

/* ---- Founders (about) --------------------------------------------------- */
.founder-card { background: var(--white); border-radius: 18px; padding: 2rem; border-top: 4px solid var(--accent, var(--green)); }
.founder-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.founder-avatar { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--accent, var(--green)) 12%, transparent); font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--accent-dark, var(--green-dark)); }
.founder-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark, var(--green-dark)); }
.founder-card h3 { font-size: 1.4rem; margin-top: 0.2rem; }
.founder-card > p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.value-col { border-left: 3px solid var(--accent, var(--green)); padding-left: 1.2rem; }
.value-col h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-col p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ---- Contact routes ----------------------------------------------------- */
.route-card { display: flex; flex-direction: column; background: var(--white); border-radius: 18px; padding: 1.8rem; border-top: 3px solid var(--accent, var(--green)); }
.route-card--wide { grid-column: 1 / -1; }
.route-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.6rem; }
.route-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; flex: 1; }
.route-card .contacts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.2rem; align-items: center; }
.route-card .contacts a.primary { font-weight: 700; border-bottom: 2px solid var(--green); padding-bottom: 0.15rem; }
.route-card .contacts a.muted { color: var(--muted); font-size: 0.9rem; }
.contact-phone { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); }
.contact-phone:hover { color: var(--green-soft); }

.ops-card { border-radius: 18px; padding: 2rem; }
.ops-card--dark { background: var(--navy); color: var(--white); }
.ops-card--dark address { color: rgba(255, 255, 255, 0.85); line-height: 1.6; }
.ops-card--dark .note { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; line-height: 1.6; margin-top: 1.3rem; }
.ops-card--light { background: var(--white); border-top: 4px solid var(--green); display: flex; flex-direction: column; }
.ops-card--light p { color: var(--muted); line-height: 1.6; flex: 1; }
.ops-card h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: 1rem; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

/* ---- Accreditation (quality) ------------------------------------------- */
.accred { border-left: 4px solid var(--green); padding-left: clamp(1.3rem, 3vw, 2.2rem); }
.accred > p:first-child { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; letter-spacing: -0.01em; }
.accred .sub { color: var(--muted); line-height: 1.65; margin-top: 1.1rem; }
.accred .btn { max-width: 100%; white-space: normal; text-align: center; }

/* ---- Legal (privacy) ---------------------------------------------------- */
.legal { max-width: 820px; margin-inline: auto; display: grid; gap: 2rem; }
.legal > p.intro { color: var(--muted); line-height: 1.7; }
.legal-block { border-left: 3px solid var(--accent, var(--green)); padding-left: 1.4rem; }
.legal-block h2 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.6rem; }
.legal-block p { color: var(--muted); line-height: 1.7; }
.legal-block a { font-weight: 600; }

/* ---- Editorial copy (about/samples) ------------------------------------ */
.editorial { color: var(--slate); font-size: 1.02rem; line-height: 1.8; display: grid; gap: 1.2rem; }
.rule-top { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.rule-top h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.rule-top p { color: var(--muted); line-height: 1.65; }

/* ---- Progressive motion ------------------------------------------------ */
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal-ready .reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- 404 ---------------------------------------------------------------- */
.errpage { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.errpage-trace { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; opacity: 0.4; }
.errpage-inner { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; position: relative; z-index: 1; text-align: center; }
.errpage-inner > div { max-width: 560px; }
.errpage img { width: 220px; height: auto; margin: 0 auto 2rem; background: var(--white); padding: 0.7rem 1rem; border-radius: 12px; }
.errpage h1 { margin-bottom: 1rem; }
.errpage p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; line-height: 1.65; margin-bottom: 2rem; }
.errpage .hero-actions { justify-content: center; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu[open] > .mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: block;
    max-height: calc(100dvh - var(--header-h) - 3px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 860px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-aside { position: static; }
}

/* ---- Site refinement --------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--compact { padding-top: 0; }
.continuous-content { background: var(--white); }
.continuous-content > .section { background: transparent; }
.continuous-content > .section + .section { border-top: 1px solid var(--line); }
.section-intro { margin-top: 1rem; max-width: 620px; }

.hero--home .hero-media img { object-position: 68% center; }
.hero--secondary { min-block-size: 390px; display: grid; }
.hero--secondary .hero-media { z-index: 0; }
.hero--secondary .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero--secondary .hero-shade { z-index: 1; background: linear-gradient(96deg, rgba(11,26,46,0.98) 0%, rgba(11,26,46,0.92) 43%, rgba(11,26,46,0.58) 70%, rgba(11,26,46,0.34) 100%); }
.hero--secondary .hero-inner { width: 100%; min-block-size: inherit; display: flex; align-items: center; padding-block: 2.5rem; }
.hero--secondary .hero-copy { max-width: 720px; }
.hero--capabilities .hero-media img { object-position: 74% center; }
.hero--quality .hero-media img { object-position: 74% center; }
.hero--samples .hero-media img { object-position: 76% center; }
.hero--about .hero-media img { object-position: 69% center; }
.hero--contact .hero-media img { object-position: 74% center; }
.hero--faq .hero-media img { object-position: 74% center; }
.hero--solid { background: var(--navy); }
.hero--compact .hero-inner { padding-block: clamp(2.8rem, 5vw, 4.2rem); }
.error-hero .hero-inner { min-height: 52vh; display: flex; align-items: center; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; margin-top: 1.6rem; }
.hero-contact a { color: var(--white); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green-soft); text-underline-offset: 0.25em; }

.stat { position: relative; border-top: 5px solid var(--stat-accent, var(--green)); }
.stat--green { --stat-accent: #7fd97a; }
.stat--teal { --stat-accent: #70d5b3; }
.stat--blue { --stat-accent: #8ab8ee; }
.stat--navy { --stat-accent: #b2c6ed; }
.section--sage .section-head > .kicker { color: #245f35; }

.discipline-icon {
  --icon-src: var(--icon-light);
  display: inline-block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--icon-src) center / contain no-repeat;
}
.discipline-icon--chemistry { --icon-light: url("assets/icons/capabilities/chemistry-light.svg"); --icon-dark: url("assets/icons/capabilities/chemistry-dark.svg"); }
.discipline-icon--microbiology { --icon-light: url("assets/icons/capabilities/microbiology-light.svg"); --icon-dark: url("assets/icons/capabilities/microbiology-dark.svg"); }
.discipline-icon--molecular { --icon-light: url("assets/icons/capabilities/molecular-light.svg"); --icon-dark: url("assets/icons/capabilities/molecular-dark.svg"); }
.discipline-icon--stability { --icon-light: url("assets/icons/capabilities/stability-light.svg"); --icon-dark: url("assets/icons/capabilities/stability-dark.svg"); }
.discipline-icon--custom-rd { --icon-light: url("assets/icons/capabilities/custom-lab-rd-light.svg"); --icon-dark: url("assets/icons/capabilities/custom-lab-rd-dark.svg"); }
.discipline-icon--development { --icon-light: url("assets/icons/capabilities/product-development-light.svg"); --icon-dark: url("assets/icons/capabilities/product-development-dark.svg"); }
.cap-icon.discipline-icon { margin-bottom: 1.1rem; }
.cap-more { text-transform: none; letter-spacing: 0.02em; }
.industry-card { display: flex; flex-direction: column; color: var(--ink); transition: transform 0.2s ease, border-color 0.2s ease; }
.industry-card:hover { color: var(--ink); transform: translateY(-4px); border-color: rgba(16,38,64,0.25); }
.industry-card .cap-more { margin-top: auto; padding-top: 1.25rem; }

.index-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.index-grid a { min-height: 148px; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; color: var(--white); text-align: center; padding: 1.35rem 1rem; }
.index-grid a:nth-child(6n) { border-right: 0; }
.index-grid a:hover { background: rgba(255,255,255,0.1); }
.index-grid .discipline-icon { --icon-src: var(--icon-dark); }
.index-grid a > span:last-child { max-width: 150px; font-size: 0.9rem; line-height: 1.3; }
.search-clear { border: 0; background: transparent; color: var(--blue-dark); font: 600 0.74rem var(--body); text-decoration: underline; text-underline-offset: 0.16em; padding: 0.55rem 0; cursor: pointer; }
.info-card p a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.16em; }
.dir-cta { padding-block: 2rem; }
.dir-cta h2 { margin-bottom: 0.4rem; }

/* ---- Frequently asked questions --------------------------------------- */
.faq-wrap { width: min(900px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.faq-intro { padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.faq-intro .lede { max-width: 820px; }
.faq-contact-link { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.faq-index { display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.faq-index a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.faq-groups { padding-block: 0 clamp(4rem, 7vw, 6rem); }
.faq-group { --faq-accent: var(--green); scroll-margin-top: calc(var(--header-h) + 24px); padding-top: clamp(2.75rem, 5vw, 4rem); }
.faq-group:nth-child(2) { --faq-accent: var(--teal); }
.faq-group:nth-child(3) { --faq-accent: var(--blue); }
.faq-group:first-child { padding-top: clamp(2rem, 3vw, 2.75rem); }
.faq-group + .faq-group { margin-top: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line-2); }
.faq-group > .h2 { margin-bottom: 1.5rem; }
.faq-group details {
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--faq-accent);
  border-radius: 3px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-group details + details { margin-top: 0.75rem; }
.faq-group details[open] {
  border-color: var(--line);
  border-left-color: var(--faq-accent);
  box-shadow: 0 14px 32px -24px rgba(16, 38, 64, 0.52);
}
.faq-group summary {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 1.05rem 3.5rem 1.05rem 1.25rem;
  color: var(--ink);
  font: 600 1.02rem/1.4 var(--display);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary:hover { color: var(--blue-dark); }
.faq-group summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; width: 1.75rem; transform: translateY(-50%); color: var(--faq-accent); font: 600 1.5rem/1 var(--display); text-align: center; }
.faq-group details[open] summary { color: var(--blue-dark); background: color-mix(in srgb, var(--faq-accent) 7%, var(--white)); }
.faq-group details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 3.5rem 1.3rem 1.25rem; }
.faq-answer p { color: var(--slate); line-height: 1.7; }
.faq-answer a { font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }

.phase-card { background: rgba(255,255,255,0.08); }
.phase-card p { color: rgba(255,255,255,0.82); }
.accreditation-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.accreditation-summary .lede { margin-top: 1.1rem; max-width: 460px; }
.accreditation-facts { margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.accreditation-facts div { display: grid; grid-template-columns: 118px 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-2); }
.accreditation-facts dt { font: 600 0.74rem var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-dark); }
.accreditation-facts dd { margin: 0; color: var(--slate); font-weight: 600; }
.accreditation-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.accreditation-statement { margin-top: 0.2rem; }
.accreditation-support-label {
  margin-top: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-dark);
  font: 700 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
}
.accreditation-support { margin-top: 0.65rem; border-top: 1px solid var(--line-2); }
.accreditation-support > div { padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
.accreditation-support h3 { font: 600 1rem/1.35 var(--display); color: var(--navy); }
.accreditation-support p { margin-top: 0.25rem; color: var(--slate); line-height: 1.6; }
.cluster li[data-methods]::after {
  content: attr(data-methods);
  display: inline-flex;
  margin-left: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent, var(--green-dark)) 35%, var(--line));
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  color: var(--blue-dark);
  background: var(--white);
  font: 600 0.68rem/1.35 var(--mono);
  letter-spacing: 0.02em;
  vertical-align: 0.08em;
}

.editorial-layout { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.submission-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.submission-list li { position: relative; padding: 0.9rem 0 0.9rem 1.5rem; border-bottom: 1px solid var(--line-2); color: var(--slate); }
.submission-list li::before { content: ""; position: absolute; left: 0.15rem; top: 1.35rem; width: 7px; height: 7px; transform: rotate(45deg); background: var(--green-dark); }
.editorial-note { margin-top: 1.2rem; color: var(--muted); }
.checklist-action { margin-top: 1.2rem; }
.readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.readiness-item { border-top: 3px solid var(--green); background: var(--paper); border-radius: 0 0 12px 12px; padding: 1.45rem; }
.readiness-item:nth-child(2) { border-top-color: var(--teal); }
.readiness-item:nth-child(3) { border-top-color: var(--blue); }
.readiness-item h3 { font-family: var(--display); font-size: 1.08rem; margin-bottom: 0.55rem; }
.readiness-item p { color: var(--muted); line-height: 1.65; }
.sample-package-zone { background: var(--sage); }
.sample-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sample-package-zone .step-card { border: 1px solid var(--line); }
.delivery-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; margin-top: 1rem; }
.address-block { background: var(--paper); padding: 1.5rem; border-left: 3px solid var(--green); line-height: 1.65; }
.text-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 1rem; }
.text-actions a { font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.operational-warning { display: flex; align-items: center; background: var(--navy); color: var(--white); padding: 1.5rem; border-radius: 14px; }
.timing-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.timing-results-item { scroll-margin-top: calc(var(--header-h) + 72px); border-top: 3px solid var(--green); padding-top: 1.25rem; }
.timing-results-item:last-child { border-top-color: var(--blue); }
.timing-results-item .h2 { margin-bottom: 1.3rem; }

.split--media { grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); }
.photo-card--plain img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.founder-section { background: var(--paper) !important; }
.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.founder-card { border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--green)); padding: clamp(2rem, 4vw, 2.7rem); }
.founder-card .founder-role { color: var(--ink-2); margin-bottom: 0.4rem; }
.founder-card h3 + p { margin-top: 1.25rem; }
.founder-card > p + p { margin-top: 1rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.value-grid--light .value-col { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 1.4rem; }
.value-grid--light .value-col p { color: var(--muted); }

.contact-primary { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.project-contact { background: var(--paper); border-left: 4px solid var(--green); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 0.8rem; }
.project-contact .contact-link { width: max-content; max-width: 100%; font: 600 clamp(1.1rem, 2.2vw, 1.5rem) var(--display); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.project-contact p { color: var(--muted); margin-top: 0.5rem; }
.route-grid { display: grid; gap: 1rem; }
.route-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.location-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.footer-brand img { width: 230px; height: auto; background: transparent; padding: 0; border-radius: 0; }
.footer-brand .note, .footer-col span, .footer-bottom { color: rgba(255,255,255,0.78); }
.footer-col a, .footer-bottom a { color: rgba(255,255,255,0.88); text-decoration: underline; text-decoration-color: rgba(127,217,122,0.55); text-underline-offset: 0.18em; }

@media (max-width: 1099px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-grid a { border-right: 1px solid var(--line-light); }
  .index-grid a:nth-child(3n) { border-right: 0; }
  .index-grid .discipline-icon { width: 44px; height: 44px; }
}
@media (max-width: 900px) {
  .split--media, .editorial-layout, .contact-primary { grid-template-columns: 1fr; }
  .split--media .photo-card { order: -1; }
  .founder-grid, .location-docs, .accreditation-grid { grid-template-columns: 1fr; }
  .hero--secondary { min-block-size: 360px; }
}
@media (max-width: 700px) {
  :root { --header-h: 68px; }
  .brand img { width: 170px; }
  .hero-inner, .hero-inner--page { padding-block: 3.6rem 4.4rem; }
  .hero--home .hero-media img { object-position: 67% center; }
  .hero--secondary { min-block-size: 320px; }
  .hero--secondary .hero-inner { padding-block: 2.6rem; }
  .hero--capabilities .hero-media img { object-position: 76% center; }
  .hero--quality .hero-media img { object-position: 78% center; }
  .hero--samples .hero-media img { object-position: 76% center; }
  .hero--about .hero-media img { object-position: 67% center; }
  .hero--contact .hero-media img { object-position: 72% center; }
  .hero--faq .hero-media img { object-position: 72% center; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-grid a { min-height: 138px; }
  .index-grid a:nth-child(n) { border-right: 1px solid var(--line-light); }
  .index-grid a:nth-child(2n) { border-right: 0; }
  .index-grid .discipline-icon { width: 42px; height: 42px; }
  .cap-icon.discipline-icon { width: 44px; height: 44px; }
  .sample-steps, .delivery-row, .value-grid, .route-grid--two, .readiness-grid, .timing-results-grid { grid-template-columns: 1fr; }
  .accreditation-facts div { grid-template-columns: 1fr; gap: 0.2rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child, .stat:last-child { padding: 1.25rem 1rem; }
  .cap-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .need-filters { display: grid; grid-template-columns: 1fr; }
  .need-filters button { border-radius: 10px; text-align: left; }
  .faq-index { display: grid; gap: 0.8rem; }
  .faq-group summary { padding-inline: 0.85rem 3rem; }
  .faq-group summary::after { right: 0.65rem; }
  .faq-answer { padding-inline: 0.85rem 3rem; }
  .form-guide-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    height: calc(100dvh - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
  }
  .form-guide-modal {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .form-guide-header, .form-guide-footer { padding: 0.8rem 0.9rem; }
  .form-guide-viewport { min-height: auto; overflow: visible; }
  .form-guide-heading p:last-child, .form-guide-footer p, .form-guide-actions .btn--outline { display: none; }
  .form-guide-footer { justify-content: flex-end; }
  .form-guide-actions, .form-guide-actions .btn--primary { width: 100%; }
  .form-guide-actions .btn--primary { justify-content: center; }
}
@media (max-width: 340px) and (max-height: 600px) {
  .hero--home .hero-inner { padding: 1rem 1rem 2.5rem; }
  .hero--home .kicker { margin-bottom: 0.5rem; }
  .hero--home h1 { margin-bottom: 0.9rem; font-size: 2rem; line-height: 1.03; }
  .hero--home .lede { font-size: 0.95rem; line-height: 1.45; }
  .hero--home .hero-actions { margin-top: 1rem; }
}
