:root{
  --paper: #14201C;
  --paper-2: #1B2A24;
  --ink: #E7ECE6;
  --muted: #8FA095;
  --accent: #D97A3A;
  --accent-rgb: 217,122,58;
  --line: #2B3A33;
  --accent-soft: #24352D;
  --maxw: 780px;
}

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

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

h1, h2, h3{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8em;
  color: var(--muted);
}

.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Nav ---- */
nav{
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
nav .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 64px;
}
.nav-mark{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-links{
  display:flex;
  gap: 28px;
  list-style:none;
  margin:0;
  padding:0;
  font-size: 0.95rem;
}
.nav-links a{
  text-decoration:none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  border-color: var(--accent);
}

/* ---- Hero (landing) ---- */
.hero{
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  border-top: none;
}
.contour{
  position:absolute;
  top: 40px;
  right: 20px;
  width: 480px;
  height: 480px;
  opacity: 0.5;
  pointer-events:none;
}
.hero-inner{
  max-width: var(--maxw);
  position: relative;
}
.hero h1{
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  max-width: 22ch;
}
.hero .role{
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero .intro{
  margin-top: 24px;
  max-width: 52ch;
  color: var(--ink);
}
.coord{
  margin-top: 40px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.coord .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--accent);
}

/* ---- Landing teaser links ---- */
.teasers{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.teaser{
  background: var(--paper);
  padding: 40px 36px;
  text-decoration: none;
  color: var(--ink);
  display:flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.15s ease;
}
.teaser:hover{ background: var(--accent-soft); }
.teaser .num{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
}
.teaser h3{ font-size: 1.5rem; }
.teaser p{ margin:0; color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.teaser .go{ margin-top: auto; font-size: 0.88rem; }

/* ---- Section shared ---- */
section{
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.page-head{
  padding-top: 64px;
  padding-bottom: 56px;
  border-top: none;
}
.page-head h1{
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.page-head .note{
  margin-top: 16px;
  color: var(--muted);
  max-width: 48ch;
}
.section-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2{
  font-size: 1.9rem;
}
.section-head .note{
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

/* ---- Timeline (Projecten) ---- */
.timeline{
  position: relative;
  max-width: 720px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 84px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.t-item{
  position: relative;
  display:grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  padding-bottom: 52px;
}
.t-item:last-child{ padding-bottom: 0; }
.t-period{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 4px;
  text-align: right;
}
.t-marker{
  position: absolute;
  left: 80px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
}
.t-content{
  padding-left: 24px;
}
.t-tag{
  display:inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.t-content h3{
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.t-content p{
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}
.t-content .stack{
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink);
}


/* ---- Projectengalerij ---- */
.gallery-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.project-card{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem 1.3rem;
  min-height: 150px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(var(--accent-rgb), 0.12) 0,
    rgba(var(--accent-rgb), 0.12) 1px,
    transparent 1px,
    transparent 16px
  );
  transition: border-color 0.15s ease;
}
.project-card:hover{ border-color: var(--accent); }
.project-card.featured{ border-color: var(--accent); }
.project-card .tag{
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: lowercase;
}
.project-card h3{
  font-size: 1.05rem;
}
.project-card p{
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 40ch;
}
.project-card .go{
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ---- Projectdetailpagina ---- */
.back-link{
  display:inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin: 20px 0 0;
}
.detail-header{
  position: relative;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(var(--accent-rgb), 0.08) 0,
    rgba(var(--accent-rgb), 0.08) 1px,
    transparent 1px,
    transparent 16px
  );
}
.detail-header .tag{
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: lowercase;
}
.detail-header h1{
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 10px;
}
.detail-header .org{
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 10px;
}
.detail-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.detail-tags .tag-pill{
  font-size: 0.78rem;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
}
.detail-body{
  padding: 32px 0;
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 60ch;
}
.image-placeholder{
  margin-top: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 56px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.detail-footer-nav{
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}
.detail-footer-nav a{
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

/* ---- CV ---- */
.cv-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.cv-block h3{
  font-size: 1.05rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cv-entry{
  margin-bottom: 28px;
}
.cv-entry:last-child{ margin-bottom: 0; }
.cv-entry .top-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.cv-entry .role{
  font-weight: 600;
}
.cv-entry .period{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.cv-entry .org{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}
.cv-entry p{
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.skills{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill{
  font-size: 0.82rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
}
.cv-download{
  margin-top: 32px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  text-decoration:none;
  font-size: 0.92rem;
  border-radius: 2px;
}

/* ---- Contact / footer ---- */
footer{
  padding: 72px 0 56px;
  border-top: 1px solid var(--line);
}
.contact-row{
  display:flex;
  justify-content: space-between;
  align-items:flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
footer h2{
  font-size: 1.7rem;
  max-width: 14ch;
}
.contact-links{
  display:flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.contact-links a{
  text-decoration:none;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.foot-meta{
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px){
  .cv-grid{ grid-template-columns: 1fr; gap: 48px; }
  .contour{ width: 260px; height: 260px; top: 20px; right: 10px; }
  .nav-links{ gap: 16px; font-size: 0.88rem; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .t-item{ grid-template-columns: 1fr; }
  .t-period{ text-align:left; }
  .t-marker{ display:none; }
  .timeline::before{ left: 0; }
  .t-content{ padding-left: 20px; border-left: 1px solid var(--accent); }
  .teasers{ grid-template-columns: 1fr; }
}

