/* dpjens.nl — CV (cyber teal) */
:root {
  --bg: #0a0e14;
  --bg-elevated: #121922;
  --bg-card: #151c27;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8edf4;
  --text-muted: #8b98a8;
  --accent: #3dd6c7;
  --accent-dim: rgba(61, 214, 199, 0.15);
  --accent-glow: rgba(61, 214, 199, 0.35);
  --font: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --space: clamp(0.875rem, 3vw, 1.5rem);
  --header-h: 3.5rem;
  --max: 72rem;
  --lh-tight: 1.52;
  --section-y: clamp(1.35rem, 3.5vw, 2.35rem);
  /* Eén rustige typeschaal (rem) */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.8125rem;
  --fs-label: 0.75rem;
  --fs-h1: clamp(1.85rem, 3.6vw, 2.45rem);
  --fs-h2: clamp(1.28rem, 2.2vw, 1.52rem);
  --fs-h3-card: 1.05rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(61, 214, 199, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(80, 120, 200, 0.06), transparent);
  min-height: 100vh;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #5fe8da;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.site-header[data-scrolled="true"] {
  background: rgba(10, 14, 20, 0.92);
  border-color: rgba(61, 214, 199, 0.12);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: linear-gradient(135deg, var(--accent), #2a9d8f);
  color: var(--bg);
}

.brand__text {
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav__cta {
  margin-left: 0.25rem;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(61, 214, 199, 0.35);
}

.site-nav__cta:hover {
  background: rgba(61, 214, 199, 0.22);
  color: #7beddf !important;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space) 1.25rem;
    background: rgba(10, 14, 20, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s;
  }

  .site-nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav__cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  padding: clamp(1rem, 3vw, 1.75rem) var(--space) clamp(1.35rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  gap: 1.25rem clamp(1rem, 2.5vw, 1.65rem);
  align-items: start;
  max-width: 100%;
  width: 100%;
}

/* Zelfde linkerkant als secties (.section__inner): geen extra centrering. */
@media (min-width: 900px) {
  .hero__grid {
    width: fit-content;
    max-width: 100%;
    margin-inline: 0;
    grid-template-columns: auto minmax(11.5rem, 13.75rem);
  }

  .hero__content {
    justify-self: start;
  }
}

.hero__content {
  min-width: 0;
  max-width: min(38rem, 100%);
}

.hero__aside {
  min-width: 0;
  width: 100%;
}

/* Foto + kerngegevens: één kaart, geen losse kaders ertussen */
.hero__panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero__panel .hero__portrait {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0d1218;
  position: relative;
}

.hero__panel .hero__portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.55), transparent);
}

.hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 82% 28%;
  filter: saturate(0.93);
  opacity: 0.86;
  transition: opacity 0.25s ease;
}

.hero__panel:hover .hero__portrait img {
  opacity: 0.95;
}

@media (max-width: 899px) {
  .hero__portrait img {
    aspect-ratio: 2 / 1;
    max-height: 10.5rem;
    object-position: 78% 22%;
  }
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
}

.hero__title {
  margin: 0 0 0.55rem;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero__lead {
  margin: 0 0 0.85rem;
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
  color: var(--text-muted);
  max-width: 38rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.hero__tags li {
  font-size: var(--fs-caption);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2a9d8f);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  color: var(--bg);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(61, 214, 199, 0.4);
  color: var(--accent);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}

.card--glass {
  background: rgba(21, 28, 39, 0.65);
  backdrop-filter: blur(8px);
}

/* In hero-paneel: naadloos onder de foto */
.hero__panel .hero__meta.card {
  align-self: stretch;
  width: 100%;
  padding: 0.75rem 0.95rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.92);
  backdrop-filter: blur(10px);
}

.hero__meta .meta-list {
  gap: 0.55rem;
}

.hero__meta .meta-list dt {
  margin-bottom: 0.06rem;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.meta-list dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.meta-list dd {
  margin: 0;
  font-weight: 600;
  font-size: var(--fs-small);
}

/* Sections */
.section {
  padding: var(--section-y) var(--space);
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 1rem;
}

.section__head h2 {
  margin: 0 0 0.45rem;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 50rem;
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
}

.prose p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  max-width: 50rem;
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
}

.prose p:last-child {
  margin-bottom: 0;
}

.chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chip-grid li {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.logo-strip {
  margin: 1.15rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Timeline — single column for long CV copy */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  padding-left: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(61, 214, 199, 0.08));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 0.95rem;
  padding-left: 1rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.job {
  text-align: left;
}

.job__head h3 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-h3-card);
  font-weight: 700;
}

.job__role {
  margin: 0 0 0.35rem;
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 600;
}

.job__period {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.job.card {
  padding: 0.95rem 1.1rem;
}

.job__summary {
  margin: 0 0 0.55rem;
  font-size: var(--fs-body);
  line-height: var(--lh-tight);
  color: var(--text-muted);
}

.job__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.job__bullets li {
  margin-bottom: 0.35rem;
}

.job__bullets a {
  font-weight: 500;
}

.two-col {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.two-col--stretch {
  align-items: stretch;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h3-card);
  font-weight: 700;
}

.list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.list-plain li {
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--border);
}

.list-plain li:last-child {
  border-bottom: 0;
}

.list-plain--tight li {
  padding: 0.28rem 0;
}

.muted {
  margin: 0 0 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Footer */
.site-footer {
  padding: 1.25rem var(--space);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  justify-content: flex-end;
}

.site-footer__dot {
  opacity: 0.55;
  user-select: none;
}

.site-footer__mail,
.site-footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.35rem 0;
  border-radius: 0.375rem;
  color: inherit;
  line-height: 0;
  transition: color 0.15s ease;
}

.site-footer__mail:focus-visible,
.site-footer__linkedin:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer__mail-icon,
.site-footer__linkedin-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.625rem;
  }

  .site-footer__inner > p {
    margin: 0;
    width: 100%;
    max-width: min(22rem, 100%);
    text-align: center;
    line-height: 1.45;
  }

  .site-footer__meta {
    justify-content: center;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    max-width: 100%;
  }

  .site-footer__mail,
  .site-footer__linkedin {
    margin: 0;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .hero__actions,
  .site-nav__cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .card,
  .chip-grid li {
    border-color: #ddd;
    break-inside: avoid;
  }

  a {
    color: #0066cc;
  }
}
