/* ═══════════════════════════════════════════════
   JOOST TERMEER — Editorial Design System
   ═══════════════════════════════════════════════ */

.page { display: none; }
.page.active { display: block; }

:root {
  --cream:#f2ede6; --ink:#0e0e0e; --ink-soft:#2a2a2a; --muted:#6b6560;
  --emerald:#0f5c3a; --emerald-mid:#1a7d50; --emerald-pale:#d4ede2;
  --border:#d8d2c8; --white:#faf8f4;
  --rule:1px solid var(--border);
  --shadow-sm:0 1px 8px rgba(14,14,14,.07);
  --shadow-md:0 4px 24px rgba(14,14,14,.11);
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  font-family:'Syne',sans-serif;
  background:var(--cream);color:var(--ink);font-size:15px;line-height:1.6;
}

/* GRAIN */
body::before{
  content:'';position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px;
}

/* NAV */
nav{
  position:sticky;top:0;z-index:100;
  background:var(--ink);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 3rem;height:56px;
}
nav .brand{
  font-family:'Cormorant Garamond',serif;font-size:1.35rem;font-weight:600;
  font-style:italic;color:var(--cream);letter-spacing:.02em;
}
nav ul{list-style:none;display:flex;gap:0}
nav ul li a{
  display:block;padding:.4rem .9rem;color:rgba(242,237,230,.5);
  font-size:.7rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  text-decoration:none;transition:color .2s;border-bottom:2px solid transparent;
}
nav ul li a:hover{color:var(--cream)}
nav ul li a.active{color:var(--cream);border-bottom-color:var(--emerald-mid)}

/* HERO */
.hero{
  border-bottom:var(--rule);padding:2.25rem 3rem 2rem;
  background:var(--cream);display:flex;align-items:baseline;gap:2rem;
  position:relative;overflow:hidden;
}
.hero::after{
  content:'JT';position:absolute;right:2rem;top:50%;transform:translateY(-50%);
  font-family:'Cormorant Garamond',serif;font-size:5rem;font-weight:700;
  font-style:italic;color:rgba(15,92,58,.18);line-height:1;pointer-events:none;
}
.hero h1{
  font-family:'Cormorant Garamond',serif;font-size:3rem;font-weight:300;
  font-style:italic;color:var(--ink);line-height:1;flex-shrink:0;
}
.hero p{
  font-size:.78rem;color:var(--muted);font-weight:400;letter-spacing:.04em;
  border-left:var(--rule);padding-left:1.5rem;max-width:400px;line-height:1.65;
}
.hero-btn{
  display:inline-block;background:var(--emerald);color:var(--cream);
  padding:.5rem 1.5rem;text-decoration:none;font-size:.7rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;margin-left:auto;align-self:center;
  transition:background .2s;flex-shrink:0;
}
.hero-btn:hover{background:var(--emerald-mid)}

/* MAIN */
main{max-width:1020px;margin:0 auto;padding:3rem 3rem 5rem}

/* PROFILE */
.profile-section{
  display:grid;grid-template-columns:200px 1fr;
  margin-bottom:4rem;border:var(--rule);background:var(--white);
  position:relative;
}
.profile-section::before{
  content:'';position:absolute;top:0;left:0;width:100%;height:3px;background:var(--ink);
}
.profile-photo{
  width:200px;height:250px;object-fit:cover;object-position:top center;
  display:block;filter:grayscale(15%);border-right:var(--rule);
}
.profile-text{
  padding:2rem 2.5rem;display:flex;flex-direction:column;justify-content:center;
}
.profile-text h2{
  font-family:'Cormorant Garamond',serif;font-size:2.8rem;font-weight:300;
  font-style:italic;color:var(--ink);line-height:1;margin-bottom:.5rem;
}
.profile-text .profile-title{
  font-size:.68rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--emerald);margin-bottom:1.5rem;
}
.profile-text p{font-size:.88rem;color:var(--muted);line-height:1.75}

@media(max-width:600px){
  .profile-section{grid-template-columns:1fr}
  .profile-photo{width:100%;height:260px;border-right:none;border-bottom:var(--rule)}
}

/* INTRO CARDS */
.intro-cards{
  display:grid;grid-template-columns:repeat(4,1fr);
  border:var(--rule);margin-bottom:4rem;background:var(--white);
}
@media(max-width:700px){.intro-cards{grid-template-columns:repeat(2,1fr)}}
.intro-card{
  padding:1.75rem 1.5rem;border-right:var(--rule);
  position:relative;transition:background .2s;
}
.intro-card:last-child{border-right:none}
.intro-card:hover{background:var(--emerald-pale)}
.intro-card::after{
  content:attr(data-num);position:absolute;top:1rem;right:1rem;
  font-family:'Cormorant Garamond',serif;font-size:2.5rem;font-weight:300;
  color:var(--border);line-height:1;
}
.intro-card h3{
  font-family:'Cormorant Garamond',serif;font-size:1.15rem;font-weight:600;
  font-style:italic;color:var(--ink);margin-bottom:.6rem;
}
.intro-card p{font-size:.8rem;color:var(--muted);line-height:1.65}

/* SECTIONS */
.section-title{
  font-family:'Cormorant Garamond',serif;font-size:2.2rem;font-weight:300;
  font-style:italic;color:var(--ink);margin-bottom:.2rem;
}
.section-subtitle{
  font-size:.7rem;color:var(--muted);font-weight:700;letter-spacing:.15em;
  text-transform:uppercase;margin-bottom:2rem;padding-bottom:1rem;border-bottom:var(--rule);
}

/* OVER MIJ */
.over-mij-block{
  background:var(--white);border:var(--rule);padding:2rem 2.5rem;margin-bottom:3.5rem;
}
.over-mij-block p{font-size:.9rem;color:var(--ink-soft);line-height:1.8}
.over-mij-block ul{
  list-style:none;padding:0;margin-top:1rem;
  display:grid;grid-template-columns:1fr 1fr;gap:.25rem 2rem;
}
.over-mij-block ul li{
  font-size:.85rem;color:var(--muted);padding-left:1.1rem;position:relative;line-height:1.6;
}
.over-mij-block ul li::before{
  content:'→';position:absolute;left:0;color:var(--emerald);font-size:.75rem;
}
.over-mij-label{
  font-size:.65rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--emerald);margin-bottom:.5rem;display:block;
}

/* PROJECT ENTRIES */
.project-entry{
  background:var(--white);border:var(--rule);margin-bottom:1px;
  position:relative;transition:transform .18s,box-shadow .18s;
}
.project-entry:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);z-index:2}
.project-entry:hover .project-header{background:var(--ink)}
.project-entry:hover .project-meta h2,.project-entry:hover .project-org{color:var(--cream)}
.project-entry:hover .project-period{background:var(--emerald)}

.project-header{
  display:flex;align-items:center;gap:1.5rem;padding:1.25rem 1.75rem;
  background:var(--cream);border-bottom:var(--rule);transition:background .18s;
}
.project-logo{
  flex-shrink:0;width:64px;height:64px;object-fit:contain;padding:6px;
  background:var(--white);border:var(--rule);
}
.project-logo-placeholder{
  flex-shrink:0;width:64px;height:64px;background:var(--emerald-pale);
  border:var(--rule);display:flex;align-items:center;justify-content:center;font-size:1.5rem;
}
.project-meta{flex:1}
.project-meta h2{
  font-family:'Cormorant Garamond',serif;font-size:1.35rem;font-weight:600;
  font-style:italic;color:var(--ink);margin-bottom:.1rem;transition:color .18s;
}
.project-org{font-size:.72rem;color:var(--muted);letter-spacing:.04em;transition:color .18s}
.project-period{
  display:inline-block;background:var(--ink);color:var(--cream);
  font-size:.65rem;font-weight:700;padding:3px 12px;
  letter-spacing:.08em;transition:background .18s;
}

.project-body{padding:1.5rem 1.75rem}
.project-body p{font-size:.87rem;color:var(--ink-soft);line-height:1.8;margin-bottom:.8rem}
.project-body ul{list-style:none;padding:0;margin-bottom:1rem}
.project-body ul li{
  font-size:.87rem;color:var(--muted);padding:.2rem 0 .2rem 1.4rem;
  position:relative;line-height:1.6;
}
.project-body ul li::before{content:'→';position:absolute;left:0;color:var(--emerald);font-size:.75rem}
.project-body strong{color:var(--ink);font-weight:600}
.project-body h3{
  font-family:'Cormorant Garamond',serif;font-size:1.05rem;font-weight:600;
  font-style:italic;color:var(--emerald);margin:1.25rem 0 .4rem;
  display:flex;align-items:center;gap:.75rem;
}
.project-body h3::after{content:'';flex:1;height:1px;background:var(--emerald-pale)}
.project-body a{
  color:var(--emerald);text-decoration:none;border-bottom:1px solid var(--emerald-pale);
  font-weight:600;font-size:.83rem;transition:border-color .15s;
}
.project-body a:hover{border-color:var(--emerald)}

/* KERNWAARDEN */
.kernwaarden{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  margin:1rem 0;border-top:var(--rule);border-left:var(--rule);
}
.kernwaarde-card{
  padding:1.1rem 1.2rem;border-right:var(--rule);border-bottom:var(--rule);
  position:relative;overflow:hidden;transition:background .2s;
}
.kernwaarde-card:hover{background:var(--emerald-pale)}
.kernwaarde-card::before{
  content:'';position:absolute;top:0;left:0;width:0;height:2px;
  background:var(--emerald);transition:width .3s;
}
.kernwaarde-card:hover::before{width:100%}
.kernwaarde-card h4{
  font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--emerald);margin-bottom:.4rem;
}
.kernwaarde-card p{font-size:.79rem;color:var(--muted);line-height:1.55}

/* BIO GRID */
.bio-grid{
  display:grid;grid-template-columns:1fr;
  border-top:var(--rule);border-left:var(--rule);margin-bottom:3rem;
}
.bio-card{
  border-right:var(--rule);border-bottom:var(--rule);overflow:hidden;
  background:var(--white);transition:transform .18s,box-shadow .18s;position:relative;
}
.bio-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);z-index:2}
.bio-card img{width:100%;height:120px;object-fit:cover;display:block}
.bio-card-body{padding:1rem 1.1rem}
.bio-card-body h3{
  font-family:'Cormorant Garamond',serif;font-size:1rem;font-weight:600;
  font-style:italic;color:var(--ink);margin-bottom:.15rem;
}
.bio-card-body p{font-size:.78rem;color:var(--muted)}
.badge-unavailable{
  display:inline-block;background:var(--ink);color:rgba(242,237,230,.55);
  font-size:.65rem;font-weight:700;letter-spacing:.06em;padding:2px 8px;margin-top:.4rem;
}

/* NOTICE */
.notice-box{
  border:var(--rule);border-left:3px solid var(--emerald);padding:1rem 1.25rem;
  margin-bottom:2.5rem;font-size:.83rem;color:var(--muted);background:var(--white);
}
.notice-box strong{color:var(--ink)}
.notice-box a{color:var(--emerald)}

/* CONTACT BANNER */
.contact-banner{
  background:var(--ink);color:var(--cream);padding:3rem;margin-top:4rem;
  display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;
}
.contact-banner p{font-size:.82rem;opacity:.6}
.contact-banner p:first-child{
  font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-style:italic;
  font-weight:300;opacity:1;margin-bottom:.25rem;
}
.contact-banner a{color:var(--emerald-mid);font-weight:700;text-decoration:none;font-size:.9rem}

/* DIVIDER */
.divider{border:none;border-top:var(--rule);margin:3rem 0;position:relative}
.divider::before{
  content:'§';position:absolute;top:-.7rem;left:50%;transform:translateX(-50%);
  background:var(--cream);padding:0 1rem;color:var(--border);
  font-family:'Cormorant Garamond',serif;font-size:1rem;
}

/* FOOTER */
footer{
  background:var(--ink);color:rgba(242,237,230,.4);
  padding:2rem 3rem;display:flex;align-items:center;
  justify-content:space-between;font-size:.75rem;letter-spacing:.04em;
  flex-wrap:wrap;gap:1rem;
}
footer .footer-brand{
  font-family:'Cormorant Garamond',serif;font-size:1.15rem;
  font-style:italic;font-weight:600;color:var(--cream);
}
footer a{color:rgba(242,237,230,.4);text-decoration:none}
footer a:hover{color:var(--emerald-mid)}

/* ANIMATIONS */
@keyframes slideUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}
.page.active .hero{animation:slideUp .35s ease both}
.page.active main>*{animation:slideUp .4s ease both}
.page.active main>*:nth-child(1){animation-delay:.05s}
.page.active main>*:nth-child(2){animation-delay:.10s}
.page.active main>*:nth-child(3){animation-delay:.15s}
.page.active main>*:nth-child(4){animation-delay:.18s}
.page.active main>*:nth-child(n+5){animation-delay:.21s}

@media(max-width:768px){
  nav{padding:0 1.5rem}
  main{padding:2rem 1.5rem 4rem}
  .hero{padding:1.75rem 1.5rem;flex-wrap:wrap;gap:1rem}
  .hero h1{font-size:2.2rem}
  footer{padding:1.5rem}
  .intro-cards{grid-template-columns:1fr 1fr}
  .contact-banner{padding:2rem}
}
