/* Multi-dimensionAI — site styles (implemented from "Website Design v2") */

:root {
  --ivory: #FFFDF7;
  --white: #FFFFFF;
  --navy: #172C51;
  --navy-dark: #0F1F3B;
  --ink: #1B2630;
  --body: #2B3742;
  --text-2: #3E4A55;
  --muted: #5B6670;
  --gray: #808991;
  --gray-light: #B8BDC2;
  --line: #E3E1DA;
  --line-soft: #EDEDED;
  --violet: #512ED1;
  --violet-dark: #3715B8;
  --violet-tint: #EEEAFC;
  --violet-line: #DCD5F3;
  --sky: #EAF5FC;
  --sky-pale: #F7FBFE;
  --sky-line: #C9DDEC;
  --sky-border: #CFE3F3;
  --blue: #2F5597;
  --dot: #4097DB;
  --node: #8FAADC;
  --dashed: #B9C4D6;
  --selected: #F6F3EA;
  --footer-text: #C9D3E3;

  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'General Sans', system-ui, sans-serif;

  --pad-x: 72px;
  --pad-y: 96px;
  --max: 1360px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Typography primitives ---------- */

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow--muted { color: var(--gray); }
/* Mixed-case eyebrow (proper names that must not be set in capitals) */
.eyebrow--case { text-transform: none; letter-spacing: .03em; font-size: 12.5px; }

/* Project name with superscript "AI"; never split across lines */
.brand-name { white-space: nowrap; text-transform: none; letter-spacing: normal; }
.brand-name sup { font-size: .62em; line-height: 0; vertical-align: super; margin-left: .04em; }
/* Keep names, proper nouns and similar word groups on one line */
.nw { white-space: nowrap; }

.display {
  margin: 22px 0 0; font-size: 56px; line-height: 1.06; font-weight: 700;
  letter-spacing: -.025em; color: var(--navy); text-wrap: balance;
}
.h2 {
  margin: 0; font-size: 40px; line-height: 1.12; font-weight: 700;
  letter-spacing: -.02em; color: var(--navy); text-wrap: balance;
}
.intro { margin: 26px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.lead  { margin: 24px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body); text-wrap: pretty; }

.text-link {
  color: var(--violet); font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}

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

.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; flex-shrink: 0; }
.brand img { height: 66px; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
  background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover { color: var(--violet); }
.nav-link[aria-current="page"], .nav-link.is-active { border-bottom-color: var(--violet); }
.nav-link--contact { color: var(--violet); }
.nav-sep { width: 1px; height: 22px; background: var(--line); }

.lang { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding-left: 6px; }
.lang a, .lang span { text-decoration: none; }
.lang .lang-off { color: var(--gray); }
.lang .lang-on { color: var(--navy); font-weight: 500; }
.lang .lang-bar { color: var(--gray-light); }

/* Studies dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; }
.dropdown-caret { font-size: 14px; line-height: 1; color: var(--violet); }
.dropdown-panel {
  display: none; position: absolute; top: 100%; left: -18px; padding-top: 14px; z-index: 30;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.is-open .dropdown-panel { display: block; }
.dropdown-menu {
  width: 320px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--violet);
  box-shadow: 0 14px 30px rgba(23, 44, 81, .12); display: flex; flex-direction: column;
}
.dropdown-menu a {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 18px;
  text-decoration: none; color: var(--navy);
}
.dropdown-menu a + a { border-top: 1px solid var(--line-soft); }
.dropdown-menu a:hover { background: var(--violet-tint); color: var(--navy); }
.dropdown-menu a[aria-current="page"] { background: var(--selected); }
.dropdown-menu a[aria-current="page"] .dd-title { font-weight: 700; }
.dd-title { font-size: 14.5px; font-weight: 600; }
.dd-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--gray); }

.menu-button {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--navy); color: var(--navy);
  font: 600 14px var(--sans); padding: 9px 14px; cursor: pointer;
}
.menu-icon { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }

/* ---------- Page heros ---------- */

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 96px; }
.hero-copy { max-width: 640px; }
.hero-copy .intro { color: var(--muted); font-size: 16.5px; margin-top: 24px; max-width: 580px; }
.hero-title { margin: 18px 0 0; font-size: 40px; line-height: 1.18; font-weight: 600; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
/* Decorative heart network over blurred colour fields on the right half, fading into the ivory page */
.hero-art {
  position: absolute; top: 0; bottom: 0; right: 0; width: 54%;
  background: radial-gradient(ellipse 60% 60% at 60% 50%, rgba(234, 240, 252, .7) 0%, rgba(255, 253, 247, 0) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.hero-art svg { display: block; width: 100%; height: 100%; }
@media (max-width: 1240px) { .hero-art { width: 46%; } }

/* Partner logo row (under the start-page hero and in the partner block) */
.logo-row { background: var(--white); border-top: 1px solid var(--line); }
.logo-row .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.partner-logos { display: flex; align-items: center; gap: 28px 44px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.partner-logos li { display: flex; }
.partner-logo { display: block; height: 56px; width: auto; }
.partner-logo--square { height: 64px; }
.partner-logo--wide { height: 30px; }
.partner-logo--tum { height: 38px; }
.logo-row .funder img { height: 46px; }

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px;
  padding-top: 88px; padding-bottom: 80px; align-items: start;
}
.page-hero--aside .wrap { grid-template-columns: minmax(0, 1fr) 440px; }
.page-hero-copy { max-width: 760px; }

.buttons { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  font-size: 14.5px; font-weight: 600; padding: 14px 24px; text-decoration: none;
  border: 1px solid var(--navy);
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--secondary { background: var(--white); color: var(--navy); }
.btn--secondary:hover { background: var(--violet-tint); color: var(--navy); }

.jump-links { display: flex; gap: 14px 22px; margin-top: 30px; flex-wrap: wrap; }

/* Research map */

/* Key facts strip */
.facts { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; padding-left: 0; padding-right: 0; }
.facts--4 .wrap { grid-template-columns: 1.3fr .8fr 1fr 1fr; }
.fact { padding: 26px 32px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: var(--pad-x); }
.fact:last-child { border-right: 0; }
.fact-value { margin-top: 12px; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--navy); }
.fact-link { color: inherit; text-decoration: none; }
.fact-link::after { content: " ↗"; font-weight: 500; color: var(--violet); }
.fact-link:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }
.funder-link { display: flex; }

/* ---------- Content sections ---------- */

.section .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px;
  padding-top: var(--pad-y); padding-bottom: var(--pad-y);
}
.section--sky { background: var(--sky); }
.section--violet { background: var(--violet-tint); }
.section--flush-top .wrap { padding-top: 0; }
.section--tight .wrap { padding-top: 64px; }
.section--lead .wrap { padding-bottom: 40px; }
/* Heading left (eyebrow + big heading), text right */
.section-label { padding-top: 4px; min-width: 0; }
.section-label .h2 { margin-top: 18px; }
.section-label .list-heading { margin: 14px 0 0; }
.h2--sm { font-size: 34px; }
.section-body { max-width: 880px; min-width: 0; }
.section-body > :first-child { margin-top: 0; }
@media (min-width: 861px) {
  .section > .wrap > .section-label { position: sticky; top: 32px; align-self: start; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.split-strong { font-size: 15.5px; line-height: 1.6; font-weight: 700; color: var(--navy); }
.split-soft { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.split-soft p + p { margin-top: 1em; }

/* Numbered lists */
.num-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: n; }
.num-list li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 15px 0;
  border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--navy); counter-increment: n;
}
.num-list li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--mono); font-size: 10.5px; color: var(--gray); padding-top: 4px;
}
.num-list--sky { border-top-color: var(--sky-line); }
.num-list--sky li { border-bottom-color: var(--sky-line); grid-template-columns: 40px minmax(0, 1fr); font-size: 15px; }
.num-list--sky li::before { padding-top: 3px; }

/* Multimodal two-column */
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
.relates { padding-left: 40px; border-left: 1px solid var(--sky-line); }
.relates-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--sky-line); }
.relates-list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--sky-line);
}
.letter {
  width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1px solid var(--sky-line);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--navy);
}
.relates-list strong { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.relates-list p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.note {
  margin-top: 22px; background: var(--sky-pale); border-left: 3px solid var(--violet);
  padding: 16px 18px; font-size: 13.5px; line-height: 1.6; color: var(--body);
}
.note strong { color: var(--navy); }

/* Status indicator */
.status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--blue); text-transform: uppercase;
}
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

/* Study rows on overview */
.study-rows { border-top: 1px solid var(--line); }
.study-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 36px 0; border-bottom: 1px solid var(--line);
}
.study-row-media { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.study-row .section-label { padding-top: 6px; }
.study-row .study-title { margin-top: 12px; font-size: 26px; letter-spacing: -.01em; }
.study-row-body { max-width: 760px; }
.study-title { font-size: 22px; font-weight: 700; color: var(--navy); }
.study-desc { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.study-meta { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.study-row .status, .study-row .study-link { margin-top: 16px; }
.study-row-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.after-studies { height: 96px; }

/* Partner block */
.partners .wrap { padding-top: 64px; padding-bottom: 64px; align-items: center; }
.partners-title { margin-top: 12px; font-size: 26px; font-weight: 700; color: var(--navy); }
.partners-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.partners-logos { background: var(--white); border: 1px solid var(--violet-line); padding: 32px 36px; }
/* Logos on a 6-column grid: three per row on top, two below, each centred in its cell */
.partners-logos .partner-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 28px 24px; }
.partners-logos .partner-logos li { grid-column: span 2; }
.partners-logos .partner-logos li:nth-child(n+4) { grid-column: span 3; }
.partners-logos .partner-logo { max-width: 100%; }
.partners-logos .funder {
  flex-direction: row; align-items: center; justify-content: center; gap: 20px;
  margin-top: 28px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-soft);
}
.partners-logos .funder .eyebrow { margin: 0; }
.partners-strip { width: 480px; max-width: 100%; height: auto; object-fit: contain; }
.logo-pending {
  width: 150px; height: 44px; border: 1px dashed var(--dashed); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--gray);
}
.funder { display: flex; flex-direction: column; gap: 8px; padding-left: 36px; border-left: 1px solid var(--line-soft); }
.funder img { height: 40px; width: auto; object-fit: contain; align-self: flex-start; }

/* Key/value record */
.record { background: var(--white); border: 1px solid var(--line); padding: 24px 28px; margin-top: 8px; }
.kv { margin: 10px 0 0; }
.kv div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--gray); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; overflow-wrap: anywhere; }
.kv dd a { color: var(--violet); text-decoration: none; }
.record .status { margin-top: 6px; }

/* Feature grid (2 columns with borders) */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 36px; border-top: 1px solid var(--line); }
.feature { padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature h3, .legal-body .feature h2 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.feature p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* Study centre cards */
.centres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; margin-top: 36px; }
.centre { min-width: 0; background: var(--white); border: 1px solid var(--sky-line); padding: 28px 30px; }
.centre-head { flex-wrap: wrap; }
.centre-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.centre-name { margin: 14px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.centre address { margin-top: 12px; font-style: normal; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.centre .kv { margin-top: 16px; border-top: 1px solid var(--line-soft); }
.after-note { margin-top: 24px; }

/* Figure */
.figure { margin: 8px 0 0; }
.figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--gray); text-transform: uppercase; }
.img-fallback {
  width: 100%; aspect-ratio: 3 / 2; border: 1px dashed var(--dashed); background: var(--white);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--gray);
}

/* "Content to follow" placeholder */
.pending {
  display: flex; align-items: center; gap: 16px; border: 1px dashed var(--dashed); background: var(--white); padding: 18px 22px;
}
.pending-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--violet);
  background: var(--violet-tint); padding: 5px 9px; white-space: nowrap;
}
.pending-text { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.page-hero .pending { margin-top: 28px; max-width: 760px; }

/* Legal pages (imprint, privacy): sections across the full width in two rows (--cols per page) */
.legal-body { grid-column: 1 / -1; }
.legal-body .feature-grid { margin-top: 0; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.legal-body .feature ul { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 1080px) { .legal-body .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .legal-body .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* Team */
/* Leads stack in the right column so each full name stays on one line */
.leads { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--navy); }
.lead-person { padding: 22px 0; }
.lead-person + .lead-person { border-top: 1px solid var(--line); }
@media (min-width: 521px) { .lead-name { white-space: nowrap; } }
.lead-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.lead-person .eyebrow { margin-top: 8px; }

.inst-table { width: 100%; border-collapse: collapse; }
.inst-table th {
  text-align: left; padding: 0 24px 10px 0; border-bottom: 1px solid var(--navy);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--gray); text-transform: uppercase;
}
.inst-table td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.inst-table th:last-child, .inst-table td:last-child { padding-right: 0; }
.inst-name { font-size: 15.5px; font-weight: 700; color: var(--navy); width: 46%; }
.inst-site { font-size: 14.5px; color: var(--muted); width: 120px; }
.pi-pending { display: block; height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.inst-table + .pending { margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: 30px; }
.contact-card--plain { background: transparent; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-name { margin: 0; font-size: 28px; font-weight: 700; color: var(--navy); }
.contact-card .eyebrow--muted { margin-top: 8px; }
.contact-card .pending { margin-top: 22px; }
.contact-card p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--body); }

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

.site-footer { background: var(--navy); color: #fff; }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer-title { font-size: 14px; font-weight: 700; }
.footer-note { margin-top: 6px; font-size: 12.5px; color: var(--footer-text); }
.footer-links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--footer-text); }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  :root { --pad-x: 48px; }
  .page-hero--aside .wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
  .section .wrap, .study-row { gap: 48px; }
  .study-row-media { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .study-row-img { max-width: 360px; }
}

@media (max-width: 1080px) {
  .menu-button { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(23, 44, 81, .10);
    padding: 8px var(--pad-x) 20px;
  }
  .site-header.is-open .nav { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; text-align: left; }
  .nav-link[aria-current="page"], .nav-link.is-active { border-bottom-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--violet); padding-left: 12px; }
  .nav-sep { display: none; }
  .lang { padding: 14px 0 0; font-size: 13px; order: 10; }
  .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { display: none; }
  .dropdown.is-open .dropdown-panel { display: block; }
  .dropdown-panel { position: static; padding: 0 0 8px; }
  .dropdown-menu { width: auto; box-shadow: none; border-top-width: 1px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; --pad-y: 64px; }
  .display { font-size: 40px; }
  .h2, .h2--sm { font-size: 30px; }
  .brand img { height: 52px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .page-hero--aside .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .section .wrap, .study-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section-label { padding-top: 0; }
  .study-row-img { max-width: 420px; }
  .after-studies { height: 64px; }

  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact, .fact:first-child { padding: 22px var(--pad-x); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact:nth-child(3) { grid-column: span 2; }
  .facts--4 .fact:nth-child(3) { grid-column: auto; }

  .split, .modal-grid, .feature-grid, .centres, .contact-grid, .leads { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 0; }
  .relates { padding-left: 0; border-left: 0; }

  .funder { padding-left: 0; border-left: 0; }

  /* Research map: stack nodes instead of the fixed diagram */

  .inst-table thead { display: none; }
  .inst-table, .inst-table tbody, .inst-table tr, .inst-table td { display: block; width: auto; }
  .inst-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .inst-table td { padding: 0; border: 0; }
  .inst-table td + td { margin-top: 6px; }
  .inst-table tbody { border-top: 1px solid var(--navy); }
  .pi-pending { width: 60%; margin-top: 10px; }
}

@media (max-width: 520px) {
  :root { --pad-x: 16px; }
  .display { font-size: 34px; }
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(3) { grid-column: auto; }
  .fact:last-child { border-bottom: 0; }
  .pending { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kv div { flex-direction: column; gap: 4px; }
  .kv dd { text-align: left; }
  .centre, .contact-card, .record { padding: 22px 20px; }
  .partners-logos { padding: 24px 20px; }
  .partners-logos .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .partners-logos .partner-logos li, .partners-logos .partner-logos li:nth-child(n+4) { grid-column: span 1; }
  .partners-logos .partner-logos li:nth-child(4) { grid-column: span 2; order: 1; }
}

/* ---------- Element resets for semantic markup ---------- */
.study-title, .partners-title { margin: 0; }
.study-desc, .study-meta, .split p { margin-bottom: 0; }
.split p { margin-top: 0; }
.study-row .study-link { margin-top: 16px; }
.num-list--spaced { margin-top: 36px; }
.section-label .eyebrow, .contact-card .eyebrow { margin: 0; }
.page-hero-copy .status { margin-top: 28px; }

/* Keep the footer at the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- Publication & outreach lists ---------- */
.section--list .wrap { display: block; padding-top: 72px; padding-bottom: 72px; }
.list-heading { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.list-title { margin: 0 0 28px; display: flex; align-items: baseline; gap: 14px; }
.list-body--timeline { max-width: 880px; }
/* Entries side by side: two-column card grid */
.list-body .pub-list, .list-body .code-list, .event-list--cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 0;
}
.list-body .pub, .list-body .award, .list-body .code-item, .event-list--cards .event {
  background: var(--white); border: 1px solid var(--line); padding: 20px 22px;
}
.section--sky .list-body .pub, .section--sky .event-list--cards .event { border-color: var(--sky-line); }
.section--violet .list-body .code-item { border-color: var(--violet-line); }
.event-list--cards .event { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.checked { margin: 22px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }

.pub-list, .event-list, .code-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.section--sky .pub-list, .section--sky .event-list { border-top-color: var(--navy); }
.pub { padding: 20px 0; border-bottom: 1px solid var(--line); }
.section--sky .pub, .section--sky .event { border-bottom-color: var(--sky-line); }
.pub-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gray); }
.pub-title { margin: 0; font-size: 16.5px; line-height: 1.4; font-weight: 700; color: var(--navy); text-wrap: pretty; }
.pub--compact { padding: 16px 0; }
.pub--compact .pub-title { font-size: 15px; }
.pub-authors { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.pub-venue { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.pub-venue em { font-style: italic; color: var(--navy); }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.pub-links a { text-decoration: none; }
.pub-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Preview image of an interactive project page (conference papers) */
.pub-preview { display: block; width: 100%; height: auto; aspect-ratio: 800 / 256; object-fit: cover; margin: 0 0 14px; background: #000; }
.pub-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-right: 8px; }

.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; white-space: nowrap; }
.chip--accepted { color: var(--violet); background: var(--violet-tint); }
.chip--review { color: var(--text-2); background: var(--white); border: 1px solid var(--line); }
.chip--upcoming { color: var(--blue); background: var(--white); border: 1px solid var(--sky-line); }

.pub-group + .pub-group { margin-top: 44px; }
.group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.group-when { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.group-note { margin: -4px 0 14px; font-size: 13.5px; color: var(--muted); }
/* Team page: institution heading with its logo on the right */
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 14px; }
.group-head .group-title { margin: 0; }
.group-logo { display: block; height: 52px; width: auto; }
.group-logo--square { height: 64px; }
.group-logo--wide { height: 28px; }
.group-logo--tum { height: 34px; }
.group-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.group-logo--medfak { height: 40px; }

.event { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-date { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding-top: 3px; }
.event-title { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--navy); text-wrap: pretty; }
.event-place { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.event-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.talk-list { margin: 12px 0 0; padding: 0; list-style: none; }
.talk-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 8px 14px; border-left: 2px solid var(--violet-line); }
.talk-list li + li { margin-top: 6px; }
.talk-title { font-size: 14.5px; line-height: 1.45; color: var(--body); }
.talk-title a { text-decoration: none; }
.talk-who { font-size: 13px; font-weight: 600; color: var(--navy); }

.code-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--violet-line); }
.code-name { font-family: var(--mono); font-size: 14px; font-weight: 500; text-decoration: none; }
.code-desc { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.code-when { grid-column: 2; grid-row: 1; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--gray); padding-top: 3px; }

@media (max-width: 860px) {
  .event { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .section--list .wrap { padding-top: 56px; padding-bottom: 56px; }
  .list-body .pub-list, .list-body .code-list, .event-list--cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Team: departments ---------- */
.dept-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.dept { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.dept-name { margin: 0; font-size: 15.5px; line-height: 1.4; font-weight: 700; color: var(--navy); }
.dept-de { display: block; margin-top: 4px; font-size: 13px; color: var(--gray); font-style: italic; }
.dept-head { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.people { margin: 0; padding: 0; list-style: none; }
.people li { display: flex; flex-direction: column; padding: 2px 0; }
.people li + li { margin-top: 8px; }
.person-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.person-role { font-size: 12.5px; color: var(--violet); font-weight: 600; }
.pub-group .pending { margin-top: 4px; }
@media (max-width: 860px) {
  .dept { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- EXCALIBUR study team ---------- */
.study-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 48px; margin-top: 36px; }
.study-site { border-top: 1px solid var(--navy); padding-top: 18px; }
.study-site-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.study-site-inst { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.kv--team div { align-items: baseline; }
.kv--team dt { flex: 0 0 44%; font-size: 13.5px; }
.kv--team dd { line-height: 1.6; }
@media (max-width: 860px) {
  .study-team { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
/* E-mail addresses break only after the @ (<wbr>); the domain is kept in one piece (.nw) */
.contact-email { display: inline-block; margin-top: 22px; font-size: 15.5px; font-weight: 600; text-decoration: none; }
a[href^="mailto:"] { overflow-wrap: normal; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- People photos ---------- */
.person-photo { display: block; flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.img-fallback.person-photo {
  aspect-ratio: 1; padding: 0; border: 0; background: var(--sky); color: var(--navy);
  font-size: 15px; font-weight: 500; letter-spacing: .06em;
}
.person-photo--sm { width: 40px; height: 40px; }
.img-fallback.person-photo--sm { font-size: 11px; }
.lead-person { display: flex; align-items: center; gap: 20px; }
.people li.has-photo { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.people li.has-photo .person-photo { grid-row: span 2; }
.person-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.person-card { display: flex; flex-direction: column; gap: 4px; }
.person-card .person-photo { width: 96px; height: 96px; margin-bottom: 10px; }
.person-card .person-name { font-size: 15.5px; line-height: 1.35; }
.person-card .person-role { font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.45; }
/* Team: Project Advisory Committee */
.person-row--pac { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 28px; margin-top: 0; }
.person-expertise { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--blue); }
.photo-credit { margin: 28px 0 0; font-size: 12px; color: var(--gray); }
.photo-credit a { color: inherit; }

/* ---------- Study photos ---------- */
.figure--portrait img { aspect-ratio: 3 / 4; }
.study-row-img { object-position: center 30%; }

/* ---------- Eligibility & downloads ---------- */
.check-list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.check-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--body); }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 14px; color: var(--violet); font-weight: 700; }
.visit-list li { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
.visit-list li::before { content: none; }
.visit-list li strong { color: var(--navy); }
.visit-list li span { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.source-note { margin: 24px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.link-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ---------- Language switch ---------- */
.lang a.lang-off:hover { color: var(--violet); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font: 600 20px/1 var(--sans); cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 44, 81, .22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--violet); }
.to-top:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

@media (max-width: 520px) {
  .to-top { right: 16px; bottom: 16px; }
  .lead-person .person-photo { width: 72px; height: 72px; }
  .lead-person { gap: 16px; }
}
.person-row--site { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 22px 0 10px; }
.person-row--site .person-photo { width: 80px; height: 80px; }
.person-row--site .person-name { font-size: 14.5px; }
.people:has(.has-photo) li:not(.has-photo) { padding-left: 52px; }
.people li.has-photo:not(:has(.person-role)) .person-photo { grid-row: auto; }

/* ---------- Page hero without eyebrow ---------- */
.page-hero-copy > .display:first-child { margin-top: 0; }
.page-hero-copy .intro { max-width: 760px; }
.page-hero-copy:has(.jump-links) { max-width: none; }

/* ---------- News carousel (Outreach hero) ---------- */
.page-hero--news .wrap { grid-template-columns: minmax(0, 1fr) 540px; align-items: center; }
.news { min-width: 0; }
.news-head { margin: 0 0 12px; }
.news-track { min-width: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.news.is-ready .news-track { display: block; overflow: visible; }
.news-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); }
.news-slide[hidden] { display: none; }
.news.is-ready .news-slide { animation: news-in .35s ease; }
@keyframes news-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .news.is-ready .news-slide { animation: none; } }
.news-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.news-body { padding: 16px 20px 18px; }
.news-meta { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.news-title { margin: 8px 0 0; font-size: 17px; line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.news-title a { color: var(--navy); text-decoration: none; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-slide:hover .news-title a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.news-credit { margin: 10px 0 0; font-size: 11.5px; color: var(--gray); }
.news-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.news-dots[hidden] { display: none; }
.news-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.news-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gray-light); transition: background-color .15s ease, transform .15s ease; }
.news-dot:hover::before { background: var(--node); }
.news-dot[aria-current="true"]::before { background: var(--navy); transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .news-dot::before { transition: none; } }

@media (max-width: 1240px) {
  .page-hero--news .wrap { grid-template-columns: minmax(0, 1fr) 440px; }
}
@media (max-width: 860px) {
  .page-hero--news .wrap { grid-template-columns: minmax(0, 1fr); }
  .news { max-width: 560px; }
}
@media (max-width: 520px) {
}

/* ---------- Homepage chapter cards ---------- */
.chapters { background: var(--navy); }
.chapters .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 56px; padding-bottom: 56px; }
.chapter {
  display: flex; flex-direction: column; padding: 22px 24px 26px; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14); margin-left: -1px;
  transition: background-color .15s ease;
}
.chapter:hover { background: var(--navy-dark); color: #fff; }
.chapter:focus-visible { outline-color: var(--node); outline-offset: -3px; }
.chapter-top { display: flex; justify-content: space-between; align-items: center; }
.chapter-num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--footer-text); }
.chapter .icon { color: var(--node); }
.chapter-title { margin-top: 44px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.chapter-text { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--footer-text); }
.chapter-text::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 22px; background: var(--node); transition: width .2s ease; }
.chapter:hover .chapter-text::after { width: 56px; }
@media (prefers-reduced-motion: reduce) { .chapter, .chapter-text::after { transition: none; } }

/* Multimodal sources with icons */
.num-list--icons li { grid-template-columns: 34px 36px minmax(0, 1fr); align-items: center; }
.num-list--icons li::before { padding-top: 0; }
.num-list--icons .icon { color: var(--blue); }

@media (max-width: 1080px) {
  .chapters .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { margin-top: -1px; }
}
@media (max-width: 860px) {
  .hero-title { font-size: 34px; }
  .hero-art { width: 100%; opacity: .14; -webkit-mask-image: none; mask-image: none; }
  .chapters .wrap { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 28px; }
  .partner-logos { gap: 22px 30px; }
  .partner-logo { height: 40px; }
  .partner-logo--square { height: 52px; }
  .partner-logo--wide { height: 24px; }
  .partner-logo--tum { height: 30px; }
  .chapters .wrap { grid-template-columns: minmax(0, 1fr); }
  .chapter-title { margin-top: 24px; }
}

/* ---------- Connect band (before footer) ---------- */
.connect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.connect-art {
  display: flex; align-items: center; justify-content: center; padding: 56px var(--pad-x);
  background: radial-gradient(circle at 50% 50%, transparent 0 34%, var(--sky-line) 34% calc(34% + 1px), transparent calc(34% + 1px) 52%,
              var(--sky-line) 52% calc(52% + 1px), transparent calc(52% + 1px)) var(--sky);
}
.connect-art img { width: 300px; max-width: 100%; height: auto; }
.connect-panel { background: var(--navy); color: #fff; padding: 72px var(--pad-x) 72px 72px; }
.connect-panel .eyebrow { color: var(--node); }
.connect-title { margin: 16px 0 0; max-width: 460px; font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.connect-text { margin: 18px 0 0; max-width: 460px; font-size: 15px; line-height: 1.65; color: var(--footer-text); }
.btn--light { display: inline-block; margin-top: 28px; background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.site-footer { border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 860px) {
  .connect { grid-template-columns: minmax(0, 1fr); }
  .connect-art { padding: 40px var(--pad-x); }
  .connect-art img { width: 200px; }
  .connect-panel { padding: 48px var(--pad-x); }
  .connect-title { font-size: 30px; }
}
