/* IQS Laboratory website. Colours follow the IQS logo (TUM blue + deep navy),
   with Princeton orange and black as occasional accents. Edit the variables below. */
:root {
  --navy: #033260; /* IQS logo "S": headings, dark sections */
  --navy-2: #0a2a4f;
  --ink: #061a33; /* darkest blue: page headers */
  --blue: #0065bd; /* TUM blue / IQS logo "I Q": links, buttons */
  --blue-light: #64a0c8; /* light accent on dark backgrounds */
  --blue-soft: #eaf2fa;
  --orange: #e77500; /* Princeton orange: sparing accents */
  --orange-soft: #fdf1e6;
  --black: #0e0e0e; /* Princeton black: talks + footer */
  --text: #1f2933;
  --muted: #5b6673;
  --border: #e3e7ec;
  --surface: #f6f8fa;
  --white: #ffffff;
  --radius: 8px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* publication categories */
  --c-readout: #0065bd;
  --c-hw: #5b9bd5;
  --c-control: #033260;
  --c-devices: #1a1a1a;
  --c-photonics: #e77500;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  height: 46px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.brand-text strong {
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 12.5px;
  color: var(--muted);
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
}
.nav a:hover {
  text-decoration: none;
  background: var(--blue-soft);
}
.nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 -6px 0 currentColor,
    0 6px 0 currentColor;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  color: #fff;
  background: #060e1c url("../img/hero.jpg") center right / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 16, 34, 0.97) 0%,
    rgba(4, 16, 34, 0.88) 40%,
    rgba(4, 16, 34, 0.35) 62%,
    rgba(4, 16, 34, 0) 80%
  );
}
.hero .container {
  position: relative;
  width: 100%;
}
.hero-content {
  max-width: 560px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 32px;
}
.hero .hosted {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #00539c;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}
.btn-outline:hover {
  background: var(--blue-soft);
}
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.link-arrow {
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.link-arrow::after {
  content: "\2192";
  transition: transform 0.2s;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
.section-soft {
  background: var(--surface);
}
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-black {
  background: var(--black);
  color: #fff;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-dark h2,
.section-black h2 {
  color: #fff;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--navy);
}
.section-dark h3,
.section-black h3 {
  color: #fff;
}
p {
  margin: 0 0 16px;
}
.muted {
  color: var(--muted);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 12px;
}
.section-dark .kicker {
  color: var(--blue-light);
}
.section-black .kicker {
  color: var(--orange);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.wide-left {
  grid-template-columns: 1.2fr 0.8fr;
}
.split.pi {
  grid-template-columns: 320px 1fr;
}
.split.top {
  align-items: start;
}
.big-statement {
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
}
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.focus-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.focus-list .num {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.news-item {
  display: grid;
  grid-template-columns: 110px 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-date {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
/* News label: its look comes from .chip (the publication labels), its colour from the .n-... classes (v33 block). */
.news-type {
  justify-self: start;
}
.news-body h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.news-body a.more-link {
  font-size: 15px;
  font-weight: 600;
}
.js .news-item.extra {
  display: none;
}
.js .news-list.expanded .news-item.extra {
  display: grid;
}
.news-toggle {
  margin-top: 28px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--c, var(--blue));
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.card .meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 18.5px;
}
.card .authors {
  font-size: 15px;
  color: var(--muted);
  margin: 4px 0 20px;
}
.card .link-arrow {
  margin-top: auto;
  font-size: 15px;
}

/* ---------- Quote ---------- */
.quote {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  font-weight: 300;
  margin: 0 0 24px;
  max-width: 880px;
}
.quote strong {
  font-weight: 600;
  color: var(--blue-light);
}

/* ---------- PI ---------- */
.pi-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-align: center;
  padding: 24px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}
.facts span {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
}

/* ---------- Talks (YouTube) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.video {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #12345c, #050b14 70%);
}
.video button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font: inherit;
  padding: 24px;
  text-align: center;
}
.video .play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.video .play::before {
  content: "";
  border-left: 24px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 6px;
}
.video button:hover .play {
  transform: scale(1.06);
}
.video .vtitle {
  font-size: 20px;
  font-weight: 600;
  max-width: 460px;
}
.video .vnote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: #0b1a2e;
}
.talk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.talk-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
}
.talk-list li strong {
  display: block;
  color: #fff;
  font-size: 16px;
}
.talk-list .yr {
  color: var(--orange);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- Page header ---------- */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  right: max(32px, calc((100% - var(--max)) / 2 + 32px));
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 320px;
  background: url("../img/iqs-logo-watermark.png") center / contain no-repeat;
  opacity: 0.07;
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(40px, 5vw, 56px);
  margin: 0 0 16px;
  line-height: 1.1;
}
.page-header p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0;
}
.page-header a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Research ---------- */
.area {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.area:first-child {
  border-top: 0;
  padding-top: 0;
}
.area .num {
  font-size: 44px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.area h2 {
  font-size: 30px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: #004a8c;
  font-weight: 500;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  border-top: 3px solid var(--blue-light);
  padding-top: 20px;
}
.pillar p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

/* ---------- Team ---------- */
.pi-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.bio p {
  font-size: 17px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.member .photo {
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #dce8f4, #b9d2ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f5f8f;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.member .body {
  padding: 18px 20px 22px;
}
.member h3 {
  font-size: 17px;
  margin-bottom: 2px;
}
.member .role {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.member .info {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.member .badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a4d00;
  background: var(--orange-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.group-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  margin: 64px 0 20px;
}
.alumni {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.alumni th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 16px 10px 0;
  border-bottom: 2px solid var(--navy);
}
.alumni td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.alumni td:first-child {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Publications ---------- */
.pub-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pub-count {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.pub-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.filter .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}
.filter[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.filter[aria-pressed="true"] .dot {
  box-shadow: 0 0 0 2px #fff;
}
.pub-year {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 52px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pub-year small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.pub-group:first-of-type .pub-year {
  margin-top: 0;
}
.pub {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--c);
  align-items: start;
}
.pub h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.pub .authors {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 6px;
}
.pub .venue {
  font-size: 15px;
  margin: 0;
}
.pub .venue em {
  color: var(--text);
}
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--c);
  margin-right: 8px;
  vertical-align: 1px;
}
.chip.light {
  color: #0b2a4a;
}
.kind {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 8px;
}
.pub-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: end;
  white-space: nowrap;
}
.me {
  font-weight: 700;
  color: var(--text);
}
.c-readout {
  --c: var(--c-readout);
}
.c-hw {
  --c: var(--c-hw);
}
.c-control {
  --c: var(--c-control);
}
.c-devices {
  --c: var(--c-devices);
}
.c-photonics {
  --c: var(--c-photonics);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-block {
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}
.contact-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 16px;
}
.contact-block dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 15px;
}
.contact-block dd {
  margin: 0;
}
.position {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.position:last-child {
  border-bottom: 0;
}
.position h3 {
  font-size: 18px;
}
.soon {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--blue);
  color: #fff;
  padding: 64px 0;
}
.cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.cta h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 30px;
}
.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}
.cta .btn {
  background: #fff;
  color: var(--blue);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer-logo {
  width: 300px;
  margin: 0 0 20px -6px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.affil {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.affil a,
.affil span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.affil .main {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav a {
    padding: 0 10px;
    font-size: 14.5px;
  }
  .brand-text {
    display: none;
  }
}
@media (max-width: 960px) {
  .cards,
  .pillars,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split.wide-left,
  .split.pi,
  .pi-card,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pi-card .pi-photo,
  .split.pi .pi-photo {
    max-width: 300px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 20px;
  }
  section {
    padding: 64px 0;
  }
  .header-inner {
    height: 68px;
  }
  .brand img {
    height: 40px;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(3, 50, 96, 0.08);
  }
  .nav.open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    padding: 8px 12px 16px;
  }
  .nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--blue);
  }
  .hero {
    min-height: calc(100vh - 68px);
    background-position: 70% center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(4, 16, 34, 0.65) 0%, rgba(4, 16, 34, 0.92) 100%);
  }
  .hero p.lead {
    font-size: 18px;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
  }
  .news-item {
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
  }
  .news-body {
    grid-column: 1 / -1;
  }
  .area {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pub {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pub-actions {
    align-items: start;
    flex-direction: row;
  }
  .cta .container {
    flex-direction: column;
    align-items: start;
  }
  .contact-block dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-block dd {
    margin-bottom: 12px;
  }
  .page-header {
    padding: 64px 0 48px;
  }
  .alumni th:nth-child(3),
  .alumni td:nth-child(3) {
    display: none;
  }
  .footer-logo {
    width: 240px;
  }
}

/* v20: footer links, recent arXiv uploads, rotating quote, publication links */
.affil a:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.affil a.main:hover {
  border-color: #fff;
}
.cards-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
}
.cards + .cards-label {
  margin-top: 44px;
}
.quotes {
  display: grid;
  max-width: 880px;
  margin: 0 0 28px;
}
.quotes .q {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s ease,
    visibility 0.9s;
}
.quotes .q.is-active {
  opacity: 1;
  visibility: visible;
}
.quotes .quote {
  margin: 0 0 14px;
}
.quotes figcaption {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-light);
}
.quotes figcaption::before {
  content: "\2014\00a0";
}
.pub-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* v21: portraits, nationality flags, funding symbols */
img.pi-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 30%;
  background: #0b1f3a;
}
.member {
  display: flex;
  flex-direction: column;
}
.member .body {
  flex: 1;
}
.member .photo.has-img {
  display: block;
  background: #e8eef5;
}
.member .photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.flag {
  display: inline-block;
  width: 21px;
  height: 16px;
  margin-left: 9px;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(6, 26, 51, 0.16);
}
.flag-lg {
  width: 32px;
  height: 24px;
  margin-left: 14px;
  vertical-align: 2px;
  border-radius: 3px;
}
.funding {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.funding-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.funding-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fund {
  display: block;
  width: auto;
  height: 26px;
}
.fund-bmftr {
  height: 40px;
}
.fund-tum {
  height: 18px;
}
.fund-mqv {
  height: 26px;
}
.fund-mcqst {
  height: 26px;
}
.fund-zi {
  height: 21px;
}
.fund-princeton {
  height: 32px;
}
.pi-funding {
  margin-top: 24px;
  padding: 16px 0 0;
}
.funders {
  margin-top: 72px;
}
.funder-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding: 30px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.funder {
  display: block;
  width: auto;
  height: 46px;
}
.funder-bmftr {
  height: 66px;
}
.funder-tum {
  height: 32px;
}
.funder-mqv {
  height: 44px;
}
.funder-mcqst {
  height: 44px;
}
.funder-muniqc {
  height: 38px;
}
.funder-zi {
  height: 36px;
}
.funder-princeton {
  height: 56px;
}
@media (max-width: 760px) {
  .funder-logos {
    justify-content: center;
    gap: 28px;
    padding: 24px;
  }
}
/* v21b */
img.pi-photo {
  padding: 0;
}
.funding-logos {
  min-height: 36px;
}
.fund-bmftr {
  height: 32px;
}
.pi-funding .funding-logos {
  gap: 26px;
  min-height: 48px;
}
.pi-funding .fund-bmftr {
  height: 44px;
}
.pi-funding .fund-tum {
  height: 26px;
}
.funder-bmftr {
  height: 80px;
}
/* v22: circular badges on photos */
.photo-box {
  position: relative;
}
.pi-photo-wrap {
  position: relative;
  max-width: 300px;
}
.circs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.circ {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #fff,
    0 3px 10px rgba(6, 26, 51, 0.32);
}
.circ img {
  display: block;
}
.circ-fund img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.circ-tum img {
  width: 62%;
}
.circ-mcqst img {
  width: 74%;
}
.circ-princeton img {
  height: 72%;
}
.circ-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.circ-focus {
  background: #0065bd;
}
.circ-focus img {
  width: 58%;
  height: 58%;
}
.pi-photo-wrap .circs {
  right: 14px;
  bottom: 14px;
  gap: 8px;
}
.pi-photo-wrap .circ {
  width: 46px;
  height: 46px;
}
.focus-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: -6px 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.focus-legend-label {
  font-weight: 700;
  color: #061a33;
  margin-right: 4px;
}
.focus-legend .fl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.focus-legend .circ {
  width: 28px;
  height: 28px;
  box-shadow: none;
}
/* v23: focus colours (edit here), photo slots, profile pop-up */
:root {
  --focus-fundamentals: #0e0e0e; /* black */
  --focus-characterization: #033260; /* WMI blue */
  --focus-signal-processing: #0065bd; /* TUM blue */
  --focus-calibration: #64a0c8; /* light blue used on the research page */
  --focus-architecture: #e77500; /* Princeton orange */
}
.circ-focus.f-fundamentals {
  background: var(--focus-fundamentals);
}
.circ-focus.f-characterization {
  background: var(--focus-characterization);
}
.circ-focus.f-signal-processing {
  background: var(--focus-signal-processing);
}
.circ-focus.f-calibration {
  background: var(--focus-calibration);
}
.circ-focus.f-architecture {
  background: var(--focus-architecture);
}
.focus-legend {
  margin: 44px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7fafd;
  gap: 10px 22px;
}
.member {
  position: relative;
}
.member .photo {
  position: relative;
  overflow: hidden;
}
.member .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.member .body {
  padding-bottom: 20px;
}
.member .role {
  margin-bottom: 0;
}
.member .bio {
  display: none;
}
.member .circs {
  z-index: 2;
}
.member-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}
.member-open:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: -3px;
}
.member.has-bio {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.member.has-bio:hover,
.member.has-bio:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(6, 26, 51, 0.13);
}
.member.has-bio:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(6, 26, 51, 0.35);
  color: inherit;
}
.profile-dialog::backdrop {
  background: rgba(6, 26, 51, 0.6);
}
.pd-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.pd-photo .photo {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #dce8f4, #b9d2ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f5f8f;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pd-photo .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.pd-body {
  padding: 30px 34px 26px;
}
.pd-body h3 {
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--navy);
}
.pd-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}
.pd-bio p {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.pd-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eef3f9;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pd-close:hover {
  background: #dce8f4;
}
@media (max-width: 680px) {
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .pd-photo .photo {
    aspect-ratio: 4/3;
  }
}
/* v23b: the photo in the profile pop-up fills the left column */
.pd-photo {
  background: linear-gradient(160deg, #dce8f4, #b9d2ea);
}
.pd-photo .photo-box {
  height: 100%;
}
.pd-photo .photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}
@media (max-width: 680px) {
  .pd-photo .photo {
    aspect-ratio: 4/3;
    height: auto;
    min-height: 0;
  }
}

/* v24: focus symbols replace the numbers on the home and research pages */
.focus-list li {
  align-items: center;
}
.focus-list .circ {
  width: 40px;
  height: 40px;
}
.area-icon .circ {
  width: 72px;
  height: 72px;
}
/* Publication filter: hidden publications and empty years really disappear */
.pub[hidden],
.pub-group[hidden] {
  display: none !important;
}

/* ---------- v25: legal page (Impressum & Datenschutz) and a line break used on wide screens only ---------- */
.legal-body {
  max-width: 760px;
}
.legal-body h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 0 0 8px;
}
.legal-body #datenschutz {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-body h3 {
  font-size: 18px;
  margin: 28px 0 6px;
}
.legal-body p {
  margin: 0 0 12px;
}
.legal-body [id] {
  scroll-margin-top: 110px;
}
@media (max-width: 720px) {
  .br-wide {
    display: none;
  }
}

/* ---------- v28: teaching list in the PI bio (Team page) ---------- */
.bio .teach-label {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.bio .teach-list {
  margin: 0 0 12px;
  padding-left: 1.25em;
  list-style: disc;
}
.bio .teach-list li {
  margin: 0;
}

/* ---------- v29: Home research topics always on one line ---------- */
#research .focus-list li {
  grid-template-columns: 48px minmax(0, 1fr);
}
#research .focus-list .topic {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 961px) {
  /* the list column is as wide as the longest topic; the text column takes the rest */
  #research .split.wide-left {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}
@media (max-width: 960px) {
  #research .focus-list .topic {
    font-size: clamp(11px, calc((100vw - 100px) * 0.0455), 18px);
  }
}
@media (max-width: 400px) {
  #research .focus-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  #research .focus-list .circ {
    width: 34px;
    height: 34px;
  }
}

/* ---------- v33: news categories and filter, three enabling tools ---------- */
/* News colours (filter dots and labels): Research black, Milestone Princeton orange, People WMI blue, Events TUM blue, Outreach light blue */
.n-research {
  --c: #0e0e0e;
}
.n-milestone {
  --c: #e77500;
}
.n-people {
  --c: #033260;
}
.n-events {
  --c: #0065bd;
}
.n-outreach {
  --c: #64a0c8;
}
/* News labels use the publication label style (.chip): white text on the category colour, dark text on light blue. */
.chip.n-outreach {
  color: #0b2a4a;
}
.news-filters {
  margin-bottom: 24px;
}
.news-item[hidden] {
  display: none;
}
@media (min-width: 761px) {
  .news-item {
    grid-template-columns: 110px 132px 1fr;
  }
}
.split.tools3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 960px) {
  .split.tools3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- v34: circles stay round and keep their colours in browser dark modes ---------- */
/* The BMFTR eagle sits on its own white disc (bmftr-badge.svg), so it never shows as a white square. */
.circ {
  color-scheme: only light;
}
.circ.circ-bmftr img {
  width: 100%;
  height: 100%;
}

/* ---------- v35: every circle image is a complete disc (white for funders, focus colour for focus areas) ---------- */
/* So all circles look the same in light mode and in any browser dark mode. */
.circ img.disc {
  width: 100%;
  height: 100%;
}
