/* ==========================================================================
   Beijst.eu — Molecular and Motion Imaging Group
   Design tokens
   ========================================================================== */

:root {
  --bg: #f3f4f4;
  --surface: #e6eaec;
  --surface-strong: #dde3e6;
  --ink: #10192b;
  --ink-soft: #45505f;
  --line: #c9d1d6;
  --accent: #1e6e77;
  --accent-strong: #123f47;
  --signal: #4fd1c5;
  --gold: #b8862b;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1120px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-strong); text-decoration-color: rgba(30,110,119,0.4); }
a:hover { text-decoration-color: var(--accent-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 28px; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,244,244,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--accent-strong);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 28px; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
  }
}

/* ---------------- Sections ---------------- */
section { padding: 68px 0; }
.section-tight { padding: 40px 0; }
.bg-surface { background: var(--surface); }
.bg-ink { background: var(--accent-strong); color: var(--white); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(255,255,255,0.85); }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 3px;
  background: var(--accent-strong);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent); color: var(--white); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 20px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
}

.hero-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-strong);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* signature scan-line sweep, once, on load */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(79,209,197,0.55) 48%, transparent 100%);
  transform: translateY(-100%);
  animation: scan-sweep 1.6s ease-out 0.2s 1;
}
@keyframes scan-sweep {
  to { transform: translateY(100%); }
}

/* ---------------- Cover / banner image ---------------- */
.cover {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.cover-dim { background: rgba(16,25,43,0.55); }
.cover-inner { position: relative; padding: 96px 0; }

/* ---------------- Cards / grid ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border-radius: 6px;
  padding: 30px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

.figure-card {
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
}
.figure-card img { aspect-ratio: 4/3; object-fit: cover; }
.figure-card .caption { padding: 20px 22px 24px; }
.figure-card .caption p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------------- Team ---------------- */
.member { text-align: center; }
.member-photo {
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-strong);
  margin-bottom: 16px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member h4 { margin-bottom: 4px; }
.member .role { color: var(--accent-strong); font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.member .project { color: var(--ink-soft); font-size: 0.88rem; }
.member .social { margin-top: 12px; }
.member .social a {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* ---------------- Timeline (CV) ---------------- */
.timeline-block {
  background: var(--surface);
  border-radius: 6px;
  padding: 36px 32px;
  height: 100%;
}
.timeline-block h3 {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.timeline-entry { margin-bottom: 20px; }
.timeline-entry:last-child { margin-bottom: 0; }
.timeline-entry .years {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}
.timeline-entry p { margin-top: 2px; }
.timeline-entry em { color: var(--ink-soft); font-style: italic; }

/* ---------------- Publications ---------------- */
.pub-list { display: flex; flex-direction: column; }
.pub-entry {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.pub-entry:first-child { padding-top: 0; }
.pub-entry:last-child { border-bottom: none; }
.pub-entry h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}
.pub-entry h3 a { color: var(--ink); text-decoration: none; }
.pub-entry h3 a:hover { color: var(--accent-strong); text-decoration: underline; }
.pub-entry .authors { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.pub-entry .venue {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-strong);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--ink-soft); }
