/* QuBriC website — implemented from "QuBriC Homepage v2.dc.html" */

:root {
  --bg: #f2f6fa;
  --ink: #10202e;
  --muted: #4e6070;
  --muted-2: #5f7280;
  --faint: #617382;
  --nav-text: #35485a;
  --blue: #12558f;
  --teal: #0b7d74;
  --teal-bright: #00c0a8;
  --green: #157347;   /* Open vacancy pill */
  --hairline: rgba(16, 32, 46, 0.14);
  --hairline-soft: rgba(16, 32, 46, 0.08);
  --card-shadow: 0 4px 24px rgba(16, 32, 46, 0.06);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 56px;
}

* { box-sizing: border-box; }

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; }

/* ---------- nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 56px;
  width: auto;
  display: block;
}
.brand-wordmark {
  height: 31px;
  width: auto;
  display: block;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.nav-links a {
  color: var(--nav-text);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}
.nav-cta {
  padding: 10px 22px;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-links a.nav-cta { color: #fff; }
.nav-links a.nav-cta:hover {
  color: #fff;
  background: var(--blue);
}

/* ---------- hero (homepage) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero quantum-ripples,
.page-hero quantum-ripples {
  position: absolute;
  inset: 0;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 44%, rgba(242, 246, 250, 0.94), rgba(242, 246, 250, 0) 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 48px 150px;
  text-align: center;
}
.hero-eyebrow,
.page-hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin: 28px auto 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue);
  color: #fff;
}
.btn-secondary {
  border: 1px solid rgba(16, 32, 46, 0.25);
  color: var(--ink);
  background: rgba(242, 246, 250, 0.7);
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: rgba(16, 32, 46, 0.5);
}

/* ---------- interior page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 90% at 50% 0%, rgba(0, 192, 168, 0.10), rgba(0, 192, 168, 0) 75%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(24, 96, 168, 0.06), rgba(24, 96, 168, 0) 75%);
}
.page-hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 48px 76px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.page-hero-sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 20px auto 0;
}

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

.section { padding: 0 var(--gutter) 88px; }
.section-first { padding-top: 72px; }
.section-news { padding: 80px var(--gutter) 84px; }
.section-team { padding: 0 var(--gutter) 88px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 38px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  color: var(--ink);
  margin: 0;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- prose (about page) ---------- */

.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 48px 40px;
}
.prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 26px;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 48px 0 20px;
}

.figure-placeholder {
  border-radius: 20px;
  background: linear-gradient(160deg, #d9e8f6, #cef0e9 50%, #e6eefa);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 18px;
  margin: 40px 0;
}
.figure-placeholder[hidden] { display: none; }
.figure-placeholder .placeholder-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue);
}

.mission-callout {
  background: #fff;
  border-radius: 28px;
  padding: 40px 42px;
  box-shadow: var(--card-shadow);
  margin: 44px 0 26px;
}
.mission-callout .mission-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 16px;
}
.mission-callout p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* ---------- featured vacancy (homepage) ---------- */

.section-recruit { padding: 0 var(--gutter); }

/* more than one position can be open at a time; they stack as separate bands */
.recruit-list {
  display: grid;
  gap: 20px;
}
.recruit-band {
  border-radius: 28px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(100deg,
    rgba(0, 192, 168, 0.13),
    rgba(24, 96, 168, 0.10) 60%,
    rgba(24, 96, 168, 0.06));
  border: 1px solid var(--hairline-soft);
}
.recruit-text { flex: 1; min-width: 260px; }
.recruit-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0;
}
.recruit-band h3 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 0;
  text-wrap: balance;
}
.recruit-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.recruit-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- news cards ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: 28px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.news-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.news-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0 24px;
}
.news-media {
  height: 170px;
  flex: none;
  margin-top: auto;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 18px;
}
.news-media .placeholder-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue);
}
.news-media time {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.news-media-a { background: linear-gradient(160deg, #d9e8f6, #cef0e9 50%, #e6eefa); }
.news-media-b { background: linear-gradient(160deg, #cef0e9, #e6eefa 50%, #d9e8f6); }
.news-media-c { background: linear-gradient(160deg, #e6eefa, #d9e8f6 50%, #cef0e9); }

.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--blue); }
/* media block carrying only a date, no photo yet */
.news-media-dateonly { justify-content: flex-end; }

/* full news article (news page) */
.news-article {
  max-width: 740px;
  margin: 0 auto;
}
.news-article-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 10px;
}
.news-article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 26px;
  text-wrap: balance;
}
.news-article p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 22px;
}
.news-article .news-back {
  margin-top: 34px;
  font-size: 14px;
  font-weight: 600;
}
.news-article .news-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

/* news media carrying the QuBriC logo instead of a photo */
.news-media-logo {
  position: relative;
  align-items: center;
  justify-content: center;
}
.news-media-logo img {
  /* size from height so the box matches the artwork; max-height alone leaves a
     full-width box that collides with the date */
  height: 96px;
  width: auto;
  max-width: 65%;
}
.news-media-logo time {
  position: absolute;
  right: 18px;
  bottom: 16px;
}
.news-article-media {
  border-radius: 24px;
  background: linear-gradient(160deg, #d9e8f6, #cef0e9 50%, #e6eefa);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  margin: 0 0 34px;
}
.news-article-media img { height: 190px; width: auto; max-width: 100%; }

/* ---------- team cards ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.team-photo {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  overflow: hidden;
}
/* portraits are supplied square and already face-centred, so fill the circle */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-photo-a { background: repeating-linear-gradient(45deg, #d9e8f6, #d9e8f6 6px, #cef0e9 6px, #cef0e9 12px); }
.team-photo-b { background: repeating-linear-gradient(45deg, #cef0e9, #cef0e9 6px, #e6eefa 6px, #e6eefa 12px); }
.team-photo-c { background: repeating-linear-gradient(45deg, #e6eefa, #e6eefa 6px, #d9e8f6 6px, #d9e8f6 12px); }
.team-photo-d { background: repeating-linear-gradient(45deg, #d9e8f6, #d9e8f6 6px, #e6eefa 6px, #e6eefa 12px); }
/* ---------- team carousel (homepage) ---------- */

/* A scroll-snap strip rather than a slideshow: it scrolls natively with touch,
   trackpad, scrollbar and arrow keys, so the buttons are an enhancement rather
   than the only way through. No autoplay — nothing moves unless asked. */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  /* room for the cards' shadow, which the overflow would otherwise clip */
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 999px;
}
.carousel-track > * {
  flex: 0 0 268px;
  scroll-snap-align: start;
}
.carousel-track:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 28px;
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.carousel-btn:hover { background: var(--bg); }
.carousel-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
/* without JS the buttons cannot do anything, so they stay hidden */
.carousel:not([data-ready]) .carousel-btn { display: none; }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

/* ---------- partner logo marquee (homepage) ---------- */

.section-partners { padding: 0 var(--gutter) 88px; }
.marquee {
  overflow: hidden;
  /* fade the logos out at both edges so they enter and leave, rather than
     being chopped off mid-mark by the container */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 70s linear infinite;
}
/* two identical sets sit side by side, so shifting by exactly half the track
   lands on the copy and the loop is seamless */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 0;
  padding: 0 30px;
  list-style: none;
}
.marquee-set li {
  flex: none;
  height: 62px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-set img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Pasqal supplied only the light-on-dark lockup — same dark plate as the
   consortium page so it stays legible here too */
.marquee-set li.marquee-plate {
  background: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
}
@media (prefers-reduced-motion: reduce) {
  /* no autoplay; the strip becomes an ordinary scrollable row */
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee-track > :last-child { display: none; }
}
@media (max-width: 640px) {
  .marquee-set { gap: 40px; padding: 0 20px; }
  .marquee-set li { height: 50px; width: 118px; }
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--mono);
}
.team-role {
  font-size: 13px;
  color: var(--teal);
  margin-top: 6px;
}
/* country from the Affiliation column, e.g. TUE (NL) -> Netherlands */
.team-country {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 5px;
}

/* ---------- consortium ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.partner-logo {
  height: 84px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
/* logos are supplied at wildly different aspect ratios, so bound both axes and
   let each one settle at its own size inside the fixed-height slot */
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Pasqal supplied only the light-on-dark lockup; a dark plate keeps it legible
   without recolouring their artwork. Swap to a plain slot once the dark-ink
   version arrives. */
.partner-logo-plate {
  background: var(--ink);
  padding: 14px 18px;
}
.partner-name {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--mono);
}

/* ---------- publications ---------- */

/* Publication list styles are unused while the categories are empty.
   Kept so real entries can be dropped in with the .pub-item markup. */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pub-item {
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
}
.pub-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.pub-title .placeholder { font-family: var(--mono); font-size: 16px; }
.pub-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--mono);
}
.pub-links {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

/* ---------- vacancies ---------- */

.vacancy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Built on <details>/<summary>: expands without JS, keyboard-operable,
   and announced as a disclosure by screen readers. */
.vacancy {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.vacancy-row {
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  border-radius: 20px;
}
.vacancy-row::-webkit-details-marker { display: none; }
.vacancy-row::marker { content: ""; }
.vacancy-row:hover .vacancy-title { color: var(--blue); }
.vacancy-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.vacancy-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transition: transform 0.2s ease;
}
.vacancy[open] .vacancy-chevron { transform: rotate(180deg); }
.vacancy[open] .vacancy-row { border-radius: 20px 20px 0 0; }

.vacancy-detail {
  padding: 4px 26px 26px;
  border-top: 1px solid var(--hairline-soft);
  margin: 0 26px;
  padding-left: 0;
  padding-right: 0;
  animation: vacancy-reveal 0.18s ease both;
}
@keyframes vacancy-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.vacancy-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 28px;
  margin: 22px 0 0;
}
.vacancy-facts dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.vacancy-facts dd {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--mono);
}
.vacancy-intro {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 22px 0 0;
  /* spans the panel like the facts grid above it; the 68ch measure left an
     odd narrow column against the full-width grid */
}
.vacancy-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}
.vacancy-note {
  font-size: 13.5px;
  color: var(--muted-2);
}

/* empty category — nothing published yet */
.empty-state {
  border: 1px dashed var(--hairline);
  border-radius: 20px;
  padding: 30px 26px;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.vacancy-id {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: #d9e8f6;
  border-radius: 8px;
  padding: 6px 10px;
  flex: none;
}
.vacancy-body { flex: 1; min-width: 0; }
.vacancy-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--mono);
}
.vacancy-host {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
}
.status-pill {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-planned {
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.status-opening {
  color: #fff;
  background: var(--blue);
}
.status-open {
  color: #fff;
  background: var(--green);
}

.info-callout {
  background: #fff;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: var(--card-shadow);
  max-width: 740px;
}
.info-callout h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
}
.info-callout p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.placeholder-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 28px;
}

/* ---------- contact / follow pills (homepage) ---------- */

.section-contact {
  padding: 0 var(--gutter) 96px;
  text-align: center;
}
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  color: var(--ink);
  margin: 0;
}
.contact-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 14px 0 0;
}
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.pill {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pill-solid { background: var(--ink); color: #fff; }
.pill-solid:hover { background: var(--blue); color: #fff; }
.pill-outline {
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: transparent;
}
.pill-outline:hover {
  color: var(--ink);
  border-color: rgba(16, 32, 46, 0.45);
}

/* ---------- footer ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--hairline-soft);
  padding: 56px var(--gutter) 40px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.footer-brand .brand-mark { height: 44px; }
.footer-brand .brand-wordmark { height: 24px; }
.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}
.footer-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer-contact a.footer-email {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.footer-contact a.footer-email:hover { color: var(--teal); }
.footer-contact .footer-social {
  display: block;
  width: fit-content;
  font-size: 14px;
  margin-top: 6px;
  color: var(--muted);
}
.footer-contact .footer-social:hover { color: var(--teal); }
.eu-funding {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
/* 3:2, square corners — the EU emblem must not be restyled */
.eu-flag {
  width: 57px;
  height: 38px;
  flex: none;
  display: block;
}
.eu-funding span {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.eu-disclaimer {
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
  color: var(--faint);
}
.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .brand-mark { height: 44px; }
  .brand-wordmark { height: 24px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    padding: 12px 24px 20px;
    box-shadow: 0 12px 32px rgba(16, 32, 46, 0.12);
    font-size: 16px;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .nav-links a.nav-cta {
    width: auto;
    margin-top: 10px;
    padding: 10px 22px;
  }

  .hero-inner { padding: 72px 24px 110px; }
  .hero h1 { font-size: 40px; }
  .page-hero-inner { padding: 48px 24px 60px; }
  .page-hero h1 { font-size: 36px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .prose { padding: 56px 24px 32px; }
  .mission-callout { padding: 30px 26px; }
  .mission-callout p { font-size: 18px; }
}

@media (max-width: 560px) {
  /* narrower card leaves the logo close to the date; ease it back */
  .news-media-logo img { height: 76px; }
  .contact-actions { flex-direction: column; }
  .contact-inner h2 { font-size: 27px; }
  .recruit-band { padding: 24px 22px; gap: 20px; }
  .recruit-band h3 { font-size: 23px; }
  .recruit-actions .btn { width: 100%; text-align: center; }
  .hero h1 { font-size: 31px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .vacancy-row { flex-wrap: wrap; gap: 12px; padding: 18px 20px; }
  .vacancy-body { flex-basis: 100%; order: 3; }
  .vacancy-detail { margin: 0 20px; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-toggle .bar, .vacancy-chevron { transition: none; }
  .vacancy-detail { animation: none; }
}

/* ---------- clickable partner and team cards ---------- */

/* The card markup switches between <article> and <a> depending on whether there
   is somewhere to go, so the anchor has to be told to look like a card again. */
a.partner-card,
a.team-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.partner-card:hover,
a.team-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 32, 46, 0.10);
}
a.partner-card:focus-visible,
a.team-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.partner-visit {
  font-size: 12.5px;
  color: var(--teal);
  margin-top: 8px;
}
a.team-card .team-name { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  a.partner-card,
  a.team-card { transition: none; }
  a.partner-card:hover,
  a.team-card:hover { transform: none; }
}

/* ---------- application deadlines ---------- */

.vacancy-deadline {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}
.recruit-deadline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin: 8px 0 0;
}
/* A date that has passed must not read as an invitation. */
.vacancy-deadline-passed,
.recruit-deadline.vacancy-deadline-passed {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ---------- publications ---------- */

.pub-item {
  background: #fff;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
}
.pub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pub-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.35;
}
.pub-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pub-link {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--blue);
  white-space: nowrap;
}
.pub-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pub-status {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pub-status-submitted {
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.pub-status-preprint {
  color: #fff;
  background: var(--blue);
}
.pub-status-published {
  color: #fff;
  background: var(--green);
}

/* ---------- team member profile ---------- */

.profile {
  max-width: 740px;
  margin: 0 auto;
}
.profile-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-bio p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 22px;
}
.profile-bio h2,
.profile-bio h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 34px 0 14px;
}
.profile-bio h2 { font-size: 26px; }
.profile-bio h3 { font-size: 21px; }
.profile-bio ul,
.profile-bio ol {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 22px;
  padding-left: 22px;
}
.profile-bio li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .pub-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-photo { width: 132px; height: 132px; }
}
