/* Biopharma Group — site styles
   Brand palette: navy #002c3e, teal #1d647c, cyan #0fa4c9.
   Typeface follows the brand guidelines (Aptos, with Calibri/Aileron fallbacks). */

:root {
  color-scheme: light dark;
  --font: Aptos, "Aptos Display", Calibri, Aileron, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --navy: #002c3e;
  --navy-2: #023a52;
  --teal: #1d647c;
  --cyan: #0fa4c9;
  --cyan-soft: #d9f1f8;

  --bg: #ffffff;
  --bg-tint: #f1f7fa;
  --surface: #ffffff;
  --surface-2: #f6fafc;
  --text: #0d2733;
  --muted: #4a6270;
  --heading: #002c3e;
  --link: #1d647c;
  --link-hover: #002c3e;
  --border: #d6e3ea;
  --accent: #0a6f89;
  --frame: #f3f7f9;
  --shadow: 0 1px 2px rgb(0 44 62 / 6%), 0 8px 24px rgb(0 44 62 / 8%);
  --shadow-lg: 0 2px 6px rgb(0 44 62 / 8%), 0 18px 40px rgb(0 44 62 / 14%);
  --dots: radial-gradient(rgb(0 44 62 / 9%) 1px, transparent 1.2px);
  --hero-bg:
    radial-gradient(60rem 30rem at 85% -10%, rgb(15 164 201 / 18%), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgb(29 100 124 / 14%), transparent 60%),
    linear-gradient(180deg, #f4f9fb 0%, #e9f3f7 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section: clamp(3.5rem, 7vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #04141d;
    --bg-tint: #082230;
    --surface: #0b2533;
    --surface-2: #0e2c3b;
    --text: #dceaf0;
    --muted: #9fb8c4;
    --heading: #f2f8fa;
    --link: #5fd0ec;
    --link-hover: #a6e7f7;
    --border: #1d4153;
    --accent: #3cc3e4;
    --frame: #eef4f7;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 18px 40px rgb(0 0 0 / 45%);
    --dots: radial-gradient(rgb(95 208 236 / 10%) 1px, transparent 1.2px);
    --hero-bg:
      radial-gradient(60rem 30rem at 85% -10%, rgb(15 164 201 / 22%), transparent 60%),
      radial-gradient(40rem 24rem at -10% 110%, rgb(29 100 124 / 30%), transparent 60%),
      linear-gradient(180deg, #06202d 0%, #04141d 100%);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: normal;
  word-spacing: normal;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

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

address { font-style: normal; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.narrow { max-width: 46rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand-logo img { width: 158px; height: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--bg-tint); color: var(--heading); }
.site-nav a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current="page"] { background: var(--cyan); color: #022331; }
}

@media (max-width: 1080px) {
  .js-nav .nav-toggle { display: inline-flex; }
  .js-nav .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .js-nav .site-nav.is-open { display: block; }
  .js-nav .site-nav ul {
    flex-direction: column;
    width: min(100% - 2.5rem, 1320px);
    margin: 0 auto;
    padding: 0.75rem 0 1.25rem;
  }
  .js-nav .site-nav a { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  html:not(.js-nav) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js-nav) .site-nav { margin-left: 0; }
}

/* ---------- Buttons & links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.button span[aria-hidden] { transition: transform 0.2s ease; }
.button:hover span[aria-hidden] { transform: translateX(3px); }

.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--teal); color: #fff; }
.button-secondary { border-color: var(--teal); color: var(--teal); background: transparent; }
.button-secondary:hover { background: var(--teal); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--cyan-soft); color: var(--navy); }
.button-outline-light { border-color: rgb(255 255 255 / 70%); color: #fff; }
.button-outline-light:hover { background: rgb(255 255 255 / 12%); color: #fff; }

@media (prefers-color-scheme: dark) {
  .button-primary { background: var(--cyan); color: #022331; }
  .button-primary:hover { background: #6fd6ef; color: #022331; }
  .button-secondary { border-color: var(--link); color: var(--link); }
  .button-secondary:hover { background: var(--link); color: #022331; }
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.text-link:hover { text-decoration: underline; }

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

.page-hero {
  position: relative;
  background: var(--hero-bg);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--dots);
  background-size: 18px 18px;
  mask-image: linear-gradient(105deg, transparent 35%, #000 85%);
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 85%);
}

.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.has-media .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }

.hero-copy { max-width: 46rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.lede a { font-weight: 700; }

.eyebrow, .kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.hero-media { position: relative; }
.page-hero:not(.hero-product):not(.hero-instruments) .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(135deg, transparent 55%, rgb(0 102 118 / 22%));
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-lg);
}
.hero-home .hero-media img { aspect-ratio: 5 / 4; }
.hero-product .hero-media {
  background: var(--frame);
  border-radius: calc(var(--radius) * 1.4);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-product .hero-media img {
  aspect-ratio: auto;
  max-height: 460px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
}
.hero-instruments .hero-media {
  display: grid;
  place-items: center;
  background: var(--frame);
  border-radius: calc(var(--radius) * 1.4);
  padding: 1rem;
}
.hero-instruments .hero-media img { object-fit: contain; box-shadow: none; }

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.jump-links a {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.jump-links a:hover { border-color: var(--teal); background: var(--bg-tint); }

.hero-aside { animation: fade 0.9s ease 0.1s both; }
.hero-panel {
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-lg);
}
.hero-panel > p { margin: 0.75rem 0 0; }
.hero-panel .iso-marks + p { margin-top: 1rem; color: var(--muted); text-align: center; }
.hero-panel > .kicker { margin: 0 0 0.75rem; }
.hero-panel address { font-style: normal; font-size: 1.1rem; color: var(--heading); line-height: 1.6; }
.hero-panel a { font-weight: 700; font-size: 1.15rem; }
.hero-panel .hero-panel-note { color: var(--muted); font-size: 0.92rem; }
.hero-facts { display: grid; gap: 0; }
.hero-facts li { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-top: 1px solid var(--border); }
.hero-facts li:first-child { border-top: 0; padding-top: 0; }
.hero-facts li:last-child { padding-bottom: 0; }
.hero-facts strong { color: var(--heading); font-size: 1.05rem; }
.hero-facts span { color: var(--muted); }
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.hero-mosaic .portrait { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-mosaic .portrait:nth-child(3n + 2) { transform: translateY(1.25rem); }

@media (max-width: 860px) {
  .has-media .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .hero-home .hero-media img { aspect-ratio: 16 / 10; }
  .hero-mosaic { display: none; }
}

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

.section { padding-block: var(--section); }
.section-tint {
  background:
    var(--dots) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--bg-tint), color-mix(in srgb, var(--bg-tint) 60%, var(--bg)));
}

.section-dark {
  --heading: #ffffff;
  --text: #d8e9f0;
  --muted: #b3ccd7;
  --accent: #6fd6ef;
  color: var(--text);
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgb(15 164 201 / 28%), transparent 60%),
    linear-gradient(135deg, #002c3e 0%, #023a52 55%, #1d647c 120%);
}
.texture { position: relative; isolation: isolate; }
.texture::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1.2px);
  background-size: 20px 20px;
}

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head + .office-list, .office-list + .section-head { margin-top: 0; }
.office-list + .section-head { margin-top: var(--section); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8be1f5, var(--cyan) 55%, var(--teal));
}

.center-action { text-align: center; margin: 2rem 0 0; }
.note { color: var(--muted); }

/* ---------- Stats ---------- */

.stats-band {
  background: linear-gradient(90deg, #002c3e, #1d647c);
  color: #fff;
  position: relative;
  isolation: isolate;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}
.stat { display: grid; gap: 0.25rem; }
.stat strong { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.1; color: #fff; }
.stat span { color: #cde6ee; font-size: 0.98rem; line-height: 1.4; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: var(--gap); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }

.info-card, .link-panel, .dept-card, .field-card {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card::before, .dept-card::before, .field-card::before {
  content: "";
  position: absolute;
  left: 0; top: 1.5rem; bottom: 1.5rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}
.info-card p:last-child, .info-card ul:last-child, .dept-card p:last-child { margin-bottom: 0; }
.info-card .kicker { margin-bottom: 0.4rem; }

.media-card { padding-top: 0; overflow: hidden; }
.media-card::before { display: none; }
.media-card img {
  margin: 0 calc(clamp(1.25rem, 2.5vw, 1.75rem) * -1) 1.25rem;
  width: calc(100% + 2 * clamp(1.25rem, 2.5vw, 1.75rem));
  max-width: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.link-panel {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal); color: var(--text); }
.link-panel h3 { margin-bottom: 0.4rem; }

.division-more { display: inline-flex; gap: 0.4rem; color: var(--link); font-weight: 700; }

/* Division cards (home & CDMO) */
.division-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.division-grid > :nth-child(-n+2) { grid-column: span 3; }
.division-grid > :nth-child(n+3) { grid-column: span 2; }
.division-grid-3 > * { grid-column: span 2 !important; }

.division-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.division-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.division-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--frame); }
.line-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.division-icon { display: grid; place-items: center; min-height: 7rem; color: var(--accent); background: var(--hero-bg); }
.division-icon .line-icon { width: 3rem; height: 3rem; }
.icon-motion { transform-box: fill-box; transform-origin: center; }
:is(.division-card, .instrument):is(:hover, :focus-within) .icon-motion { animation: instrument-motion 1.8s ease-in-out infinite; }
@keyframes instrument-motion { 50% { transform: translateY(-1px); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  :is(.division-card, .instrument):is(:hover, :focus-within) .icon-motion { animation: none; }
}
.instrument-icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 0.75rem; border-radius: var(--radius-sm); color: var(--accent); background: var(--hero-bg); }
.instrument-icon .line-icon { width: 2.25rem; height: 2.25rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; list-style: none; }
.social-links a { display: flex; gap: 0.75rem; align-items: center; padding: 1rem; min-height: 2.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.social-links span { flex: 1; }
.quote-organisation { display: flex; align-items: center; gap: 0.5rem; }
.division-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.division-card:hover .division-media img { transform: scale(1.04); }
.division-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.35rem 1.5rem 1.5rem; flex: 1; }
.division-title { color: var(--heading); font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.division-text { color: var(--muted); flex: 1; }

@media (max-width: 960px) {
  .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division-grid > * { grid-column: span 1 !important; }
  .division-grid > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; }
}
@media (max-width: 600px) {
  .division-grid { grid-template-columns: 1fr; }
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-copy > :last-child { margin-bottom: 0; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split-media img.media-tall { aspect-ratio: 4 / 5; max-height: 560px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media img.media-tall { aspect-ratio: 4 / 3; }
}

/* Product frames stay light in both themes so cut-out product shots read correctly. */
.product-frame {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background:
    radial-gradient(circle at 50% 40%, #ffffff 0%, var(--frame) 70%),
    var(--frame);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-frame img {
  width: auto;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  box-shadow: none !important;
  border-radius: 6px;
  aspect-ratio: auto !important;
}
.split-media.product-frame img { max-height: 380px; }

/* ---------- Equipment families ---------- */

.family-list { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.family {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}
.family:nth-child(even) .family-media { order: 2; }
.family-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.family-media.product-frame { min-height: 280px; }
.family-media.product-frame img { width: auto; aspect-ratio: auto; }
.family-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.family-range figure { margin: 0; padding: 0.75rem; background: var(--frame); color: var(--navy); border-radius: var(--radius-sm); text-align: center; }
.family-range figure:last-child { grid-column: 1 / -1; }
.family-range img { height: 150px; aspect-ratio: auto; object-fit: contain; }
.family-range figcaption { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; }
.family-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.family-body .actions { margin-top: 0.5rem; }
.quote-inline { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .family { grid-template-columns: 1fr; }
  .family:nth-child(even) .family-media { order: 0; }
}

/* ---------- Products & instruments ---------- */

.product-grid, .instrument-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.product-card, .instrument {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}
.product-card .product-frame, .instrument .product-frame { display: flex; height: 300px; padding: 0.75rem; overflow: hidden; }
.product-card .product-frame img, .instrument .product-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.instrument .product-frame { display: grid; aspect-ratio: 4 / 3; height: auto; }
.instrument .product-frame img { min-height: 0; object-position: center; }
.product-body { padding: 1.25rem 0.5rem 0.5rem; display: flex; flex-direction: column; flex: 1; }
.product-body h2 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.product-body .check-list { flex: 1; align-content: start; }
.product-body .actions { margin-top: 0.25rem; }
@media (max-width: 760px) {
  .product-grid, .instrument-grid { grid-template-columns: 1fr; }
  .product-card .product-frame, .instrument .product-frame { height: 240px; }
  .instrument .product-frame { height: auto; }
}

.step-list { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.step-list div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.step-list dt { font-weight: 700; color: var(--heading); }
.step-list dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .step-list div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.quote-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .quote-grid, .quote-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quote-grid, .quote-grid-2, .quote-grid-3 { grid-template-columns: 1fr; } }

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2.25rem 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 0.35rem; left: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cyan);
}
.quote-card blockquote { margin: 0 0 1.25rem; flex: 1; }
.quote-card blockquote p { margin: 0; font-size: 1.05rem; color: var(--text); }
.quote-card figcaption {
  display: grid;
  gap: 0.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}
.quote-card figcaption strong { color: var(--heading); }
.quote-product { color: var(--accent); font-weight: 600; }
.quote-inline { box-shadow: none; background: var(--surface-2); }

/* ---------- Locations ---------- */

.location-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.location-chip {
  display: grid;
  gap: 0.3rem;
  align-content: start;
  padding: 1.35rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 6%);
  color: #d8e9f0;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.location-chip:hover { background: rgb(255 255 255 / 12%); transform: translateY(-3px); color: #fff; }
.location-chip .kicker { margin: 0; }
.location-chip strong { color: #fff; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 960px) { .location-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .location-strip { grid-template-columns: 1fr; } }

.world-map {
  --wm-land: #d3e2ea;
  --wm-border: #ffffff;
  --wm-visited: #1d647c;
  --wm-visited-hover: #0a6f89;
  --wm-pin: #002c3e;
  --wm-pin-ring: #ffffff;
  --wm-pulse: rgb(15 164 201 / 55%);
  margin: 0 0 var(--gap);
}
.wm-country-control { margin-bottom: 1rem; }
html:not(.js-ready) .wm-country-control { display: none; }
.wm-country-label { display: block; margin-bottom: 0.35rem; color: inherit; font-weight: 600; }
.wm-country-select {
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.world-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.wm-land { fill: var(--wm-land); }
.wm-border { fill: none; stroke: var(--wm-border); stroke-width: 0.6; stroke-linejoin: round; }
.wm-visited, .wm-dot {
  fill: var(--wm-visited);
  stroke: var(--wm-border);
  stroke-width: 0.6;
  stroke-linejoin: round;
  transition: fill 0.6s ease calc(var(--i) * 45ms + 0.2s);
}
.wm-dot { stroke-width: 1.5; }
.js-ready .world-map:not(.is-visible) :is(.wm-visited, .wm-dot) { fill: var(--wm-land); }
.world-map.is-visible :is(.wm-visited, .wm-dot):hover { fill: var(--wm-visited-hover); transition-delay: 0s; }
.wm-country { cursor: help; }
.world-map .wm-country:focus-visible :is(.wm-visited, .wm-dot) {
  fill: var(--wm-visited-hover);
  stroke: var(--wm-pin);
  stroke-width: 2;
}
.wm-pin-core { fill: var(--wm-pin); stroke: var(--wm-pin-ring); stroke-width: 2; }
.wm-pin-pulse {
  fill: var(--wm-pulse);
  transform-box: fill-box;
  transform-origin: center;
  animation: wm-pulse 2.4s ease-out infinite;
}
@keyframes wm-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.world-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.wm-key { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; background: var(--wm-visited); }
.wm-key-pin { margin-left: 0.8rem; border-radius: 50%; background: var(--wm-pin); box-shadow: 0 0 0 2px var(--wm-pin-ring), 0 0 0 4px var(--wm-pulse); }

@media (prefers-color-scheme: dark) {
  .world-map {
    --wm-land: #1a3f50;
    --wm-border: #04141d;
    --wm-visited: #3cc3e4;
    --wm-visited-hover: #a6e7f7;
    --wm-pin: #ffffff;
    --wm-pin-ring: #002c3e;
    --wm-pulse: rgb(166 231 247 / 45%);
  }
}
.section-dark .world-map {
  --wm-land: rgb(255 255 255 / 14%);
  --wm-border: #002c3e;
  --wm-visited: #3cc3e4;
  --wm-visited-hover: #a6e7f7;
  --wm-pin: #ffffff;
  --wm-pin-ring: #002c3e;
  --wm-pulse: rgb(166 231 247 / 45%);
  margin-bottom: calc(var(--gap) * 1.5);
}
.section-dark .world-map-legend { color: #c4dbe4; }
@media (max-width: 640px) {
  .wm-pin-core { r: 6; }
}

.office-list { display: grid; gap: var(--gap); }
.office-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: var(--shadow);
  scroll-margin-top: 6rem;
}
.office-card:not(:has(.office-media)) { grid-template-columns: 1fr; }
.office-media { position: relative; margin: 0; min-height: 360px; overflow: hidden; }
.office-media picture { display: block; }
.office-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office-media figcaption {
  position: absolute;
  right: 0; bottom: 0;
  padding: 0.25rem 0.6rem;
  background: rgba(0, 20, 30, 0.72);
  color: #fff;
  font-size: 0.75rem;
  border-top-left-radius: 6px;
}
.office-media figcaption a { color: #fff; }
.office-body { padding: clamp(1.25rem, 3vw, 2rem); }
.office-body h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.office-entity { color: var(--muted); margin-bottom: 1rem; }
.office-body address { margin-bottom: 1rem; font-weight: 600; color: var(--heading); }
.office-contacts { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.office-contacts div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.75rem; }
.office-contacts dt { color: var(--muted); font-size: 0.95rem; }
.office-contacts dd { margin: 0; overflow-wrap: anywhere; }
.office-covers { color: var(--muted); }
.office-list-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.office-list-compact .office-contacts div { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 960px) { .office-list-compact { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .office-card { grid-template-columns: 1fr; }
  .office-media { min-height: 0; aspect-ratio: 16 / 9; }
  .office-contacts div { grid-template-columns: 1fr; gap: 0; }
}

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.field-card h3 { font-size: 1.35rem; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--gap);
}
.dept-card { display: flex; flex-direction: column; }
.dept-card p { color: var(--muted); flex: 1; }
.dept-card a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- People ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: var(--gap);
}
.people-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.people-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) { .people-grid-5, .people-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .people-grid-5, .people-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portrait { display: block; aspect-ratio: 1; overflow: hidden; background: transparent; }
.portrait-placeholder { display: grid; place-items: center; color: var(--text); font-size: 3rem; font-weight: 700; }
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.person-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.person-body h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.person-role { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin-bottom: 0.75rem; }
.person-note { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.75rem; }
.person-link { margin-top: auto; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; gap: 0.35rem; }
.person-link:hover { text-decoration: underline; }
.person-compact .person-body { padding-bottom: 1rem; }
.person-compact .person-role { margin: 0; }

.people-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.contact-strip { margin-top: clamp(2.5rem, 5vw, 4rem); }
.contact-strip:first-child { margin-top: 0; }
.contact-strip .people-grid-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.contact-strip .person { flex-direction: row; }
.contact-strip .portrait { flex: 0 0 clamp(6.5rem, 30%, 9rem); align-self: center; }
.contact-strip .person-body { justify-content: center; }
.contact-strip-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.section-head + .contact-strip .contact-strip-title { display: none; }

@media (max-width: 520px) {
  .people-grid, .people-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .person-body { padding: 0.8rem 0.85rem 1rem; }
  .person-body h3 { font-size: 1rem; }
  .person-role, .person-note, .person-link { font-size: 0.88rem; }
  .contact-strip .people-grid-compact { grid-template-columns: 1fr; }
}

/* ---------- Quality ---------- */

.iso-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.iso-marks img {
  width: min(170px, 40vw);
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cert-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.cert-head img { width: 96px; padding: 0.5rem; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cert-head h3 { font-size: 1.5rem; margin: 0; }
.cert-head p { margin: 0; color: var(--muted); }
.cert-card h4 { margin-top: 1.25rem; color: var(--accent); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }
.cert-card p:last-child { margin: 0; }

.spec-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); }
.spec-list div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--heading); }
@media (max-width: 520px) { .spec-list div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Resources ---------- */

.resource-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem var(--gap);
}
.resource-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "type action" "title action";
  gap: 0.15rem 1rem;
  align-items: center;
  height: 100%;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.resource-list a:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--text); }
.resource-type { grid-area: type; font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.resource-title { grid-area: title; font-weight: 700; color: var(--heading); }
.resource-action { grid-area: action; color: var(--link); font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .resource-list { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  color: #d8e9f0;
  background:
    radial-gradient(40rem 20rem at 0% 100%, rgb(15 164 201 / 35%), transparent 60%),
    linear-gradient(120deg, #002c3e 0%, #1d647c 100%);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cta-inner h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-inner p { margin: 0; max-width: 38rem; color: #cde6ee; }
.cta-inner .actions { margin: 0; }

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

.site-footer {
  background: #001f2c;
  color: #b9d0da;
  font-size: 0.98rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.footer-logo { width: 170px; }
.footer-brand p { margin: 1.25rem 0 1rem; max-width: 24rem; }
.footer-brand address { line-height: 1.7; }
.site-footer a { color: #e3f1f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-col h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-base {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 0.9rem;
}
.footer-base p { margin: 0; }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

.page-hero .hero-copy > * { animation: rise 0.7s ease both; }
.page-hero .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.page-hero .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.page-hero .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.page-hero .hero-media { animation: fade 0.9s ease 0.1s both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer nav { display: none; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
