/* ========================================================================
   Koen van Alen — Portfolio
   Thema: kaart / topografie · aardse kleuren · interactieve scroll
   ======================================================================== */

:root {
  /* Aardse kaartpalet */
  --sand:        #f3ead8;   /* zandbeige achtergrond */
  --sand-2:      #ebe0c6;
  --paper:       #f8f2e3;
  --moss:        #6b8a4a;   /* mosgroen */
  --moss-dark:   #4a6634;
  --terracotta:  #c46a3a;
  --ochre:       #d49b43;
  --slate:       #2b322f;   /* hoofdtekst */
  --slate-2:     #4a5550;
  --slate-soft:  #707b75;
  --line:        #b8a983;   /* contourlijnen */
  --line-soft:   #d6c79f;

  /* Barcode-kleuren uit Purmerend-stage */
  --bc-1: #a3c14a;
  --bc-2: #93c5d6;
  --bc-3: #e08a3c;
  --bc-4: #c9a978;
  --bc-5: #4a4a4a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(43,50,47,.06), 0 8px 24px -8px rgba(43,50,47,.18);
  --shadow-lg: 0 4px 8px rgba(43,50,47,.08), 0 24px 60px -16px rgba(43,50,47,.28);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtiele papier-textuur */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(196,106,58,.04), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(107,138,74,.05), transparent 40%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--moss-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }

button { font: inherit; cursor: pointer; }

/* ------------------------------------------------------------------------
   Scroll progress (barcode-stijl)
   ------------------------------------------------------------------------ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  display: flex;
  z-index: 100;
  background: var(--sand-2);
  pointer-events: none;
}
.progress span {
  flex: 1;
  background: var(--c);
  opacity: .25;
  transition: opacity .4s ease, transform .4s ease;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg,
    var(--bc-1) 0%, var(--bc-1) 14.71%,
    var(--bc-2) 14.71%, var(--bc-2) 24.80%,
    var(--bc-3) 24.80%, var(--bc-3) 51.48%,
    var(--bc-4) 51.48%, var(--bc-4) 69.77%,
    var(--bc-5) 69.77%, var(--bc-5) 100%);
  mix-blend-mode: multiply;
  transition: width .12s linear;
}

/* ------------------------------------------------------------------------
   Topografie-achtergrond met parallax
   ------------------------------------------------------------------------ */
.topo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  color: var(--line);
}
.topo-layer {
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  opacity: .35;
  will-change: transform;
}
.topo-layer:nth-child(2) { opacity: .25; color: var(--line-soft); }
.topo-layer:nth-child(3) { opacity: .18; color: var(--moss); }

/* contour-lijnen langzaam tekenen */
.topo-layer path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 6s ease forwards;
}
.topo-layer path:nth-child(2) { animation-delay: .3s; }
.topo-layer path:nth-child(3) { animation-delay: .6s; }
.topo-layer path:nth-child(4) { animation-delay: .9s; }
.topo-layer path:nth-child(5) { animation-delay: 1.2s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------------
   Cursor-marker (alleen desktop, fine pointer) — pin tip = klikpunt
   ------------------------------------------------------------------------ */
.cursor-marker {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  color: var(--terracotta);
  filter: drop-shadow(0 2px 4px rgba(196,106,58,.35));
  will-change: transform;
}
.cursor-marker .cursor-pin {
  display: block;
  width: 100%; height: 100%;
  fill: currentColor;
  transform-origin: 50% 100%;
  transition: transform .2s cubic-bezier(.4,1.4,.4,1), opacity .3s ease;
  transform: scale(0);
}
.cursor-marker .cursor-ripple {
  position: absolute;
  left: 50%; bottom: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  transform: translate(-50%, 0) scale(0);
  pointer-events: none;
  opacity: 0;
}
@media (pointer: fine) {
  html, body { cursor: none; }
  a, button, input, select, textarea, label, [role="button"], [tabindex] { cursor: none; }
  body.cursor-active .cursor-marker { opacity: .95; }
  body.cursor-active .cursor-marker .cursor-pin { transform: scale(1); }
  .cursor-marker.clicking .cursor-pin { animation: pinPress .35s cubic-bezier(.4,1.4,.4,1); }
  .cursor-marker.clicking .cursor-ripple { animation: cursorRipple .55s cubic-bezier(.2,.7,.2,1); }
}
@keyframes pinPress {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.78); }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes cursorRipple {
  0%   { transform: translate(-50%, 0) scale(0.35); opacity: .85; border-width: 2.5px; }
  100% { transform: translate(-50%, 0) scale(4.5);  opacity: 0;   border-width: 1px; }
}

/* ------------------------------------------------------------------------
   Top-nav
   ------------------------------------------------------------------------ */
.topnav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(248,242,227,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.topnav .logo {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--slate);
  padding-right: 12px;
  border-right: 1px solid var(--line-soft);
}
.topnav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 14px;
}
.topnav a { color: var(--slate-2); transition: color .2s ease; }
.topnav a:hover { color: var(--terracotta); }
@media (max-width: 640px) {
  .topnav { gap: 10px; padding: 8px 12px; font-size: 12px; }
  .topnav ul { gap: 8px; }
  .topnav .logo { padding-right: 8px; }
}

/* ------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------ */
main { position: relative; z-index: 1; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 32px;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: 80px 22px; }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-num {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
}
.section-num::before { content: "—"; margin-right: 8px; color: var(--line); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  margin: 0;
  color: var(--slate);
  letter-spacing: -.02em;
}
.section-lead {
  flex-basis: 100%;
  margin: 6px 0 0;
  color: var(--slate-soft);
  max-width: 60ch;
}

/* ------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 1;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--slate-2);
  background: rgba(248,242,227,.6);
  backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(107,138,74,.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(107,138,74,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(107,138,74,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 168px);
  line-height: .9;
  letter-spacing: -.03em;
  margin: 0 0 28px;
  color: var(--slate);
}
.hero-title .line { display: block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--slate);
  text-stroke: 2px var(--slate);
  position: relative;
}
.hero-title .outline::after {
  content: "";
  position: absolute;
  inset: auto 0 .08em 0;
  height: .12em;
  background: var(--terracotta);
  width: 18%;
  border-radius: 4px;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--slate-2);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn.primary {
  background: var(--slate);
  color: var(--paper);
}
.btn.primary:hover {
  background: var(--terracotta);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn.ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--paper);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.coords {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
}
.coord { display: flex; flex-direction: column; }
.coord span { font-size: 12px; color: var(--slate-soft); letter-spacing: .08em; }
.coord b { font-size: 18px; color: var(--slate); font-weight: 600; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.scroll-hint svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------------------
   Reveal-animatie (in beeld scrollen)
   ------------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------------
   Over mij
   ------------------------------------------------------------------------ */
.over-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .over-grid { grid-template-columns: 1fr; gap: 36px; }
}
.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--slate);
  line-height: 1.55;
  margin: 0 0 18px;
}
.over-text p { color: var(--slate-2); }

.contact-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-cards li {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease;
}
.contact-cards li:hover { transform: translateY(-3px); border-color: var(--terracotta); }
.contact-cards .label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.contact-cards a, .contact-cards span { color: var(--slate); font-weight: 500; }

/* ------------------------------------------------------------------------
   Werkervaring · Timeline
   ------------------------------------------------------------------------ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--line) 0%, var(--line-soft) 100%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 64px;
  display: flex;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .marker {
  position: absolute;
  left: 0;
  top: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--moss);
  display: grid;
  place-items: center;
  color: var(--moss-dark);
  z-index: 1;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.timeline-item .marker svg { width: 20px; height: 20px; fill: currentColor; }
.timeline-item.is-visible .marker {
  transform: scale(1.1);
  background: var(--moss);
  color: var(--paper);
}

.timeline-item .card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex: 1;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-item .card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}
.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.card-meta .period { color: var(--terracotta); font-weight: 600; }
.timeline-item h3,
.edu-card h3,
.project-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--slate);
}
.timeline-item p,
.edu-card p,
.project-info p { color: var(--slate-2); margin: 0 0 14px; }
.timeline-item p:last-child,
.edu-card p:last-child { margin-bottom: 0; }

.tags {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-size: 12px;
  font-family: var(--font-display);
  padding: 4px 10px;
  background: var(--sand-2);
  color: var(--slate-2);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.mini-barcode {
  display: flex;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  margin: 14px 0 6px;
  border: 1px solid var(--line-soft);
}
.mini-barcode span { background: var(--c); width: var(--w); transition: width 1.2s ease; }
.timeline-item:not(.is-visible) .mini-barcode span { width: 0; }

.job-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.job-list:last-child { margin-bottom: 0; }
.job-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  background: var(--sand);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.job-list .job-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slate);
  font-size: 15px;
}
.job-list .job-period {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 50px; }
  .timeline-item .marker { width: 32px; height: 32px; }
  .timeline-item .marker svg { width: 16px; height: 16px; }
  .timeline-item .card { padding: 18px 20px; }
}

/* ------------------------------------------------------------------------
   Opleiding
   ------------------------------------------------------------------------ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .edu-grid { grid-template-columns: 1fr; } }
.edu-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.edu-card:hover { transform: translateY(-4px); border-color: var(--moss); }
.edu-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 10px;
}
.edu-meta .period { color: var(--terracotta); font-weight: 600; }
.edu-card .org { font-weight: 600; color: var(--slate); margin: 0 0 12px; }
.edu-card .minor { font-size: 14px; color: var(--slate-soft); }
.edu-card .minor b { color: var(--moss-dark); }
.edu-card .profile { font-size: 14px; color: var(--slate-2); margin: 0 0 10px; }
.edu-card .profile b { color: var(--moss-dark); }
.subjects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subjects li {
  font-size: 12px;
  font-family: var(--font-display);
  padding: 4px 10px;
  background: var(--sand);
  color: var(--slate-2);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------------------
   Skills
   ------------------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; gap: 36px; } }

.skill-bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.skill-bars li {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  align-items: center;
  gap: 14px;
}
.skill-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--slate);
  font-size: 14px;
}
.bar {
  height: 10px;
  background: var(--sand-2);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--moss) 0%, var(--ochre) 60%, var(--terracotta) 100%);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2, .9, .3, 1);
}
.skill-pct {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--slate-soft);
  text-align: right;
}
.skill-pct::after { content: "%"; }
@media (max-width: 600px) {
  .skill-bars li { grid-template-columns: 1fr; gap: 6px; }
  .skill-pct { display: none; }
}

.chips-block h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 12px;
}
.chips-block h4:not(:first-child) { margin-top: 28px; }
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--slate);
  transition: border-color .2s ease, transform .2s ease;
}
.chips li:hover { border-color: var(--moss); transform: translateY(-2px); }
.chips li span {
  color: var(--slate-soft);
  font-size: 12px;
  margin-left: 6px;
}
.chips-soft li { background: transparent; color: var(--slate-2); }

/* ------------------------------------------------------------------------
   Projecten
   ------------------------------------------------------------------------ */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 920px) { .projects { grid-template-columns: 1fr; } }

.project-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, transform .4s ease, border-color .3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--moss);
}
.project-card:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

.project-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-2);
  border-bottom: 1px solid var(--line-soft);
  transform: translateZ(0);
}

.project-info {
  padding: 24px 28px 28px;
}
.project-info .tags { margin: 0 0 18px; }

/* ----- Mockup: gemeenschappelijke styling ----- */
.mock {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.mock-bar {
  height: 30px;
  background: linear-gradient(180deg, var(--sand-2) 0%, #e0d5b9 100%);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex-shrink: 0;
}
.mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-soft);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.15);
}
.mock-bar span:nth-child(1) { background: #e08a3c; }
.mock-bar span:nth-child(2) { background: #c9a978; }
.mock-bar span:nth-child(3) { background: #a3c14a; }
.mock-bar em {
  margin-left: 14px;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--slate-soft);
  letter-spacing: .02em;
}
.mock-body { flex: 1; display: flex; position: relative; min-height: 0; }

/* ---- 15min mockup ---- */
.mock-15min .mock-side {
  width: 36%;
  background: var(--paper);
  border-right: 1px solid var(--line-soft);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.mock-15min .side-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-title {
  display: block;
  height: 9px;
  width: 70%;
  background: var(--moss);
  opacity: .55;
  border-radius: 3px;
}
.side-sub {
  display: block;
  height: 6px;
  width: 45%;
  background: var(--sand-2);
  border-radius: 3px;
}
.score-ring {
  position: relative;
  align-self: center;
  width: 64px;
  height: 64px;
}
.score-ring svg { width: 100%; height: 100%; }
.score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--moss-dark);
}
.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-list i {
  width: 8px; height: 8px; border-radius: 2px;
  flex-shrink: 0;
}
.cat-list span {
  flex: 1;
  height: 5px;
  background: var(--sand-2);
  border-radius: 3px;
}
.cat-list b {
  display: block;
  width: 18px;
  height: 5px;
  background: var(--line-soft);
  border-radius: 3px;
}
.mock-15min .mock-map { flex: 1; position: relative; overflow: hidden; }
.mock-15min .mock-map svg { width: 100%; height: 100%; display: block; }
.map-stat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(248,242,227,.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-display);
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.map-stat b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--moss-dark);
}
.map-stat span {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.map-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(248,242,227,.92);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.map-zoom span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--slate-2);
}
.map-zoom span + span { border-top: 1px solid var(--line-soft); }

/* ---- Casino mockup ---- */
.mock-casino .felt {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, #3a6049 0%, #234232 55%, #15281d 100%);
  position: relative;
  overflow: hidden;
}
.mock-casino .felt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 70%, rgba(255,255,255,.04) 0%, transparent 30%),
    radial-gradient(circle at 75% 80%, rgba(0,0,0,.18) 0%, transparent 40%);
  pointer-events: none;
}
.felt-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 50px rgba(0,0,0,.55);
  pointer-events: none;
}
.felt-arc {
  position: absolute;
  top: -55%;
  left: 6%;
  right: 6%;
  height: 110%;
  border: 2px dashed rgba(255,255,255,.14);
  border-radius: 50%;
  pointer-events: none;
}
.felt-arc.small {
  top: -42%;
  left: 16%;
  right: 16%;
  height: 90%;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(255,255,255,.08);
}
.dealer-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}
.cards-row {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 6px;
}
.cards-row.dealer-cards {
  top: 22px;
  transform: translateX(-50%);
}
.cards-row.player-cards {
  top: 48%;
  gap: 8px;
  transform: translateX(-50%);
}
.cards-row.player-cards .card-mock:first-child { transform: rotate(-7deg) translateY(2px); }
.cards-row.player-cards .card-mock:last-child  { transform: rotate(7deg)  translateY(2px); }
.card-mock {
  width: 36px;
  height: 52px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fdf7e8 0%, #f3ead8 100%);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
  box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.6);
  position: relative;
  padding: 4px 5px;
}
.cards-row.dealer-cards .card-mock {
  width: 30px;
  height: 42px;
  padding: 3px 4px;
}
.card-mock .rank {
  display: block;
  font-size: 13px;
  line-height: 1;
}
.card-mock .suit {
  display: block;
  font-size: 11px;
  line-height: 1;
  margin-top: 1px;
}
.cards-row.dealer-cards .card-mock .rank { font-size: 11px; }
.cards-row.dealer-cards .card-mock .suit { font-size: 9px; }
.card-mock.c-red { color: #c9332a; }
.card-mock.c-back {
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.06) 0 3px,
      transparent 3px 6px),
    linear-gradient(135deg, #c46a3a 0%, #8a3e1f 100%);
  color: transparent;
  padding: 0;
}
.card-mock.c-back::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.15) 0%, transparent 60%);
}

.score-badge {
  position: absolute;
  top: 36%;
  right: 12%;
  transform: rotate(10deg);
  background: linear-gradient(180deg, #d49b43 0%, #b07a2c 100%);
  color: #1c3324;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4);
  text-align: center;
  letter-spacing: .02em;
  border: 2px solid rgba(255,255,255,.45);
}
.score-badge small {
  display: block;
  font-size: 6px;
  letter-spacing: .3em;
  margin-top: 2px;
  opacity: .85;
}

.chips-row {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.chip-stack {
  position: relative;
  width: 26px;
  height: 30px;
}
.chip {
  position: absolute;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.chip-stack .chip:nth-child(1) { bottom: 0; }
.chip-stack .chip:nth-child(2) { bottom: 4px; }
.chip-stack .chip:nth-child(3) { bottom: 8px; }
.chip-stack .chip:nth-child(4) { bottom: 12px; }
.chip.c1 { background: radial-gradient(circle at 35% 35%, #e74c3c 0%, #a02418 100%); }
.chip.c2 { background: radial-gradient(circle at 35% 35%, #4a9fea 0%, #1f5e9e 100%); }
.chip.c3 { background: radial-gradient(circle at 35% 35%, #4ca969 0%, #1f5e35 100%); }

.bet {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ochre);
  letter-spacing: .08em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* ------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.footer {
  margin-top: 80px;
  padding: 56px 32px 40px;
  background: var(--slate);
  color: var(--sand);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.footer .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  display: block;
  margin-bottom: 8px;
}
.footer p { color: rgba(243,234,216,.7); margin: 0; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-links a {
  color: var(--sand);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer-links a:hover { border-color: var(--ochre); color: var(--ochre); }
.footer .copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(243,234,216,.15);
  padding-top: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(243,234,216,.5);
}

/* ------------------------------------------------------------------------
   Mobile responsive — schaal mee, blijf interactief en mooi
   ------------------------------------------------------------------------ */

/* Tablet en kleiner */
@media (max-width: 860px) {
  .hero-inner { padding-top: 96px; }
  .hero-title { font-size: clamp(48px, 11vw, 120px); }
}

/* Smartphone (portrait & klein landscape) */
@media (max-width: 640px) {
  /* Top-nav: blijft pill-stijl, links scrollen horizontaal als ze niet passen */
  .topnav {
    top: 10px;
    max-width: calc(100vw - 20px);
    padding: 7px 12px;
    gap: 10px;
  }
  .topnav .logo { padding-right: 8px; font-size: 13px; }
  .topnav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  }
  .topnav ul::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; padding: 2px 0; }

  /* Hero */
  .hero { padding: 0 20px; }
  .hero-inner { padding-top: 100px; }
  .hero-title { font-size: clamp(44px, 13.5vw, 96px); }
  .hero-title .outline { -webkit-text-stroke-width: 1.5px; }
  .hero-title .outline::after { height: .1em; }
  .hero-eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 22px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { margin-bottom: 44px; gap: 10px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .coords { gap: 18px; padding-top: 20px; }
  .coord span { font-size: 11px; }
  .coord b { font-size: 15px; }
  .scroll-hint { display: none; }

  /* Sections */
  .section { padding: 64px 20px; }
  .section-head { gap: 10px; margin-bottom: 28px; }
  .section-num { font-size: 12px; }

  /* Over */
  .lead { font-size: 17px; }
  .contact-cards li { padding: 16px; }

  /* Timeline */
  .timeline-item { padding-bottom: 24px; }
  .timeline-item .card { padding: 18px 18px; }
  .timeline-item h3,
  .edu-card h3,
  .project-info h3 { font-size: 19px; }
  .timeline-item .card:hover { transform: none; }
  .job-list li { flex-wrap: wrap; }

  /* Edu */
  .edu-card { padding: 22px 20px; }
  .edu-card:hover { transform: none; }

  /* Skills */
  .skills-grid { gap: 28px; }

  /* Projecten — uitschakelen tilt/perspective op klein scherm */
  .projects { gap: 18px; }
  .project-card { perspective: none; transform-style: flat; }
  .project-card:hover { transform: none; }
  .project-info { padding: 20px 22px 24px; }

  /* Mockup-elementen schalen mee zodat composities niet uit elkaar vallen */
  .mock-bar { height: 24px; padding: 0 10px; }
  .mock-bar span { width: 8px; height: 8px; }
  .mock-bar em { font-size: 10px; margin-left: 8px; }

  /* 15min */
  .mock-15min .mock-side { width: 40%; padding: 8px 8px 6px; gap: 7px; }
  .side-title { height: 7px; }
  .side-sub  { height: 5px; }
  .score-ring { width: 50px; height: 50px; }
  .score-num  { font-size: 14px; }
  .cat-list { gap: 5px; }
  .cat-list i { width: 6px; height: 6px; }
  .cat-list span { height: 4px; }
  .cat-list b { width: 14px; height: 4px; }
  .map-stat { top: 6px; left: 6px; padding: 4px 8px; }
  .map-stat b { font-size: 11px; }
  .map-stat span { font-size: 8px; letter-spacing: .08em; }
  .map-zoom { top: 6px; right: 6px; }
  .map-zoom span { width: 18px; height: 18px; font-size: 12px; }

  /* Casino */
  .card-mock { width: 30px; height: 44px; padding: 3px 4px; border-radius: 4px; }
  .cards-row.dealer-cards .card-mock { width: 24px; height: 34px; padding: 2px 3px; }
  .card-mock .rank { font-size: 11px; }
  .card-mock .suit { font-size: 9px; }
  .cards-row.dealer-cards .card-mock .rank { font-size: 9px; }
  .cards-row.dealer-cards .card-mock .suit { font-size: 7px; }
  .cards-row.dealer-cards { top: 18px; }
  .dealer-label { font-size: 8px; top: 5px; }
  .score-badge { font-size: 14px; padding: 5px 10px; right: 8%; top: 36%; }
  .score-badge small { font-size: 5px; letter-spacing: .25em; }
  .chip { width: 22px; height: 22px; border-width: 2px; }
  .chip-stack { width: 22px; height: 26px; }
  .chips-row { gap: 10px; bottom: 13%; }
  .bet { font-size: 13px; bottom: 4%; }

  /* Footer */
  .footer { padding: 40px 22px 28px; margin-top: 56px; }
  .footer .logo { font-size: 18px; }

  /* Topo achtergrond zachter op klein scherm */
  .topo-layer { opacity: .25; }
  .topo-layer:nth-child(2) { opacity: .18; }
  .topo-layer:nth-child(3) { opacity: .12; }
}

/* Klein mobiel */
@media (max-width: 420px) {
  .topnav { font-size: 11.5px; padding: 6px 10px; gap: 8px; }
  .topnav ul { gap: 6px; }
  .hero-title { font-size: clamp(38px, 14vw, 84px); }
  .hero-sub { font-size: 15px; }
  .contact-cards { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 56px 16px; }
  .timeline::before { left: 12px; }
  .timeline-item { padding-left: 44px; }
  .timeline-item .marker { width: 28px; height: 28px; }
  .timeline-item .marker svg { width: 14px; height: 14px; }
  .coords { gap: 14px; }
}

/* Tap-feedback voor touch-apparaten — vervangt hover/3D-tilt */
@media (hover: none) and (pointer: coarse) {
  .project-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .project-card:active {
    transform: scale(.985);
    border-color: var(--moss);
    box-shadow: var(--shadow-lg);
  }
  .btn:active { transform: scale(.96); }
  .contact-cards li:active { transform: translateY(-2px); border-color: var(--terracotta); }
  .edu-card:active { transform: translateY(-2px); border-color: var(--moss); }
  .chips li:active { border-color: var(--moss); transform: translateY(-1px); }
}

/* ------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .topo-layer path { stroke-dashoffset: 0; }
  .cursor-marker { display: none; }
}
