
/* ─── RESET & VARIABELEN ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream:  #f5f0e8;
  --paper:  #ede8dc;
  --dark:   #1a1612;
  --ink:    #2c2520;
  --rust:   #c0392b;
  --steel:  #4a7fa5;
  --teal:   #2d7d6f;
  --gold:   #b8860b;
  --pink:   #c0607a;
  --muted:  #8a7f72;
  --border: #ccc5b5;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
}

/* ─── SLIDER ─── */
#slider {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#track {
  display: flex;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ─── SLIDES ─── */
.slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide achtergrond types */
.s-cover { background: var(--dark); }
.s-light { background: var(--cream); }
.s-light2 { background: var(--paper); }
.s-dark  { background: #111209; color: var(--cream); }
.s-end   { background: var(--dark); }

/* ─── NAVIGATIE PIJLEN ─── */
#arrow-left,
#arrow-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  background: rgba(26, 22, 18, 0.6);
  border: 1px solid rgba(245, 240, 232, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}

#arrow-left:hover,
#arrow-right:hover {
  opacity: 1;
  background: rgba(26, 22, 18, 0.9);
}

#arrow-left  { left: 1.2rem; }
#arrow-right { right: 1.2rem; }

#arrow-left svg,
#arrow-right svg {
  width: 18px;
  height: 18px;
  stroke: var(--cream);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ─── NAVIGATIE DOTS ─── */
#dots {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.25);
  border: 1px solid rgba(245, 240, 232, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--cream);
  transform: scale(1.4);
}

/* ─── TOETSENBORD HINT ─── */
#hint {
  position: fixed;
  bottom: 1.4rem;
  right: 1.8rem;
  z-index: 500;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.2);
}

/* ─── GESCHEURDE RANDEN ─── */
.torn-left::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 55px;
  background: var(--dark);
  clip-path: polygon(
    0% 0%, 38% 2%, 0% 6%, 43% 11%, 0% 16%,
    33% 21%, 0% 27%, 48% 32%, 0% 38%,
    28% 43%, 0% 49%, 38% 55%, 0% 60%,
    43% 65%, 0% 71%, 33% 76%, 0% 82%,
    48% 87%, 0% 92%, 38% 96%, 0% 100%,
    0% 0%
  );
  z-index: 4;
}

.torn-right::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 55px;
  background: var(--dark);
  clip-path: polygon(
    100% 0%, 58% 3%, 100% 7%, 53% 12%, 100% 17%,
    63% 22%, 100% 28%, 48% 33%, 100% 39%,
    68% 44%, 100% 50%, 58% 56%, 100% 61%,
    53% 67%, 100% 72%, 63% 77%, 100% 83%,
    48% 88%, 100% 93%, 58% 97%, 100% 100%,
    100% 0%
  );
  z-index: 4;
}

/* ─── LAYOUTS ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  padding: 0 55px;
}

.col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 4rem;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.col-text.right {
  border-right: none;
  border-left: 1px solid var(--border);
  padding: 3.5rem 4rem 3.5rem 3rem;
}

.col-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 2.5rem 3.5rem 2.5rem 3rem;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.col-img.left {
  padding: 2.5rem 3rem 2.5rem 3.5rem;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem calc(10vw + 55px);
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ─── TYPOGRAFIE ─── */
.label {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.label span {
  border: 1px solid currentColor;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-size: 0.55rem;
}

.s-dark .label {
  color: rgba(245, 240, 232, 0.35);
}

.h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  color: var(--ink);
}

.s-dark .h1       { color: var(--cream); }
.h1 i             { color: var(--rust); }
.s-dark .h1 i     { color: var(--steel); }

.body-text {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #4e4035;
  font-weight: 300;
  max-width: 400px;
}

.body-text + .body-text       { margin-top: 0.9rem; }
.body-text strong              { font-weight: 600; color: var(--ink); }
.s-dark .body-text             { color: rgba(245, 240, 232, 0.65); }
.s-dark .body-text strong      { color: var(--cream); }

.pull {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: var(--rust);
  border-left: 2.5px solid currentColor;
  padding-left: 1.3rem;
  margin: 1.4rem 0;
  max-width: 440px;
}

.s-dark .pull { color: var(--steel); }

/* ─── CHIPS / TAGS ─── */
.chips {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
}

.c-rust  { background: rgba(192,  57, 43, 0.1); color: var(--rust);  border: 1px solid rgba(192,  57, 43, 0.25); }
.c-steel { background: rgba( 74, 127,165, 0.1); color: var(--steel); border: 1px solid rgba( 74, 127,165, 0.25); }
.c-teal  { background: rgba( 45, 125,111, 0.1); color: var(--teal);  border: 1px solid rgba( 45, 125,111, 0.25); }
.c-gold  { background: rgba(184, 134, 11, 0.1); color: var(--gold);  border: 1px solid rgba(184, 134, 11, 0.25); }
.c-pink  { background: rgba(192,  96,122, 0.1); color: var(--pink);  border: 1px solid rgba(192,  96,122, 0.25); }

/* ─── FOTO PLACEHOLDER ─── */
.photo {
  flex: 1;
  min-height: 140px;
  background: rgba(0, 0, 0, 0.05);
  border: 1.5px dashed var(--border);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

.s-dark .photo {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(245, 240, 232, 0.12);
}

.photo-icon { font-size: 1.5rem; opacity: 0.45; }

.photo-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-dark .photo-lbl { color: rgba(245, 240, 232, 0.25); }

.photo-sub {
  font-size: 0.75rem;
  color: #b5a898;
  font-style: italic;
}

/* ─── CODE BLOK ─── */
.code {
  background: #0d0f14;
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: #cdd6f4;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.code .fname {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Syntax kleuren */
.kw { color: #cba6f7; }
.fn { color: #89b4fa; }
.str { color: #a6e3a1; }
.cm { color: #4a4f66; font-style: italic; }
.num { color: #fab387; }
.er { color: #f38ba8; }

/* ─── DECORATIEF GETAL ─── */
.deco {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 18rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.04);
  bottom: -1rem;
  right: 2rem;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.s-dark .deco { color: rgba(255, 255, 255, 0.025); }

/* ─── SLIDE INKOMST ANIMATIE ─── */
.slide-content {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
  width: 100%;
  height: 100%;
}

.slide.active .slide-content {
  opacity: 1;
  transform: translateX(0);
}

/* ─── MOBIEL ─── */
@media (max-width: 680px) {
  .split {
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding: 0 40px;
  }

  .col-text {
    padding: 2.5rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .col-text.right {
    border-left: none;
    border-bottom: none;
    padding: 1.5rem;
  }

  .col-img,
  .col-img.left {
    padding: 1.5rem;
  }

  .centered {
    padding: 3rem 60px;
  }
}
