/* =========================================================
   preclinics - Design System
   Tokens, typography, layout primitives, components
   ========================================================= */

/* ===== Fonts (legacy DIN Round, body Inter) ===== */

@font-face {
  font-family: "DIN";
  src: url("assets/fonts/DINRoundWeb.eot");
  src: url("assets/fonts/DINRoundWeb.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --pc-blue-900: #071a2e;
  --pc-blue-800: #0f2e4d;
  --pc-blue-700: #163c63;
  --pc-blue-500: #2b5c87;
  --pc-blue-300: #8bb0d1;
  --pc-blue-100: #dbe6f2;
  --pc-blue-050: #eef3f9;
  --pc-blue-025: #f5f9fd;

  --pc-green-700: #5f9227;
  --pc-green-600: #78b032;
  --pc-green-500: #8bc53e;
  --pc-green-400: #a5d15e;
  --pc-green-100: #e8f4d4;
  --pc-green-050: #f3f9e8;

  /* Neutrals */
  --pc-ink-900: #0b1a2a;
  --pc-ink-800: #1a2a3c;
  --pc-ink-700: #2b3e53;
  --pc-ink-600: #455a72;
  --pc-ink-500: #6a7e93;
  --pc-ink-400: #9aaec2;
  --pc-ink-200: #d6dfe8;
  --pc-ink-100: #e6edf4;
  --pc-ink-050: #f4f7fa;
  --pc-white: #ffffff;

  /* Semantic */
  --pc-surface: var(--pc-white);
  --pc-surface-soft: var(--pc-blue-025);
  --pc-surface-soft-alt: var(--pc-ink-050);
  --pc-surface-inverse: var(--pc-blue-800);
  --pc-text-primary: var(--pc-ink-900);
  --pc-text-body: var(--pc-ink-700);
  --pc-text-muted: var(--pc-ink-500);
  --pc-accent: var(--pc-green-500);

  /* Focus
     - default ring for light surfaces (green halo)
     - inverse ring for dark / brand-coloured surfaces (white halo with blue core) */
  --pc-focus: 0 0 0 3px rgba(139, 197, 62, 0.55);
  --pc-focus-inverse: 0 0 0 2px var(--pc-blue-800), 0 0 0 5px rgba(255, 255, 255, 0.9);

  /* Radii */
  --pc-r-xs: 2px;
  --pc-r-sm: 4px;
  --pc-r-md: 7px;
  --pc-r-lg: 11px;

  /* Shadows - subtle, clinical */
  --pc-shadow-1: 0 1px 0 rgba(15, 46, 77, 0.04), 0 1px 2px rgba(15, 46, 77, 0.06);
  --pc-shadow-2: 0 2px 4px rgba(15, 46, 77, 0.06), 0 8px 24px rgba(15, 46, 77, 0.08);
  --pc-shadow-3: 0 4px 12px rgba(15, 46, 77, 0.08), 0 20px 48px rgba(15, 46, 77, 0.12);

  /* Layout */
  --pc-container: 1280px;
  --pc-container-narrow: 880px;

  /* Type scale */
  --pc-display: clamp(2.4rem, 4.6vw, 3.8rem);
  --pc-h1: clamp(2.06rem, 3.7vw, 2.95rem);
  --pc-h2: clamp(1.4rem, 2.3vw, 1.9rem);
  --pc-h3: 1.28rem;
  --pc-h4: 1.05rem;
  --pc-body: 1.03rem;
  --pc-small: 0.875rem;
  --pc-micro: 0.78rem;

  /* Motion */
  --pc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pc-dur: 220ms;

  /* Font stacks */
  --pc-font-head: "DIN", "DIN Next", "PT Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  --pc-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  :root { --pc-dur: 0ms; }
}

/* ===== Base ===== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pc-surface);
  color: var(--pc-text-body);
  font-family: var(--pc-font-body);
  font-size: var(--pc-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  color: var(--pc-text-primary);
  font-family: var(--pc-font-head);
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--pc-h1); }
/* H2 carries section hierarchy on content pages — one step firmer than the
   regular H1/H3 so it reads as a heading, not oversized body copy (#169). */
h2 { font-size: var(--pc-h2); font-weight: 500; }
h3 { font-size: var(--pc-h3); }
h4 { font-size: var(--pc-h4); font-weight: 500; }

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

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

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

::selection { background: var(--pc-green-100); color: var(--pc-blue-800); }

/* ===== Accessibility ===== */

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--pc-blue-800);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: var(--pc-r-sm);
}
.skip-link:focus { left: 12px; top: 12px; box-shadow: var(--pc-focus); }

:focus-visible { outline: 0; box-shadow: var(--pc-focus); border-radius: var(--pc-r-sm); }

/* Inverse focus ring for keyboard users on dark / branded surfaces */
.site-header .nav-link:focus-visible,
.site-header .nav-burger:focus-visible,
.home-page .hero .btn:focus-visible,
.highlight-strip .btn:focus-visible,
.site-footer a:focus-visible,
.site-footer .btn:focus-visible,
.site-footer .field:focus-visible,
.cta-banner .btn:focus-visible,
.section--inverse .btn:focus-visible,
.section--inverse a:focus-visible,
.search-modal input:focus-visible,
.search-modal .btn:focus-visible {
  box-shadow: var(--pc-focus-inverse);
}

/* ===== Layout primitives ===== */

.container {
  width: min(var(--pc-container), calc(100% - 40px));
  margin-inline: auto;
}
.container-narrow {
  width: min(var(--pc-container-narrow), calc(100% - 40px));
  margin-inline: auto;
}

.section { padding: clamp(40px, 6vw, 64px) 0; }
/* Only draw a divider between two plain-white sections; colour changes carry the break otherwise. */
.section + .section { border-top: 1px solid var(--pc-ink-100); }
.section--soft,
.section--soft-alt,
.section--inverse { border-top: 0; }
.section--soft + .section,
.section--soft-alt + .section,
.section + .section--soft,
.section + .section--soft-alt,
.section--inverse + .section,
.section + .section--inverse,
.highlight-strip + .section,
.section + .highlight-strip { border-top: 0; }
.section--soft { background: var(--pc-surface-soft); }
.section--soft-alt { background: var(--pc-surface-soft-alt); }

.section--inverse {
  background: var(--pc-blue-800);
  color: #c9d6e5;
}
.section--inverse h1, .section--inverse h2,
.section--inverse h3, .section--inverse h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pc-font-body);
  font-size: var(--pc-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pc-text-muted);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--pc-accent);
  border-radius: 2px;
}

.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head h2 { max-width: 24ch; }
.section__head p {
  max-width: 66ch;
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--pc-text-body);
  margin: 14px 0 0;
}

/* ===== Header — green brand band ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pc-green-500);
  background-image: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: background var(--pc-dur) var(--pc-ease),
              border-color var(--pc-dur) var(--pc-ease),
              box-shadow var(--pc-dur) var(--pc-ease);
}

.legacy-banner {
  background: #f1f6fc;
  border-top: 1px solid #d4e0ee;
  border-bottom: 1px solid #d4e0ee;
  color: #1f3550;
}

.legacy-banner__inner {
  padding: 8px 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.legacy-banner a {
  text-decoration: underline;
  font-weight: 600;
}

.nav-shell {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
  transition: min-height var(--pc-dur) var(--pc-ease);
}

.logo {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
}
.logo img,
.logo svg {
  width: 128px;
  height: auto;
  display: block;
  transition: width var(--pc-dur) var(--pc-ease);
}

.nav-main { margin-left: auto; }

.nav-menu {
  display: flex; gap: 2px;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav-item { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--pc-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  border-radius: var(--pc-r-sm);
  transition: background var(--pc-dur) var(--pc-ease),
              color var(--pc-dur) var(--pc-ease),
              border-color var(--pc-dur) var(--pc-ease);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item:hover .nav-link { background: rgba(255,255,255,0.22); color: #fff; }

.nav-link--cta {
  background: rgba(15, 46, 77, 0.36);
  color: #fff;
  margin-left: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}
.nav-link--cta:hover { background: rgba(15, 46, 77, 0.52); color: #fff; }

.nav-caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.85;
}

/* Mega menu */
.mega {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  padding-top: 12px;
  width: min(720px, calc(100vw - 40px));
  max-width: 90vw;
  display: none;
  z-index: 50;
}
/* Keep last nav-items anchored right to stay inside viewport */
.nav-item:nth-last-of-type(-n+3) .mega {
  left: auto;
  right: 0;
  transform: none;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega { display: block; }

.mega__panel {
  background: #fff;
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-lg);
  box-shadow: var(--pc-shadow-3);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 3), minmax(0, 1fr));
  gap: 22px;
}
.mega__col h4 {
  color: var(--pc-blue-800);
  font-family: var(--pc-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pc-ink-100);
}
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col a {
  display: block;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: var(--pc-r-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--pc-ink-700);
  transition: background var(--pc-dur) var(--pc-ease), color var(--pc-dur) var(--pc-ease);
}
.mega__col a:hover { background: var(--pc-green-050); color: var(--pc-blue-800); }
.mega__col a small {
  display: block;
  color: var(--pc-text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* 4-column layout (Science): widen the panel and let the single-item
   Products column read as a distinct, divided callout on the right. */
.mega[data-cols="4"] { width: min(900px, calc(100vw - 40px)); }
.mega[data-cols="4"] .mega__panel {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.8fr);
}
.mega[data-cols="4"] .mega__col:last-child {
  border-left: 1px solid var(--pc-ink-100);
  padding-left: 20px;
}

/* Burger (mobile trigger) */
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.96);
  border-radius: var(--pc-r-sm);
}
.nav-burger:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Home intro: full green stage, then compact sticky bar */
.home-page .hero {
  min-height: auto;
  padding: clamp(148px, 10.5vw, 172px) 0 clamp(24px, 3vw, 36px);
  background:
    linear-gradient(145deg, rgba(149, 205, 72, 0.5), rgba(107, 156, 45, 0.62)),
    url("assets/images/biotech-hero-bg-v3.svg"),
    linear-gradient(140deg, #95cd48, #6b9c2d);
  background-size: 100% 100%, 116% 116%, 100% 100%;
  background-position: 0 0, 50% 0, 0 0;
}

.home-page .hero::before {
  display: block;
  background:
    radial-gradient(42% 46% at 24% 28%, rgba(234, 247, 208, 0.26), transparent 72%),
    radial-gradient(48% 54% at 76% 38%, rgba(219, 230, 242, 0.2), transparent 72%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
}

.home-page .hero::after { display: none; }

@keyframes heroColorFlow {
  0% { background-position: 0 0, 50% 0, 0 0; }
  50% { background-position: 0 0, 44% 8%, 0 0; }
  100% { background-position: 0 0, 58% 14%, 0 0; }
}

@keyframes heroOverlayFlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.2%, 0.6%, 0) scale(1.02); }
  100% { transform: translate3d(1.4%, -0.8%, 0) scale(1.03); }
}

/* Run the gentle hero motion only where it is actually visible: a device with a
   hover-capable pointer (desktop/laptop), motion is allowed, and the user has
   enough viewport to see the effect. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 961px) {
  .home-page .hero::before {
    animation: heroOverlayFlow 14s ease-in-out infinite alternate;
  }
}

.home-page .hero__title,
.home-page .hero__stat strong {
  color: #fff;
}

.home-page .hero__stat span {
  color: rgba(255, 255, 255, 0.78);
}

.home-page .hero__title em {
  color: #ffffff;
  font-style: normal;
  text-decoration-color: rgba(255, 255, 255, 0.75);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}

.home-page .hero__lead {
  color: rgba(255, 255, 255, 0.9);
}

.home-page .hero__stats,
.home-page .hero__stat + .hero__stat {
  border-color: rgba(255, 255, 255, 0.24);
}

.home-page .hero__cta .btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 650;
}

.home-page .hero__cta .btn:not(.btn--ghost) {
  background: #fff;
  color: var(--pc-blue-800);
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(10, 30, 48, 0.16);
}

.home-page .hero__cta .btn:not(.btn--ghost):hover {
  background: #f2f7fc;
  color: var(--pc-blue-800);
  border-color: #f2f7fc;
}

.home-page .hero__cta .btn--ghost {
  background: rgba(10, 30, 48, 0.34);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.home-page .hero__cta .btn--ghost:hover {
  background: rgba(10, 30, 48, 0.52);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 961px) {
  .home-page .hero__grid {
    padding-left: clamp(18px, 2.2vw, 36px);
    padding-right: clamp(10px, 1.2vw, 20px);
  }

  .home-page .site-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 70;
  }

  .home-page .nav-shell {
    padding-left: clamp(18px, 2.2vw, 36px);
    padding-right: clamp(10px, 1.2vw, 20px);
  }

  .home-page:not(.is-scrolled) .site-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .home-page:not(.is-scrolled) .nav-shell {
    min-height: 116px;
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .home-page:not(.is-scrolled) .logo {
    padding: 14px 0;
    margin-right: 30px;
  }

  .home-page:not(.is-scrolled) .logo img,
  .home-page:not(.is-scrolled) .logo svg {
    width: 216px;
  }

  .home-page:not(.is-scrolled) .nav-link,
  .home-page:not(.is-scrolled) .nav-burger {
    color: rgba(255, 255, 255, 0.96);
  }

  .home-page:not(.is-scrolled) .nav-link {
    font-weight: 500;
  }

  .home-page:not(.is-scrolled) .nav-link:hover,
  .home-page:not(.is-scrolled) .nav-link[aria-current="page"],
  .home-page:not(.is-scrolled) .nav-item:hover .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .home-page:not(.is-scrolled) .nav-link--cta {
    background: rgba(15, 46, 77, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.32);
  }

  .home-page:not(.is-scrolled) .nav-link--cta:hover,
  .home-page:not(.is-scrolled) .nav-item:hover .nav-link--cta {
    background: rgba(15, 46, 77, 0.52);
  }

  .home-page.is-scrolled .site-header {
    position: fixed;
    background: var(--pc-green-500);
    border-bottom-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(calc(-100% - 2px));
    transition: none;
  }

  .home-page.is-scrolled.nav-reveal .site-header {
    transform: translateY(0);
    transition: transform var(--pc-dur) var(--pc-ease),
                background var(--pc-dur) var(--pc-ease),
                border-color var(--pc-dur) var(--pc-ease),
                box-shadow var(--pc-dur) var(--pc-ease);
  }

  .home-page.is-scrolled .nav-shell {
    padding-left: clamp(16px, 1.8vw, 30px);
    padding-right: clamp(8px, 1vw, 18px);
  }

  .home-page.is-scrolled .nav-link,
  .home-page.is-scrolled .nav-burger {
    color: rgba(255, 255, 255, 0.96);
  }

  .home-page.is-scrolled .nav-link:hover,
  .home-page.is-scrolled .nav-link[aria-current="page"],
  .home-page.is-scrolled .nav-item:hover .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .home-page.is-scrolled .nav-link--cta {
    background: rgba(15, 46, 77, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.32);
  }

  .home-page.is-scrolled .nav-link--cta:hover,
  .home-page.is-scrolled .nav-item:hover .nav-link--cta {
    background: rgba(15, 46, 77, 0.52);
  }

  .home-page.is-scrolled .logo img,
  .home-page.is-scrolled .logo svg {
    width: 128px;
  }
}

@media (max-width: 960px) {
  .home-page .hero {
    min-height: auto;
    padding-top: clamp(24px, 4.5vw, 36px);
    padding-bottom: clamp(20px, 3.5vw, 32px);
  }

  .home-page .hero__cta .btn {
    border-radius: 999px;
  }

  .home-page .hero__title {
    max-width: 18ch;
  }
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  border-radius: 2px;
  transition: transform var(--pc-dur) var(--pc-ease),
              opacity var(--pc-dur) var(--pc-ease);
  position: relative;
}
.nav-burger span::before { position: absolute; top: -7px; left: 0; }
.nav-burger span::after { position: absolute; top: 7px; left: 0; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen overlay */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  padding: 96px 24px 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--pc-dur) var(--pc-ease),
              visibility var(--pc-dur) var(--pc-ease),
              transform var(--pc-dur) var(--pc-ease);
}
.mobile-panel.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-panel__inner {
  width: min(640px, 100%);
  margin-inline: auto;
}
.mobile-panel details {
  border-bottom: 1px solid var(--pc-ink-100);
}
.mobile-panel details:first-of-type { border-top: 1px solid var(--pc-ink-100); }
.mobile-panel summary,
.mobile-panel .mobile-link {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--pc-font-head);
  font-size: 1.5rem;
  color: var(--pc-blue-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-panel summary::-webkit-details-marker { display: none; }
.mobile-panel summary::after {
  content: "+";
  font-family: var(--pc-font-body);
  font-size: 1.4rem;
  color: var(--pc-green-700);
  font-weight: 300;
  transition: transform var(--pc-dur) var(--pc-ease);
}
.mobile-panel details[open] summary::after { transform: rotate(45deg); }

.mobile-panel .mobile-sub {
  padding: 4px 0 20px;
  display: grid;
  gap: 16px;
}
.mobile-panel .mobile-sub h4 {
  font-family: var(--pc-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pc-text-muted);
  margin: 8px 0 6px;
}
.mobile-panel .mobile-sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-panel .mobile-sub a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--pc-ink-800);
}
.mobile-panel .mobile-sub a:hover { color: var(--pc-green-700); }

.mobile-panel__cta {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-panel__utility {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pc-ink-100);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.9rem;
  color: var(--pc-text-muted);
}
.mobile-panel__utility a { color: var(--pc-ink-800); font-weight: 600; }

/* ===== Buttons ===== */

.btn {
  --btn-bg: var(--pc-green-600);
  --btn-fg: #ffffff;
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.012em;
  font-family: var(--pc-font-body);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  cursor: pointer;
  transition: background var(--pc-dur) var(--pc-ease),
              color var(--pc-dur) var(--pc-ease),
              border-color var(--pc-dur) var(--pc-ease),
              box-shadow var(--pc-dur) var(--pc-ease);
}
.btn:hover {
  background: var(--pc-green-700);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 6px 14px rgba(15, 46, 77, 0.18);
}
.btn:active {
  background: var(--pc-green-700);
  box-shadow: 0 1px 2px rgba(15, 46, 77, 0.24) inset;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pc-blue-800);
  --btn-border: var(--pc-blue-800);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--pc-blue-050);
  --btn-border: var(--pc-blue-700);
  --btn-fg: var(--pc-blue-700);
  box-shadow: none;
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255,255,255,0.6);
  box-shadow: none;
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255,255,255,0.14);
  --btn-border: rgba(255,255,255,0.9);
  box-shadow: none;
}

.btn--solid-blue {
  --btn-bg: var(--pc-blue-800);
  --btn-fg: #fff;
  --btn-border: var(--pc-blue-800);
}
.btn--solid-blue:hover { --btn-bg: var(--pc-blue-700); --btn-border: var(--pc-blue-700); }

.btn--link {
  --btn-bg: transparent;
  --btn-fg: var(--pc-blue-800);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.004em;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  background: transparent;
  color: var(--btn-fg);
}
.btn--link > .btn__label,
.btn--link::before {
  /* pseudo-hook for the label when present; we still support bare text */
}
.btn--link::after {
  content: "→";
  display: inline-block;
  transition: transform var(--pc-dur) var(--pc-ease);
}
.btn--link:hover {
  background: transparent;
  color: var(--pc-blue-700);
  box-shadow: none;
}
.btn--link:hover::after { transform: translateX(4px); }

/* Underline grows only under the label, never under the arrow */
.btn--link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size var(--pc-dur) var(--pc-ease),
              color var(--pc-dur) var(--pc-ease);
  /* keep the arrow out of the underline by placing it after a gap */
}
.btn--link:hover {
  background-size: calc(100% - 1.4em) 2px;
}

.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.8rem; letter-spacing: 0.02em; }

/* ===== Hero — LIGHT variant ===== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--pc-blue-025) 60%, var(--pc-surface-soft) 100%);
  color: var(--pc-text-body);
  padding: clamp(54px, 7.5vw, 94px) 0 clamp(64px, 9vw, 112px);
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
.hero::before {
  background-image:
    linear-gradient(rgba(15, 46, 77, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 46, 77, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.6), rgba(0,0,0,0) 70%);
}
.hero::after {
  background:
    radial-gradient(circle at 92% 8%, rgba(139,197,62,0.18), transparent 42%),
    radial-gradient(circle at 8% 95%, rgba(43,92,135,0.10), transparent 50%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: #fff;
  border: 1px solid var(--pc-ink-100);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pc-text-body);
  margin-bottom: 22px;
  box-shadow: var(--pc-shadow-1);
}
.hero__kicker span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: var(--pc-blue-900);
  font-size: 0.72rem; font-weight: 800;
}

.hero__title {
  color: var(--pc-blue-800);
  font-family: var(--pc-font-head);
  font-size: var(--pc-display);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.014em;
  margin-bottom: 22px;
  max-width: 20ch;
}
.hero__title em {
  font-style: normal;
  color: var(--pc-green-600);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(139, 197, 62, 0.55);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: none;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pc-ink-600);
  max-width: 52ch;
  margin: 0 0 34px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta .btn { min-width: 0; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--pc-ink-100);
}
.hero__stat { padding-right: 14px; }
.hero__stat + .hero__stat {
  padding-left: 22px;
  border-left: 1px solid var(--pc-ink-100);
}
.hero__stat strong {
  display: block;
  color: var(--pc-blue-800);
  font-family: var(--pc-font-head);
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.016em;
}
.hero__stat span {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-text-muted);
  line-height: 1.4;
}

/* ===== Page intro (content pages) ===== */

.page-intro {
  padding: clamp(34px, 4.8vw, 62px) 0 clamp(30px, 4vw, 52px);
  background: linear-gradient(180deg, #f8fcf1 0%, #f5f9fd 100%);
  border-bottom: 1px solid var(--pc-ink-100);
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: var(--pc-small);
  color: var(--pc-text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--pc-text-muted); transition: color var(--pc-dur) var(--pc-ease); }
.breadcrumbs a:hover { color: var(--pc-blue-800); }
.breadcrumbs span[aria-hidden] { color: var(--pc-ink-400); }

.page-intro h1 { color: var(--pc-blue-800); font-size: var(--pc-h1); margin-bottom: 14px; }
.page-intro p { max-width: 70ch; font-size: 1.1rem; }

/* ===== Cards ===== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  /* Quieter top edge: icon cards read top-heavy with 28px above the spot (#169) */
  padding: 20px 28px 28px;
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-200);
  border-radius: var(--pc-r-lg);
  box-shadow: var(--pc-shadow-1);
  transition: border-color var(--pc-dur) var(--pc-ease),
              box-shadow var(--pc-dur) var(--pc-ease);
}
/* Hover accent as an inset shadow: it hugs the border-radius exactly, so it
   can never overlap the 1px border or bleed past the rounded corner (#169).
   prefers-reduced-motion collapses --pc-dur to 0ms, so the state snaps. */
.card:hover {
  border-color: var(--pc-ink-400);
  box-shadow: var(--pc-shadow-1), inset 4px 0 0 var(--pc-accent);
}

.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--pc-r-sm);
  background: var(--pc-green-050);
  color: var(--pc-green-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--pc-font-head);
  font-weight: 400;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--pc-dur) var(--pc-ease),
              color var(--pc-dur) var(--pc-ease);
}
.card__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.card:hover .card__icon {
  background: var(--pc-green-500);
  color: #fff;
}
.card h3 { font-size: 1.2rem; font-weight: 600; margin: 0; color: var(--pc-blue-800); }
.card p { margin: 0; color: var(--pc-text-body); font-size: 0.97rem; line-height: 1.6; }
.card .btn--link { margin-top: auto; align-self: flex-start; }

/* ===== Feature rows ===== */

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.feature-row--reverse { grid-template-columns: 1fr 1.1fr; }
.feature-row--reverse .feature-row__media { order: -1; }

.feature-row__media {
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-lg);
  overflow: hidden;
  background-color: var(--pc-ink-050);
  background-image: radial-gradient(rgba(15, 46, 77, 0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: center;
  box-shadow: var(--pc-shadow-1);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}

.feature-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.65; }
.feature-list li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-top: 9px;
  background: var(--pc-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== Highlight strip (contrast module) ===== */

.highlight-strip {
  position: relative;
  background: var(--pc-blue-800);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #d7e3f2;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 0;
}
.highlight-strip::before,
.highlight-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139, 197, 62, 0.55) 18%,
    rgba(139, 197, 62, 0.55) 82%,
    transparent 100%);
  pointer-events: none;
}
.highlight-strip::before { top: 0; }
.highlight-strip::after { bottom: 0; }
.highlight-strip h2 { color: #fff; font-weight: 500; }
.highlight-strip .eyebrow { color: #9ab1c9; }
.highlight-strip .eyebrow::before { background: var(--pc-green-400); }
.highlight-strip p { color: #c4d3e5; }

.quality-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  aspect-ratio: auto;
  padding: 32px;
}

.quality-card .feature-list { color: #c4d3e5; }

.quality-card__title {
  color: #fff;
  font-family: var(--pc-font-head);
  font-size: 1.45rem;
  margin-bottom: 14px;
  letter-spacing: -0.008em;
}

/* ===== Technology Hub pattern ===== */

.hub {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.hub-list {
  display: grid; gap: 4px;
  padding: 10px;
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-lg);
  box-shadow: var(--pc-shadow-1);
}

.hub-node {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--pc-r-sm);
  text-align: left; font: inherit; cursor: pointer;
  transition: background var(--pc-dur) var(--pc-ease),
              border-color var(--pc-dur) var(--pc-ease);
}
.hub-node:hover { background: var(--pc-blue-025); }
.hub-node[aria-selected="true"] {
  background: var(--pc-green-050);
  border-left-color: var(--pc-accent);
}
.hub-node strong { color: var(--pc-text-primary); font-weight: 600; font-size: 0.98rem; font-family: var(--pc-font-body); }
.hub-node small { color: var(--pc-text-muted); font-size: 0.82rem; }

.hub-panel {
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-lg);
  box-shadow: var(--pc-shadow-1);
  padding: 32px;
  min-height: 360px;
}
.hub-panel h3 { color: var(--pc-blue-800); font-family: var(--pc-font-head); font-size: 1.7rem; margin: 10px 0 14px; }
.hub-panel p { color: var(--pc-text-body); font-size: 1.02rem; }

.hub-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-green-700);
  background: var(--pc-green-050);
  border-radius: 999px;
}

.hub-meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  margin: 18px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--pc-ink-100);
  border-bottom: 1px solid var(--pc-ink-100);
}
.hub-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc-text-muted); }
.hub-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--pc-text-primary); font-size: 0.95rem; }

/* ===== Tags ===== */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pc-blue-700);
  background: var(--pc-blue-050);
  border-radius: 999px;
}

/* ===== Forms ===== */

.field {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  color: var(--pc-text-primary);
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-200);
  border-radius: var(--pc-r-sm);
  transition: border-color var(--pc-dur) var(--pc-ease),
              box-shadow var(--pc-dur) var(--pc-ease);
}
.field::placeholder { color: var(--pc-text-muted); }
.field:hover { border-color: var(--pc-ink-400); }
.field:focus { outline: 0; border-color: var(--pc-accent); box-shadow: var(--pc-focus); }

.field-group { display: flex; gap: 10px; flex-wrap: wrap; }
.field-group .field { flex: 1 1 180px; }

/* ===== Network grid (group entities across Europe) ===== */

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 960px) {
  .network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .network-grid {
    grid-template-columns: 1fr;
  }
}

.network-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  box-shadow: var(--pc-shadow-1);
  transition: border-color var(--pc-dur) var(--pc-ease),
              transform var(--pc-dur) var(--pc-ease);
}
.network-card:hover {
  border-color: var(--pc-ink-200);
}

.network-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.network-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  font-family: var(--pc-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pc-green-700);
  background: var(--pc-green-050);
  border-radius: var(--pc-r-xs);
}

.network-card__city {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--pc-text-muted);
}

.network-card__name {
  color: var(--pc-blue-800);
  font-family: var(--pc-font-head);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

.network-card__focus {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--pc-text-body);
}

/* CTA card filling the 8th network-grid slot (issue #22, option a) */
.network-card--cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--pc-green-500);
  border-color: var(--pc-green-500);
  color: #fff;
  text-decoration: none;
  transition: border-color var(--pc-dur) var(--pc-ease),
              background var(--pc-dur) var(--pc-ease);
}
.network-card--cta:hover {
  border-color: var(--pc-green-600);
  background: var(--pc-green-600);
}
.network-card--cta .network-card__head {
  justify-content: center;
}
.network-card--cta .network-card__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.network-card--cta .network-card__name {
  color: #fff;
}
.network-card--cta .network-card__focus {
  color: rgba(255, 255, 255, 0.92);
}

/* Legacy logo-strip kept for backwards-compatibility until sub-pages migrate */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}
.logo-strip__item {
  display: flex; align-items: center; justify-content: center;
  height: 56px;
  padding: 0 12px;
  color: var(--pc-blue-800);
  font-family: var(--pc-font-head);
  font-size: 0.84rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  background: #fff;
  box-shadow: var(--pc-shadow-1);
}

.network-cta {
  text-align: center;
  margin-top: 30px;
}

/* ===== CTA banner ===== */

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, var(--pc-blue-800), var(--pc-blue-700));
  color: #d7e3f2;
  border-radius: var(--pc-r-lg);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 32px;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { margin: 0; max-width: 50ch; }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-banner--plain {
  background: transparent;
  padding: 0;
}

.hub-title {
  margin-bottom: 16px;
}

/* ===== Generic content variants ===== */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.content-main {
  display: grid;
  gap: 28px;
}

.content-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-lg);
  box-shadow: var(--pc-shadow-1);
  padding: 24px;
}

.panel h3 {
  color: var(--pc-blue-800);
  margin-bottom: 12px;
}

.panel p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.panel-list a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--pc-r-sm);
  color: var(--pc-ink-800);
  font-size: 0.92rem;
}

.panel-list a:hover,
.panel-list a[aria-current="page"] {
  background: var(--pc-green-050);
  color: var(--pc-blue-800);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.kpi {
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  padding: 16px;
}

.kpi strong {
  display: block;
  font-family: var(--pc-font-head);
  color: var(--pc-blue-800);
  font-size: 1.35rem;
  line-height: 1;
}

.kpi span {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-text-muted);
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.list-check li {
  display: flex;
  gap: 10px;
  font-size: 0.96rem;
  line-height: 1.62;
}

.list-check li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--pc-accent);
  flex-shrink: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.topic-item {
  background: var(--pc-white);
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  padding: 16px;
}

.topic-item h4 {
  color: var(--pc-blue-800);
  margin-bottom: 7px;
}

.topic-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
}

/* Legacy `.timeline` column grid + `.timeline-step` removed (#169): the
   single-column journey list lives in src/styles/global.css. */

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  padding: 18px;
  background: var(--pc-white);
}

.news-item time {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--pc-text-muted);
}

.jobs {
  display: grid;
  gap: 12px;
}

.job-item {
  border: 1px solid var(--pc-ink-100);
  border-radius: var(--pc-r-md);
  background: var(--pc-white);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(22px, 5vw, 60px);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--pc-text-muted);
  font-weight: 700;
}

/* ===== Footer (dark, contrast anchor) ===== */

.site-footer {
  background: var(--pc-blue-900);
  color: #c9d6e5;
  padding-top: 60px;
}
.site-footer a { color: #c9d6e5; transition: color var(--pc-dur) var(--pc-ease); }
.site-footer a:hover { color: #fff; }

/* Company/address block — the search cell sits inside the sitemap grid
   (.footer-search inside .footer-links), so this is a single column now. */
.footer-brand {
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 { color: #fff; font-family: var(--pc-font-head); font-size: 1.25rem; margin-bottom: 14px; }
.footer-brand p { margin-bottom: 10px; font-size: 0.95rem; }

/* Sitemap grid: 6 tracks — the search cell spans the first two, the four
   link columns (Science · Company · Resources · Prototype) take one each.
   Production hides the Prototype column (#222), so it drops to 5 tracks. */
.footer-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links--prod { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Search — one double-wide cell in the sitemap grid. The newsletter form
   was removed (#222, signup now happens via request-a-quote / download
   gate), so the trigger gets the whole cell as a full-width pill. */
.footer-search {
  grid-column: span 2;
  align-self: start;
  display: grid;
  gap: 10px;
}

.footer-links h4 {
  color: #fff;
  font-family: var(--pc-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }

/* Search trigger — full-width pill that reads like a search field. */
.footer-search__label {
  display: block;
  font-family: var(--pc-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93acc7;
}
.footer-search__btn {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding: 0 20px;
  font-size: 0.95rem;
}
.footer-search__btn svg { flex: none; opacity: 0.85; }

.footer-bottom {
  padding: 18px 0 28px;
  font-size: 0.82rem;
  color: #7e99b5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { color: #93acc7; }
.footer-bottom a:hover { color: #fff; }
.footer-build {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #5e7a99;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-build__env {
  text-transform: uppercase;
}
.footer-build__sep {
  color: #46607d;
}

/* ===== Search overlay ===== */

.search-modal {
  position: fixed; inset: 0; z-index: 80;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(7, 26, 46, 0.95);
  padding: 10vh 20px 20px;
}
.search-modal.active { display: flex; }
.search-shell { width: min(720px, 100%); }
.search-shell__row { display: flex; gap: 10px; align-items: center; }
.search-shell input[type="search"] {
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  font-size: 1.25rem;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--pc-r-sm);
}
.search-shell input::placeholder { color: #7e99b5; }
.search-results { margin-top: 16px; display: grid; gap: 8px; }
.search-results a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  color: var(--pc-blue-800);
  font-weight: 600;
  border-radius: var(--pc-r-sm);
  transition: transform var(--pc-dur) var(--pc-ease);
}
.search-results a:hover { transform: translateX(4px); }

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Compact desktop */
@media (max-width: 1180px) {
  .nav-link { padding: 0 10px; font-size: 0.9rem; }
  .nav-link--cta { padding: 0 14px; }
  .mega { min-width: 560px; }
}

/* Transition to mobile */
@media (max-width: 960px) {
  .nav-main { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }

  .hero__grid,
  .feature-row,
  .feature-row--reverse,
  .hub,
  .content-layout,
  .contact-layout,
  .cta-banner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .hero__cta .btn { min-width: 0; }
  .hero__stat,
  .hero__stat + .hero__stat {
    padding-inline: 0;
    border-left: 0;
  }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .logo-strip { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .quality-card { padding: 24px; }
  .content-aside { position: static; }
}

@media (max-width: 640px) {
  .nav-shell { min-height: 60px; }
  .logo img, .logo svg { width: 108px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; }
  .mobile-panel { padding-top: 84px; }
  .mobile-panel summary,
  .mobile-panel .mobile-link { font-size: 1.3rem; }
  .hero__lead { font-size: 1.02rem; }
  .hero__stats { gap: 18px; }
  .hero__title { max-width: 15ch; }
  .hero__cta .btn { min-width: 0; }
  .btn { width: 100%; }
  .hero__cta .btn,
  .cta-banner .btn,
  .mobile-panel__cta .btn,
  .field-group .btn { width: auto; }
}

@media print {
  .site-header, .site-footer, .search-modal, .mobile-panel, .cta-banner { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero__title { color: #000; }
}
