/* =========================================================
   Remi Gommans — Sollicitatie Coördinator Digitaal
   Bibliotheek Venlo · thema: bibliotheek (boekengroen + goud)
   ========================================================= */

:root {
  --green-900: #0d1f16;
  --green-800: #112a1e;
  --green-700: #163a29;
  --green-600: #1d4d37;
  --gold-500:  #c9a24b;
  --gold-400:  #d9b968;
  --gold-300:  #e7cf94;
  --cream:     #f4ecdc;
  --cream-dim: #d8cfbc;
  --parchment: #efe6d2;
  --ink:       #22190f;
  --shadow:    rgba(0, 0, 0, .35);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--green-900);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated library background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(29,77,55,.55), transparent 60%),
    linear-gradient(160deg, #0c1c14 0%, #102a1d 45%, #0b1912 100%);
}
.bg__canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
/* Bookshelf silhouettes that parallax with the mouse */
.bg__shelves {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .5;
  will-change: transform;
}
.shelf {
  position: absolute;
  left: -5vw;
  right: -5vw;
  height: 108px;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.0) 0px,
      rgba(0,0,0,.0) 6px,
      rgba(12,26,18,.55) 6px,
      rgba(12,26,18,.55) 10px,
      rgba(20,44,30,.55) 10px,
      rgba(20,44,30,.55) 22px,
      rgba(8,18,12,.55) 22px,
      rgba(8,18,12,.55) 27px,
      rgba(30,60,42,.5) 27px,
      rgba(30,60,42,.5) 44px,
      rgba(14,30,20,.55) 44px,
      rgba(14,30,20,.55) 50px);
  border-bottom: 6px solid rgba(201,162,75,.16);
  filter: blur(.4px);
}
.shelf::after {
  content: "";
  position: absolute;
  inset: 0 0 6px 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
}
.shelf--1 { top: 12%; }
.shelf--2 { top: 42%; opacity: .8; }
.shelf--3 { top: 74%; }

/* Soft "reading lamp" glow that follows the cursor */
.bg__lamp {
  position: fixed;
  top: 0; left: 0;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233,207,148,.22), rgba(233,207,148,.07) 42%, transparent 72%);
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
  transition: opacity .4s ease;
  opacity: 0;
}

/* ---------- Cursor halo (follows the native cursor, which stays visible) ---------- */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  border: 1.5px solid rgba(217,185,104,.85);
  background: rgba(201,162,75,.06);
  box-shadow: 0 0 9px rgba(217,185,104,.45), inset 0 0 5px rgba(217,185,104,.25);
  transform: translate3d(-999px, -999px, 0);
  opacity: 0;
  transition: width .22s var(--ease), height .22s var(--ease),
              margin .22s var(--ease), background-color .22s var(--ease),
              border-color .22s var(--ease), opacity .3s ease;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-hover {
  width: 27px; height: 27px;
  margin: -13.5px 0 0 -13.5px;
  background: rgba(201,162,75,.14);
  border-color: rgba(233,207,148,1);
  box-shadow: 0 0 14px rgba(217,185,104,.6), inset 0 0 7px rgba(217,185,104,.35);
}
.cursor-ring.is-down { transform-origin: center; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

main { min-height: 60vh; }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 22, 15, .72);
  border-bottom: 1px solid rgba(201,162,75,.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .3px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--gold-500), var(--gold-300));
  color: var(--green-900);
  font-weight: 700;
  font-family: var(--sans);
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(201,162,75,.28);
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--gold-300); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,162,75,.35);
  border-radius: 8px;
  width: 44px; height: 40px;
  color: var(--gold-300);
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 108px 0 72px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  padding: 7px 14px;
  border: 1px solid rgba(201,162,75,.3);
  border-radius: 999px;
  background: rgba(201,162,75,.06);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.02;
  margin: .5em 0 .2em;
  letter-spacing: -.5px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 640px;
  font-size: 1.18rem;
  color: var(--cream-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold-500);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1px solid var(--b);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-300));
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn--primary { background: linear-gradient(120deg, var(--gold-500), var(--gold-300)); color: var(--green-900); }
.btn--primary::before { background: var(--green-800); }
.btn--primary:hover { color: var(--cream); }
.btn--ghost { color: var(--cream); background: transparent; }
.btn--ghost:hover { color: var(--green-900); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section titles ---------- */
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head .kicker {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-300); font-weight: 700;
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: .3em 0 .3em;
}
.sec-head p { color: var(--cream-dim); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(29,77,55,.32), rgba(13,31,22,.55));
  border: 1px solid rgba(201,162,75,.18);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
  opacity: .0;
  transition: opacity .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,185,104,.5);
  box-shadow: 0 22px 40px rgba(0,0,0,.4);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(201,162,75,.12);
  border: 1px solid rgba(201,162,75,.3);
  color: var(--gold-300);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 8px; }
.card p { margin: 0; color: var(--cream-dim); font-size: .98rem; }

/* ---------- Role mapping list ---------- */
.map { display: grid; gap: 14px; }
.map__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(13,31,22,.4);
  border: 1px solid rgba(201,162,75,.14);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.map__row:hover { background: rgba(29,77,55,.32); border-color: rgba(217,185,104,.4); transform: translateX(4px); }
.map__role { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-300); font-weight: 600; }
.map__desc { margin: 0; color: var(--cream-dim); }

/* ---------- Timeline (CV) ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--gold-500), rgba(201,162,75,.15));
}
.tl-item { position: relative; padding: 0 0 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201,162,75,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tl-item:hover::before { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(201,162,75,.28); }
.tl-item .tl-date { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; }
.tl-item h3 { font-family: var(--serif); font-size: 1.45rem; margin: 4px 0 2px; font-weight: 600; }
.tl-item .tl-org { color: var(--cream); font-weight: 600; }
.tl-item p { margin: 8px 0 0; color: var(--cream-dim); }

/* ---------- Skills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(201,162,75,.08);
  border: 1px solid rgba(201,162,75,.28);
  color: var(--cream);
  font-size: .9rem;
  font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.chip:hover { background: linear-gradient(120deg, var(--gold-500), var(--gold-300)); color: var(--green-900); transform: translateY(-3px); }

.bar { margin-bottom: 18px; }
.bar__top { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .95rem; }
.bar__track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar__fill {
  height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 1.1s var(--ease);
}

/* ---------- Letter ---------- */
.letter {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px clamp(28px, 5vw, 72px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244,236,220,.98), rgba(239,230,210,.98));
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(201,162,75,.4);
}
.letter::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--gold-500), var(--green-600));
  border-radius: var(--radius) 0 0 var(--radius);
}
.letter__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #5b5442; font-size: .92rem; margin-bottom: 30px; }
.letter h2 { font-family: var(--serif); font-size: 2rem; color: var(--green-700); margin: 0 0 6px; }
.letter p { color: #2c2519; margin: 0 0 18px; }
.letter .sign { margin-top: 34px; }
.letter .sign strong { font-family: var(--serif); font-size: 1.35rem; color: var(--green-700); }
.letter a { color: var(--green-600); font-weight: 600; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201,162,75,.4);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
  transition: transform .4s var(--ease);
}
.portrait-frame img { display: block; width: 100%; height: auto; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,31,22,.5));
}
.portrait-frame:hover { transform: translateY(-6px) rotate(-.5deg); }

.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--gold-400);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed rgba(201,162,75,.22); }
.facts li span:first-child { color: var(--gold-300); font-weight: 600; }
.facts li span:last-child { color: var(--cream-dim); text-align: right; }

.prose { max-width: 760px; }
.prose h3 { font-family: var(--serif); font-size: 1.7rem; margin: 34px 0 10px; color: var(--gold-300); }
.prose p { color: var(--cream-dim); margin: 0 0 18px; }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.35;
  color: var(--cream);
  border-left: 3px solid var(--gold-500);
  padding: 6px 0 6px 28px;
  margin: 40px 0;
}

/* ---------- CTA banner ---------- */
.cta {
  text-align: center;
  padding: 66px clamp(24px,5vw,60px);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(29,77,55,.55), rgba(13,31,22,.7));
  border: 1px solid rgba(201,162,75,.28);
}
.cta h2 { font-family: var(--serif); font-size: clamp(1.9rem,4vw,2.8rem); margin: 0 0 12px; }
.cta p { color: var(--cream-dim); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(201,162,75,.18);
  padding: 46px 0 40px;
  background: rgba(9,20,14,.6);
}
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: var(--gold-300); }
.foot__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.foot small { color: var(--cream-dim); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .portrait-frame { max-width: 300px; margin: 0 auto; }
  .map__row { grid-template-columns: 1fr; gap: 6px; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,22,15,.97);
    border-bottom: 1px solid rgba(201,162,75,.2);
    padding: 10px 18px 20px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; }
  .nav__links a::after { display: none; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  section { padding: 60px 0; }
}

/* =========================================================
   Achtergrond-modes (kies via <body data-bg="...">)
   network · aurora · letters
   ========================================================= */

/* Per-mode basisverloop */
body[data-bg="aurora"] .bg {
  background:
    radial-gradient(1000px 700px at 15% 20%, rgba(29,77,55,.5), transparent 60%),
    linear-gradient(160deg, #0b1a13 0%, #0e2418 50%, #0a1710 100%);
}
body[data-bg="letters"] .bg {
  background:
    radial-gradient(1100px 700px at 80% 0%, rgba(201,162,75,.08), transparent 60%),
    linear-gradient(165deg, #0c1c14 0%, #10271b 45%, #0b1912 100%);
}

/* Aurora: zachte, drijvende gloed-vlekken */
.bg__aurora {
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  filter: blur(70px) saturate(115%);
  overflow: hidden;
}
.bg__aurora .blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg__aurora .blob.b1 { background: radial-gradient(circle, #1f6b45, transparent 62%); top: -10%; left: -8%;  animation: drift1 26s ease-in-out infinite; }
.bg__aurora .blob.b2 { background: radial-gradient(circle, #c9a24b, transparent 60%); bottom: -14%; right: -6%; opacity: .38; animation: drift2 32s ease-in-out infinite; }
.bg__aurora .blob.b3 { background: radial-gradient(circle, #12604a, transparent 60%); top: 25%; right: 18%;  animation: drift3 38s ease-in-out infinite; }
.bg__aurora .blob.b4 { background: radial-gradient(circle, #8a6e2f, transparent 64%); bottom: 8%; left: 22%;  opacity: .3; animation: drift1 44s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vmax,4vmax,0) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-7vmax,-3vmax,0) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4vmax,6vmax,0) scale(1.2); } }

/* ---------- Reduced motion & touch ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bg__aurora .blob { animation: none !important; }
}
