/* ==========================================================================
   NAMUR Project — design system
   Matches alejp.me / wisesloth.app: Space Grotesk display + DM Sans body,
   purple→blue gradient accents, soft neutral surfaces, 16px radii, ghosts.
   ========================================================================== */

:root {
  /* Brand palette */
  --wise-purple: #8B5CF6;
  --wise-blue: #4F46E5;
  --wise-blue-soft: #6366F1;
  --gradient: linear-gradient(135deg, #8B5CF6 0%, #4F46E5 100%);

  /* Neutrals */
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --text-strong: #16181d;
  --text: #3f434a;
  --text-weak: #6b7280;
  --text-faint: #9ca3af;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);

  /* Fonts */
  --font-display: "Space Grotesk", "DM Sans", sans-serif;
  --font-body: "DM Sans", "Space Grotesk", sans-serif;

  --nav-h: 3.5rem;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Keep anchored targets (figures, tables, sections) clear of the fixed navbar */
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wise-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--wise-purple); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); letter-spacing: -0.01em; line-height: 1.2; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.icon-svg { width: 1em; height: 1em; fill: none; flex-shrink: 0; }
.icon-svg--lg { width: 4rem; height: 4rem; }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}
.site-nav__row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-nav__brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text-strong); flex-shrink: 0; }
.site-nav__logo { height: 2.2rem; width: auto; border-radius: 4px; }
.site-nav__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  white-space: nowrap;
}
.site-nav__brand-dot { color: var(--wise-purple); }
.site-nav__links { display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.site-nav__link:hover { background: var(--surface-2); color: var(--text-strong); }
.site-nav__burger { display: none; background: none; border: none; cursor: pointer; color: var(--text-strong); padding: 0.4rem; border-radius: 8px; }
.site-nav__burger .icon-svg { width: 1.5rem; height: 1.5rem; }
.site-nav__mobile { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; }
.site-nav__mobile.is-open { display: flex; }
.site-nav__mobile-link { padding: 0.7rem 0.25rem; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.site-nav__mobile-link:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Hero ---------- */
.hero-namur {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 4rem;
}
.hero-namur__bg { position: absolute; inset: 0; z-index: 0; }
.hero-namur__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-namur__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.72) 0%, rgba(10, 12, 20, 0.55) 45%, rgba(10, 12, 20, 0.82) 100%);
}
.hero-namur__content { position: relative; z-index: 1; max-width: 900px; }
.hero-namur__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}
.hero-namur__title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero-namur__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  font-weight: 300;
}
.hero-namur__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section-block { padding: 5rem 0; }
.section-block--tinted { background: var(--surface); border-radius: 28px; margin: 0 1.25rem; padding-left: 2.5rem; padding-right: 2.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d28d9;
  margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.about-text p { margin-bottom: 1rem; font-size: 1.05rem; }
.about-text .mt-1 { margin-top: 1rem; }
.about-list { list-style: none; margin: 0 0 1.2rem 0; }
.about-list li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; margin-bottom: 0.2rem; }
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.85rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--gradient);
}
.about-accent { color: var(--wise-blue); }
.about-figure { margin: 0; }
.card-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Vision */
.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 500;
  color: var(--text-strong);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  border-left: 4px solid var(--wise-purple);
  padding-left: 1.5rem;
}
.vision-figure { margin: 0 0 2rem; display: flex; justify-content: center; }
.vision-figure .card-img { max-width: 860px; }
.vision-note { text-align: center; max-width: 780px; margin: 0 auto; font-size: 1.05rem; }

/* PoC */
.poc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.video-thumbnail { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-thumbnail__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumbnail__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 20, 0.35);
  color: #fff;
  opacity: 0.9;
  transition: all 0.25s ease;
}
.video-thumbnail:hover .video-thumbnail__overlay { background: rgba(10, 12, 20, 0.55); opacity: 1; }
.video-thumbnail:hover .icon-svg { transform: scale(1.08); }
.video-thumbnail .icon-svg { transition: transform 0.25s ease; }
.poc-text p { margin-bottom: 1rem; font-size: 1.05rem; }
.poc-highlight {
  font-weight: 600;
  color: var(--text-strong);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(79, 70, 229, 0.08));
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

/* Video modal */
.modal-video { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-video.is-hidden { display: none; }
.modal-video__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 16, 0.9); }
.modal-video__content { position: relative; width: min(95vw, 1000px); z-index: 1; }
.modal-video__content video { width: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal-video__close {
  position: absolute; top: -2.6rem; right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none; color: #fff;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.modal-video__close:hover { background: rgba(255, 255, 255, 0.25); }

/* Research cards */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.research-card__icon {
  width: 3.4rem; height: 3.4rem;
  margin: 0 auto 1.2rem;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.research-card__icon .icon-svg { width: 1.5rem; height: 1.5rem; }
.research-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.research-card p { font-size: 0.95rem; color: var(--text-weak); }

/* Objectives */
.objectives-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 860px; margin: 0 auto; }
.objective-row {
  display: flex; gap: 1.4rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.objective-row:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.objective-row__icon {
  flex-shrink: 0;
  width: 2.8rem; height: 2.8rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--wise-purple);
  display: flex; align-items: center; justify-content: center;
}
.objective-row__icon .icon-svg { width: 1.35rem; height: 1.35rem; }
.objective-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.objective-row p { font-size: 0.98rem; color: var(--text-weak); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__img-wrap {
  width: 7.5rem; height: 7.5rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}
.team-card__img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.team-card__role { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--wise-blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.team-card p { font-size: 0.9rem; color: var(--text-weak); }

/* ---------- Footer ---------- */
.site-footer {
  background: #12141a;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4rem;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.site-footer__brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.site-footer__logo { height: 2.6rem; width: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.site-footer__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.site-footer__dot { color: var(--wise-purple); }
.site-footer__tagline { font-size: 0.95rem; margin-bottom: 0.8rem; }
.site-footer__funding { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin-bottom: 2rem; }
.site-footer__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.2rem; margin-bottom: 2.2rem; }
.site-footer__logos img {
  height: 2.6rem;
  width: auto;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.site-footer__logos img:hover { opacity: 1; }
.site-footer__logos img:hover { opacity: 1; }
.site-footer__copy { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Publications strip (home, below hero) ---------- */
.pubs-strip {
  margin-top: 1.25rem;
  padding: 1.5rem 0 1rem;
}
.pubs-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.pubs-strip__head .section-kicker {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d28d9;
  margin-bottom: 0.6rem;
}
.pubs-strip__all {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--wise-blue);
  white-space: nowrap;
}
.pubs-strip__all:hover { color: var(--wise-purple); }
.pubs-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pubs-strip__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.pubs-strip__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.35);
}
.pubs-strip__venue {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wise-purple);
  background: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.pubs-strip__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.pubs-strip__card:hover .pubs-strip__title { color: var(--wise-blue); }
.pubs-strip__meta {
  font-size: 0.78rem;
  color: var(--text-weak);
  line-height: 1.4;
}

/* ==========================================================================
   Publications page
   ========================================================================== */
.page-hero { padding: calc(var(--nav-h) + 3.5rem) 1.25rem 2.5rem; text-align: center; }
.page-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.8rem; }
.page-hero__sub { color: var(--text-weak); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

.pub-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.pub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pub-card__title { font-size: 1.25rem; font-weight: 700; }
.pub-card__title a { color: var(--text-strong); }
.pub-card__title a:hover { color: var(--wise-purple); }
.pub-card__authors { font-size: 0.95rem; color: var(--text); }
.pub-card__venue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wise-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pub-card__venue .pub-year {
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
}
.pub-card__abstract { font-size: 0.95rem; color: var(--text-weak); }
.pub-card__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.pub-card__links a { font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }
.pub-card__links a::before {
  content: "";
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--gradient);
  display: inline-block;
}

/* ==========================================================================
   Blog page + posts
   ========================================================================== */
/* Carousel for post images */
.blog-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.8rem;
  background: #fff;
}
.blog-carousel__track {
  display: flex;
  align-items: center;
  /* NO overflow:hidden here — the .blog-carousel wrapper clips. When the track
     translated, its own clip box moved with it and hid EVERY image (blank bug). */
  /* FIXED height: the box never resizes regardless of the image shown (2026-08-16).
     Every image is fully visible inside it via object-fit: contain. */
  height: 460px;
  /* Sliding animation (2026-08-17): track translates -index*100%, direction
     follows the click (next -> slides left, prev -> slides right). */
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
@media (max-width: 768px) { .blog-carousel__track { height: 320px; } }
@media (max-width: 480px) { .blog-carousel__track { height: 260px; } }
.blog-carousel__img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;
  cursor: zoom-in;
  background: #fff;
}
.blog-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.blog-carousel__btn:hover { background: rgba(30, 41, 59, 0.85); }
.blog-carousel__btn--prev { left: 0.75rem; }
.blog-carousel__btn--next { right: 0.75rem; }
.blog-carousel__dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 5;
}
.blog-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  padding: 0;
}
.blog-carousel__dot.is-active { background: var(--purple, #8B5CF6); }

/* Lightbox */
.blog-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 0.5rem;
  background: rgba(8, 10, 16, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.blog-lightbox.is-open { opacity: 1; visibility: visible; }
.blog-lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 12rem);
  margin: auto 0;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.blog-lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }
.blog-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
/* Nav buttons sit at the bottom, flanking the counter (2026-08-17) */
.blog-lightbox__nav--prev { left: 1.25rem; }
.blog-lightbox__nav--next { right: 1.25rem; }
.blog-lightbox__counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-family: var(--font-display);
  min-width: 3.5rem;
  text-align: center;
}

.blog-lightbox__caption {
  position: static;
  margin-top: 0.9rem;
  padding: 0 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: var(--font-display);
  max-width: 1100px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
/* Bottom control bar: minimal < > flanking the counter. In-flow (margin-top:auto)
   so it is pinned to the bottom and can NEVER overlap the caption (2026-08-17). */
.blog-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem 0 1.2rem;
}
.blog-lightbox__bar-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.blog-lightbox__bar-btn:hover { background: rgba(255, 255, 255, 0.28); }
/* Side buttons: desktop only (mobile uses the bottom bar) */
@media (max-width: 768px) {
  .blog-lightbox__nav { display: none; }
}

.blog-empty {
  text-align: center;
  padding: 4rem 1rem 6rem;
  max-width: 560px;
  margin: 0 auto;
}
.blog-empty h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.blog-empty p {
  color: var(--text-weak);
  font-size: 1.05rem;
}
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-bottom: 4rem; align-items: stretch; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__img-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  transition: opacity 0.4s ease;
}
.blog-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.blog-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.blog-card__title a { color: var(--text-strong); }
.blog-card__title a:hover { color: var(--wise-purple); }
.blog-card__excerpt { font-size: 0.92rem; color: var(--text-weak); flex: 1; margin-bottom: 1rem; }
.blog-card__readmore {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #5b21b6;
}

.post-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 2.5rem 2.5rem 3rem;
}
.post-article__back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; font-size: 0.9rem; }
.post-article h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.7rem; }
.post-article__meta { font-size: 0.85rem; color: var(--text-weak); margin-bottom: 1.8rem; font-family: var(--font-display); }
.post-article img { border-radius: var(--radius); margin-bottom: 1.8rem; box-shadow: var(--shadow-sm); }
.post-article p { margin-bottom: 1.2rem; font-size: 1.03rem; }
.post-article h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }
.post-article h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.post-article ul, .post-article ol { margin: 0 0 1.2rem 1.6rem; }
.post-article li { margin-bottom: 0.4rem; font-size: 1.03rem; }
.post-article strong { color: var(--text-strong); }
.post-article a { font-weight: 500; }
.post-article__end { text-align: center; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid, .poc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .research-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pubs-strip__grid { grid-template-columns: 1fr; }
  .section-block--tinted { margin: 0; border-radius: 0; }
  .section-block { padding: 3.5rem 0; }
}

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .site-nav__burger { display: inline-flex; }
  .site-nav__row { justify-content: space-between; }
  #theme-toggle { margin-left: auto; margin-right: 0.35rem; }
  .hero-namur { min-height: auto; padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3.5rem; }
  .hero-namur__title { font-size: clamp(1.9rem, 7vw, 2.4rem); margin-bottom: 1rem; }
  .hero-namur__subtitle { margin-bottom: 1.6rem; font-size: 1rem; }
  .hero-namur__eyebrow { margin-bottom: 1rem; }
}

@media (max-width: 560px) {
  .research-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-namur__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .post-article { padding: 1.6rem 1.4rem 2rem; }
  .pub-card { padding: 1.4rem 1.4rem; }
}

.pub-card__note { font-size: 0.85rem; color: var(--text-muted, #6b7280); font-style: italic; }

/* Not-to-be-confused callout (Swarm-Steward vs SSP) */
.post-article__disambig { margin: 1.75rem 0; padding: 1rem 1.25rem; border: 1px dashed var(--purple, #8B5CF6); border-radius: 14px; background: color-mix(in srgb, var(--purple, #8B5CF6) 6%, white); font-size: 0.95rem; }
.post-article__disambig strong { color: var(--purple, #8B5CF6); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 1rem 0; box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Stats grid (By the numbers) */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 0.5rem; }
.stat-card { background: #fff; border: 1px solid var(--border, rgba(0,0,0,0.06)); border-radius: 16px; padding: 1.4rem 1.1rem; text-align: center; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08)); }
.stat-card__num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; background: linear-gradient(90deg, var(--purple, #8B5CF6), var(--purple-dark, #4F46E5)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.stat-card__label { font-size: 0.85rem; color: var(--text-muted, #6b7280); margin-top: 0.4rem; line-height: 1.4; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }

/* ===========================================
   DARK THEME (2026-08-16)
   - Default: follows the OS via prefers-color-scheme
   - Forced: html[data-theme="dark"|"light"] set by the navbar sun/moon toggle
   - Toggle persists to localStorage['theme']; absent attribute = system preference.
   - Image boxes (carousel, card img wrap, inline imgs) STAY WHITE in both themes
     (transparent paper figures need a clean white backing).
   =========================================== */

/* ---- System default: dark ---- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #101216;
    --surface: #181b21;
    --surface-2: #1f232b;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-strong: #eef0f4;
    --text: #c3c8d1;
    --text-weak: #8b93a1;
    --text-faint: #6b7280;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
  html:not([data-theme]) .site-nav {
    background: rgba(16, 18, 22, 0.9);
  }
  html:not([data-theme]) .site-nav__mobile { background: #181b21; }
  html:not([data-theme]) .blog-card,
  html:not([data-theme]) .pub-card,
  html:not([data-theme]) .stat-card,
  html:not([data-theme]) .team-card,
  html:not([data-theme]) .research-card,
  html:not([data-theme]) .objective-row,
  html:not([data-theme]) .vision-quote {
    background: var(--surface);
    border-color: var(--border);
  }
  html:not([data-theme]) .section-block--tinted { background: #14171c; }
  html:not([data-theme]) .post-article__disambig { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
  html:not([data-theme]) .video-embed { background: #0d0f13; }
  html:not([data-theme]) .blog-carousel__dot { background: rgba(255, 255, 255, 0.35); }
  html:not([data-theme]) .blog-carousel__dot.is-active { background: var(--wise-purple); }
  html:not([data-theme]) .post-article__funding { color: var(--text-weak); }

  /* Image boxes match the dark page; transparent figures keep white backing */
  html:not([data-theme]) .blog-card__img-wrap,
  html:not([data-theme]) .blog-carousel,
  html:not([data-theme]) .blog-carousel__track { background: #181b21; }
  html:not([data-theme]) .blog-carousel__img,
  html:not([data-theme]) .blog-card__img,
  html:not([data-theme]) .post-article img { background: transparent; }
  html:not([data-theme]) .img-figure { background: #fff !important; }

  /* Pills / venue chips adapt to dark */
  html:not([data-theme]) .pubs-strip__venue { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }
  html:not([data-theme]) .pub-card__venue .pub-year {
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
}
  html:not([data-theme]) .pub-card__venue { color: #a5b4fc; }
  html:not([data-theme]) .pubs-strip__title,
  html:not([data-theme]) .pubs-strip__card .pubs-strip__title { color: var(--text-strong); }
  html:not([data-theme]) .pub-card__links a,
  html:not([data-theme]) .post-article__end a,
  html:not([data-theme]) .post-article a { color: #a5b4fc; }
  html:not([data-theme]) .pub-card__links a:hover,
  html:not([data-theme]) .post-article__end a:hover,
  html:not([data-theme]) .post-article a:hover { color: #c4b5fd; }
}

/* ---- Forced dark (toggle) ---- */
html[data-theme="dark"] {
  --bg: #101216;
  --surface: #181b21;
  --surface-2: #1f232b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-strong: #eef0f4;
  --text: #c3c8d1;
  --text-weak: #8b93a1;
  --text-faint: #6b7280;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
html[data-theme="dark"] .site-nav { background: rgba(16, 18, 22, 0.9); }
html[data-theme="dark"] .site-nav__mobile { background: #181b21; }
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .pub-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .research-card,
html[data-theme="dark"] .objective-row,
html[data-theme="dark"] .vision-quote {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="dark"] .section-block--tinted { background: #14171c; }
html[data-theme="dark"] .post-article__disambig { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.08); }
html[data-theme="dark"] .video-embed { background: #0d0f13; }
html[data-theme="dark"] .blog-carousel__dot { background: rgba(255, 255, 255, 0.35); }
html[data-theme="dark"] .blog-carousel__dot.is-active { background: var(--wise-purple); }
html[data-theme="dark"] .post-article__funding { color: var(--text-weak); }

/* Image boxes match the dark page; transparent figures keep white backing */
html[data-theme="dark"] .blog-card__img-wrap,
html[data-theme="dark"] .blog-carousel,
html[data-theme="dark"] .blog-carousel__track { background: #181b21; }
html[data-theme="dark"] .blog-carousel__img,
html[data-theme="dark"] .blog-card__img,
html[data-theme="dark"] .post-article img { background: transparent; }
html[data-theme="dark"] .img-figure { background: #fff !important; }

/* Pills / venue chips adapt to dark */
html[data-theme="dark"] .pubs-strip__venue { background: rgba(139, 92, 246, 0.22); color: #c4b5fd; }
html[data-theme="dark"] .pub-card__venue .pub-year {
  background: rgba(109, 40, 217, 0.12);
  color: #5b21b6;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
}
html[data-theme="dark"] .pub-card__venue { color: #a5b4fc; }
html[data-theme="dark"] .pubs-strip__title,
html[data-theme="dark"] .pubs-strip__card .pubs-strip__title { color: var(--text-strong); }
html[data-theme="dark"] .pub-card__links a,
html[data-theme="dark"] .post-article__end a,
html[data-theme="dark"] .post-article a { color: #a5b4fc; }
html[data-theme="dark"] .pub-card__links a:hover,
html[data-theme="dark"] .post-article__end a:hover,
html[data-theme="dark"] .post-article a:hover { color: #c4b5fd; }

/* ---- Forced light (toggle) ---- */
html[data-theme="light"] {
  color-scheme: light;
}

/* ---- Theme toggle button (navbar) ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { background: var(--surface-2); transform: translateY(-1px); }
.theme-toggle .icon-svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle__icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle__icon--sun { display: inline-block; }
  html:not([data-theme]) .theme-toggle__icon--moon { display: none; }
}
html[data-theme="dark"] .theme-toggle__icon--sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: none; }


.site-nav__link.is-active,
.site-nav__mobile-link.is-active {
  color: var(--wise-blue) !important;
  background: rgba(79, 70, 229, 0.08);
}
.site-nav__link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  margin-top: 2px;
}
html[data-theme="dark"] .site-nav__link.is-active,
html[data-theme="dark"] .site-nav__mobile-link.is-active { color: #a5b4fc !important; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .site-nav__link.is-active,
  html:not([data-theme]) .site-nav__mobile-link.is-active { color: #a5b4fc !important; }
}

.team-card h3 a.team-card__link {
  color: var(--wise-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
.team-card h3 a.team-card__link:hover {
  color: var(--wise-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.team-card__link-icon {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  opacity: 0.65;
  vertical-align: super;
}
.team-card h3 a.team-card__link:hover .team-card__link-icon {
  opacity: 1;
}

html[data-theme="dark"] .team-card h3 a.team-card__link {
  color: var(--wise-purple);
}
html[data-theme="dark"] .team-card h3 a.team-card__link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}


@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .team-card h3 a.team-card__link {
    color: var(--wise-purple);
  }
  html:not([data-theme]) .team-card h3 a.team-card__link:hover {
    color: #c4b5fd;
    text-decoration: underline;
  }
}

/* ===== Article-style figures & tables (2026-08-16) ===== */
.blog-fig {
  margin: 2rem 0;
  padding: 0.9rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 14px;
  box-shadow: var(--shadow-light, 0 1px 4px rgba(0,0,0,0.06));
}
.blog-fig__frame {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.blog-fig__frame .blog-fig__img {
  border-radius: 10px;
}
.post-article .blog-fig__img,
.blog-fig__img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  border-radius: 10px;
  box-shadow: none;
  cursor: zoom-in;
}
.blog-fig__cap {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #5a6169);
}
.blog-fig__num {
  display: inline-block;
  font-weight: 700;
  color: var(--wise-blue, #4F46E5);
  margin-right: 0.35rem;
}
/* Split layout: vertical image left, caption+note right (wide screens only) */
.blog-fig--split {
  display: block;
}
@media (min-width: 900px) {
  .blog-fig--split {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 1.4rem;
    align-items: center;
  }
  .blog-fig--split .blog-fig__frame {
    grid-column: 1;
    grid-row: 1;
  }
  .blog-fig--split .blog-fig__aside {
    grid-column: 2;
    grid-row: 1;
  }
}
.blog-fig__aside .blog-fig__cap {
  margin-top: 0;
  font-size: 0.95rem;
}
.blog-fig__note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary, #5a6169);
  border-left: 3px solid var(--wise-purple, #8B5CF6);
  padding-left: 0.9rem;
}
/* In-text figure/table references */
a.fig-ref {
  color: var(--wise-blue, #4F46E5);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s ease;
}
a.fig-ref:hover {
  color: var(--wise-purple, #8B5CF6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Provider icons in model-benchmark table.
   MUST reset the generic .post-article img rules (margin-bottom 1.8rem, box-shadow,
   border-radius) or the text after each icon drops to the next line. */
.provider-icon {
  height: 1.15em;
  width: auto;
  vertical-align: -0.22em;
  margin-right: 0.4em;
  margin-bottom: 0;
  display: inline-block;
  box-shadow: none;
  border-radius: 0;
}
/* specificity > .post-article img (0,1,1) so caption icons don't inherit
   the post-image margin-bottom/box-shadow (that dropped text to next line) */
.post-article .provider-icon {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}
/* Tables */
.blog-table {
  margin: 2rem 0;
  padding: 0.9rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 14px;
  box-shadow: var(--shadow-light, 0 1px 4px rgba(0,0,0,0.06));
}
.blog-table__scroll {
  overflow-x: auto;
  border-radius: 8px;
}
.blog-table__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
}
.blog-table__tbl th {
  background: #f3f4f6;
  font-weight: 700;
  color: var(--dark, #111827);
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}
.blog-table__tbl td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid #f0f0f2;
  color: var(--dark, #111827);
  white-space: nowrap;
}
.blog-table__tbl tr:last-child td {
  border-bottom: none;
}
.blog-table__tbl tbody tr:hover {
  background: #fafafa;
}
.blog-table__cap {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, #5a6169);
}
.blog-table__num {
  font-weight: 700;
  color: var(--wise-blue, #4F46E5);
  margin-right: 0.35rem;
}
.blog-table__foot {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary, #5a6169);
  font-style: italic;
}
/* Dark mode */
html[data-theme="dark"] .blog-fig,
html[data-theme="dark"] .blog-table {
  background: #181b21;
  border-color: rgba(255,255,255,0.12);
}
html[data-theme="dark"] .blog-table__tbl {
  background: #181b21;
}
html[data-theme="dark"] .blog-table__tbl th {
  background: #232833;
  color: #f0f3f8;
  border-bottom-color: #3a4150;
}
html[data-theme="dark"] .blog-table__tbl td {
  color: #e8ecf4;
  border-bottom-color: #2a303b;
}
html[data-theme="dark"] .blog-table__tbl tbody tr:hover {
  background: #20252e;
}
html[data-theme="dark"] .blog-fig__cap,
html[data-theme="dark"] .blog-table__cap,
html[data-theme="dark"] .blog-table__foot,
html[data-theme="dark"] .blog-fig__note {
  color: #c3cad6;
}
html[data-theme="dark"] .blog-fig__num,
html[data-theme="dark"] .blog-table__num {
  color: #a5b4fc;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .blog-fig,
  html:not([data-theme]) .blog-table {
    background: #181b21;
    border-color: rgba(255,255,255,0.12);
  }
  html:not([data-theme]) .blog-table__tbl {
    background: #181b21;
  }
  html:not([data-theme]) .blog-table__tbl th {
    background: #232833;
    color: #f0f3f8;
    border-bottom-color: #3a4150;
  }
  html:not([data-theme]) .blog-table__tbl td {
    color: #e8ecf4;
    border-bottom-color: #2a303b;
  }
  html:not([data-theme]) .blog-table__tbl tbody tr:hover {
    background: #20252e;
  }
  html:not([data-theme]) .blog-fig__cap,
  html:not([data-theme]) .blog-table__cap,
  html:not([data-theme]) .blog-table__foot,
  html:not([data-theme]) .blog-fig__note {
    color: #c3cad6;
  }
  html:not([data-theme]) .blog-fig__num,
  html:not([data-theme]) .blog-table__num {
    color: #a5b4fc;
  }
}

/* Custom scrollbar (mirrors alejp; horizontal scrollbar thinner for tables) */
::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-corner {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--wise-blue, #4F46E5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wise-purple, #8B5CF6);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) ::-webkit-scrollbar-track,
  html:not([data-theme]) ::-webkit-scrollbar-corner { background: #14171c; }
}
html[data-theme="dark"] ::-webkit-scrollbar-track,
html[data-theme="dark"] ::-webkit-scrollbar-corner { background: #14171c; }

/* ===== Subfigure grids (LaTeX \subfigure mirror, 2026-08-17) ===== */

.blog-fig--subfigs .blog-fig__frame {
  overflow: visible;
  background: transparent;
}

.blog-fig__grid {
  display: grid;
  gap: 0.9rem;
  align-items: end;
}
.blog-fig__grid--2col-6533 { grid-template-columns: 5fr 3fr; }
.blog-fig__grid--3col { grid-template-columns: repeat(3, 1fr); }
.blog-fig__grid--3col-442925 { grid-template-columns: 44fr 29fr 25fr; }
.blog-fig__grid--3stack { grid-template-columns: 1fr; }
.blog-fig__grid--4col\+full { grid-template-columns: repeat(4, 1fr); }
.blog-fig__grid--4col\+full .blog-subfig--full { grid-column: 1 / -1; }
.blog-subfig {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(127, 127, 127, 0.18);
}
.blog-subfig img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  border-radius: 0;
  cursor: zoom-in;
}
.blog-subfig__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-display, inherit);
  color: #fff;
  background: rgba(15, 17, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
}
.blog-fig__grid--2x2 { grid-template-columns: repeat(2, 1fr); }
.blog-fig__grid--2col-leftstack {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-template-areas: "a b" "c b";
}
.blog-fig__grid--2col-leftstack .blog-subfig:nth-child(1) { grid-area: a; }
.blog-fig__grid--2col-leftstack .blog-subfig:nth-child(2) { grid-area: c; }
.blog-fig__grid--2col-leftstack .blog-subfig:nth-child(3) { grid-area: b; }
@media (max-width: 820px) {
  .blog-fig__grid--2col-6533,
  .blog-fig__grid--3col,
  .blog-fig__grid--3col-442925,
  .blog-fig__grid--4col\+full,
  .blog-fig__grid--2x2,
  .blog-fig__grid--2col-leftstack { grid-template-columns: 1fr; }
  .blog-fig__grid--4col\+full .blog-subfig--full { grid-column: 1 / -1; }
  .blog-fig__grid--2col-leftstack {
    display: block;
  }
  .blog-fig__grid--2col-leftstack .blog-subfig { grid-area: auto; margin-bottom: 0.9rem; }
  .blog-fig__grid--2col-leftstack .blog-subfig:last-child { margin-bottom: 0; }
}


/* Hero photo strip (real blog pics, 2026-08-17) */
.hero-namur__photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2.4rem;
  max-width: 900px;
}
.hero-namur__photo {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-namur__photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(139, 92, 246, 0.7);
}
.hero-namur__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero-namur__photos { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 1.8rem; }
  .hero-namur__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .hero-namur__photos { grid-template-columns: repeat(2, 1fr); }
}

/* Team cards fully clickable (stretched link over the whole card) */
.team-card { position: relative; }
.team-card__link--stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.team-card__role, .team-card > p { position: relative; z-index: 2; pointer-events: none; }


/* ---------- Redesigned Index Components (2026-08-17) ---------- */

/* Stats Strip */
.stats-strip {
  margin: -3rem 0 3.5rem;
  position: relative;
  z-index: 5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.stat-card__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-weak);
  letter-spacing: 0.01em;
}

/* Demo Showcase */
.demo-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.demo-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.feature-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
}
.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--wise-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon .icon-svg {
  width: 1.3rem;
  height: 1.3rem;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-strong);
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-weak);
  line-height: 1.45;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.35);
}
.pillar-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.3rem;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}
.pillar-card__icon .icon-svg {
  width: 1.6rem;
  height: 1.6rem;
}
.pillar-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}
.pillar-card p {
  font-size: 0.94rem;
  color: var(--text-weak);
  line-height: 1.5;
}

/* Breakthroughs Grid */
.breakthroughs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.breakthrough-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.breakthrough-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(139, 92, 246, 0.35);
}
.breakthrough-badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wise-purple);
  background: rgba(139, 92, 246, 0.12);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.breakthrough-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-strong);
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.breakthrough-card:hover .breakthrough-title {
  color: var(--wise-blue);
}
.breakthrough-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-weak);
  flex: 1;
  margin-bottom: 1rem;
}
.breakthrough-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wise-purple);
}

@media (max-width: 900px) {
  .stats-strip { margin: -1.5rem 0 2.5rem; }
  .demo-showcase { grid-template-columns: 1fr; gap: 1.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .breakthroughs-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .stat-card { padding: 1.1rem 0.8rem; }
  .stat-card__num { font-size: 1.5rem; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .feature-item,
  html:not([data-theme]) .pillar-card,
  html:not([data-theme]) .breakthrough-card {
    background: var(--surface);
    border-color: var(--border);
  }
  html:not([data-theme]) .feature-icon {
    background: rgba(139, 92, 246, 0.2);
  }
  html:not([data-theme]) .breakthrough-badge {
    background: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
  }
  html:not([data-theme]) .breakthrough-card:hover .breakthrough-title {
    color: #a5b4fc;
  }
}
html[data-theme="dark"] .feature-item,
html[data-theme="dark"] .pillar-card,
html[data-theme="dark"] .breakthrough-card {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="dark"] .feature-icon {
  background: rgba(139, 92, 246, 0.2);
}
html[data-theme="dark"] .breakthrough-badge {
  background: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}
html[data-theme="dark"] .breakthrough-card:hover .breakthrough-title {
  color: #a5b4fc;
}


/* ---------- Video Facade (High Performance) ---------- */
.video-facade {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #000;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}
.video-facade__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.video-facade:hover .video-facade__thumb {
  transform: scale(1.03);
  filter: brightness(1.08);
}
.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(109, 40, 217, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-facade:hover .video-facade__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--wise-purple, #8B5CF6);
}
.video-facade__play .icon-svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-left: 3px;
}

html[data-theme="dark"] .section-kicker,
@media (prefers-color-scheme: dark) { html:not([data-theme]) .section-kicker { color: #c4b5fd; } }
html[data-theme="dark"] .section-kicker { color: #c4b5fd; }

html[data-theme="dark"] .blog-card__meta,
@media (prefers-color-scheme: dark) { html:not([data-theme]) .blog-card__meta { color: #9ca3af; } }
html[data-theme="dark"] .blog-card__meta { color: #9ca3af; }

html[data-theme="dark"] .blog-card__readmore,
@media (prefers-color-scheme: dark) { html:not([data-theme]) .blog-card__readmore { color: #c4b5fd; } }
html[data-theme="dark"] .blog-card__readmore { color: #c4b5fd; }


/* ===== Post tag pills (links + resources at the end of posts, 2026-08-17) ===== */
.post-tags {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-strong, rgba(0, 0, 0, 0.14));
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.post-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.18);
  color: #5b21b6;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s ease;
}
.post-tags .tag .tag-icon {
  display: inline-flex;
  align-items: center;
}
.post-tags .tag .tag-icon .icon-svg {
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
}
.post-tags a.tag:hover {
  background: rgba(109, 40, 217, 0.16);
  border-color: rgba(109, 40, 217, 0.4);
  transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .post-tags { border-top-color: rgba(255, 255, 255, 0.14); }
  html:not([data-theme]) .post-tags .tag {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
  }
  html:not([data-theme]) .post-tags a.tag:hover { background: rgba(139, 92, 246, 0.3); }
}
html[data-theme="dark"] .post-tags { border-top-color: rgba(255, 255, 255, 0.14); }
html[data-theme="dark"] .post-tags .tag {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
html[data-theme="dark"] .post-tags a.tag:hover { background: rgba(139, 92, 246, 0.3); }
