/* ==========================================================================
   Init IQ — stylesheet
   Lettertypen: IBM Plex Sans & IBM Plex Mono (SIL Open Font License, lokaal gehost)
   ========================================================================== */

@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d1520;
  --ink-2: #142132;
  --ink-3: #1d2e44;
  --line-dark: rgba(255,255,255,.10);
  --paper: #f6f5f1;
  --paper-2: #edebe4;
  --white: #ffffff;
  --text: #17202c;
  --muted: #5a6573;
  --muted-dark: #9aa8b8;
  --line: #dcd9cf;
  --accent: #24aae2;      /* logo-blauw */
  --accent-ink: #0b6f9e;
  --accent-soft: rgba(36,170,226,.12);
  --magenta: #e5347f;
  --purple: #7d3c98;
  --orange: #f0623a;
  --brand-grad: linear-gradient(90deg, #f0623a 0%, #e5347f 45%, #7d3c98 100%);
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(13,21,32,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.site-header .brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--accent-ink); }
.nav .btn { color: var(--white); background: var(--accent-ink); border-color: var(--accent-ink); }
.nav .btn:hover { color: var(--white); background: #0a5d85; }
@media (min-width: 761px) {
  .nav .btn { height: 40px; padding-top: 0; padding-bottom: 0; }   /* even hoog als de taalschakelaar */
}
.site-header .btn-ghost { color: var(--text); border-color: var(--line); }
.site-header .btn-ghost:hover { color: var(--accent-ink); background: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 12px 20px; border-radius: 8px;
  background: var(--accent); color: var(--ink);
  text-decoration: none; border: 1px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #4dbdeb; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--white); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 96px 0 0;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero .wrap:not(.facts-wrap) { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent) 0%, #8f5fd0 55%, var(--magenta) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: #c3cedb; max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prompt { font-family: var(--mono); font-size: .9rem; color: var(--muted-dark); margin-bottom: 1.4rem; }
.prompt span { color: var(--accent); }
.prompt .cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .prompt .cursor { animation: none; } html { scroll-behavior: auto; } }

.topology { width: 100%; height: auto; overflow: visible; }
.topology .base { fill: #0a1119; stroke: rgba(36,170,226,.12); stroke-width: 1; }
.topology .plane { fill: url(#pl); stroke: rgba(255,255,255,.2); stroke-width: 1.2; animation: wave 4.2s ease-in-out infinite; animation-delay: var(--d); }
.topology .grid { stroke: rgba(255,255,255,.06); stroke-width: 1; fill: none; }
.topology .mesh { stroke: rgba(36,170,226,.45); stroke-width: 1.1; fill: none; }
.topology .link { stroke: rgba(36,170,226,.28); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.topology .dot { fill: var(--accent); }
.topology .halo { fill: var(--accent); opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-in-out infinite; }
.topology .pkt { fill: #d9f1fb; }
.topology .pkt-up { fill: var(--magenta); }
.topology .lead { stroke: rgba(255,255,255,.25); stroke-width: 1; }
.topology .num { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; fill: var(--accent); }
.topology .lbl { font-family: var(--sans); font-size: 21px; font-weight: 600; fill: #f2f6fa; }
.topology .sub { font-family: var(--mono); font-size: 13px; fill: #a3b1c2; }
@keyframes wave {
  0%, 100% { stroke: rgba(255,255,255,.2); }
  14% { stroke: rgba(36,170,226,.95); }
  32% { stroke: rgba(255,255,255,.2); }
}
@keyframes halo { 50% { opacity: .04; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .topology .plane, .topology .halo { animation: none; } }

.facts {
  position: relative;
  margin-top: 80px;
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 28px 24px 32px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact strong { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--white); line-height: 1.1; }
.fact strong:has(small) { white-space: nowrap; }
.fact strong small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.fact span { display: block; margin-top: 6px; line-height: 1.45; font-size: .92rem; color: var(--muted-dark); }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.dark { background: var(--ink); color: #d5dde6; }
.dark h2, .dark h3 { color: var(--white); }
.dark .section-head p { color: var(--muted-dark); }

/* Diensten */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--white); padding: 34px 30px 30px; display: flex; flex-direction: column; }
.service .num { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.service .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); }
.service .ico svg { width: 22px; height: 22px; }
.service p { color: var(--muted); font-size: .98rem; }
.service ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.service li { font-family: var(--mono); font-size: .8rem; color: var(--text); padding: 3px 0 3px 18px; position: relative; }
.service li::before { content: "›"; position: absolute; left: 2px; color: var(--accent-ink); }

/* Pakketten */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.package { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px; background: var(--ink-2); display: flex; flex-direction: column; }
.package.featured { border-color: transparent; background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--brand-grad) border-box; border: 2px solid transparent; }
.package.featured .tag { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.package .tag { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.package h3 { font-size: 1.35rem; }
.package p { color: var(--muted-dark); font-size: .97rem; }
.package dl { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; margin-top: auto; }
.package dt { color: var(--muted-dark); font-family: var(--mono); font-size: .8rem; padding-top: 2px; }
.package dd { margin: 0; color: var(--white); }
.packages-note { margin-top: 28px; font-size: .95rem; color: var(--muted-dark); max-width: 760px; }

/* Werkwijze */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--text); }
.step { padding: 26px 26px 0 0; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--mono); font-size: .82rem; color: var(--accent-ink); display: block; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .96rem; }

.principles { margin-top: 72px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.principles h3 { font-size: 1.5rem; }
.principles > div > p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.checks li { padding-left: 32px; position: relative; font-size: .97rem; }
.checks li strong { display: block; font-weight: 600; }
.checks li span { color: var(--muted); font-size: .92rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%230b6f9e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Over */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); position: relative;
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font-family: var(--mono); font-size: 4.5rem; color: var(--accent); letter-spacing: -.04em; }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(13,21,32,.9)); color: var(--white); font-size: .95rem; }
.portrait figcaption span { display: block; font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.about-text p { font-size: 1.08rem; }
.about-text .lede { font-size: 1.3rem; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -.01em; }

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.sector { border-top: 2px solid var(--accent); padding-top: 14px; }
.sector strong { display: block; font-size: 1rem; }
.sector span { font-size: .9rem; color: var(--muted); }

/* Certificeringen */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; }
.cert .code { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.cert p { margin: 0; font-size: .9rem; color: var(--muted-dark); line-height: 1.5; }
.stack { margin-top: 56px; }
.stack h3 { font-size: 1rem; font-family: var(--mono); font-weight: 500; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: .82rem; color: #d5dde6; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 13px; }

/* Domeinen & specialisatie */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.domain { background: var(--ink); padding: 26px 26px 28px; }
.domain h3 { font-size: 1.05rem; margin-bottom: 14px; }
.specialism { margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 34px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(36,170,226,.14), rgba(36,170,226,.03)); border: 1px solid rgba(36,170,226,.45); }
.specialism h3 { font-size: 1.5rem; }
.specialism p { color: var(--muted-dark); margin-bottom: 0; }
.specialism .eyebrow { margin-bottom: .6rem; }
.specialism .chips span { border-color: rgba(36,170,226,.35); color: var(--white); }
#expertise .stack { margin-top: 64px; margin-bottom: 18px; }

/* Kennis */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.post:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.post .meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 10px; }
.post .meta b { color: var(--accent-ink); font-weight: 500; }
.post h3 { font-size: 1.05rem; line-height: 1.35; }
.post p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.knowledge-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact .lead { color: var(--muted-dark); font-size: 1.12rem; max-width: 32em; }
.contact-card { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 10px 30px; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: .98rem; }
.contact-row:last-child { border-bottom: 0; }
.contact-row dt { font-family: var(--mono); font-size: .8rem; color: var(--muted-dark); padding-top: 3px; }
.contact-row dd { margin: 0; color: var(--white); }
.contact-row a { color: var(--white); }
.contact-row a:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--white); color: var(--muted); font-size: .88rem; padding: 36px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-ink); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 44px; width: auto; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: .8rem; }

/* Juridische pagina's */
.page-hero { background: var(--ink); color: var(--white); padding: 72px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.page-hero p { color: var(--muted-dark); margin: 0; }
.prose { max-width: 760px; padding: 64px 24px 96px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code404 { font-family: var(--mono); font-size: clamp(4rem, 12vw, 8rem); color: var(--accent); line-height: 1; margin-bottom: .2em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap:not(.facts-wrap), .about, .contact, .principles { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .services, .packages, .posts, .domains { grid-template-columns: 1fr 1fr; }
  .specialism { grid-template-columns: 1fr; gap: 22px; }
  .certs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; }
  .step, .step + .step { padding: 22px 22px 8px 0; border-left: 0; border-top: 2px solid var(--text); }
  .step:nth-child(even) { padding-left: 22px; }
  .about { gap: 40px; }
  .portrait { max-width: 360px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(13,21,32,.08); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: block; }
  .hero { padding-top: 64px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .fact, .fact + .fact { padding: 20px 12px 20px 0; border-left: 0; }
  .fact strong:has(small) { white-space: normal; }
  .fact strong small { display: block; font-size: .55em; margin-top: 2px; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .services, .packages, .posts, .certs, .steps, .checks, .sectors, .domains { grid-template-columns: 1fr; }
  .specialism { padding: 24px 20px; }
  .step:nth-child(even) { padding-left: 0; }
  .principles { padding: 28px 22px; gap: 28px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Interactieve terminal
   ========================================================================== */
.prompt-link { display: inline-flex; align-items: center; gap: 0; text-decoration: none; color: var(--muted-dark); border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; margin-left: -10px; transition: border-color .15s, background .15s; }
.prompt-link:hover { color: #e6edf4; border-color: rgba(36,170,226,.4); background: rgba(36,170,226,.07); }
.prompt-link .cursor { margin-right: 10px; }
.prompt-hint { font-size: .72rem; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.prompt-link:hover .prompt-hint, .prompt-link:focus-visible .prompt-hint { opacity: 1; transform: none; }
@media (hover: none) { .prompt-hint { opacity: .8; transform: none; } }

.terminal-section { padding-bottom: 88px; }
.terminal-section code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--text); }

.term {
  --t-bg: #0b1119;
  --t-fg: #d3dbe4;
  --t-dim: #7d8ca0;
  border-radius: 12px; overflow: hidden;
  background: var(--t-bg);
  box-shadow: 0 30px 60px -20px rgba(13,21,32,.45), 0 0 0 1px rgba(13,21,32,.6);
  position: relative;
}
.term::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-grad); z-index: 2; }
.term-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 11px 16px; background: #141c27; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: .8rem; color: #9aa8b8; }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 12px; height: 12px; border-radius: 50%; background: #3a4554; }
.term-dots i:nth-child(1) { background: #f0623a; }
.term-dots i:nth-child(2) { background: #e5347f; }
.term-dots i:nth-child(3) { background: #24aae2; }
.term-title { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-ssh { justify-self: end; font-size: .72rem; color: #5f6e80; }
.term-body { height: 480px; overflow-y: auto; padding: 18px 20px 22px; cursor: text; scrollbar-width: thin; scrollbar-color: #2b3644 transparent; }
.term-out { font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--t-fg); }
.t-line { white-space: pre-wrap; word-break: break-word; min-height: 1.55em; }
.t-prompt { display: flex; white-space: pre; }
.t-input { flex: 1; min-width: 2ch; background: transparent; border: 0; outline: 0; color: var(--t-fg); font: inherit; padding: 0; margin: 0; caret-color: var(--accent); }
.t-user { color: var(--accent); font-weight: 500; }
.t-path { color: #b58ae0; }
.t-dim { color: var(--t-dim); }
.t-h { color: #ffffff; font-weight: 500; }
.t-ok { color: #3ddc97; }
.t-err { color: #ff7a8a; }
.t-key { color: #7fc8ec; }
.t-banner { font-weight: 500; }
.t-banner.g1 { color: #24aae2; } .t-banner.g2 { color: #5a8de0; } .t-banner.g3 { color: #8f6fd6; } .t-banner.g4 { color: #c24fb0; } .t-banner.g5 { color: #e5347f; }
.term a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.term a:hover { color: #fff; }
.t-cmd { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.t-cmd:hover, .t-cmd:focus-visible { color: #fff; text-decoration-style: solid; }
.t-cmd.t-dir { color: #b58ae0; font-weight: 500; }
.t-cmd.t-file { color: var(--t-fg); }
.t-swatch { display: inline-block; width: 22px; height: 12px; margin-right: 3px; vertical-align: middle; }
.t-swatch.s1 { background: #f0623a; } .t-swatch.s2 { background: #e5347f; } .t-swatch.s3 { background: #7d3c98; }
.t-swatch.s4 { background: #24aae2; } .t-swatch.s5 { background: #3ddc97; } .t-swatch.s6 { background: #d3dbe4; }

.term-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.term-chips button { font-family: var(--mono); font-size: .82rem; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.term-chips button:hover { border-color: var(--accent); color: var(--accent-ink); }
.term-noscript { margin-top: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .term-body { height: 420px; padding: 14px 12px 18px; }
  .term-out { font-size: 12px; }
  .term-ssh { display: none; }
  .term-bar { grid-template-columns: auto 1fr; gap: 12px; }
  .term-title { text-align: left; }
}

.prompt-link > span:first-child { margin-right: .6ch; }

/* Expertise: expertniveau en overige certificeringen */
.chips .lvl-x { border-color: var(--accent); color: #fff; background: rgba(36,170,226,.18); }
.lvl-legend { color: var(--muted-dark); font-size: .85rem; margin: -28px 0 22px; }
.lvl-legend span { font-family: var(--mono); font-size: .74rem; border-radius: 999px; padding: 3px 10px; }
.lvl-legend .lvl-x { color: #fff; border: 1px solid var(--accent); background: rgba(36,170,226,.18); }
.certs-more { margin-top: 22px; color: var(--muted-dark); font-size: .92rem; line-height: 1.7; }
.certs-more span { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-right: 10px; }

/* Terminal: extra kleuren, ASCII en easter eggs */
.t-warn { color: #f2b257; }
.t-pre { white-space: pre; }
.t-line.t-pre { overflow: hidden; }
/* mermaid: tekst en lijntekens uit één systeemlettertype (de Plex-subset heeft geen lijntekens),
   met een lagere regelhoogte zodat verticale lijnen aansluiten; brede diagrammen scrollen */
.t-mmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace; white-space: pre; overflow-x: auto; line-height: 1.2; padding: 2px 0 8px; scrollbar-width: thin; scrollbar-color: #2b3644 transparent; }
.t-train { color: #7fc8ec; line-height: 1.25; }
.term.konami { animation: konami 1.6s ease-in-out; }
@keyframes konami {
  0%, 100% { box-shadow: 0 30px 60px -20px rgba(13,21,32,.45), 0 0 0 1px rgba(13,21,32,.6); }
  25% { box-shadow: 0 0 0 3px #f0623a, 0 0 40px rgba(240,98,58,.6); }
  50% { box-shadow: 0 0 0 3px #e5347f, 0 0 40px rgba(229,52,127,.6); }
  75% { box-shadow: 0 0 0 3px #24aae2, 0 0 40px rgba(36,170,226,.6); }
}
@media (prefers-reduced-motion: reduce) { .term.konami { animation: none; } }

/* Terminal: PowerShell-modus */
.t-ps { color: #e8edf3; }
.t-ps-path { color: #7fc8ec; }
.t-ps-h { color: #7ee2b8; }
.term.is-pwsh .term-body { background: #0a1426; }
.term.is-pwsh .term-bar { background: #12203a; }


/* ==========================================================================
   Thema-wissel (licht = standaard; donker via html[data-theme="dark"])
   ========================================================================== */
.theme-toggle { order: 1; flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.nav-toggle { order: 2; }
.logo-dark { display: none !important; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }

html[data-theme="dark"] {
  --paper: #111a26;
  --paper-2: #16212f;
  --text: #e4eaf1;
  --muted: #9aa9ba;
  --line: #263548;
  --accent-ink: #5cc4ee;
  --accent-soft: rgba(36,170,226,.16);
  color-scheme: dark;
}
html[data-theme="dark"] .logo-light { display: none !important; }
html[data-theme="dark"] .logo-dark { display: block !important; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }

html[data-theme="dark"] .site-header { background: rgba(13,21,32,.94); border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(0,0,0,.35); }
html[data-theme="dark"] .nav .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
html[data-theme="dark"] .nav .btn:hover { background: #4dbdeb; color: var(--ink); }
html[data-theme="dark"] .site-header .btn-ghost:hover { background: var(--paper-2); }
html[data-theme="dark"] .skip:focus { background: var(--paper-2); color: var(--text); }

html[data-theme="dark"] .service,
html[data-theme="dark"] .principles,
html[data-theme="dark"] .post,
html[data-theme="dark"] .term-chips button { background: #172232; }
html[data-theme="dark"] .post:hover { color: var(--text); }
html[data-theme="dark"] .service .ico { color: var(--accent); }
html[data-theme="dark"] .steps,
html[data-theme="dark"] .step, html[data-theme="dark"] .step + .step { border-top-color: var(--text); }
html[data-theme="dark"] .checks li::before {
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%235cc4ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
html[data-theme="dark"] .site-footer { background: #0a1018; border-top-color: var(--line); }
html[data-theme="dark"] .term { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px var(--line); }

@media (max-width: 760px) {
  html[data-theme="dark"] .nav { background: var(--ink); border-bottom-color: var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.4); }
}

/* ==========================================================================
   Taalschakelaar (NL / EN)
   ========================================================================== */
.lang-switch { order: 1; flex: none; display: flex; height: 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.lang-switch a { display: grid; place-items: center; padding: 0 10px; color: var(--muted); text-decoration: none; letter-spacing: .04em; transition: color .15s, background .15s; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--accent-ink); }
.lang-switch a[aria-current="true"] { background: var(--accent-ink); color: var(--white); }   /* zelfde kleur als Contact */
html[data-theme="dark"] .lang-switch a[aria-current="true"] { background: var(--accent); color: var(--ink); }
.dt-note { color: var(--muted-dark); font-size: .85em; }
.pv-langnote { margin-top: 2.5em; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 10px; }
  .brand img { height: 50px; }
  .lang-switch a { padding: 0 8px; }
}
@media (max-width: 360px) {
  .brand img { height: 38px; }
}
