/* ==========================================================================
   Olivier Walker — research site
   One stylesheet for every page. Visual language from the Claude Design
   export: sky-blue gradient background, frosted white glass panels with a
   diagonal sheen, glossy white frame around the banner.
   ========================================================================== */

:root {
  --ink: #16345f;          /* headings, primary text */
  --ink-2: #51627f;        /* secondary text */
  --body: #44556f;         /* paragraphs */
  --muted: #6c7d9a;        /* authors, small print */
  --label: #8494ad;        /* eyebrow labels */
  --dot: #a9b6cd;
  --ring: #9fb4cf;
  --accent: #0c6f8a;       /* teal links and accents */
  --accent-line: rgba(12, 111, 138, 0.4);

  --serif: Spectral, Georgia, "Times New Roman", serif;
  --sans: Jost, "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --page-max: 1200px;
  --gutter: 24px;

  --glass-border: 1px solid rgba(255, 255, 255, 0.88);
  --glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4));
  --glass-shadow: 0 30px 56px -32px rgba(38, 52, 102, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --glass-blur: blur(22px) saturate(160%);
  --sheen: linear-gradient(118deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0) 46%);
}

/* ---------- Base ---------- */

/* Widths follow the design export, which uses the default content-box model. */

html { -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; }

a { color: var(--ink); }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Inline links inside running text */
:where(p, li, dd, address) > a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color 0.2s;
}
:where(p, li, dd, address) > a:not([class]):hover { border-bottom-color: var(--accent); }

.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;
}

/* Sky background — the same on every page */
.page {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 28px var(--gutter) 0;
  color: var(--ink);
  background-color: #e8f0fa;
  background-image:
    radial-gradient(1200px 780px at 6% 0%, rgba(84, 132, 196, 0.5), rgba(84, 132, 196, 0) 62%),
    radial-gradient(1020px 700px at 94% 4%, rgba(126, 174, 222, 0.45), rgba(126, 174, 222, 0) 60%),
    radial-gradient(1100px 840px at 80% 78%, rgba(158, 198, 232, 0.4), rgba(158, 198, 232, 0) 62%),
    linear-gradient(180deg, #c4d9f1 0%, #dde9f7 38%, #eff5fc 70%, #ffffff 100%);
}

.wrap { max-width: var(--page-max); margin-left: auto; margin-right: auto; }

/* ---------- Glass panels ---------- */

.glass {
  position: relative;
  border-radius: 26px;
  border: var(--glass-border);
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
/* diagonal sheen laid over the panel */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--sheen);
}
.glass--lg {
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  box-shadow: 0 32px 60px -32px rgba(38, 52, 102, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
.glass--lg::after {
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 44%);
}

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 10;
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  box-shadow: 0 18px 38px -24px rgba(40, 54, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.nav__brand, .nav__partner { display: flex; align-items: center; text-decoration: none; }
.nav__brand img { display: block; height: 66px; width: auto; }
.nav__partner img { display: block; height: 58px; width: auto; }

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
  font-weight: 400;
}
.nav__links a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: rgba(22, 52, 95, 0.25); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
  box-shadow: 0 8px 18px -12px rgba(40, 54, 105, 0.6), inset 0 1px 0 #ffffff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { display: block; }
.nav__toggle .icon-close { display: none; }
.nav--open .nav__toggle .icon-open { display: none; }
.nav--open .nav__toggle .icon-close { display: block; }

/* ---------- Banner in a glossy white frame ---------- */

.banner {
  position: relative;
  max-width: var(--page-max);
  margin: 30px auto 0;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.68) 45%, rgba(255, 255, 255, 0.9));
  box-shadow:
    0 22px 44px -24px rgba(24, 46, 92, 0.5),
    0 1px 3px rgba(24, 46, 92, 0.12),
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.banner img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(0.92) contrast(1.04) saturate(1.03);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(26, 38, 78, 0.2);
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(107deg,
    rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.3) 7%, rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.14) 92%, rgba(255, 255, 255, 0.5) 100%);
}

/* ---------- Page titles ---------- */

.page-head { max-width: var(--page-max); margin: 48px auto 0; }
.page-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.page-head__main { flex: 999 1 460px; min-width: 0; }

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--label);
}
.page-head h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.page-head h1:first-child { margin-top: 0; }

.rule {
  width: 84px;
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--ink), rgba(22, 52, 95, 0));
}

.label {
  margin: 0;
  font-size: 11px;
  line-height: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}
.label--accent { color: var(--accent); }

.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  background: rgba(12, 111, 138, 0.1);
  border: 1px solid rgba(12, 111, 138, 0.22);
}

.section { max-width: var(--page-max); margin: 44px auto 0; }
.stack { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Home ---------- */

.hero {
  max-width: var(--page-max);
  margin: 54px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hero__main { flex: 999 1 460px; min-width: 0; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero__meta strong { font-weight: 500; color: var(--ink); }
.hero__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--dot); }
.hero__tagline {
  flex: 1 1 260px;
  margin: 0;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.intro {
  max-width: var(--page-max);
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
}
.lab {
  flex: 999 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}
.lab__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.lab__photo {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 330px;
  align-self: center;
  width: 100%;
  height: 410px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(26, 38, 78, 0.2);
}
.lab__text { flex: 999 1 220px; min-width: 0; align-self: center; padding: 6px 4px; }
.lab__text h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); }
.lab__text p {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--body);
  text-align: justify;
  hyphens: auto;
}
.lab__text p + p { margin-top: 12px; }

.contact {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 18px 26px;
}
.contact__portrait {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(26, 38, 78, 0.18);
}
.contact__body { padding: 0 10px; }
.contact h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); }
.contact address {
  margin: 14px 0 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.contact dl {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.contact dt { color: var(--label); }
.contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

.cards {
  max-width: var(--page-max);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 16px 16px 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42));
  box-shadow: 0 30px 56px -30px rgba(38, 52, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::after {
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 22%, rgba(255, 255, 255, 0) 44%);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 60px -30px rgba(38, 52, 102, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
.card__media {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(26, 38, 78, 0.18);
}
.card__media img { display: block; width: 100%; height: 178px; object-fit: cover; object-position: center; }
.card__media--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(233, 241, 251, 0.22) 100%);
}
.card h2 { margin: 24px 6px 0; font-family: var(--serif); font-weight: 500; font-size: 29px; color: var(--ink); }
.card p { margin: 10px 6px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card__cta {
  margin: auto 6px 0;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__cta svg { flex: none; transition: transform 0.25s ease; }
.card:hover .card__cta svg { transform: translateX(3px); }

/* ---------- Downloads (CV, job-offer PDFs) ---------- */

.download {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 20px 26px;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 22px 44px -28px rgba(38, 52, 102, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 0.2s ease;
}
.download:hover { transform: translateY(-2px); }
.download__icon { flex: none; }
.download__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.download__title { font-size: 16px; line-height: 1.45; color: var(--ink); }
.download__sub { font-size: 13px; line-height: 1.5; color: var(--muted); }
.download__end { margin-left: auto; flex: none; display: flex; align-items: center; gap: 12px; }
.download__kind { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.download__arrow { display: block; transition: transform 0.2s ease; }
.download:hover .download__arrow { transform: translateY(2px); }

/* ---------- CV ---------- */

.cv { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cv__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cv__main { flex: 999 1 520px; min-width: 0; }

.panel { padding: 38px 40px 40px; }
.panel h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); }

.timeline {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 20px;
  border-left: 2px solid rgba(12, 111, 138, 0.3);
}
.timeline--spaced { gap: 24px; }
.timeline .when { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.timeline .what { font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Research projects ---------- */

.project {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 22px;
}
/* every second project puts its figure on the right */
.project:nth-child(even) { flex-direction: row-reverse; }

.project__figure {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 380px;
  align-self: center;
  margin: 0 auto;
}
.project__body {
  flex: 999 1 380px;
  min-width: 0;
  align-self: center;
  padding: 10px 14px 14px 0;
}
.project:nth-child(even) .project__body { padding: 10px 0 14px 14px; }
.project h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: pretty;
}
.project p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
  text-align: justify;
  hyphens: auto;
}
.project h2 + p { margin-top: 18px; }
/* a box without picture */
.project--text .project__body,
.project--text:nth-child(even) .project__body { padding: 10px 14px 14px; }
/* very tall pictures are shown whole without stretching the box */
.project__figure img { max-height: 560px; object-fit: contain; }

/* Figures that open full size when clicked */
.zoom { display: block; position: relative; cursor: zoom-in; border-radius: 18px; }
.zoom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(26, 38, 78, 0.2);
}
.zoom__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ffffff;
  box-shadow: 0 6px 16px -8px rgba(26, 38, 78, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
}
.zoom:hover .zoom__hint, .zoom:focus-visible .zoom__hint { opacity: 1; transform: none; }

/* ---------- Programs ---------- */

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 30px;
}
.program { display: flex; flex-direction: column; padding: 18px 18px 34px; }
.program .zoom img { height: 240px; object-fit: contain; }
.program__body { padding: 0 18px; }
.program__head { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.program h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: 0.01em; color: var(--ink); }
/* description paragraphs (low specificity so .label / .avail keep their own look) */
:where(.program__body) > p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  text-align: justify;
  hyphens: auto;
}
.program .label { margin-top: 22px; }
.program .avail { margin: 22px 0 0; font-size: 15px; line-height: 1.7; text-align: left; }
.program .avail + .avail { margin-top: 8px; }
.avail span { color: var(--label); }

.refs {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(160deg, #1d6f8c, #14506b);
  box-shadow: 0 12px 26px -14px rgba(20, 80, 107, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { color: #ffffff; transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(20, 80, 107, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

/* ---------- Publications ---------- */

.pub-year {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 34px 38px;
}
.pub-year h2 {
  flex: 0 0 120px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}
.pub-year h2 small { display: block; font-size: 20px; color: var(--label); }

.pubs {
  flex: 999 1 460px;
  min-width: 0;
  margin: 0;
  padding-left: 22px;
  list-style: disc;
}
.pubs li + li { margin-top: 22px; }
.pubs li::marker { color: var(--accent); }

.pub-title { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); text-wrap: pretty; overflow-wrap: break-word; }
.pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.2s, background-size 0.3s ease;
}
.pub-title a:hover { color: var(--accent); background-size: 100% 1px; }
.pub-title .ext { white-space: nowrap; }
.pub-title .ext svg { display: inline-block; margin-left: 6px; vertical-align: 0.05em; color: var(--accent); }

.pub-authors { margin: 7px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.pub-authors .me { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.pub-journal { margin: 5px 0 0; font-size: 14px; color: var(--ink-2); font-style: italic; }

/* Shown only if a content file cannot be read */
.content-error {
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid rgba(184, 50, 50, 0.35);
  background: rgba(255, 240, 240, 0.85);
  color: #7a2020;
  font-size: 15px;
  line-height: 1.6;
}
.content-error code { font-size: 13px; }

/* ---------- Job offers ---------- */

.contact-chip { flex: 1 1 280px; padding: 22px 26px; border-radius: 20px; box-shadow: 0 22px 44px -28px rgba(38, 52, 102, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.96); }
.contact-chip p:last-child { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }

.job { padding: 38px 42px 42px; }
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.job h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); }
.job__lead {
  margin: 18px 0 0;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  text-wrap: pretty;
}

.bullets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 12px 26px;
}
.bullets li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--body); }
.bullets li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.inset {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.inset p:not(.label) { margin: 12px 0 0; font-size: 16px; line-height: 1.75; color: var(--body); text-wrap: pretty; }

/* "Open projects" lists, filled from content/jobs.js */
.offers { margin-top: 30px; }
.offers[hidden] { display: none; }
.offer-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.45));
  box-shadow: 0 16px 30px -24px rgba(38, 52, 102, 0.6), inset 0 1px 0 #ffffff;
  padding: 16px 20px;
  border-radius: 18px;
}
.offer:hover { background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)); }

/* ---------- Lightbox ---------- */

.lightbox {
  box-sizing: border-box;
  max-width: min(1400px, 94vw);
  max-height: 94vh;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.94));
  box-shadow: 0 30px 70px -20px rgba(16, 32, 70, 0.6);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(22, 52, 95, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox img {
  display: block;
  max-width: calc(94vw - 16px);
  max-height: calc(94vh - 16px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #ffffff;
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 8px 20px -10px rgba(16, 32, 70, 0.7);
  cursor: pointer;
}

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

.site-footer { max-width: var(--page-max); margin: 40px auto 0; padding: 44px 0 56px; }
.site-footer__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(90, 122, 170, 0) 0%, rgba(90, 122, 170, 0.45) 18%, rgba(90, 122, 170, 0.45) 82%, rgba(90, 122, 170, 0) 100%);
}
.site-footer__logos {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 44px 160px;
}
.site-footer__logos a { display: block; }
.site-footer__logos img { display: block; width: auto; }
.logo-isa { height: 42px; }
.logo-biosys { height: 48px; }
.logo-lyon1 { height: 58px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav__links { gap: 26px; font-size: 19px; }
  .nav__brand img { height: 58px; }
  .nav__partner img { height: 52px; }
  .site-footer__logos { gap: 40px 90px; }
}

/* Compact menu */
@media (max-width: 880px) {
  .nav { padding: 8px 10px 8px 22px; gap: 12px; border-radius: 34px; }
  .nav__brand img { height: 50px; }
  .nav__partner { margin-left: auto; }
  .nav__partner img { height: 44px; }
  .nav__toggle { display: flex; }
  .nav__links {
    order: 10;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 4px 0 10px;
    font-size: 19px;
  }
  .js .nav__links { display: none; }
  .js .nav--open .nav__links { display: flex; }
  .nav__links a {
    display: block;
    padding: 10px 14px;
    border-bottom: 0;
    border-radius: 14px;
  }
  .nav__links a:hover { background: rgba(255, 255, 255, 0.55); }
  .nav__links a[aria-current="page"] { background: rgba(255, 255, 255, 0.7); box-shadow: inset 3px 0 0 var(--ink); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .page { padding-top: 16px; }
  .banner { margin-top: 18px; padding: 5px; border-radius: 14px; }
  .banner img { height: clamp(150px, 34vw, 330px); border-radius: 9px; }

  .hero { margin-top: 36px; gap: 18px; }
  .hero h1 { font-size: clamp(40px, 11vw, 58px); }
  .hero__tagline { text-align: left; font-size: 17px; }
  .page-head { margin-top: 36px; }
  .page-head h1 { font-size: clamp(36px, 9.5vw, 52px); }
  .section { margin-top: 30px; }
  .intro { margin-top: 32px; gap: 20px; }
  .cards { gap: 20px; margin-top: 20px; }
  .stack { gap: 20px; }

  .lab__photo { height: 340px; }
  .panel { padding: 28px 22px 30px; }
  .project { padding: 14px; gap: 22px; }
  .project__body, .project:nth-child(even) .project__body { padding: 0 8px 12px; }
  .project h2 { font-size: 24px; }
  .program { padding: 14px 14px 28px; }
  .program__body { padding: 0 8px; }
  .program h2 { font-size: 28px; }
  .pub-year { padding: 26px 22px; gap: 18px; }
  .pub-year h2 { flex-basis: 100%; font-size: 32px; }
  .pub-year h2 small { display: inline; margin-left: 8px; font-size: 18px; }
  .pubs { padding-left: 18px; }
  .pub-title { font-size: 16px; }
  .job { padding: 28px 22px 30px; }
  .job h2 { font-size: 28px; }
  .inset { padding: 20px; }
  .download { padding: 16px 18px; gap: 14px; }
  .offer { padding: 14px 16px; }
  .download__kind { display: none; }
  .site-footer { padding: 32px 0 40px; }
  .site-footer__logos { margin-top: 32px; gap: 28px 44px; }
  .lab__text p, .project p, :where(.program__body) > p { text-align: left; hyphens: manual; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero__meta .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .page { background: #ffffff; }
  .nav, .banner, .site-footer { display: none; }
  .glass { box-shadow: none; border-color: #dde4ee; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass::after { display: none; }
}
