:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f2f2f4;
  --ink: #111114;
  --ink-soft: #6b6b70;
  --ink-faint: #9a9aa0;
  --border: #e6e6e9;
  --red: #e2231a;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container-w: 1080px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--red);
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-text {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-desktop, .btn-desktop { display: none; }

.nav-desktop a, .nav-mobile a:not(.btn) {
  transition: color 0.15s ease;
}

.nav-desktop a:hover, .nav-mobile a:not(.btn):hover {
  color: var(--red);
}

.nav-desktop a.is-active,
.nav-mobile a.is-active:not(.btn) {
  color: var(--red);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a:not(.btn) {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn { margin-top: 12px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--surface-muted);
  z-index: 0;
}

.hero-blob-a { width: 220px; height: 220px; top: -80px; left: -100px; }
.hero-blob-b { width: 160px; height: 160px; bottom: -60px; right: -60px; }

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Decorative brand circuit graphic, reused across page headers */
.bg-circuit {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  top: -30px;
  right: -140px;
  width: 320px;
  height: auto;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header .hero-sub { margin-bottom: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
}

.hero h1 {
  font-size: 34px;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 480px;
  transition: border-color 0.15s ease;
}

.hero-search:focus-within {
  border-color: var(--red);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}

.hero-search input::placeholder { color: var(--ink-faint); }

.hero-search-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--red);
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.section-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red);
}

.section-title {
  font-size: 26px;
  margin-bottom: 28px;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.service-illustration {
  padding: 20px 16px 6px;
  color: var(--ink-faint);
}

.service-card-dark .service-illustration {
  color: #ffffff55;
}

.service-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.service-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-body h3 {
  font-size: 15px;
  font-weight: 700;
}

.service-body p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.service-card-dark .service-body p {
  color: #ffffffaa;
}

.text-center { text-align: center; }
.text-center .hero-sub { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 24px; }
.align-start { align-self: flex-start; }
.mt-0 { margin-top: 0; }
.mb-md { margin-bottom: 16px; }

.pill {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.pill-dark { background: var(--surface-muted); color: var(--ink-soft); }
.pill-light { background: #ffffff20; color: #fff; }

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

.service-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
}

.row-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}

/* Detail card (werkwijze) */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-illustration {
  position: relative;
  background: var(--surface-muted);
  padding: 32px 24px;
  color: var(--ink-soft);
}

.detail-illustration svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.badge {
  position: absolute;
  left: 24px;
  bottom: -22px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge img {
  width: 32px;
  height: 32px;
}

.detail-body {
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header h3 { font-size: 20px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.detail-meta {
  color: var(--ink-soft);
  font-size: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
}

.description-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.description-card h4 {
  font-size: 15px;
}

.description-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card-image {
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card-body h3 {
  font-size: 17px;
}

.project-card-body h3 a:hover {
  color: var(--red);
}

.project-card-body p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.project-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  overflow: hidden;
  margin-bottom: 20px;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.screenshot-gallery img {
  flex-shrink: 0;
  scroll-snap-align: start;
  height: 340px;
  width: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  object-fit: cover;
}

.project-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
}

/* Contact form */
.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-social a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-social a:hover {
  color: var(--red);
}

.contact-info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-info-row strong {
  color: var(--ink);
  font-weight: 700;
  min-width: 80px;
}

.form-notice {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}

.form-notice-success {
  background: #eafaf0;
  color: #146c3a;
}

.form-notice-error {
  background: #fdecec;
  color: #a3231c;
}

.footer-copy {
  color: var(--ink-faint);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: underline;
  cursor: pointer;
}

.footer-cookie-link:hover {
  color: var(--red);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  padding: 18px 20px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner p {
  color: #ffffffcc;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner .btn-outline {
  border-color: #ffffff40;
  color: #fff;
}

.cookie-banner .btn-outline:hover {
  border-color: #fff;
}

/* Desktop */
@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
    gap: 32px;
    font-weight: 600;
    font-size: 15px;
  }

  .btn-desktop { display: inline-flex; }

  .menu-toggle, .nav-mobile { display: none !important; }

  .hero { padding: 96px 0 80px; }

  .hero h1 { font-size: 52px; max-width: 18ch; }

  .hero-sub { font-size: 18px; }

  .section { padding: 96px 0; }

  .section-title { font-size: 36px; }

  .service-grid { grid-template-columns: 1fr 1fr; }

  .service-illustration { padding: 32px 28px 8px; }

  .service-body { padding: 20px 24px 26px; }

  .service-body h3 { font-size: 18px; }

  .service-list { flex-direction: row; flex-wrap: wrap; }

  .service-row { flex: 1 1 calc(50% - 5px); }

  .detail-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .detail-illustration {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .badge { display: none; }

  .detail-body { padding: 40px; justify-content: center; }

  .btn-block { align-self: flex-start; width: auto; padding-left: 32px; padding-right: 32px; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-legal {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner p {
    flex: 1;
    margin-right: 24px;
  }

  .bg-circuit { width: 460px; top: -60px; right: -60px; opacity: 0.2; }

  .page-header { padding: 72px 0 56px; }

  .project-grid { grid-template-columns: repeat(3, 1fr); }

  .stack-grid { grid-template-columns: 1fr 1fr; }

  .screenshot-gallery img { height: 460px; }
}
