:root {
  --ink: #0B1026;
  --paper: #F2F1EC;
  --blue: #2B3CF0;
  --lavender: #DFE2FA;
  --lavender-text: #8B96F5;
  --green: #14A56B;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.section { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }

.green { color: var(--green); }

/* ---------- Animations ---------- */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 165, 107, .5); }
  50% { box-shadow: 0 0 0 7px rgba(20, 165, 107, 0); }
}

@keyframes lineIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Reveals: verborgen startstand alleen mét JS (html.js), zodat de site
   zonder JavaScript gewoon volledig zichtbaar is. IntersectionObserver
   in script.js zet .is-visible; .stagger-kinderen krijgen daar per kaart
   een oplopende transition-delay (~120ms). */
.js .reveal,
.js .stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.js .reveal.is-visible,
.js .stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Checkmarks in de werkwijze-stappen: absoluut gepositioneerd (geen
   layout shift), zichtbaar gemaakt door GSAP ScrollTrigger. */
.step-check {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--green);
  opacity: 0;
  transform: scale(.4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .step-check { display: none; }
  .dot-live { animation: none; }
  .log-line { animation: none; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(242, 241, 236, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 16, 38, .08);
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand span { color: var(--blue); }
.brand:hover { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  flex-wrap: wrap;
}

.nav-link { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-link:hover { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-nav { padding: 10px 22px; background: var(--ink); color: var(--paper); font-size: 14px; }
.btn-nav:hover { background: var(--blue); color: #fff; }

.btn-primary { padding: 15px 30px; background: var(--blue); color: #fff; font-size: 16px; }
.btn-primary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { padding: 15px 30px; border: 1.5px solid rgba(11, 16, 38, .25); color: var(--ink); font-size: 16px; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11, 16, 38, .05); color: var(--ink); }

.btn-contact { padding: 17px 36px; background: var(--blue); color: #fff; font-size: 17px; }
.btn-contact:hover { background: var(--paper); color: var(--ink); }

/* ---------- Type helpers ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.kicker-light { color: var(--lavender-text); }

.section-title {
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 44px;
  max-width: 560px;
  text-wrap: balance;
}

.section-title.on-dark { color: var(--paper); }

.accent { color: var(--blue); }
.accent-light { color: var(--lavender-text); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.hero-copy { flex: 1 1 440px; min-width: 300px; }

.hero-copy .kicker { margin-bottom: 20px; }

.hero-copy h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(11, 16, 38, .75);
  margin: 0 0 36px;
  max-width: 520px;
  text-wrap: pretty;
}

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

.hero-panel { flex: 1 1 380px; min-width: 300px; max-width: 500px; }

/* ---------- Terminal ---------- */

.terminal {
  background: var(--ink);
  border-radius: 22px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px -24px rgba(11, 16, 38, .45);
  font-family: var(--font-mono);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(242, 241, 236, .12);
  margin-bottom: 16px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(242, 241, 236, .7);
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}

.terminal-body {
  height: 208px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  animation: lineIn .35s ease both;
}

.log-line .time { color: rgba(242, 241, 236, .4); flex-shrink: 0; }
.log-line .text { color: var(--paper); flex: 1; }
.log-line .mark-done { color: var(--green); flex-shrink: 0; }
.log-line .mark-pending { color: rgba(242, 241, 236, .45); flex-shrink: 0; }

.terminal-foot {
  padding-top: 16px;
  border-top: 1px solid rgba(242, 241, 236, .12);
  font-size: 12.5px;
  color: rgba(242, 241, 236, .55);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.terminal-foot .dim { color: rgba(242, 241, 236, .35); }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-projects { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid rgba(11, 16, 38, .08);
  border-radius: 22px;
  padding: 32px 30px;
}

.card-accent { background: var(--lavender); border-color: rgba(43, 60, 240, .12); }

.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(11, 16, 38, .45);
  margin-bottom: 18px;
}

.card h3 {
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(11, 16, 38, .7);
  margin: 0 0 22px;
  text-wrap: pretty;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(11, 16, 38, .45);
  margin-bottom: 20px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checklist li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }

.checklist-roomy { gap: 16px; }
.checklist-roomy li { gap: 12px; font-size: 15.5px; }

.check { color: var(--green); font-weight: 600; }

/* ---------- Werkwijze ---------- */

.band-lavender { background: var(--lavender); }

.step {
  position: relative;
  background: rgba(255, 255, 255, .6);
  border-radius: 18px;
  padding: 26px 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 18px;
}

.step-num-dark { background: var(--ink); }

.step h3 {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(11, 16, 38, .7);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Portfolio ---------- */

.band-dark { background: var(--ink); }

.project {
  background: rgba(242, 241, 236, .05);
  border: 1px solid rgba(242, 241, 236, .12);
  border-radius: 22px;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-media { width: 100%; aspect-ratio: 4 / 3; }

.image-slot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(127, 127, 127, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--paper);
  overflow: hidden;
}

.image-slot::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed currentColor;
  border-radius: 9px;
  opacity: .25;
  pointer-events: none;
}

.image-slot svg { opacity: .45; }

.image-slot .cap {
  font: 500 13px/1.3 system-ui, -apple-system, sans-serif;
  letter-spacing: .01em;
  opacity: .75;
  max-width: 90%;
  text-align: center;
}

.image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy { padding: 0 8px; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--lavender-text);
  margin-bottom: 8px;
}

.project-copy h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--paper);
}

.project-copy p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(242, 241, 236, .6);
  margin: 0;
}

/* ---------- Over ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}

.about-copy { flex: 1 1 400px; min-width: 280px; }

.about-copy .section-title { margin-bottom: 22px; }

.about-copy p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(11, 16, 38, .75);
  margin: 0 0 16px;
  max-width: 520px;
  text-wrap: pretty;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-card { flex: 1 1 340px; min-width: 280px; }

/* ---------- Contact ---------- */

.contact-wrap { padding-bottom: clamp(56px, 8vw, 110px); }

.contact {
  background: var(--ink);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 80px);
  text-align: center;
}

.contact .kicker { margin-bottom: 18px; }

.contact h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 640px;
  color: var(--paper);
  text-wrap: balance;
}

.contact p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(242, 241, 236, .65);
  margin: 0 auto 36px;
  max-width: 460px;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.footer {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: rgba(11, 16, 38, .55);
}
