/* ============================================================
   VDx — Validity Diagnostics
   Design system after AxiomThemes "Lab / Laboratory Analysis"
   Layers: tokens > base > layout > header/footer > components >
           page-specific > utilities > responsive
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #090116;
  --body: #626263;
  --muted: #727174;
  --border: #dedde0;
  --bg: #ffffff;
  --bg-alt: #f7f6f9;
  /* Accent is split by scheme so small text clears WCAG AA on both grounds:
     the reference blue #0984e3 only reaches 3.87:1 on white, but 5.2:1 on the
     dark ground, so light sections take a darkened variant and .section--dark
     restores the brighter one below. */
  --accent: #0a6cbe;
  --accent-hover: #08589b;
  --accent-bright: #0984e3;
  /* Button fill is deliberately not remapped by .section--dark: the label sits
     on the fill, not on the section, so it needs the darker blue everywhere. */
  --btn-bg: #0a6cbe;
  --btn-bg-hover: #08589b;
  /* Ghosted step numerals: light enough to recede, dark enough to clear the
     3:1 large-text threshold (the border grey they used to be was 1.35:1). */
  --ghost-num: #949395;
  --dark-1: #0c021e;
  --dark-2: #0f0326;
  --dark-3: #010003;
  --dark-border: #1c1d3c;
  --dark-text: #bdbac2;
  --dark-heading: #f8f7f9;

  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --content: 1290px;
  --gap: 30px;
  --radius: 0;

  --sp-1: 20px;
  --sp-2: 40px;
  --sp-3: 70px;
  --sp-4: 100px;
  --sp-5: 140px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1, .h1 { font-size: 3.353em; line-height: 1.05; }
h2, .h2 { font-size: 2.765em; }
h3, .h3 { font-size: 2.059em; }
h4, .h4 { font-size: 1.647em; }
h5, .h5 { font-size: 1.412em; }
h6, .h6 { font-size: 1.118em; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }

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

ul { padding-left: 1.2em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Layout primitives ---------- */
.container {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.section { padding-block: var(--sp-4); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: var(--sp-3); }

.section--dark {
  background: var(--dark-1);
  --ink: var(--dark-heading);
  --body: var(--dark-text);
  --muted: var(--dark-text);
  --border: var(--dark-border);
  --accent: var(--accent-bright);
  --accent-hover: #3a9dea;
  color: var(--dark-text);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--dark-heading); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--gap) * 2);
  align-items: center;
}
.split__media img { width: 100%; object-fit: cover; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 15px 34px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--outline-hero { border-radius: 5px; }

.text-link {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- 5. Section title pattern ---------- */
.uppercase-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title { max-width: 760px; margin-bottom: var(--sp-2); }
.section-title--center { margin-inline: auto; text-align: center; }

/* ---------- 6. Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
}
.topbar {
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 8px;
}
.topbar__tagline { color: var(--muted); }
.topbar__contact a { color: var(--ink); font-weight: 500; }
.topbar__contact a:hover { color: var(--accent); }

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-block: 14px;
}
.navbar__logo img { width: 150px; height: auto; }
.navbar__nav { margin-left: auto; }
.navbar__nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.navbar__nav li { position: relative; }
.navbar__nav a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.navbar__nav a:hover, .navbar__nav a.is-active { color: var(--accent); }

.caret {
  display: inline-block; margin-left: 6px;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}
.submenu {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--dark-1);
  padding: 10px 0 !important;
  list-style: none;
  display: none !important;
  flex-direction: column;
  gap: 0 !important;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: flex !important; }
.submenu a { color: var(--dark-text); padding: 9px 22px; font-size: 14px; }
.submenu a:hover { color: #fff; }

.navbar__cta { padding: 12px 24px; }

.burger {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
}

/* stuck state */
.site-header.is-stuck {
  position: fixed;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(9, 1, 22, 0.06);
  animation: headerDrop 0.3s ease;
}
.site-header.is-stuck .topbar { display: none; }
@keyframes headerDrop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* mobile panel */
.panel-overlay {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(9, 1, 22, 0.55);
}
.mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(360px, 88vw);
  background: var(--dark-1);
  color: var(--dark-text);
  padding: 70px 34px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel ul { list-style: none; margin: 0 0 26px; padding: 0; }
.mobile-panel a {
  display: block;
  padding: 11px 0;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--dark-heading);
  border-bottom: 1px solid var(--dark-border);
}
.mobile-panel__sub a { font-size: 15px; padding-left: 18px; color: var(--dark-text); }
.mobile-panel a:hover { color: var(--accent); }
.mobile-panel__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: 0; color: var(--dark-heading);
  font-size: 34px; line-height: 1; cursor: pointer;
}
.mobile-panel__contact { margin-top: 26px; font-size: 15px; }
.mobile-panel__contact a { display: inline; border: 0; padding: 0; font-size: inherit; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 170px;
  padding-bottom: var(--sp-3);
  background: var(--bg-alt);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247, 246, 249, 0.9) 0%, rgba(247, 246, 249, 0.25) 45%, rgba(247, 246, 249, 0.85) 100%);
}
.hero__inner { position: relative; width: 100%; }
.hero__display {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(44px, 13vw, 196px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 30px;
}
.hero__display .ch {
  display: inline-block;
  transform: translateY(110%) rotate(-3deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.hero__display.is-in .ch { transform: none; opacity: 1; }
.hero__display .word { display: inline-block; white-space: nowrap; }
/* A multi-word statement headline rather than the single display word. */
.hero__display--statement {
  font-size: clamp(40px, 6vw, 100px);
  line-height: 1.02;
  white-space: normal;
  max-width: 20ch;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
}
.hero__tagline { font-size: 22px; max-width: 560px; color: var(--ink); }
.hero__tagline strong { color: var(--accent); }

/* interior page hero */
.page-hero {
  background: var(--bg-alt);
  padding-top: 210px;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.page-hero--img {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero--img::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(247, 246, 249, 0.82);
}
.page-hero .container { position: relative; }
.page-hero .breadcrumb {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero p.lede { font-size: 19px; max-width: 720px; }

/* ---------- 8. Components ---------- */
/* numbered photo cards */
.num-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: inherit;
}
.num-card__media { overflow: hidden; aspect-ratio: 4 / 3; }
.num-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.num-card:hover .num-card__media img { transform: scale(1.05); }
.num-card__body { padding: 26px 26px 30px; }
.num-card__num {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 600;
  color: var(--ghost-num);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.num-card:hover .num-card__num { color: var(--accent); }
.num-card h3 { margin-bottom: 8px; }
.num-card p { font-size: 15px; margin: 0; color: var(--body); }

/* counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.counters--3 { grid-template-columns: repeat(3, 1fr); }
.counter {
  padding: 10px 30px;
  border-left: 1px solid var(--border);
}
.counter:first-child { border-left: 0; padding-left: 0; }
.counter__label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.counter__value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 1;
  color: var(--ink);
}
.counter__value small {
  font-size: 0.45em;
  color: var(--accent);
  font-weight: 600;
}
.counter__note { display: block; font-size: 14px; color: var(--body); margin-top: 8px; }

/* icon boxes */
.icon-box { padding-right: 10px; }
.icon-box__icon {
  width: 54px; height: 54px;
  margin-bottom: 20px;
  color: var(--accent);
}
.icon-box__icon svg { width: 100%; height: 100%; }
.icon-box h3 { margin-bottom: 10px; }
.icon-box p { font-size: 15px; }

/* accordion */
.accordion details {
  border-bottom: 1px solid var(--border);
}
.accordion details:first-child { border-top: 1px solid var(--border); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-size: 1.412em;
  font-weight: 500;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 26px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 40px 24px 0; }

/* marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--border);
  padding-block: 18px;
  background: var(--bg);
}
.marquee__track {
  display: inline-block;
  /* Long study names in the ticker: keep it slow enough to read. */
  animation: marquee 140s linear infinite;
}
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 24px;
}
.marquee__track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* testimonials */
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.testimonial blockquote { margin: 0 0 22px; font-size: 15.5px; }
.testimonial cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
}
.testimonial cite span { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); }

/* CTA band */
.cta-band { padding-block: var(--sp-3); }
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--gap) * 2);
}
.cta-band h2 { margin-bottom: 10px; max-width: 640px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.cta-band__phone {
  font-family: var(--font-head);
  font-size: 1.6em;
  font-weight: 600;
  color: var(--dark-heading);
  white-space: nowrap;
}
.cta-band__phone:hover { color: var(--accent); }

/* product catalog */
.product-line { padding-block: var(--sp-2); }
.line-header {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  max-width: 860px;
  margin-bottom: var(--sp-1);
}
.line-num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 600;
  color: var(--ghost-num);
  line-height: 1;
}
.line-header p { color: var(--body); margin: 0; }

.product-card {
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.product-card__media {
  background: var(--bg-alt);
  display: block;
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 7;
  /* Staged bench photographs, full-bleed (tools/stage-products.py). */
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__kind {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-card h3 { font-family: var(--font-body); font-weight: 500; font-size: 15.5px; line-height: 1.45; }
.product-card__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sku {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.product-card__foot .text-link { font-size: 12.5px; white-space: nowrap; }

/* team */
.team-card { text-align: left; }
.team-card img {
  width: 100%;
  aspect-ratio: 5 / 5.6;
  object-fit: cover;
  filter: none;
  margin-bottom: 18px;
  background: var(--bg-alt);
}
.team-card h3 { margin-bottom: 2px; }
.team-card p { color: var(--muted); font-size: 14.5px; }

/* resources */
.resource-card {
  border: 1px solid var(--border);
  padding: 34px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resource-card__type {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.resource-card p { font-size: 15px; }
.resource-card .text-link { margin-top: auto; }

/* forms */
.form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gap); }
.form label {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form input, .form textarea, .form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .form-row--full { grid-column: 1 / -1; }
.form .btn { margin-top: 26px; }
.form .hp { position: absolute; left: -9999px; }

/* quote SKU table */
.quote-line { border: 1px solid var(--border); padding: 24px 26px 18px; margin-bottom: 26px; }
.quote-line legend {
  font-family: var(--font-head);
  font-size: 1.15em;
  font-weight: 500;
  color: var(--ink);
  padding-inline: 10px;
}
.quote-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.quote-row:last-child { border-bottom: 0; }
.quote-row label { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 14.5px; color: var(--body); }
.quote-row label .sku { color: var(--ink); font-weight: 500; margin-right: 8px; }
.quote-row input { width: 84px; text-align: center; padding: 8px; }
.quote-row.is-highlight { background: #eaf4fd; outline: 2px solid var(--accent); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 34px;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 18px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* stat contrast block (2 vs 18) */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); }
.versus__col { padding: 44px 40px; }
.versus__col + .versus__col { border-left: 1px solid var(--border); }
.versus__col--win { background: var(--bg-alt); }
.versus__big {
  font-family: var(--font-head);
  font-size: 5em;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
.versus__col--win .versus__big { color: var(--accent); }
.versus__col h3 { margin-top: 12px; }
.versus__col p { font-size: 15px; margin: 0; }

/* memorial */
.memorial-card { display: grid; grid-template-columns: 300px 1fr; gap: calc(var(--gap) * 1.5); align-items: start; }
.memorial-card img { width: 100%; }
.memorial-card .dates { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* ---------- 9. Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__display .ch { transform: none; opacity: 1; transition: none; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1320px) {
  :root { --content: 100%; }
}

@media (max-width: 991px) {
  h1, .h1 { font-size: 2.6em; }
  h2, .h2 { font-size: 2.1em; }
  .navbar__nav, .navbar__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: var(--sp-2); }
  .counters { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .counter:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .topbar__tagline { display: none; }
  .memorial-card { grid-template-columns: 1fr; }
  .memorial-card img { max-width: 340px; }
  .section { padding-block: var(--sp-3); }
  .page-hero { padding-top: 150px; }
  .hero { min-height: 70vh; padding-top: 140px; }
}

@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .versus__col + .versus__col { border-left: 0; border-top: 1px solid var(--border); }
  .counters { grid-template-columns: 1fr 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .quote-row { flex-wrap: wrap; }
  .footer-newsletter { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: 2.1em; }
  .footer-cols { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .counter { border-left: 0; padding-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); padding-top: var(--sp-3); }
.footer-newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: calc(var(--gap) * 2);
  align-items: center;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--dark-border);
}
.footer-newsletter h2 { margin: 0; }
.newsletter-form { display: flex; gap: 12px; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--dark-heading);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter-form input::placeholder { color: var(--dark-text); opacity: 0.7; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form .btn { padding: 13px 24px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding-block: var(--sp-2);
}
.footer-col h3 { color: var(--dark-heading); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 5px 0; font-size: 14.5px; }
.footer-col a { color: var(--dark-text); }
.footer-col a:hover { color: #fff; }
.footer-col--brand img { margin-bottom: 18px; }
/* the brand PNG is dark-on-white; knock it out to white for the dark footer */
.footer-logo { width: 170px; height: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-col--brand p { font-size: 14.5px; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--dark-border);
  font-size: 13.5px;
}
.footer-legal a { color: var(--dark-text); }
.footer-legal a:hover { color: #fff; }

/* "VDx" keeps its brand casing inside uppercase buttons and links. */
.brand-case { text-transform: none; }

/* Interior hero with a large scene beside the copy (Solution page). Kept on the light
   page ground so the transparent header above it stays legible. */
.page-hero--split { padding-bottom: var(--sp-3); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: calc(var(--gap) * 2);
  align-items: center;
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 100% 60%;
  box-shadow: 0 24px 60px rgba(9, 1, 22, 0.18);
}
@media (max-width: 991px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* Product name above a message headline on a numbered card. */
.num-card__product {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Cards whose imagery is wide (product line-ups, flat-lays): 16:9 frames. */
.grid--wide-media .num-card__media { aspect-ratio: 16 / 9; }

/* Header labels never wrap; between the burger breakpoint and full desktop the bar
   tightens instead (the "Talk with VDx" CTA is longer than the old label). */
.navbar__nav a, .navbar__cta { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1240px) {
  .navbar__inner { gap: 16px; }
  .navbar__logo img { width: 124px; }
  .navbar__nav ul { gap: 0; }
  .navbar__nav a { padding: 10px 8px; font-size: 14px; }
  .navbar__cta { padding: 11px 16px; letter-spacing: 1px; }
}

.counter__source { margin-top: 22px; font-size: 13px; color: var(--body); opacity: .8; }

/* Studies page: institution strip, one row per published study */
.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px var(--gap); align-items: start; }
.logo-strip li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); }
.logo-strip img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.study { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: var(--gap); align-items: start; padding: 34px 0; border-top: 1px solid var(--border); }
.study__plate { margin: 0; }
.study__plate img { width: 100%; height: auto; border: 1px solid var(--border); background: var(--bg); }
.study__plate figcaption { margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.study__body h3 { margin-bottom: 6px; }
.study__title { font-family: var(--font-head); font-size: 1.15em; color: var(--ink); margin-bottom: 8px; }
.study__who, .study__venue { font-size: 14px; margin-bottom: 6px; }
.study__venue { text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; color: var(--muted); }
.study__weight { font-size: 13px; color: var(--muted); margin-left: 8px; }
.study-notes { max-width: 820px; margin-inline: auto; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .study { grid-template-columns: 1fr; }
  .study__plate { max-width: 220px; }
}
