/* ════════════════════════════════════════════════════════════
   MATRIX BIOTEK SL — MASTER STYLESHEET
   Brand Colours: Red #B30000 (CMYK 0/100/100/30) + Grey #808080 (CMYK 0/0/0/50)
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ════════════════════════════════════════════════════════════ */

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

:root {
  /* OFFICIAL BRAND COLOURS */
  --brand-red: #B30000;
  --brand-red-dark: #8C0000;
  --brand-red-light: #D63636;
  --brand-grey: #808080;
  --brand-grey-light: #B0B0B0;
  --brand-grey-dark: #595959;
  
  /* DARK THEME (default) */
  --bg-primary: #0d0f14;
  --bg-secondary: #14171f;
  --bg-tertiary: #1a1d27;
  --bg-card: #14171f;
  --bg-card-hover: #1a1d27;
  --text-primary: #ffffff;
  --text-secondary: #b0b3bc;
  --text-tertiary: #7a7d86;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --accent: var(--brand-red);
  --accent-dim: rgba(128, 128, 128, 0.12);
  --accent-border: rgba(179, 0, 0, 0.3);
  --accent-glow: transparent;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-tertiary: #eef0f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fa;
  --text-primary: #1a1a1a;
  --text-secondary: #595959;
  --text-tertiary: #808080;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --accent-dim: rgba(89, 89, 89, 0.06);
  --accent-border: rgba(179, 0, 0, 0.25);
  --accent-glow: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--brand-red-light);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.2rem; font-weight: 500; }

h1 em, h2 em { font-style: italic; color: var(--brand-red); font-weight: 300; }

p { color: var(--text-secondary); font-weight: 300; line-height: 1.8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(0.92rem, 1.15vw, 1rem); text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--brand-red);
  margin-bottom: 1.2rem; font-weight: 600;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand-red); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

/* ════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════ */

nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

[data-theme="light"] nav.main-nav { background: rgba(255, 255, 255, 0.92); }

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Cormorant Garamond', serif;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand-red); border-radius: 6px;
  background: var(--bg-primary);
  position: relative;
}
.nav-logo-mark::before {
  content: 'MB';
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 18px;
  color: var(--brand-red); letter-spacing: -1px;
}
.nav-logo-mark::after {
  content: ''; position: absolute;
  top: -3px; right: -3px;
  width: 4px; height: 12px;
  background: var(--brand-red);
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-name { font-size: 1.3rem; font-weight: 500; color: var(--text-primary); }
.nav-logo-tag { font-size: 0.68rem; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.13em; margin-top: 3px; font-family: 'DM Sans', sans-serif; font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-size: 0.86rem; color: var(--text-secondary);
  font-weight: 400; transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--brand-red); }
.nav-links a.active { color: var(--brand-red); }

.nav-controls { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 0.45rem 0.7rem; font-size: 0.78rem;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--brand-red); color: var(--brand-red); }
.theme-toggle svg { width: 14px; height: 14px; }

.language-indicator {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  user-select: none;
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  background: var(--brand-red); color: white !important;
  border-radius: 6px; font-weight: 500;
  font-size: 0.84rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brand-red-dark); }

.mobile-menu-btn {
  display: none; background: transparent; border: none;
  color: var(--text-primary); cursor: pointer; font-size: 1.4rem;
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 1.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  border-radius: 7px; cursor: pointer;
  border: none; transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--brand-red); color: white; }
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand-red); color: var(--brand-red); }

.btn-ghost {
  background: transparent; color: var(--brand-red);
  padding: 0.6rem 0;
}
.btn-ghost:hover { gap: 12px; }

/* ════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════ */

section { padding: 6rem 5%; position: relative; }
section.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem;
}

.section-intro { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-intro p { margin-top: 1rem; }

/* WHY BIOLOGICAL-DRUG MONITORING */
.why-monitoring-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.why-monitoring-inner h2 { max-width: 520px; }
.why-monitoring-copy {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--border-strong);
}
.why-monitoring-copy > p { margin-bottom: 1.25rem; }
.why-monitoring-copy > p:last-child { margin-bottom: 0; }
.why-monitoring-copy .ruo-note {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */

#hero {
  min-height: 100vh; padding: 9rem 5% 5rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.hero-grid-bg {
  display: none;
}
canvas#particles { position: absolute; inset: 0; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center; width: 100%;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--accent-border); border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand-red); background: transparent;
  margin-bottom: 1.8rem; font-weight: 500;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-red);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

.hero-title { margin-bottom: 1.6rem; }
.hero-desc {
  font-size: 1.05rem; max-width: 510px;
  margin-bottom: 2.4rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  margin-top: 2rem;
  color: var(--text-tertiary);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero-locations span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-locations span::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--brand-red);
}

/* Hero visual: official-brand proof panel */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; min-height: 420px;
}
.hero-proof-panel {
  width: min(100%, 430px);
  padding: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}
.hero-proof-logo {
  position: absolute;
  top: 0;
  left: 50%;
  height: auto;
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
}
.hero-proof-logo-wrap {
  position: relative;
  width: min(100%, 250px);
  height: 125px;
  margin: 0 auto 2rem;
  overflow: hidden;
}
.hero-proof-logo.logo-light {
  width: 250px;
}
.hero-proof-logo.logo-dark {
  width: 512px;
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.hero-proof-grid > div {
  min-width: 0;
  padding: 1.25rem 0.7rem;
  text-align: center;
  background: var(--bg-primary);
}
.hero-proof-grid strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  color: var(--brand-red);
}
.hero-proof-grid .hero-proof-text-metric {
  font-size: 1.72rem;
  letter-spacing: 0.015em;
  /* Optical baseline correction: all-cap text sits higher than numerals
     in Cormorant Garamond even when their CSS line boxes are centred. */
  transform: translateY(0.09em);
}
.hero-proof-grid span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.35;
}
.hero-proof-panel > p {
  margin: 1.25rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  text-align: center;
  display: flex; flex-direction: column;
}

/* ════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════ */

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-secondary);
}
.stat {
  padding: 2.5rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stat:hover { background: var(--bg-tertiary); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 300; line-height: 1;
  letter-spacing: -0.02em; color: var(--text-primary);
}
.stat-num span { color: var(--brand-red); }
.stat-label {
  font-size: 0.74rem; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.6rem; font-weight: 500;
}

/* ════════════════════════════════════════════════════════════
   GRID LAYOUTS
   ════════════════════════════════════════════════════════════ */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.paired-heading-grid > :nth-child(2) {
  /* Align the first right-hand card with the visible top of the left h2.
     This is measured against the loaded local fonts, not the eyebrow row. */
  padding-top: 3.12rem;
}
.paired-heading-grid .credentials-grid { margin-top: 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ════════════════════════════════════════════════════════════
   FOUNDER & CEO MESSAGE
   ════════════════════════════════════════════════════════════ */

.founder-message-card {
  max-width: 960px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--brand-red);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.founder-message-copy {
  padding: clamp(2.2rem, 5vw, 4rem);
  align-self: center;
}

.founder-message-copy h2 { margin-bottom: 1.6rem; }

.founder-message-copy blockquote {
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brand-red);
}

.founder-message-copy blockquote p {
  font-size: 0.98rem;
  line-height: 1.85;
}

.founder-message-copy blockquote p + p { margin-top: 1rem; }

.founder-message-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
}

.founder-signoff strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.founder-signoff span {
  display: block;
  margin-top: 0.15rem;
  color: var(--brand-red);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.card-icon {
  width: 50px; height: 50px; border-radius: 11px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--brand-red); fill: none; stroke-width: 1.5; }

.card-badge {
  display: inline-block; font-size: 0.66rem;
  padding: 0.22rem 0.6rem;
  background: var(--accent-dim); color: var(--brand-red);
  border: 1px solid var(--accent-border); border-radius: 5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.9rem; font-weight: 500;
}
.card-badge.new { background: var(--brand-red); color: white; border-color: var(--brand-red); }

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.92rem; line-height: 1.7; }

.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.card-tag {
  font-size: 0.7rem; padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-strong); border-radius: 100px;
  color: var(--text-secondary); font-weight: 400;
}

/* Product card variant */
.product-card {
  background: var(--bg-card); padding: 2.4rem 1.9rem;
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.product-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--brand-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.product-card:hover { background: var(--bg-card-hover); }
.product-card:hover::after { transform: scaleX(1); }
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 600;
}
.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  margin-top: 1.4rem;
}
.product-card-actions .product-card-link { margin-top: 0; }
.product-card-link span { transition: transform 0.2s; }
.product-card-link:hover span { transform: translateX(3px); }

/* ════════════════════════════════════════════════════════════
   CREDENTIALS GRID
   ════════════════════════════════════════════════════════════ */

.credentials-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  margin-top: 1.5rem;
}
.cred-item {
  background: var(--bg-card); padding: 1.5rem 1.3rem;
  transition: background 0.25s;
}
.cred-item:hover { background: var(--bg-card-hover); }
.cred-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.cred-icon svg { width: 16px; height: 16px; stroke: var(--brand-red); fill: none; stroke-width: 1.6; }
.cred-item strong { display: block; font-size: 0.92rem; margin-bottom: 0.25rem; color: var(--text-primary); font-weight: 600; }
.cred-item span { font-size: 0.8rem; color: var(--text-secondary); }

/* ════════════════════════════════════════════════════════════
   RESOURCES SECTION
   ════════════════════════════════════════════════════════════ */

.resources-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.resources-grid-three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.resource-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  transition: all 0.25s;
  text-align: center;
  display: flex; flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.resource-cover {
  width: 100%; aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin-bottom: 1.2rem;
  position: relative; overflow: hidden;
  color: white;
}
.resource-cover::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: 6px; background: rgba(0, 0, 0, 0.3);
}
.resource-cover-icon {
  width: 56px; height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
}
.resource-cover-icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 1.5; }
.resource-cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-align: center; padding: 0 0.8rem;
}
.resource-cover-edition {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 0.4rem;
  opacity: 0.8;
}
.resource-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 500;
  margin-bottom: 0.4rem; line-height: 1.3;
  color: var(--text-primary);
}
.resource-card p {
  font-size: 0.78rem; margin-bottom: 1.2rem;
  line-height: 1.6;
}

.resource-card > .resource-btn { margin-top: auto; align-self: center; }
.resource-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.55rem 1.2rem;
  background: transparent; color: var(--brand-red);
  border: 1px solid var(--accent-border); border-radius: 6px;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.resource-btn:hover { background: var(--accent-dim); }
.resource-cover-document {
  background: var(--bg-tertiary);
  padding: 0;
}
.resource-cover-document::before { display: none; }
.resource-cover-img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #fff;
}
.resource-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-top: auto;
}
.resource-btn-secondary { color: var(--text-secondary); border-color: var(--border-strong); }
.resource-btn-secondary:hover { color: var(--brand-red); border-color: var(--accent-border); }
.handbook-access-note {
  margin: 0 0 1.3rem; padding: 0.9rem 1rem; border-radius: 8px;
  background: var(--accent-dim); color: var(--text-secondary); font-size: 0.84rem; line-height: 1.55;
}
.handbook-access-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.handbook-access-actions .btn { width: 100%; justify-content: center; }


/* ════════════════════════════════════════════════════════════
   PRODUCT FILTER PAGE
   ════════════════════════════════════════════════════════════ */

.product-filters {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 2.5rem;
}
.filter-row {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-bottom: 1rem;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.08em; margin-right: 0.5rem;
}
.filter-input {
  flex: 1; min-width: 280px;
  padding: 0.65rem 1rem;
  background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 7px;
  font-family: inherit; font-size: 0.88rem;
}
.filter-input:focus { outline: none; border-color: var(--brand-red); }

.filter-btn {
  padding: 0.5rem 1rem; font-size: 0.78rem; font-weight: 500;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-strong); border-radius: 100px;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--brand-red); color: var(--brand-red); }
.filter-btn.active { background: var(--brand-red); color: white; border-color: var(--brand-red); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.drug-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.drug-card:hover {
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.drug-card-class {
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brand-red);
  font-weight: 600; margin-bottom: 0.5rem;
}
.drug-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}
.drug-card-brand {
  font-size: 0.82rem; color: var(--text-tertiary);
  font-style: italic; margin-bottom: 1rem;
}
.drug-card-stats {
  display: flex; gap: 1.2rem; margin-bottom: 0.6rem;
  padding-top: 0.8rem; border-top: 1px solid var(--border);
}
.drug-card-stat {
  font-size: 0.74rem; color: var(--text-secondary);
}
.drug-card-stat strong {
  display: block;
  color: var(--brand-red);
  font-size: 1.05rem; font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
}
.drug-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.8rem; }
.drug-card-tag {
  font-size: 0.66rem; padding: 0.18rem 0.55rem;
  background: var(--bg-tertiary); color: var(--text-secondary);
  border-radius: 4px;
}
.drug-card-tag.tcap { background: var(--accent-dim); color: var(--brand-red); }
.drug-card-tag.new { background: var(--brand-red); color: white; }
.drug-card-source-note {
  min-height: 3.9em;
  margin: 0.9rem 0 1rem;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.55;
}
.drug-card-action {
  margin-top: auto;
  padding: 0.45rem 0;
  font-size: 0.8rem;
}

/* Complete REF-level catalogue (products.html) */
.catalogue-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.catalogue-card-heading h3 { margin-bottom: 0; }
.catalogue-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.2rem 0.58rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--brand-red);
  background: var(--accent-dim);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.catalogue-products {
  list-style: none;
  display: grid;
  gap: 0.42rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.catalogue-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.catalogue-product-row code {
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}
.catalogue-product-type {
  color: var(--text-tertiary);
  font-size: 0.64rem;
  line-height: 1.25;
  text-align: right;
}
.catalogue-family {
  margin: 0.28rem 0 0.1rem;
  color: var(--brand-red);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.catalogue-family:first-child { margin-top: 0; }
.catalogue-coming-soon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.catalogue-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.25rem 0 1.25rem;
}
.catalogue-legend span {
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-tertiary);
  background: var(--bg-card);
  font-size: 0.65rem;
}
.catalogue-result-count {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.drug-card[data-catalogue-ready="true"] .drug-card-source-note {
  min-height: 0;
  margin-bottom: 0.8rem;
}

@media (max-width: 480px) {
  .insight-card-news-layout { grid-template-columns: 1fr; }
  .insight-news-cover { width: 130px; }
  .catalogue-product-row {
    grid-template-columns: 1fr;
    gap: 0.08rem;
  }
  .catalogue-product-type { text-align: left; }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

footer {
  padding: 4rem 5% 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.footer-brand { max-width: 400px; }
.footer-brand-mark {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem;
}
.footer-brand p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 1.4rem;
}
.footer-address {
  font-size: 0.82rem; color: var(--text-tertiary);
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-primary); margin-bottom: 1.2rem; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.86rem; color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--brand-red); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  max-width: 1400px; margin: 0 auto;
}
.footer-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-copy { font-size: 0.78rem; color: var(--text-tertiary); }
.footer-trademarks {
  font-size: 0.72rem; color: var(--text-tertiary); max-width: 700px;
  margin-top: 0.5rem; line-height: 1.6;
}
.footer-ruo {
  font-size: 0.74rem; color: var(--brand-red);
  margin-top: 0.5rem; font-weight: 500; letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block; font-size: 0.82rem;
  margin-bottom: 0.5rem; color: var(--text-primary);
  font-weight: 500;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.85rem 1.1rem;
  background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 7px;
  font-family: inherit; font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--brand-red);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.86rem; color: var(--text-secondary);
  line-height: 1.5; cursor: pointer;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox a { color: var(--brand-red); }

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════════ */

.cta-section {
  text-align: center; padding: 6rem 5%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 1.2rem; }
.cta-section p {
  max-width: 540px; margin: 0 auto 2.4rem;
}
.cta-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   PAGE HERO (smaller hero for inner pages)
   ════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 9rem 5% 4rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.page-hero::before {
  content: none;
}
.page-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.08rem; max-width: 640px; }

.breadcrumb {
  font-size: 0.8rem; color: var(--text-tertiary);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb span { margin: 0 0.5rem; }

/* Content renders in its final position to prevent layout movement
   during page navigation. The rv class remains for markup compatibility. */
.rv,
.rv.in {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE / CONTENT TYPOGRAPHY
   ════════════════════════════════════════════════════════════ */

.article-content {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 5%;
}
.article-content h2 { margin: 3rem 0 1.2rem; }
.article-content h3 { margin: 2.4rem 0 1rem; }
.article-content p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.article-content ul, .article-content ol {
  margin: 1.2rem 0; padding-left: 1.5rem;
}
.article-content li {
  margin-bottom: 0.6rem; color: var(--text-secondary);
  line-height: 1.8;
}
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content blockquote {
  border-left: 3px solid var(--brand-red);
  padding: 0.5rem 1.5rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-meta {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 2rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--accent-border);
}
.author-info { flex: 1; }
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { font-size: 0.82rem; color: var(--text-secondary); }
.article-date { font-size: 0.82rem; color: var(--text-tertiary); }


/* ════════════════════════════════════════════════════════════
   INSIGHTS HUB
   ════════════════════════════════════════════════════════════ */
.insights-hub { padding-top: 3.5rem; }
.insights-toolbar {
  max-width: 1200px; margin: 0 auto 2.2rem;
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.insights-filter {
  appearance: none; border: 1px solid var(--border-strong); background: var(--bg-card);
  color: var(--text-secondary); padding: 0.72rem 1.05rem; border-radius: 999px;
  font: inherit; font-size: 0.9rem; cursor: pointer; transition: 0.2s ease;
}
.insights-filter:hover { border-color: var(--accent-border); color: var(--brand-red); }
.insights-filter.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.insight-feature {
  max-width: 1200px; margin: 0 auto 2rem; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,0.8fr);
  gap: 2rem; align-items: stretch; padding: 2.4rem; border: 1px solid var(--accent-border);
  background: var(--bg-card); border-radius: 18px;
}
.insight-feature-copy { display: flex; flex-direction: column; justify-content: center; }
.insight-kicker-row,.insight-card-topline { display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem; }
.insight-feature h2 { margin-bottom: 1rem; }
.insight-feature p { max-width: 760px; }
.insight-author-row { display:flex;align-items:center;gap:0.9rem;margin:1.2rem 0; }
.insight-read-link { margin-top: 0.3rem; }
.insight-date { color: var(--text-tertiary); font-size: 0.82rem; }
.insight-feature-visual {
  min-height: 360px; border-radius: 14px; padding: 2rem; color: #fff;
  background: linear-gradient(145deg, #8C0000 0%, #B30000 58%, #5f0000 100%);
  display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}
.insight-feature-visual strong { font-family:'Cormorant Garamond',serif;font-size:clamp(2.1rem,4vw,3.7rem);line-height:0.95;letter-spacing:0.01em;margin:0.8rem 0; }
.insight-feature-visual > span:not(.insight-visual-label) { font-size:1.15rem;letter-spacing:0.05em; }
.insight-feature-visual small { margin-top:1.4rem;opacity:0.8;letter-spacing:0.05em; }
.insight-visual-label { font-size:0.72rem;letter-spacing:0.16em;opacity:0.8; }
.insights-grid { max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem; }
.insight-card { border:1px solid var(--border);border-radius:16px;background:var(--bg-card);overflow:hidden;transition:transform .2s ease,border-color .2s ease; }
.insight-card:hover { transform:translateY(-2px);border-color:var(--accent-border); }
.insight-card-link { display:block;padding:1.8rem;height:100%; }
.insight-card h3 { margin-bottom:0.7rem; }
.insight-card p { margin-bottom:1rem; }
.insight-card-news-layout { display:grid;grid-template-columns:150px 1fr;gap:1.4rem;align-items:start; }
.insight-news-cover { width:150px;aspect-ratio:0.707/1;object-fit:cover;border:1px solid var(--border);border-radius:8px; }
.insights-empty { max-width:1200px;margin:1rem auto 0;padding:1.2rem;border:1px dashed var(--border-strong);border-radius:12px;color:var(--text-secondary);text-align:center; }
.article-lead { font-size:1.18rem !important;color:var(--text-primary) !important; }
.article-resource-panel { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:2rem 0; }
.article-resource-panel > div { border:1px solid var(--border);background:var(--bg-card);border-radius:14px;padding:1.5rem; }
.article-resource-panel h3 { margin:0.7rem 0 0.6rem; }
.article-resource-panel .btn { margin-top:0.5rem; }
.article-doi { font-size:0.9rem !important;color:var(--text-tertiary) !important; }
.article-caution { margin:2.4rem 0;padding:1.3rem 1.4rem;border-left:3px solid var(--brand-red);background:var(--accent-dim);border-radius:0 10px 10px 0; }
.article-caution p { margin:0.45rem 0 0;font-size:0.95rem; }
.article-footer-actions { margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .paired-heading-grid > :nth-child(2) { padding-top: 3.0525rem; }
  .three-col, .product-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .insight-feature { grid-template-columns: 1fr; padding: 1.4rem; }
  .insight-feature-visual { min-height: 280px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card-news-layout { grid-template-columns: 110px 1fr; }
  .insight-news-cover { width: 110px; }
  .article-resource-panel { grid-template-columns: 1fr; }
  section { padding: 4rem 5%; }
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .paired-heading-grid > :nth-child(2) { padding-top: 0; }
  .why-monitoring-inner { grid-template-columns: 1fr; gap: 2rem; }
  .why-monitoring-copy {
    padding-top: 1.75rem;
    padding-left: 0;
    border-top: 1px solid var(--border-strong);
    border-left: 0;
  }
  .hero-visual { display: none; }
  .three-col, .product-grid, .resources-grid, .four-col { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.65rem 5% 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  }
  .nav-links.mobile-open li { width: 100%; }
  .nav-links.mobile-open a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.mobile-open li:last-child a { border-bottom: 0; }
  .mobile-menu-btn { display: block; }
  .nav-controls { gap: 0.4rem; }
  .nav-cta { display: none; }
  .credentials-grid { grid-template-columns: 1fr; }
  .founder-message-footer { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* ── Real Matrix Biotek logo (theme-aware) ───────────────────── */
.nav-logo-img{height:38px;width:auto;display:block}
.footer-brand-mark .nav-logo-img{height:46px}
[data-theme="dark"] .logo-light{display:none}
[data-theme="light"] .logo-dark{display:none}
.nav-logo .nav-logo-text,.footer-brand-mark .nav-logo-text{display:none}
.nav-logo{gap:0}
@media(max-width:600px){.nav-logo-img{height:32px}}

/* ── Approved shared header, logo and footer presentation ──── */
.home-page {
  --home-copy: #c7c9d0;
  --home-muted: #a1a4ad;
}
[data-theme="light"] .home-page {
  --home-copy: #484848;
  --home-muted: #666666;
}
nav.main-nav { padding-top: 0.8rem; padding-bottom: 0.8rem; }
nav .nav-logo {
  position: relative;
  width: 104px;
  height: 52px;
  flex: 0 0 104px;
  overflow: hidden;
}
nav .nav-logo-img,
.footer-brand-mark .nav-logo-img {
  position: absolute;
  top: 0;
  left: 50%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}
nav .nav-logo-img.logo-light { width: 104px; }
nav .nav-logo-img.logo-dark { width: 213px; }
.footer-brand-mark {
  position: relative;
  width: 120px;
  height: 60px;
  overflow: hidden;
}
.footer-brand-mark .nav-logo-img.logo-light { width: 120px; }
.footer-brand-mark .nav-logo-img.logo-dark { width: 246px; }
.home-page .hero-eyebrow {
  border-color: var(--border-strong);
  font-size: 0.76rem;
}
.home-page .hero-title {
  font-size: clamp(2.65rem, 5.2vw, 4.5rem);
  max-width: 760px;
}
.home-page .hero-title-label {
  display: inline-block;
  font-size: clamp(1.65rem, 4vw, 3.15rem);
  white-space: nowrap;
}
.home-page .hero-impact {
  max-width: 680px;
  margin: -0.35rem 0 1.1rem;
  color: var(--text-primary);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
}
.home-page main p {
  color: var(--home-copy);
  font-size: 1.02rem;
  font-weight: 300;
}
.home-page .hero-desc {
  max-width: 680px;
  color: var(--home-copy);
  font-size: clamp(1.1rem, 1.3vw, 1.16rem);
}
.home-page .hero-proof-grid span {
  color: var(--home-copy);
  font-size: 0.78rem;
}
.home-page .hero-proof-panel > p {
  color: var(--home-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.home-page .founder-message-copy blockquote p {
  font-size: 1.03rem;
}
.home-page .product-card p {
  font-size: 1rem;
}
.home-page .cred-item span {
  color: var(--home-copy);
  font-size: 0.86rem;
}
.home-page .card-icon-row span {
  color: var(--home-copy) !important;
  font-size: 0.92rem !important;
  line-height: 1.55;
}
.home-page .resource-card p {
  color: var(--home-copy);
  font-size: 0.88rem;
  line-height: 1.7;
}
.home-page .cta-section p {
  font-size: 1.05rem;
}
.home-page .footer-brand p {
  color: var(--home-copy);
  font-size: 0.96rem;
}

@media(max-width:600px) {
  nav .nav-logo {
    width: 80px;
    height: 40px;
    flex-basis: 80px;
  }
  nav .nav-logo-img.logo-light { width: 80px; }
  nav .nav-logo-img.logo-dark { width: 164px; }
  .footer-brand-mark {
    width: 112px;
    height: 56px;
  }
  .footer-brand-mark .nav-logo-img.logo-light { width: 112px; }
  .footer-brand-mark .nav-logo-img.logo-dark { width: 230px; }
  .eyebrow { font-size: 0.88rem; }
  .home-page .hero-title { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .home-page main p { font-size: 1rem; }
  .home-page .hero-desc { font-size: 1.05rem; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE RIGHT-SIDE STORY SLIDER — 2026-08-08
   Keeps the established two-column hero; only the visual panel rotates.
   ════════════════════════════════════════════════════════════ */
.hero-right-slider {
  width: min(100%, 520px);
  margin: 0 auto;
  opacity: 0;
  transition: opacity .22s ease;
}
.hero-right-slider.is-ready { opacity: 1; }
.hero-right-slider-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #f7f7f7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}
.hero-right-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(1.4%);
  transition: opacity .65s ease, transform .65s ease, visibility 0s linear .65s;
}
.hero-right-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
.hero-right-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-proof-panel.hero-proof-slide {
  width: 100%;
  height: 100%;
  padding: 1.55rem 1.55rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: #fafafa;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-proof-slide .hero-proof-logo-wrap {
  width: min(70%, 235px);
  height: 108px;
  margin: 0 auto 1.15rem;
}
.hero-proof-slide .hero-proof-logo.logo-light { width: 235px; }
.hero-proof-slide .hero-proof-logo.logo-dark { width: 481px; }
.hero-proof-slide .hero-proof-grid > div { padding: 1rem .55rem; }
.hero-proof-slide .hero-proof-grid strong { font-size: 1.9rem; }
.hero-proof-slide .hero-proof-grid span { font-size: .68rem; }
.hero-proof-slide > p {
  margin-top: 1rem;
  font-size: .72rem;
  line-height: 1.4;
}
.hero-right-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid rgba(90,90,90,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #555;
  font: 300 1.65rem/1 'DM Sans', sans-serif;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 5px 16px rgba(0,0,0,.10);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
.hero-right-slider-shell:hover .hero-right-arrow,
.hero-right-arrow:focus-visible { opacity: 1; }
.hero-right-arrow:hover { transform: scale(1.05); color: var(--brand-red); }
.hero-right-prev { left: .6rem; }
.hero-right-next { right: .6rem; }
.hero-right-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .48rem;
  margin-top: .8rem;
}
.hero-right-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: .32;
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, opacity .25s ease, background .25s ease;
}
.hero-right-dots button.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--brand-red);
  opacity: 1;
}
.hero-brand-note {
  max-width: 560px;
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.home-page .hero-brand-note p {
  margin: 0;
  color: var(--text-secondary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.02rem;
  line-height: 1.45;
}
.hero-brand-note strong {
  color: var(--brand-red);
  font-weight: 500;
}
.hero-brand-note span {
  display: block;
  margin-top: .28rem;
  color: var(--text-tertiary);
  font-size: .68rem;
  letter-spacing: .055em;
}
@media (prefers-reduced-motion: reduce) {
  .hero-right-slide { transition: none; }
}
@media (max-width: 900px) {
  .hero-right-slider { width: min(100%, 560px); }
  .hero-right-arrow { opacity: 1; }
}
@media (max-width: 600px) {
  .hero-right-slider-shell { border-radius: 16px; }
  .hero-right-arrow { display: none; }
  .hero-proof-panel.hero-proof-slide { padding: 1rem; }
  .hero-proof-slide .hero-proof-logo-wrap { width: 68%; height: 78px; margin-bottom: .7rem; }
  .hero-proof-slide .hero-proof-logo.logo-light { width: 170px; }
  .hero-proof-slide .hero-proof-logo.logo-dark { width: 348px; }
  .hero-proof-slide .hero-proof-grid > div { padding: .65rem .28rem; }
  .hero-proof-slide .hero-proof-grid strong { min-height: 1.5rem; font-size: 1.55rem; }
  .hero-proof-slide .hero-proof-grid .hero-proof-text-metric { font-size: 1.34rem; }
  .hero-proof-slide .hero-proof-grid span { font-size: .58rem; }
  .hero-proof-slide > p { margin-top: .65rem; font-size: .6rem; }
  .hero-brand-note { margin-top: 1.2rem; }
}


/* Homepage hero final alignment & responsive slider refinements — 2026-08-08 */
.home-page .hero-inner {
  align-items: start;
}
.home-page .hero-visual {
  align-items: flex-start;
  min-height: 0;
}

@media (max-width: 900px) {
  .home-page .hero-right-arrow {
    opacity: .55;
  }
}

@media (max-width: 768px) {
  .insight-feature { grid-template-columns: 1fr; padding: 1.4rem; }
  .insight-feature-visual { min-height: 280px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card-news-layout { grid-template-columns: 110px 1fr; }
  .insight-news-cover { width: 110px; }
  .article-resource-panel { grid-template-columns: 1fr; }
  /* Keep the story slider visible below the fixed hero copy on mobile. */
  .home-page .hero-visual {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
  }
  .home-page .hero-right-slider {
    width: min(100%, 560px);
    margin: 0 auto;
  }
}


/* CONTACT — ALWAYS WITHIN REACH */
.contact-reach-section {
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}
.contact-reach-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-reach-header {
  display: block;
  width: min(82%, 780px);
  margin: 0 auto 2rem;
}
.contact-reach-header > div {
  max-width: none;
}
.contact-network-map {
  width: min(82%, 780px);
  margin: 0 auto;
}
.contact-network-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(0,0,0,.065);
}
.contact-network-map-image {
  display: block;
  width: 100%;
  height: auto;
}
.contact-network-map-logo {
  position: absolute;
  top: 3.2%;
  left: 3.2%;
  width: clamp(108px, 15%, 155px);
  height: auto;
  pointer-events: none;
}
.contact-network-map-caption {
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  text-align: left;
}
[data-theme="dark"] .contact-network-map-frame {
  border-color: var(--border-strong);
  box-shadow: 0 20px 52px rgba(0,0,0,.22);
}
@media (max-width: 768px) {
  .insight-feature { grid-template-columns: 1fr; padding: 1.4rem; }
  .insight-feature-visual { min-height: 280px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card-news-layout { grid-template-columns: 110px 1fr; }
  .insight-news-cover { width: 110px; }
  .article-resource-panel { grid-template-columns: 1fr; }
  .contact-reach-section {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
  }
  .contact-reach-header {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .contact-network-map {
    width: 100%;
  }
  .contact-network-map-frame {
    border-radius: 20px;
  }
  .contact-network-map-caption {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.65;
  }
  .contact-network-map-logo {
    top: 2.5%;
    left: 2.5%;
    width: 24%;
    max-width: 120px;
  }
}


/* PRODUCTS PAGE — portfolio hero */
.products-page-hero {
  padding-bottom: 4.5rem;
}
.products-page-hero-inner {
  max-width: 1480px;
}
.products-page-hero-eyebrow {
  margin-bottom: 1.5rem;
}
.products-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}
.products-page-hero-copy {
  padding-top: .2rem;
}
.products-page-hero h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
}
.products-page-hero h1 em {
  display: inline-block;
}
.products-page-hero p {
  max-width: 700px;
}
.products-page-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.products-page-hero-visual {
  margin: 0;
  width: 100%;
  align-self: start;
}
.products-page-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,.07);
}
[data-theme="dark"] .products-page-hero-visual img {
  border-color: var(--border-strong);
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
@media (max-width: 1050px) {
  .products-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .products-page-hero-visual {
    width: min(100%, 820px);
  }
}
@media (max-width: 600px) {
  .products-page-hero {
    padding-bottom: 3rem;
  }
  .products-page-hero-grid {
    gap: 1.7rem;
  }
  .products-page-hero-visual img {
    border-radius: 16px;
  }
}
