/* ================================================================
   Diagnostic Solutions Group
   Dark, premium, mission-driven. Fraunces serif + Inter sans.
   ================================================================ */

:root {
  /* Surface */
  --bg-0: #07090f;
  --bg-1: #0b0f18;
  --bg-2: #131a26;
  --bg-3: #1a2332;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.16);

  /* Ink */
  --ink-0: #f4f6fa;
  --ink-1: #d6dbe5;
  --ink-2: #98a1b3;
  --ink-3: #5d6678;

  /* Brand — DSG palette */
  --brand-blue: #6d91c7;        /* logo blue */
  --brand-blue-hot: #92b1dc;    /* lighter version for hover/glow */
  --brand-blue-deep: #4a6c9e;   /* deeper version for shadows */
  --brand-red: #e63946;          /* "Our 30th Year" red, used sparingly as signal */

  --accent: var(--brand-blue);
  --accent-hot: var(--brand-blue-hot);
  --accent-glow: rgba(109, 145, 199, 0.35);
  --accent-soft: rgba(109, 145, 199, 0.08);

  /* Signal */
  --signal: var(--brand-red);

  /* Geometry */
  --max: 1240px;
  --max-narrow: 760px;
  --pad-y: clamp(80px, 12vw, 160px);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hot); }

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

/* ----------------------- Layout ----------------------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--max-narrow); }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ----------------------- Type ----------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "opsz" 144;
  color: var(--ink-0);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-0);
  margin-bottom: 10px;
  line-height: 1.3;
}

p { margin: 0 0 16px; color: var(--ink-1); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 64px;
}

.section-lede {
  font-size: 1.18rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 8px;
}

/* ----------------------- Header ----------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.65);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 15, 0.92);
  border-bottom-color: var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-0);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.brand:hover { color: var(--ink-0); }

.brand {
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 36px;
  background-image: url("/img/brand/dsg-mark-transparent-2x.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  aspect-ratio: 1173 / 427;
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 500;
  border-left: 1px solid var(--rule);
  padding-left: 10px;
  margin-left: 0;
}

@media (max-width: 760px) {
  .brand-text { display: none; }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.primary-nav a {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease;
}
.primary-nav a:hover { color: var(--ink-0); }
.primary-nav a.active { color: var(--ink-0); }

@media (max-width: 1180px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 0.86rem; }
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-hot); color: #fff !important; }

@media (max-width: 980px) {
  .primary-nav { gap: 14px; }
  .primary-nav a { font-size: 0.82rem; }
  .brand-text { font-size: 0.95rem; }
}
@media (max-width: 820px) {
  .primary-nav a:not(.nav-cta) { display: none; }
}

/* ----------------------- Hero ----------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 16vw, 200px) 0 clamp(100px, 14vw, 160px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 145, 199, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(146, 177, 220, 0.10) 0%, transparent 55%),
    var(--bg-0);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("/img/hero-accent.png");
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: screen;
  filter: saturate(1.1) contrast(1.05);
  pointer-events: none;
}

.hero-molecules {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-molecules object {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: glowDrift 18s ease-in-out infinite alternate;
}
.hero-glow-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: rgba(78, 158, 255, 0.25);
}
.hero-glow-b {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -100px;
  background: rgba(122, 184, 255, 0.18);
  animation-delay: -9s;
}

@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

.hero-inner {
  max-width: 1000px;
}

.hero h1 {
  margin: 12px 0 28px;
  max-width: 18ch;
}

.hero-lede {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-1);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 12px 32px -12px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hot); color: #fff !important; }

.btn-ghost {
  background: transparent;
  color: var(--ink-1) !important;
  border-color: var(--rule-strong);
}
.btn-ghost:hover { color: var(--ink-0) !important; border-color: var(--accent); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-meta b { color: var(--ink-0); font-weight: 600; }
.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
}

/* ----------------------- Credibility marquee ----------------------- */

.cred-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-1);
  padding: 36px 0;
  overflow: hidden;
}
.cred-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 18px;
  font-weight: 500;
}
.cred-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cred-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.cred-track span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-1);
  font-variation-settings: "opsz" 100;
  letter-spacing: -0.01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------- Sections ----------------------- */

.section {
  padding: var(--pad-y) 0;
  position: relative;
}

.section-dark { background: var(--bg-1); }

.section-story {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.section-story .container { position: relative; z-index: 2; }
.story-bg {
  position: absolute;
  inset: 0;
  background-image: url("/img/story-accent.png");
  background-size: cover;
  background-position: right center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: saturate(1.05) contrast(1.05);
  z-index: 1;
  pointer-events: none;
}

.section-beyond {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
}
.section-beyond .container { position: relative; z-index: 2; }
.beyond-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,15,24,0.85), rgba(11,15,24,0.95)),
    url("/img/field-deployment.png");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

#products {
  position: relative;
  overflow: hidden;
}
#products::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, var(--bg-1) 0%, rgba(11,15,24,0.85) 60%, var(--bg-1) 100%),
    url("/img/test-strip-macro.png");
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
#products .container { position: relative; z-index: 2; }

.section-divider {
  height: 64px;
  background: var(--bg-1);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section-divider object {
  width: 100%;
  height: 64px;
  display: block;
  pointer-events: none;
}

/* ----------------------- Products ----------------------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-3);
}

.product-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.product h3 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: 1.6rem;
  font-variation-settings: "opsz" 100;
  color: var(--ink-0);
  margin-bottom: 14px;
}

.product p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.product-feature {
  background: linear-gradient(180deg, var(--bg-2), rgba(78,158,255,0.04));
  border-color: rgba(78, 158, 255, 0.25);
}

.product-custom {
  background: transparent;
  border-style: dashed;
  border-color: var(--rule-strong);
}

.product-feature-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sickle cell card with embedded animation */
.product-sicklecell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(78,158,255,0.05) 100%);
  border-color: rgba(78, 158, 255, 0.25);
  padding-top: 0;
}
.sicklecell-visual {
  position: relative;
  margin: 0 -28px 24px;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-0);
}
.sicklecell-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.85) saturate(1.05);
}
.sicklecell-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 110px;
  height: 170px;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.sicklecell-overlay object {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
@media (max-width: 640px) {
  .sicklecell-visual { margin: 0 -22px 20px; height: 220px; }
  .sicklecell-overlay { width: 90px; height: 140px; right: 12px; bottom: 12px; }
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
}
.badge-standard {
  color: var(--ink-2);
  background: rgba(255,255,255,0.03);
}
.badge-exclusive {
  color: var(--accent-hot);
  background: var(--accent-soft);
  border-color: rgba(78,158,255,0.4);
}
.badge-custom {
  color: var(--signal);
  background: rgba(245, 185, 88, 0.08);
  border-color: rgba(245, 185, 88, 0.32);
}

/* ----------------------- Metrics ----------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.metrics .container { display: contents; }

.metric {
  background: var(--bg-0);
  padding: 56px 32px;
  text-align: left;
}
.metric-num {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.metric-label {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* ----------------------- Markets ----------------------- */

.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.market {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.market h3 {
  color: var(--ink-0);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.market p {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin: 0;
}

/* ----------------------- Why DSG ----------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 40px;
}
.why {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.why-mark {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1;
}
.why h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  font-variation-settings: "opsz" 100;
  margin-bottom: 12px;
  color: var(--ink-0);
}
.why p {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin: 0;
}

/* ----------------------- Story ----------------------- */

.story-body p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-1);
  margin-bottom: 22px;
}

/* ----------------------- Contact ----------------------- */

.section-contact {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(78, 158, 255, 0.12), transparent 60%),
    var(--bg-0);
}

.contact-card {
  text-align: left;
}
.contact-card h2 {
  margin-bottom: 18px;
  max-width: 16ch;
}
.contact-lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-method {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 26px;
  color: var(--ink-1) !important;
  transition: border-color .15s ease, transform .12s ease, background .15s ease;
}
.contact-method:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.contact-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  word-break: break-word;
}

/* ----------------------- Footer ----------------------- */

.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--rule);
  padding: 36px 0 56px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--ink-1);
  font-weight: 500;
  font-size: 0.92rem;
}
.footer-name { color: var(--ink-1); font-weight: 600; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 100;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.footer-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.footer-legal a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ----------------------- Reveal animations ----------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  .cred-track { animation: none; }
}

/* PubMed homepage band */

.pubmed-band {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pubmed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.pubmed-head-left { max-width: 720px; }
.pubmed-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 10px;
}
.pubmed-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.pubmed-source {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-style: italic;
}
.pubmed-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.pubmed-paper {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}
.pubmed-paper:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-3);
  text-decoration: none;
}
.pubmed-paper-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pubmed-paper-journal { color: var(--accent); }
.pubmed-paper-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink-0);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pubmed-paper:hover .pubmed-paper-title { color: var(--accent-hot); }
.pubmed-paper-authors {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pubmed-skel {
  background: linear-gradient(110deg, var(--bg-2) 8%, var(--bg-3) 18%, var(--bg-2) 33%);
  background-size: 200% 100%;
  border-radius: 12px;
  height: 110px;
  border: 1px solid var(--rule);
  animation: pubmedskel 1.4s ease-in-out infinite;
}
@keyframes pubmedskel { to { background-position-x: -200%; } }
@media (prefers-reduced-motion: reduce) {
  .pubmed-skel { animation: none; }
}

/* ----------------------- Tablet/mobile tuning ----------------------- */

@media (max-width: 760px) {
  .footer-row { justify-content: flex-start; }
  .hero-meta { font-size: 0.85rem; }
  .product { padding: 26px 22px; }
  .metric { padding: 40px 24px; }
}
