:root {
  --color-ink: #17202a;
  --color-muted: #5d6978;
  --color-soft: #f4f7f9;
  --color-panel: #ffffff;
  --color-line: #dce4ea;
  --color-primary: #031b3d;
  --color-primary-dark: #02142c;
  --color-accent: #e05f3f;
  --color-gold: #bc8b2c;
  --color-blue: #05264f;
  --color-header: #031b3d;
  --color-header-2: #05264f;
  --color-signal: #19b8e6;
  --color-teal-soft: #e8f1f8;
  --color-coral-soft: #fde9e2;
  --shadow-soft: 0 18px 48px rgba(17, 33, 46, 0.12);
  --shadow-card: 0 14px 34px rgba(18, 38, 55, 0.1);
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 1320px;
  --header-height: 128px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #fbfcfd;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid rgba(224, 95, 63, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  background: var(--color-ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(circle at 12% 0%, rgba(25, 184, 230, 0.16), transparent 18rem),
    linear-gradient(135deg, var(--color-header), var(--color-header-2));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25, 184, 230, 0.25);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(3, 27, 61, 0.24);
}

.site-nav {
  min-height: var(--header-height);
  height: var(--header-height);
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.9rem, 2vw, 2rem);
  position: relative;
  overflow: visible;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  color: #fff;
  width: clamp(220px, 21vw, 310px);
  min-width: clamp(220px, 21vw, 310px);
  position: relative;
  z-index: 2;
}

.brand:hover {
  color: #fff;
}

.brand-logo {
  width: 100%;
  height: 76px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text span {
  display: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.brand-text--center span {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.74rem, 0.9vw, 0.86rem);
  font-weight: 650;
  line-height: 1.16;
  text-align: center;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(25, 184, 230, 0.32);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 0.65rem;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* RO/EN switch: always in the header bar, next to the menu button on small screens. */
.lang-switch {
  display: inline-flex;
  flex: none;
  margin-left: auto;
  border: 1px solid rgba(25, 184, 230, 0.42);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  position: relative;
  z-index: 3;
}

.lang-switch > * {
  display: grid;
  place-items: center;
  min-width: 1.9rem;
  height: 2.25rem;
  padding: 0 0.4rem;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.86);
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch__current {
  color: var(--color-header);
  background: #9af4ff;
}

@media (max-width: 559px) {
  .site-nav {
    gap: 0.5rem;
  }

  .brand {
    width: min(220px, 100% - 8.5rem);
    min-width: 0;
  }
}

.nav-menu {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  margin: 0;
  padding: 1rem;
  list-style: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(25, 184, 230, 0.16), transparent 18rem),
    linear-gradient(135deg, var(--color-header), var(--color-header-2));
  border-bottom: 1px solid rgba(25, 184, 230, 0.28);
  box-shadow: 0 18px 48px rgba(3, 27, 61, 0.28);
  display: none;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.nav-menu::before,
.nav-menu::after {
  display: none;
}

.nav-signal-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  width: 100%;
  height: 62px;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.nav-menu.is-open {
  display: grid;
}

.nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 0.94rem;
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}

.nav-menu a::before {
  content: none;
}

.nav-menu a::after {
  content: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  background: transparent;
  color: #fff;
  text-shadow: 0 0 12px rgba(25, 184, 230, 0.78);
}

.nav-menu a:hover::before,
.nav-menu a:focus-visible::before,
.nav-menu a[aria-current="page"]::before {
  content: none;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 14%, rgba(224, 95, 63, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 20%, rgba(3, 27, 61, 0.12), transparent 34rem),
    linear-gradient(135deg, #f7fbfc 0%, #ffffff 44%, #f5f7fa 100%);
  border-bottom: 1px solid var(--color-line);
}

.signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.82;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(3, 27, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 27, 61, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.hero__grid {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  min-height: calc(100vh - var(--header-height) - 52px);
  min-height: min(760px, calc(100svh - var(--header-height) - 52px));
  display: grid;
  align-items: center;
  gap: 2.25rem;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary-dark);
  font-weight: 750;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 8vw, 5.8rem);
  max-width: 980px;
}

.home-title {
  display: grid;
  gap: 0.08em;
  font-size: clamp(2rem, 4.6vw, 4rem);
  max-width: 900px;
}

.home-title span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .home-title span {
    white-space: normal;
  }
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.76rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(3, 27, 61, 0.24);
}

.button--secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-line);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--color-teal-soft);
  color: var(--color-primary-dark);
}

.button--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: rgba(3, 27, 61, 0.24);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(3, 27, 61, 0.08);
  color: var(--color-primary-dark);
}

.hero__panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 228, 234, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  backdrop-filter: blur(18px);
}

.research-legend {
  align-self: center;
  display: grid;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  max-width: 360px;
  justify-self: end;
}

.research-legend h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 0;
}

.legend-list {
  display: grid;
  gap: 0.55rem;
}

.legend-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.68rem 0.85rem 0.68rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
}

.legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 0.65rem;
  border-radius: 999px;
  background: var(--legend-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--legend-color) 15%, transparent), 0 0 14px color-mix(in srgb, var(--legend-color) 55%, transparent);
  flex: 0 0 auto;
}

.legend-item strong {
  display: block;
  color: var(--color-ink);
  line-height: 1.25;
  font-size: 0.98rem;
}

.legend-item--blue {
  --legend-color: #19b8e6;
}

.legend-item--coral {
  --legend-color: #e05f3f;
}

.legend-item--gold {
  --legend-color: #bc8b2c;
}

/* Home banner: a real lab photo under a navy gradient, the slogan in a serif face,
   a glowing trace along the bottom (drawn by main.js) and the research areas as one strip. */
.hero--banner {
  --banner-gold: #d9ad55;
  background: var(--color-primary-dark);
  border-bottom: 0;
  color: #fff;
}

.hero--banner::before {
  content: none;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
}

.hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(2, 20, 44, 0.8) 0%, rgba(2, 20, 44, 0.9) 55%, rgba(2, 20, 44, 0.97) 100%);
}

.hero--banner .signal-canvas {
  opacity: 1;
}

.hero--banner .hero__grid {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 1.75rem;
  min-height: min(720px, calc(100svh - var(--header-height) - 52px));
  padding-bottom: clamp(4.5rem, 9vw, 6.5rem);
}

.hero--banner .hero__content {
  max-width: 720px;
}

.hero__since {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}

.hero__since::before,
.hero__since::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--banner-gold);
}

.hero__since span {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--banner-gold);
  border-radius: 2px;
  color: var(--banner-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero__kicker strong {
  color: #9af4ff;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.hero--banner .home-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
}

.hero--banner .home-title span + span {
  color: #9af4ff;
}

.hero__sub {
  max-width: 40rem;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 2.1vw, 1.38rem);
}

.hero--banner .lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.hero--banner .button {
  background: var(--color-signal);
  color: var(--color-primary-dark);
}

.hero--banner .button:hover,
.hero--banner .button:focus-visible {
  background: #9af4ff;
  color: var(--color-primary-dark);
}

.hero--banner .button--secondary,
.hero--banner .button--secondary:hover,
.hero--banner .button--secondary:focus-visible {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: transparent;
}

.hero--banner .button--ghost,
.hero--banner .button--ghost:hover,
.hero--banner .button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero--banner .research-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(2, 20, 44, 0.55);
  border-color: rgba(154, 244, 255, 0.22);
  box-shadow: none;
}

.hero--banner .research-legend h2 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero--banner .legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero--banner .legend-item {
  min-height: 36px;
  padding: 0.4rem 0.75rem 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero--banner .legend-item strong {
  color: #fff;
  font-size: 0.88rem;
}

@media (min-width: 780px) {
  .hero--banner::after {
    background:
      linear-gradient(90deg, #02142c 0%, rgba(2, 20, 44, 0.96) 34%, rgba(3, 27, 61, 0.72) 56%, rgba(3, 27, 61, 0.18) 82%, rgba(3, 27, 61, 0.05) 100%),
      linear-gradient(0deg, rgba(2, 20, 44, 0.75), transparent 35%);
  }
}

.research-stats {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  position: relative;
  min-height: 116px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  perspective: 900px;
  cursor: pointer;
  transition: transform 180ms ease;
}

.stat-card::before {
  content: none;
}

.stat-card__inner {
  position: relative;
  width: 100%;
  min-height: 116px;
  transform-style: preserve-3d;
  transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-card__face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(18, 38, 55, 0.08);
  overflow: hidden;
  backface-visibility: hidden;
}

.stat-card:hover .stat-card__face,
.stat-card:focus-visible .stat-card__face {
  border-color: rgba(3, 27, 61, 0.28);
  box-shadow: 0 14px 34px rgba(3, 27, 61, 0.12);
}

.stat-card__face::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-header), var(--color-header-2));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 220ms ease;
}

.stat-card__front {
  color: var(--color-primary-dark);
}

.stat-card__back {
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 12rem),
    linear-gradient(135deg, var(--color-header), var(--color-primary-dark));
  border-color: rgba(255, 255, 255, 0.22);
  transform: rotateY(180deg);
}

.stat-card__icon {
  width: 30px;
  height: 30px;
  color: var(--color-header-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(3, 27, 61, 0.18));
}

.stat-card span {
  color: var(--color-primary-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.stat-card strong {
  display: block;
  color: inherit;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1;
}

.stat-card:hover,
.stat-card:focus-visible {
  transform: translateY(-4px);
}

.stat-card:hover .stat-card__inner,
.stat-card:focus-visible .stat-card__inner {
  transform: rotateY(180deg);
}

.stat-card:hover .stat-card__face::after,
.stat-card:focus-visible .stat-card__face::after {
  transform: scaleX(1);
}

.stat-card:focus-visible {
  outline: 3px solid rgba(3, 27, 61, 0.35);
  outline-offset: 4px;
}

.stat-card__back span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--soft {
  background: var(--color-soft);
}

.section--compact {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.section-heading p {
  color: var(--color-muted);
  max-width: 760px;
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2,
.grid--3,
.grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  position: relative;
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 1px 0 rgba(18, 38, 55, 0.03);
}

.card--link {
  color: var(--color-ink);
  display: block;
  min-height: 100%;
  overflow: hidden;
}

.card--link::after,
.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 0%), rgba(3, 27, 61, 0.12), transparent 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.card--link:hover,
.card--link:focus-visible,
.interactive-card:hover,
.interactive-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(3, 27, 61, 0.24);
}

.card--link:hover::after,
.card--link:focus-visible::after,
.interactive-card:hover::after,
.interactive-card:focus-within::after {
  opacity: 1;
}

.card,
.card--link,
.interactive-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: var(--color-teal-soft);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.tag--accent {
  background: var(--color-coral-soft);
  color: #8f341d;
}

.tag--gold {
  background: #fff0cf;
  color: #765514;
}

.page-hero__inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.25rem);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.8rem);
}

.breadcrumb {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.filter-panel {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(18, 38, 55, 0.07);
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.filter-grid {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 750;
  font-size: 0.86rem;
  color: var(--color-ink);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--color-ink);
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(3, 27, 61, 0.12);
  outline: none;
}

.filter-summary {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
  font-weight: 650;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.source-strip span {
  color: var(--color-ink);
  font-weight: 800;
}

.source-strip a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(3, 27, 61, 0.16);
  border-radius: 999px;
  background: rgba(232, 241, 248, 0.78);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.source-strip a:hover,
.source-strip a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.empty-state {
  display: none;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: #fff;
  color: var(--color-muted);
}

.empty-state.is-visible {
  display: block;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-card {
  display: grid;
  gap: 0.45rem;
}

.publication-citation {
  color: var(--color-muted);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.publication-links,
.project-links,
.equipment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.publication-card h3,
.dataset-card h3,
.equipment-card h3 {
  margin-bottom: 0.2rem;
}

.authors {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.media-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 252, 0.92)),
    radial-gradient(circle at 20% 10%, rgba(25, 184, 230, 0.15), transparent 18rem);
  box-shadow: 0 20px 48px rgba(3, 27, 61, 0.08);
}

.media-strip__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-primary-dark);
  font-weight: 900;
}

.media-controls {
  display: flex;
  gap: 0.45rem;
}

.media-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(3, 27, 61, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.media-controls button:hover,
.media-controls button:focus-visible {
  transform: translateY(-1px);
  background: var(--color-header);
  color: #fff;
  box-shadow: 0 10px 22px rgba(3, 27, 61, 0.16);
}

.media-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 72vw);
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  scrollbar-color: var(--color-primary) rgba(3, 27, 61, 0.08);
}

.media-card {
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(3, 27, 61, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(3, 27, 61, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-card:hover,
.media-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(3, 27, 61, 0.14);
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card--product img {
  object-fit: contain;
  padding: 0.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.9)),
    #fff;
}

.media-card--wide img {
  aspect-ratio: 16 / 10;
}

.media-card figcaption {
  min-height: 58px;
  padding: 0.8rem 0.9rem 0.9rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.media-card__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.media-card__open:focus-visible {
  outline: 3px solid var(--color-signal);
  outline-offset: -3px;
}

/* Equipment: type chips with live counts, card photos and the record/photo viewer (main.js). */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.3rem 0.4rem 0.3rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(3, 27, 61, 0.35);
  background: var(--color-teal-soft);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--color-header);
  background: var(--color-header);
  color: #fff;
}

.filter-chip__count {
  min-width: 1.7rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.filter-chip[aria-pressed="true"] .filter-chip__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.filter-chip.is-empty {
  opacity: 0.55;
}

/* Phones: one row that scrolls sideways; the chip cut at the edge shows there is more. */
@media (max-width: 559px) {
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1rem;
    padding: 0 1rem 0.45rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(3, 27, 61, 0.08);
  }

  .filter-chip {
    flex: none;
  }
}

.empty-state__reset {
  margin-left: 0.35rem;
  cursor: pointer;
  font-family: inherit;
}

.equipment-card__thumb {
  float: right;
  width: 84px;
  height: 84px;
  margin: 0 0 0.6rem 0.8rem;
  padding: 0.35rem;
  object-fit: contain;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff, #ecf7ff);
}

/* A photo from the lab rather than a product picture: fill the square. */
.equipment-card__thumb--photo {
  padding: 0;
  object-fit: cover;
}

.equipment-card.is-openable {
  cursor: pointer;
}

.equipment-details {
  cursor: pointer;
  font-family: inherit;
}

.viewer {
  width: min(100% - 2rem, 880px);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-panel);
  color: var(--color-ink);
  box-shadow: 0 30px 80px rgba(2, 20, 44, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}

.viewer::backdrop {
  background: rgba(2, 20, 44, 0.66);
}

.has-viewer {
  overflow: hidden;
}

.viewer__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-panel);
  color: var(--color-muted);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.viewer .media-controls button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: none;
}

.viewer__body {
  padding: clamp(1rem, 3vw, 1.6rem);
  touch-action: pan-y;
}

.viewer__record {
  display: grid;
  gap: 1.2rem;
}

.viewer__text h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.viewer__text > p {
  color: var(--color-muted);
}

.viewer__image {
  display: block;
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #0b1622;
}

.viewer__image--product {
  max-height: 340px;
  padding: 1rem;
  border: 1px solid var(--color-line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.9)), #fff;
}

.viewer__photo {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.viewer__photo figcaption {
  color: var(--color-ink);
  font-weight: 750;
}

.viewer__jump {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 720px) {
  .viewer__record--image {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .filter-panel.has-chips .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-card {
  min-height: 420px;
  display: grid;
  align-content: start;
  overflow: hidden;
  padding-bottom: 4rem;
}

.project-card__logo-wrap {
  width: calc(100% + 2.2rem);
  height: 150px;
  margin: -1.1rem -1.1rem 0.9rem;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 50% 40%, rgba(25, 184, 230, 0.12), transparent 12rem),
    linear-gradient(135deg, #fff, #f5f8fb);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.project-card__logo {
  width: min(100%, 220px);
  max-height: 112px;
  object-fit: contain;
}

.project-card__logo--electron {
  max-height: 126px;
  width: 130px;
}

.project-card__logo--twineu {
  width: min(100%, 250px);
  max-height: 74px;
}

.project-card__logo--evosst {
  width: 150px;
  max-height: 126px;
}

.project-card__title {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--color-primary-dark);
}

.project-card__details {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff);
  border-top: 1px solid var(--color-line);
  transform: translateY(calc(100% - 3.2rem));
  transition: transform 220ms ease;
}

.project-card:hover .project-card__details,
.project-card:focus-within .project-card__details,
.project-card.is-focused .project-card__details {
  transform: translateY(0);
}

.project-card__details strong {
  display: block;
  margin-bottom: 0.35rem;
}

.project-facts {
  display: grid;
  gap: 0.38rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.project-facts li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.7rem;
  padding-top: 0.38rem;
  border-top: 1px solid rgba(220, 228, 234, 0.78);
}

.project-facts span {
  color: var(--color-muted);
  font-weight: 700;
}

.project-facts strong {
  margin: 0;
  color: var(--color-ink);
  font-weight: 800;
}

.equipment-specs,
.dataset-specs,
.contact-list,
.doc-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.equipment-specs li,
.dataset-specs li,
.contact-list li,
.doc-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-line);
  padding-top: 0.55rem;
  color: var(--color-muted);
}

.equipment-specs li span,
.dataset-specs li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.equipment-specs strong,
.dataset-specs strong,
.contact-list strong,
.doc-list strong {
  color: var(--color-ink);
}

.team-section {
  display: grid;
  gap: 1rem;
}

.person-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(3, 27, 61, 0.96), rgba(5, 38, 79, 0.9));
}

.grid .person-card {
  grid-template-columns: 1fr;
  align-content: start;
}

.avatar--photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--color-line);
}

.person-card p {
  color: var(--color-muted);
  margin-bottom: 0.45rem;
}

.person-card .person-card__role {
  color: var(--color-ink);
  font-weight: 600;
}

.person-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-line);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(3, 27, 61, 0.15);
}

.timeline-item--current::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(224, 95, 63, 0.18);
}

.event-card {
  display: grid;
  gap: 0.7rem;
}

.event-card--featured {
  border-color: rgba(25, 184, 230, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.96)),
    radial-gradient(circle at top right, rgba(25, 184, 230, 0.16), transparent 18rem);
}

.event-card--interview {
  border-color: rgba(45, 26, 132, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 252, 0.96)),
    radial-gradient(circle at top right, rgba(45, 26, 132, 0.11), transparent 16rem);
}

.interview-cover {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(45, 26, 132, 0.12);
  border-radius: var(--radius);
  background: #fff;
}

.interview-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 34%;
}

.interview-cover__copy {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  justify-items: center;
  min-height: 240px;
  padding: clamp(1rem, 3vw, 2rem);
  color: #2c167f;
  text-align: center;
}

.interview-cover__headline {
  max-width: 28rem;
  margin: 0;
  color: #2c167f;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.18;
}

.interview-cover__copy span {
  font-size: 0.84rem;
}

.interview-cover__copy strong {
  color: #39208c;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.06;
}

.interview-cover__copy small {
  max-width: 24rem;
  color: #2c167f;
  font-size: 0.78rem;
  line-height: 1.35;
}

.event-card__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: -0.25rem 0 0.2rem;
  min-height: 180px;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.event-card__media--single {
  min-height: 0;
}

.event-card__media--single img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 0.65rem;
  background: #fff;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.award-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  overflow: hidden;
}

.award-card__media {
  margin: -1.1rem -1.1rem 0.45rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.9)),
    #fff;
}

.award-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
}

.brochure-panel {
  display: grid;
  gap: 1.2rem;
  align-items: center;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  overflow: hidden;
  position: relative;
}

.brochure-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 55%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.brochure-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.brochure-cover {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(3, 27, 61, 0.86), rgba(5, 38, 79, 0.68)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
  display: grid;
  align-content: end;
  padding: 1.2rem;
}

.brochure-cover strong {
  font-size: 1.4rem;
  line-height: 1.15;
}

.dataset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
}

.dataset-card--featured {
  padding: 0;
  overflow: hidden;
}

.dataset-card--featured > :not(.dataset-card__image) {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

.dataset-card--featured .dataset-links {
  margin-bottom: 1.1rem;
}

.dataset-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-primary);
}

.dataset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.button__icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: none;
}

.resource-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resource-head h3 {
  margin-bottom: 0;
}

.resource-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(3, 27, 61, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resource-icon img {
  width: 100%;
  height: 100%;
}

.resource-icon--github {
  background: #24292f;
  color: #fff;
}

.resource-icon--github svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.resource-icon:hover,
.resource-icon:focus-visible {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 10px 22px rgba(3, 27, 61, 0.26);
}

@media (prefers-reduced-motion: reduce) {
  .resource-icon {
    transition: none;
  }
}

.map-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background:
    linear-gradient(90deg, rgba(3, 27, 61, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(3, 27, 61, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 60% 45%, rgba(224, 95, 63, 0.28), transparent 11rem),
    #f7fbfc;
  background-size: 28px 28px, 28px 28px, auto, auto;
  padding: 0;
  color: var(--color-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.map-placeholder:hover,
.map-placeholder:focus-within {
  border-color: rgba(3, 27, 61, 0.24);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder__cta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 380px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(3, 27, 61, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(3, 27, 61, 0.16);
  backdrop-filter: blur(8px);
}

.map-placeholder__cta:focus-visible {
  outline: 3px solid rgba(25, 184, 230, 0.65);
  outline-offset: 3px;
}

.map-placeholder strong {
  display: block;
  font-size: 1.2rem;
}

[data-contact-form] {
  display: grid;
  gap: 1rem;
}

[data-contact-form] .button {
  justify-self: start;
  margin-top: 0.35rem;
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--color-teal-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.form-message.is-visible {
  display: block;
}

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(25, 184, 230, 0.22);
  background:
    radial-gradient(circle at 8% 0%, rgba(25, 184, 230, 0.14), transparent 22rem),
    linear-gradient(135deg, var(--color-header), var(--color-header-2));
  color: #fff;
  padding: clamp(1.8rem, 4vw, 3rem) 0;
}

.footer-signal-canvas {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 58px;
  pointer-events: none;
  z-index: 0;
}

.footer-layout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
}

.footer-brand {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  justify-items: center;
  max-width: 390px;
}

.footer-cmim-logo {
  width: min(100%, 300px);
  height: auto;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.footer-affiliations {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: min(100%, 860px);
  gap: clamp(0.8rem, 3vw, 2.2rem);
}

.footer-logo-card {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 0.2rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.footer-logo-card img {
  width: clamp(112px, 11vw, 140px);
  height: clamp(112px, 11vw, 140px);
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.22));
}

.footer-logo-card:nth-child(2) img {
  width: clamp(132px, 13vw, 166px);
  height: clamp(132px, 13vw, 166px);
}

.footer-logo-card:nth-child(3) img {
  width: clamp(196px, 19vw, 260px);
  height: clamp(118px, 12vw, 158px);
}

.footer-contact {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.7rem;
  max-width: 760px;
}

.footer-contact h2 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0;
}

.footer-address {
  display: grid;
  gap: 0.55rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  line-height: 1.45;
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: #fff;
}

.footer-mail-form {
  width: min(100%, 360px);
  display: grid;
  gap: 0.48rem;
  margin-top: 0.2rem;
}

.footer-field {
  display: grid;
  gap: 0.18rem;
}

.footer-field label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-field input,
.footer-field textarea {
  min-height: 36px;
  padding: 0.48rem 0.55rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-field textarea {
  min-height: 74px;
}

.footer-field input:focus,
.footer-field textarea:focus {
  border-color: rgba(25, 184, 230, 0.68);
  box-shadow: 0 0 0 3px rgba(25, 184, 230, 0.18);
}

.footer-send {
  justify-self: start;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-signal);
  color: var(--color-header);
  font-weight: 850;
  cursor: pointer;
}

.footer-send:hover,
.footer-send:focus-visible {
  background: #7eefff;
}

@media (min-width: 560px) {
  .brand-text span {
    display: inline;
  }

  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .media-carousel {
    grid-auto-columns: minmax(320px, 42vw);
  }

  .interview-cover {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  }

  .interview-cover img {
    height: 100%;
    min-height: 360px;
  }

  .event-card__media {
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
  }

  .event-card__media img:first-child {
    grid-row: span 2;
  }

  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brochure-panel {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .footer-affiliations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-logo-card {
    justify-items: center;
    text-align: center;
  }
}

@media (min-width: 1040px) {
  .nav-toggle {
    display: none;
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    grid-template-areas:
      "brand contact"
      "logos contact";
    align-items: center;
    justify-items: center;
    column-gap: clamp(2rem, 6vw, 5rem);
    row-gap: 0.35rem;
    text-align: center;
  }

  .footer-brand {
    grid-area: brand;
    justify-self: center;
  }

  .footer-affiliations {
    grid-area: logos;
    justify-self: center;
    width: min(100%, 700px);
  }

  .footer-contact {
    grid-area: contact;
    justify-self: end;
    justify-items: start;
    text-align: left;
    max-width: 380px;
  }

  .footer-address {
    text-align: left;
  }

  .footer-mail-form {
    width: 100%;
  }

  .nav-menu {
    position: absolute;
    inset: 0 4.6rem 0 calc(clamp(220px, 21vw, 310px) + clamp(0.9rem, 2vw, 2rem));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    align-self: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0;
    flex: none;
    justify-content: normal;
  }

  .nav-menu li {
    position: relative;
    flex: none;
    min-width: 0;
    display: block;
  }

  .nav-menu::before {
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    bottom: 1.15rem;
  }

  .nav-menu::after {
    bottom: 1.15rem;
  }

  .nav-signal-canvas {
    left: 0;
    right: 0;
    top: 20px;
    bottom: auto;
    height: 62px;
    display: block;
  }

  .nav-menu a {
    position: absolute;
    inset: 0;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0 0.22rem 1.24rem;
    font-size: clamp(0.66rem, 0.74vw, 0.8rem);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.05;
  }

  .stat-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }
}

@media (min-width: 1040px) and (max-width: 1179px) {
  /* Room for the RO/EN switch: the longest menu words fit only with slightly smaller text here. */
  .nav-menu a {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Review build only: remove together with the robots meta tag before the public launch. */
.review-banner {
  padding: 0.4rem 1rem;
  background: #fff4d6;
  color: #5c4200;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid #f0d58a;
}

/* Team page: founder credit, top right of the page header (2026-11-15). */
.page-hero__inner--aside {
  display: grid;
  gap: 1.75rem;
}

.page-hero__main {
  min-width: 0;
}

.founder-note {
  justify-self: start;
  max-width: 340px;
  padding: 1rem 1.15rem 1.05rem 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(18, 38, 55, 0.07);
}

.founder-note__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #765514;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.founder-note .founder-note__name {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.founder-note p {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.founder-note .founder-note__role {
  color: var(--color-ink);
  font-weight: 600;
}

.founder-note .text-link {
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .page-hero__inner--aside {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    align-items: start;
    gap: 2.5rem;
  }

  .founder-note {
    justify-self: end;
    margin-top: 0.25rem;
  }
}

.founder-note__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.founder-note__photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-line);
}

.founder-note__head .founder-note__name {
  margin: 0;
}

/* Projects page: other projects and patents (2026-11-15). */
.other-project h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  overflow-wrap: anywhere;
}

.other-project > p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.other-project .project-facts {
  margin-bottom: 0.6rem;
}

.other-project .project-facts strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.patent-card h3 {
  font-size: 0.98rem;
  line-height: 1.35;
}
