:root {
  --ink: #172c30;
  --ink-soft: #344b4d;
  --muted: #657675;
  --paper: #f1f1e9;
  --paper-2: #e4e8df;
  --white: #fafaf4;
  --teal: #276c64;
  --teal-deep: #153d3a;
  --teal-soft: #dcebe4;
  --copper: #a85f42;
  --line: rgba(23, 44, 48, 0.14);
  --shadow: 0 18px 50px rgba(23, 44, 48, 0.09);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 460; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: 28px; }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 240, 231, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-deep);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 15px; color: var(--ink-soft); }
.nav a.active, .nav a:hover { color: var(--ink); }
.nav .nav-cta, .nav .nav-cta:hover { color: var(--paper); }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px;
  padding: 12px 18px; font-size: 15px; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.copper { background: var(--copper); color: white; }
.menu-btn {
  display: none; border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 8px 12px; cursor: pointer;
}

.hero { padding: 42px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: end; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 540px; margin: 18px 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: 460px; object-fit: cover; border-radius: 24px; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: -28px; position: relative; padding-left: 18px;
}
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 78px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 420px; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p, .panel p { color: var(--ink-soft); }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--copper); letter-spacing: 0.08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.split img, .frame img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-intro .list { margin-top: 0; }
.list { display: grid; gap: 14px; margin-top: 22px; }
.list div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.list strong { font-family: var(--mono); font-size: 13px; color: var(--teal); font-weight: 500; }

.band { background: var(--teal-deep); color: #f4f0e7; border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.band p { color: rgba(244, 240, 231, 0.78); }
.band .btn { background: var(--paper); color: var(--ink); }

.page-hero { padding: 48px 0 10px; }
.page-hero p { max-width: 640px; color: var(--ink-soft); margin-top: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chip, .search, select.field {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 10px 14px; font-size: 14px;
}
.chip { cursor: pointer; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { min-width: min(280px, 100%); border-radius: 14px; }

.pipeline-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.program {
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 10px; color: inherit;
}
.program.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 107, 98, 0.12); }
.program-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.phase {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal-deep); border-radius: 999px; padding: 4px 8px;
}
.phase.commercial { background: #f3e2d4; color: #8a4b24; }
.phase.discovery, .phase.preclinical { background: var(--paper-2); color: var(--ink-soft); }
.detail { position: sticky; top: 92px; }
.meter { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.meter span { display: block; height: 100%; background: var(--teal); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.meta div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.meta small { display: block; color: var(--muted); font-size: 12px; }

.product-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 18px; }
.product-grid img { height: 100%; min-height: 280px; object-fit: cover; border-radius: 24px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.form { display: grid; gap: 12px; }
.field, textarea.field, select.field.block {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
  padding: 12px 14px; font-size: 16px; color: var(--ink);
}
textarea.field { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 14px; color: var(--muted); }
.success { background: var(--teal-soft); border-radius: 14px; padding: 14px; color: var(--teal-deep); display: none; }
.error { color: #9a3412; font-size: 13px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 20px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.footer a { display: block; margin: 6px 0; }
.disclaimer { font-size: 13px; margin-top: 22px; max-width: 760px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 20px 20px; gap: 14px;
  }
  .nav.open { display: flex; }
  .hero-grid, .split, .about-intro, .band, .pipeline-layout, .product-grid, .cards, .footer-grid, .form-row, .section-head {
    grid-template-columns: 1fr;
  }
  .hero-figure img, .split img, .frame img { height: 260px; }
  .stat-row { grid-template-columns: 1fr; padding-left: 0; margin-top: 14px; }
  .detail { position: static; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  h1 { font-size: 42px; }
}

/* Mediventa Life Sciences — evidence-led editorial system */
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--teal-deep); color: var(--paper); }
.site-header { background: rgba(241, 241, 233, .94); }
.header-inner { min-height: 76px; }
.brand { gap: 12px; font-size: 16px; letter-spacing: -.04em; }
.brand::after {
  content: "BIRMINGHAM, UK";
  display: block;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1.2 var(--mono);
  letter-spacing: .1em;
}
.mark { border-radius: 11px 11px 11px 3px; width: 36px; height: 36px; }
.nav { gap: 19px; }
.nav a { transition: color .18s ease; }
.nav a.active { position: relative; }
.nav a.active:not(.nav-cta)::after {
  position: absolute; content: ""; height: 2px; left: 0; right: 0; bottom: -8px;
  background: var(--copper);
}
.nav-cta, .btn { transition: transform .18s ease, background-color .18s ease; }
.nav-cta:hover, .btn:hover { transform: translateY(-2px); background: var(--teal-deep); }
.nav .nav-cta:hover { color: var(--paper); }
.btn.secondary:hover { background: var(--teal-soft); color: var(--ink); }
.hero { padding: 62px 0 48px; }
.hero-grid { gap: clamp(36px, 6vw, 82px); align-items: center; }
.hero h1 { max-width: 690px; }
.hero .lede { max-width: 510px; line-height: 1.55; }
.hero-figure img { border-radius: 2px 54px 2px 2px; }
.hero-figure::before {
  content: "MEDIVENTA / RESEARCH";
  position: absolute; z-index: 1; top: 18px; left: 18px;
  padding: 8px 10px; color: var(--paper); background: rgba(21,61,58,.82);
  font: 10px var(--mono); letter-spacing: .12em;
}
.stat-row { padding: 0 18px; margin-top: -54px; }
.stat { border-radius: 2px; }
.stat b { color: var(--teal-deep); }
.section { padding: clamp(62px, 8vw, 104px) 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { max-width: 660px; }
.section-head p { line-height: 1.65; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card, .panel { border-radius: 2px; }
.card { padding: clamp(22px, 3vw, 34px); }
.card h3 { margin: 14px 0 10px; }
.card p { line-height: 1.65; }
.card .kicker { display: flex; align-items: center; gap: 10px; }
.card .kicker::before { content: ""; width: 20px; height: 1px; background: var(--copper); }
.area-card { min-height: 240px; display: flex; flex-direction: column; }
.area-card .topic-list { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 14px; }
.topic-list strong { color: var(--ink-soft); font-weight: 600; }
.callout {
  border-left: 3px solid var(--copper);
  padding: 16px 20px; background: rgba(220,235,228,.65); color: var(--ink-soft);
}
.hero-note { color: var(--muted); font-size: 13px; margin-top: 18px; max-width: 560px; }
.page-hero { padding: clamp(50px, 8vw, 96px) 0 28px; }
.page-hero h1 { max-width: 900px; }
.page-hero .split { gap: clamp(30px, 6vw, 80px); }
.page-hero .split img, .page-hero img { border-radius: 2px 48px 2px 2px; }
.research-intro { max-width: 680px; }
.research-areas { margin-top: 34px; }
.research-areas .card { position: relative; overflow: hidden; }
.research-areas .card::after {
  content: attr(data-index); position: absolute; right: 22px; top: 8px;
  color: rgba(39,108,100,.12); font: 76px/.95 var(--serif); pointer-events: none;
}
.research-areas .card > * { position: relative; z-index: 1; }
.band { border-radius: 2px 44px 2px 2px; padding: clamp(28px,5vw,54px); }
.band h2 { max-width: 680px; margin-bottom: 16px; }
.split img, .frame img { border-radius: 2px 48px 2px 2px; }
.footer { margin-top: 48px; background: var(--paper-2); }
.footer-grid { gap: 42px; }
.footer-grid > div:first-child p { max-width: 360px; margin-top: 10px; }
.footer-grid strong { color: var(--ink); }
.footer a { width: fit-content; transition: color .18s ease; }
.footer a:hover { color: var(--copper); }
.disclaimer { border-top: 1px solid var(--line); padding-top: 18px; }
.table th, .table td { border-bottom-color: var(--line); }
.form { border-radius: 2px 28px 2px 2px; padding: clamp(20px, 4vw, 36px); }
.field { transition: border-color .18s ease, background-color .18s ease; }
.field:focus { outline: none; border-color: var(--teal); background: var(--white); }
.empty-state {
  border: 1px solid var(--line); background: var(--white); padding: clamp(26px,5vw,54px);
  border-radius: 2px 40px 2px 2px; max-width: 800px;
}
.empty-state .kicker { margin-bottom: 18px; }
.empty-state h2 { margin-bottom: 14px; }
.empty-state p { color: var(--ink-soft); max-width: 620px; }
.empty-state .note { margin-top: 20px; }
.postal-card { max-width: 720px; margin-top: 0; padding: clamp(24px, 5vw, 42px); }
.postal-card address { display: grid; gap: 4px; margin-top: 16px; font-style: normal; }
.postal-card address strong { margin-bottom: 5px; color: var(--ink); font-size: 20px; }
.email-contact { display: grid; gap: 4px; margin: 16px 0 0; color: var(--ink-soft); }
.email-contact a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.section-rule { border-top: 1px solid var(--line); }
.lab-gallery { padding-top: 22px; }
.lab-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lab-photo { margin: 0; padding: clamp(12px, 2vw, 20px); background: var(--white); border: 1px solid var(--line); }
.lab-photo img { width: 100%; max-height: 480px; object-fit: contain; background: var(--paper); }
.lab-photo figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .brand::after { display: none; }
  .hero { padding-top: 36px; }
  .hero-figure img { height: 340px; }
  .hero-figure::before { top: 12px; left: 12px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: span 2; }
  .cards { grid-template-columns: 1fr; }
  .area-card { min-height: 0; }
  .research-areas .card::after { font-size: 62px; }
  .footer-grid { gap: 28px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 16px; }
  .lab-photo-grid { grid-template-columns: 1fr; }
  .lab-photo { width: 100%; max-width: 540px; margin-inline: auto; }
  .lab-photo img { max-height: 470px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
