:root {
  --bg: #03260a;
  --panel: #0c0c0e;
  --fg: #f7f0c8;
  --muted: rgba(247, 240, 200, 0.6);
  --border: rgba(247, 240, 200, 0.14);
  --accent-red: #c4544a;
  --accent-green: #4f9e77;
  --accent-blue: #5a5adf;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 62px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-user-select: none; /* Safari / iOS */
  -moz-user-select: none;    /* Oudere Firefox */
  -ms-user-select: none;     /* IE / Edge */
  user-select: none;         /* Standaard */
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
/* Zorg dat bezoekers nog wel tekst kunnen selecteren en typen in invoervelden */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

a { color: inherit; text-decoration: none; }

/* ---------- SKIP LINK & FOCUS ---------- */

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--fg);
  color: #04240a;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

/* the close buttons get focus() programmatically every time a modal opens —
   a full outline box there reads as unwanted chrome rather than a11y cue */
.detail-close:focus-visible,
.team-detail-close:focus-visible {
  outline: none;
  opacity: 0.6;
}

/* ---------- SCROLL REVEAL ---------- */

/* @media (prefers-reduced-motion: no-preference) { */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  .reveal:nth-child(1) { transition-delay: 0s; }
  .reveal:nth-child(2) { transition-delay: 0.06s; }
  .reveal:nth-child(3) { transition-delay: 0.12s; }
  .reveal:nth-child(4) { transition-delay: 0.18s; }
  .reveal:nth-child(5) { transition-delay: 0.24s; }
  .reveal:nth-child(6) { transition-delay: 0.3s; }


/* ---------- HERO ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

#network-canvas,
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-kicker {
  position: absolute;
  top: clamp(100px, 16vh, 150px);
  left: clamp(20px, 4vw, 48px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
  z-index: 2;
}

.kicker-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: kicker-blink 1s step-end infinite;
}

@keyframes kicker-blink {
  50% { opacity: 0; }
}

/* @media (prefers-reduced-motion: reduce) {
  .kicker-cursor { animation: none; }
} */

.hero-copy {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(64px, 10vh, 120px);
  max-width: 560px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  animation: hero-in 1s ease-out 0.3s forwards;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy h1 {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 12px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease;
  animation: scroll-cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--fg); opacity: 1; }

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* @media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
} */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #ecdfa0; }

.btn-secondary { color: var(--fg); }
.btn-secondary:hover { border-color: var(--fg); }

/* ---------- FIXED TOP NAV ---------- */

.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(24px, 5vw, 64px);
  background: var(--bg);
  pointer-events: none;
}

.site-nav > * { pointer-events: auto; }

.site-logo {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-weight: 600;
  font-size: 20px;
}

.site-logo img {
  height: 28px;
  width: auto;
  display: block;
  transform: translateY(-5.75px);
}


.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  font-size: 14px;
}

.site-nav-links a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}
.site-nav-links a:hover { text-decoration-color: var(--fg); }

.icon-btn {
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  line-height: 1;
}

/* ---------- SEARCH OVERLAY ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12vh 20px 20px;
}

.search-box {
  width: min(600px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: clamp(18px, 3vw, 24px);
}

#search-close { font-size: 28px; }

.search-results {
  width: min(600px, 100%);
  list-style: none;
  margin-top: 18px;
}

.search-results li a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.search-results li a:hover { color: var(--fg); }

.search-results .no-results {
  color: var(--muted);
  padding: 12px 4px;
}

/* ---------- RESEARCH DETAIL BANNER ---------- */

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  cursor: pointer;
}

.detail-box {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: var(--bg);
  border: none;
  overflow: hidden;
}

.detail-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--fg);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.detail-media-visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.detail-media-visual .research-visual-bg { fill: var(--fg); }
.detail-media-visual .research-visual-dots circle { fill: var(--bg); }
.detail-media-visual .research-visual-lines line,
.detail-media-visual .research-visual-lines path { stroke: var(--bg); }

.detail-index {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--bg);
  font-size: clamp(70px, 7vw, 120px);
  font-weight: 700;
  opacity: 1;
  padding: 0 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 96px);
  max-width: 640px;
  overflow-y: auto;
}

.detail-close {
  position: absolute;
  top: 28px;
  right: clamp(20px, 4vw, 48px);
  z-index: 2;
  font-size: 26px;
}

.detail-box h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; margin-bottom: 16px; }
.detail-box p { color: var(--muted); font-size: 16px; line-height: 1.7; }

@media (max-width: 720px) {
  .detail-overlay { align-items: flex-start; overflow-y: auto; }
  .detail-box { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .detail-media { min-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ---------- TEAM BIO MODAL (photo left / text right, like research — but
   a normal-sized modal rather than a full-bleed takeover, no border frame) ---------- */

.team-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}

.team-box {
  position: relative;
  width: min(1020px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  background: var(--bg);
  border: none;
  overflow: hidden;
}

.team-media {
  position: relative;
  min-height: 420px;
  background: var(--panel);
}

.team-detail-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 54px;
  overflow-y: auto;
}

.team-box h3 { font-size: 27px; font-weight: 600; margin-bottom: 6px; }
.team-detail-subtitle { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.team-box p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.team-detail-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  font-size: 24px;
}

@media (max-width: 640px) {
  .team-box { grid-template-columns: 1fr; }
  .team-media { min-height: 200px; }
}

/* ---------- SECTIONS ---------- */

.page {
  position: relative;
  padding: 120px clamp(20px, 4vw, 48px) 140px;
}

.section-inner { max-width: 1440px; position: relative; z-index: 1; }

.section-team .section-inner,
.section-contact .section-inner {
  margin: 0 auto;
}

.section-research {
  padding-bottom: 220px;
  padding-left: clamp(28px, 5vw, 64px);
  padding-right: clamp(28px, 5vw, 64px);
}

.research-accent {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.8vh, 26px);
  width: clamp(90px, 9vw, 140px);
  height: auto;
  color: var(--fg);
  opacity: 0.8;
  pointer-events: none;
  transform: translateX(-50%);
}

.research-next {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 1.8vh, 26px);
  width: clamp(90px, 9vw, 140px);
  height: clamp(90px, 9vw, 140px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  opacity: 0.75;
  z-index: 2;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.research-next:hover { opacity: 1; }

@media (max-width: 900px) {
  .research-accent { display: none; }
  .research-next { display: none; }
}

.section-kicker {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.page h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  margin-bottom: 48px;
}

.section-research h2 {
  font-size: clamp(36px, 5vw, 58px);
}

/* research */

.research-scroller {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 clamp(28px, 5vw, 64px);
  box-sizing: border-box;
}

.research-track {
  flex: 1;
  display: flex;
  gap: 16px;
  padding-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  cursor: grab;
}
.research-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}
.research-track::-webkit-scrollbar { display: none; }

.research-card {
  position: relative;
  flex: 0 0 clamp(370px, 41vw, 540px);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  background: none;
  border: 1px solid var(--fg);
  border-radius: 0;
  padding: 54px 48px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}
.research-card:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-4px);
}

.research-card:active {
  transform: translateY(0px) scale(0.985);
  transition-duration: 0.08s;
}

.research-visual {
  display: block;
  width: calc(100% + 96px);
  height: 132px;
  margin: -54px -48px 28px -48px;
  flex: none;
}
.research-visual-bg { fill: var(--fg); transition: fill 0.2s ease; }
.research-visual-dots circle { fill: var(--bg); transition: fill 0.2s ease; }
.research-visual-lines line,
.research-visual-lines path { stroke: var(--bg); transition: stroke 0.2s ease; }
.research-card:hover .research-visual-bg { fill: var(--bg); }
.research-card:hover .research-visual-dots circle { fill: var(--fg); }
.research-card:hover .research-visual-lines line,
.research-card:hover .research-visual-lines path { stroke: var(--fg); }
.research-card:hover .research-index,
.research-card:hover .card-more { color: var(--bg); }
.research-card:hover p { color: rgba(3, 38, 10, 0.7); }

.scroll-btn {
  flex: 0 0 auto;
  width: 44px;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.scroll-btn:hover { background: var(--panel); border-color: var(--fg); }
.scroll-btn:disabled { opacity: 0.3; cursor: default; }
.scroll-btn:disabled:hover { background: none; border-color: var(--border); }

.research-index {
  display: block;
  color: var(--fg);
  font-size: 50px;
  font-weight: 600;
  opacity: 1;
  margin-bottom: 34px;
  transition: color 0.2s ease;
}

.research-card h3 { font-size: 29px; margin-bottom: 16px; font-weight: 600; }
.research-card p { color: var(--fg); font-size: 17px; line-height: 1.6; transition: color 0.2s ease; }

.card-more {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.card-more:hover {
  color: var(--fg);
  transform: translateX(3px);
}

.research-card .card-more {
  position: absolute;
  bottom: 26px;
  right: 26px;
}

/* team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
}

.team-card {
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.team-card:hover .team-avatar {
  border-color: var(--fg);
  transform: translateY(-4px);
}

.team-card:active .team-avatar {
  transform: translateY(0px) scale(0.98);
  transition-duration: 0.08s;
}

.team-card:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.team-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(155deg, #1a1a1d, #0a0a0b);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--fg);
  transform: translateY(-3px);
}

.team-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.team-card p { color: var(--muted); font-size: 15px; }

.team-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--fg);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.contact-form button { align-self: flex-start; cursor: pointer; }

.contact-status {
  font-size: 13px;
  color: var(--accent-green);
  min-height: 1.2em;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  font-size: 15px;
}

.contact-links > a {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.contact-links > a:hover { border-color: var(--fg); }

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

.contact-banana {
  width: 108px;
  height: auto;
  color: var(--fg);
  opacity: 0.85;
  margin-top: 4px;
  transform: scaleY(-1);
}

.contact-legal {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contact-legal-note {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  opacity: 0.8;
}

/* ---------- PARTNERS ---------- */

.partners-strip {
  padding: 64px clamp(20px, 4vw, 48px);
}

.partners-strip .section-inner {
  margin: 0 auto;
  text-align: center;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 8px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.partners-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-nav-links { gap: 12px; font-size: 13px; }
  .site-logo span { display: none; }
}

/* Soepele opkomst van het modalvenster */
.detail-overlay:not([hidden]),
.team-overlay:not([hidden]) {
  animation: modal-backdrop-in 0.22s ease-out forwards;
}

.detail-box,
.team-box {
  animation: modal-pop-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop-in {
  from { 
    opacity: 0; 
    transform: scale(0.96) translateY(8px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}
/* Sluitanimatie voor overlay en pop-up */
.detail-overlay.is-closing,
.team-overlay.is-closing {
  animation: modal-backdrop-out 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.detail-overlay.is-closing .detail-box,
.team-overlay.is-closing .team-box {
  animation: modal-pop-out 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes modal-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-pop-out {
  from { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: scale(0.96) translateY(8px); 
  }
}

.detail-extra {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-graphic {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.stat-pill {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 6px;
  background: var(--panel);
}

.stat-val {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}