body {
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(1100px, 100%);
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(194, 236, 237, 0.58) 0%, rgba(194, 236, 237, 0) 62%),
    radial-gradient(80% 46% at 88% 4%, rgba(239, 234, 231, 0.72) 0%, rgba(239, 234, 231, 0) 60%);
}

.omslag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(380px, 58vh, 680px);
  z-index: -1;
  pointer-events: none;
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.34;
  filter: saturate(0.92);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 42%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 42%, rgba(0,0,0,0) 100%);
  animation: omslagin 1200ms var(--ease) both;
}
.omslag[hidden] { display: none; }

@keyframes omslagin {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 0.34; transform: scale(1); }
}

.shell {
  width: min(1220px, 92vw);
  margin-inline: auto;
}

.hero { text-align: center; padding: 46px 0 34px; }
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 9.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero .kicker {
  font-family: Caveat, "Comic Sans MS", cursive;
  font-size: clamp(23px, 3.4vw, 31px);
  color: var(--accent-ink);
  margin-top: 12px;
}
.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 0; }
.rule i { display: block; width: 46px; height: 1px; background: var(--hair); }
.rule b { width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }

.gate {
  max-width: 430px;
  margin: 0 auto 70px;
  padding: 30px 28px 26px;
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md), var(--lip);
  backdrop-filter: saturate(1.25) blur(14px);
  text-align: center;
}
.gate[hidden] { display: none; }
.gate .label { display: block; margin-bottom: 14px; }
.code { display: flex; justify-content: center; gap: 7px; }
.code input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 42px;
  height: 50px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 10px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.code input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 142, 150, 0.18);
}
.code input.filled { border-color: rgba(62, 142, 150, 0.5); }

.gate .btn { width: 100%; margin-top: 20px; }
.gate .msg { min-height: 18px; font-size: 12.5px; color: var(--error); margin-top: 12px; }

.state {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
  margin: 30px 0 70px;
}
.state[hidden] { display: none; }

.jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 0 10px;
}
.jumps[hidden] { display: none; }
.jumps a {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--glass);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.jumps a:hover { color: var(--ink); background: var(--glass-firm); border-color: transparent; }

.album[hidden] { display: none; }

.moment {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 46px 0 16px;
  scroll-margin-top: 84px;
}
.moment h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  margin: 0;
}
.moment i { flex: 1; height: 1px; background: var(--hair); }

.rows { display: flex; flex-direction: column; gap: 10px; }
.row  { display: flex; gap: 10px; }

.row[hidden] { display: none; }

.meer {
  display: flex;
  width: fit-content;
  margin: 18px auto 0;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 11px;
}
.meer svg { transition: transform 300ms var(--ease); }
.meer.open svg { transform: rotate(180deg); }


.tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--lavender);
  cursor: zoom-in;
  flex: none;
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease), filter 260ms var(--ease);
}
.tile:hover img { transform: scale(1.035); filter: brightness(1.04); }

.tile .lock {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 23, 27, 0.58);
  color: var(--paper);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.tile .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(20, 23, 27, 0.42);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px -10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: background 260ms var(--ease), transform 420ms var(--ease);
}
.tile .play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.94);
}
.tile:hover .play { background: rgba(20, 23, 27, 0.58); transform: translate(-50%, -50%) scale(1.06); }

.made { margin: 64px 0 34px; }

.box {
  position: fixed;
  inset: 0;

  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: rgba(20, 23, 27, 0.97);
  backdrop-filter: blur(10px);
  color: var(--paper);
}
.box[hidden] { display: none; }

.box-foot { justify-content: flex-start; }

.box-head, .box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 4vw, 30px);
  color: var(--dark-soft);
}
.box-head .eyebrow { color: var(--dark-soft); }
.box .count { font-variant-numeric: tabular-nums; }

.stage {
  position: relative;
  min-height: 0;

  overflow: visible;
  touch-action: pan-y;
}

.raam {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  will-change: transform;
}
.track.glide { transition: transform 420ms var(--ease); }

.track.wissel { transition: opacity 260ms var(--ease); opacity: 0; }
.track.terug  { transition: opacity 380ms var(--ease); }

.slide > * { transition: transform 380ms var(--ease); }
.track.wissel .slide > * { transition: transform 260ms var(--ease); transform: scale(0.985); }

.slide {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 4vw, 30px);
}

.slide img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2 * clamp(8px, 4vw, 30px));
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 40px 90px -50px #000;
}

.slide video {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2 * clamp(8px, 4vw, 30px));
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 40px 90px -50px #000;
}

.groepkaart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.groepkaart.aan {
  animation: groepdoor 1900ms var(--ease) both;
}
.groepkaart span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;

  font-size: clamp(54px, 13vw, 132px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--paper);
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.7);
  padding: 0 6vw;
}

.groepkaart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 42% at 50% 50%, rgba(16, 18, 21, 0.62) 0%, rgba(16, 18, 21, 0) 72%);
}
.groepkaart span { position: relative; }
.groepkaart i {
  display: block;
  width: 40px;
  height: 1px;
  margin: 14px auto 0;
  background: rgba(250, 251, 248, 0.5);
}
@keyframes groepdoor {
  0%   { opacity: 0; transform: scale(1.06); }
  16%  { opacity: 1; transform: scale(1); }
  68%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.99); }
}

.nav {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  z-index: 2;
}
.nav.prev { left: clamp(4px, 2vw, 18px); }
.nav.next { right: clamp(4px, 2vw, 18px); }

.meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta .name {
  font-size: 12.5px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .sub { font-size: 11.5px; color: var(--dark-soft); font-variant-numeric: tabular-nums; }

.dl-zone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 38%);
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}
.dl-zone[hidden] { display: none; }

.dl {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.75);
  transition: background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.dl:hover {
  background: #fff;
  box-shadow: 0 26px 58px -14px rgba(0, 0, 0, 0.88);
}
.dl:active { box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8); }

.wenk {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 10px);
  transform: translateX(-58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.wenk svg {
  display: block;
  width: 52px;
  height: auto;
  animation: wenken 3.6s var(--ease) infinite;
}

@keyframes wenken {
  0%, 62%, 100% { transform: translateY(0); }
  70%           { transform: translateY(7px); }
  78%           { transform: translateY(1px); }
  86%           { transform: translateY(4px); }
}

.wenk .rand { stroke: rgba(16, 18, 21, 0.5); stroke-width: 8.5; }
.wenk .lijn { stroke: #FFFDF8; stroke-width: 4.2; }

@media (max-width: 760px) {
  .wenk { transform: translateX(-58%); }
  .wenk svg { width: 42px; }
  .dl { padding: 13px 20px; font-size: 11px; }
}

.note {
  padding: 0 clamp(14px, 4vw, 30px) 14px;
  font-size: 12.5px;
  color: var(--dark-soft);
  text-align: right;
}
.note[hidden] { display: none; }

@media (max-width: 620px) {
  .hero { padding: 34px 0 26px; }

  .box-foot { padding-top: 34px; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover img { transform: none; }
  .track.glide { transition: none; }
}
