/* Debsgrime: gedeelde stijl voor homepage en Wie ben ik */
:root {
  --bg: #0b0710;
  --bg-2: #160c1d;
  --bg-3: #1f1128;
  --card: rgba(31, 17, 40, .82);
  --line: rgba(239, 230, 245, .12);
  --text: #efe6f5;
  --muted: #a99bb5;
  --orange: #ff7a18;
  --orange-2: #ff4d1a;
  --blood: #b3122e;
  --purple: #7b3fa8;
  --moon: #f6e7b8;
  --green: #8fbf4a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; }
.creep { font-family: "Creepster", cursive; font-weight: 400; letter-spacing: .02em; }

/* ---------- Navigatie ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid { background: rgba(11, 7, 16, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: "Creepster", cursive; font-size: 1.9rem; text-decoration: none; letter-spacing: .02em; text-shadow: 0 0 18px rgba(179, 18, 46, .6), 0 3px 0 var(--blood); }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; }
.menu a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.menu .btn { color: #140a05; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, background .3s; content: ""; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #140a05;
  font-weight: 700; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(255, 122, 24, .3);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 122, 24, .45); }
.btn.ghost { background: rgba(11, 7, 16, .55); color: var(--text); border: 1px solid rgba(255, 122, 24, .5); box-shadow: none; }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn.tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #0b0710; box-shadow: 0 10px 30px rgba(254, 44, 85, .3); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Koppen ---------- */
.eyebrow { letter-spacing: .32em; text-transform: uppercase; font-size: .78rem; color: var(--orange); font-weight: 600; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; position: relative; }
.section-head h2 { font-family: "Creepster", cursive; font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1.05; margin-top: 8px; text-shadow: 0 3px 0 var(--blood); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
section.block { padding: 110px 0; position: relative; }
section.alt { background: var(--bg-2); }

/* ---------- Halloween-decoratie ---------- */
.deco { position: absolute; pointer-events: none; z-index: 2; }

/* Spinnenweb in een hoek */
.web { width: clamp(110px, 18vw, 220px); opacity: .32; }
.web.tl { top: 0; left: 0; }
.web.tr { top: 0; right: 0; transform: scaleX(-1); }

/* Hangende spin */
.hang { top: 0; width: 26px; animation: hang 5s ease-in-out infinite; transform-origin: top center; }
.hang .thread { width: 1px; margin: 0 auto; background: rgba(239, 230, 245, .4); }
.hang svg { width: 26px; margin-top: -2px; }
@keyframes hang { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(18px) rotate(3deg); } }

/* Pompoen met flakkerend licht */
.pumpkin { width: 90px; filter: drop-shadow(0 0 18px rgba(255, 122, 24, .45)); }
.pumpkin .face { animation: flicker 3s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: .75; } 44% { opacity: 1; } 47% { opacity: .55; } 50% { opacity: 1; } 78% { opacity: .85; } }

/* Grafsteen */
.grave { width: 110px; }

/* Kaarsje */
.candle { width: 26px; }
.candle .flame { transform-origin: 50% 100%; animation: flame .9s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.85, 1.12) skewX(3deg); } }

/* Spookje */
.spook { width: 70px; animation: float 4.5s ease-in-out infinite; opacity: .85; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

/* Vleermuizen */
.bat { position: absolute; width: 42px; fill: #050308; animation: fly linear infinite; z-index: 2; pointer-events: none; }
.bat svg { width: 100%; animation: flap .25s ease-in-out infinite alternate; }
@keyframes fly { 0% { left: -60px; transform: translateY(0); } 50% { transform: translateY(25px); } 100% { left: 110%; transform: translateY(0); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

/* Bloedrand tussen secties */
.drips-edge { position: absolute; left: 0; right: 0; height: 40px; z-index: 3; pointer-events: none; }
.drips-edge.top { top: -1px; }
.drips-edge svg { width: 100%; height: 100%; }

/* ---------- Kaarten ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; }

/* ---------- Galerij ---------- */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.gallery .look { width: calc((100% - 36px) / 3); }
.look.hide { display: none; }
.look.pop { animation: pop .45s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(31, 17, 40, .7); cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.filter:hover { border-color: var(--orange); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #140a05; }
.look {
  position: relative; border-radius: 20px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 3 / 4; background: var(--bg-3); border: 1px solid var(--line);
  padding: 0; display: block; width: 100%;
}
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s; }
.look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 7, 16, .9), transparent 50%); }
.look .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; text-align: left; }
.look .cap strong { display: block; font-family: "Creepster", cursive; font-weight: 400; font-size: 1.6rem; line-height: 1.1; letter-spacing: .03em; }
.look .cap span { font-size: .8rem; color: var(--muted); }
.look:hover img, .look:focus-visible img { transform: scale(1.06); }
.look:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.look.wide { grid-column: span 2; aspect-ratio: auto; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5, 2, 8, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 60px 16px;
}
.lightbox.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { max-width: min(92vw, 640px); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox figcaption { margin-top: 14px; color: var(--muted); }
.lightbox figcaption strong { color: var(--text); font-family: "Creepster", cursive; font-weight: 400; font-size: 1.6rem; display: block; letter-spacing: .03em; }
.lightbox figcaption a { color: var(--orange); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(31, 17, 40, .9); cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lb-btn:hover { border-color: var(--orange); color: var(--orange); }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; background: var(--bg); position: relative; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
footer .logo { font-size: 1.6rem; color: var(--text); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--orange); }

/* ---------- Verschijnen bij scrollen ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .gallery .look { width: calc((100% - 18px) / 2); }
  .look.wide { grid-column: auto; aspect-ratio: 3 / 4; }
}
/* ---------- Telefoon ---------- */
@media (max-width: 760px) {
  .burger { display: block; }
  .menu {
    position: fixed; top: calc(68px + env(safe-area-inset-top)); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 20px 24px;
    background: rgba(11, 7, 16, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: rgba(11, 7, 16, .97); }
  .menu li { width: 100%; }
  .menu a { display: block; padding: 14px 0; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .menu a[aria-current="page"] { text-decoration: none; color: var(--orange); }
  .menu .btn { margin-top: 16px; width: 100%; border-bottom: 0; color: #140a05; }
  section.block { padding: 80px 0; }
  .section-head { margin-bottom: 34px; }
  .gallery { gap: 10px; }
  .gallery .look { width: calc((100% - 10px) / 2); }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; margin: 0 -20px 22px; padding: 2px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 9px 14px; font-size: .88rem; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .look { border-radius: 14px; }
  .look .cap { left: 10px; right: 10px; bottom: 10px; }
  .look .cap strong { font-size: 1.2rem; }
  .look .cap span { display: none; }
  .pumpkin { width: 64px; }
  .grave { width: 80px; }
  .spook { width: 50px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bat { display: none; }
}

/* ---------- Kerkhofscène: alles staat op één grondlijn ---------- */
.scene { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 2; pointer-events: none; }
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; }
.scene .left, .scene .right { position: absolute; bottom: 14px; width: 420px; height: 150px; }
.scene .left { left: 0; }
.scene .right { right: 0; }
.scene-spacer { position: relative; height: 150px; margin-top: 40px; }

/* Iets dat bovenop de rand van een kaart staat */
.perch { position: absolute; bottom: 100%; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; z-index: 3; }
.perch .pumpkin { width: 64px; }
.perch .candle { width: 18px; }

/* Spin hangt aan het web in de hoek */
.hang.at-tl { left: clamp(60px, 10vw, 120px); }
.hang.at-tr { right: clamp(60px, 10vw, 120px); }

@media (max-width: 760px) {
  .scene { height: 100px; }
  .scene .left, .scene .right { width: 280px; height: 100px; bottom: 10px; }
  .scene .ground { height: 28px; }
  .scene-spacer { height: 100px; }
  .perch .pumpkin { width: 50px; }
}
@media (max-width: 480px) {
  .scene { height: 80px; }
  .scene .left, .scene .right { width: 180px; height: 64px; bottom: 9px; }
  .scene-spacer { height: 80px; }
}
