/* ==========================================================
   Waar de tjitjak slaapt — onepager
   ========================================================== */

:root {
  /* Merkkleuren */
  --cream: #FFEACE;        /* warme achtergrond */
  --cream-light: #FFF5E6;
  --cream-dark: #F7DCB2;
  --olive: #58591D;        /* groen */
  --olive-dark: #3B3C12;
  --olive-light: #A9A55C;
  --yellow: #E2C880;       /* geel */
  --orange: #CA6E38;       /* oranje */
  --orange-dark: #9A5026;
  --orange-btn: #AE5B28;    /* donkerder oranje voor witte knoptekst (contrast 4.8:1) */
  --orange-btn-dark: #84441F;
  --ink: #2E2A1A;
  --ink-soft: #625B45;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 68px;
  --gutter: 20px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* Batik kawung-patroon */
  --kawung-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44' opacity='.13'%3E%3Cg fill='none' stroke='%2358591D' stroke-width='1.6'%3E%3Cellipse cx='22' cy='11' rx='6' ry='10'/%3E%3Cellipse cx='22' cy='33' rx='6' ry='10'/%3E%3Cellipse cx='11' cy='22' rx='10' ry='6'/%3E%3Cellipse cx='33' cy='22' rx='10' ry='6'/%3E%3C/g%3E%3Cg fill='%2358591D'%3E%3Ccircle cx='22' cy='22' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='44' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='44' r='2.2'/%3E%3Ccircle cx='44' cy='44' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --kawung-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44' opacity='.16'%3E%3Cg fill='none' stroke='%23E2C880' stroke-width='1.6'%3E%3Cellipse cx='22' cy='11' rx='6' ry='10'/%3E%3Cellipse cx='22' cy='33' rx='6' ry='10'/%3E%3Cellipse cx='11' cy='22' rx='10' ry='6'/%3E%3Cellipse cx='33' cy='22' rx='10' ry='6'/%3E%3C/g%3E%3Cg fill='%23E2C880'%3E%3Ccircle cx='22' cy='22' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='44' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='44' r='2.2'/%3E%3Ccircle cx='44' cy='44' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --kawung-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%2358591D' stroke-width='2.4'%3E%3Cellipse cx='22' cy='11' rx='6' ry='10'/%3E%3Cellipse cx='22' cy='33' rx='6' ry='10'/%3E%3Cellipse cx='11' cy='22' rx='10' ry='6'/%3E%3Cellipse cx='33' cy='22' rx='10' ry='6'/%3E%3C/g%3E%3Cg fill='%23CA6E38'%3E%3Ccircle cx='22' cy='22' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --gecko: url("../assets/img/tjitjak.png");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q10 2 18 8 T34 8 T50 8 T66 8 T82 8 T98 8' fill='none' stroke='%23CA6E38' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 80px; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  color: var(--olive-dark);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 650; }
h3 { font-size: 1.375rem; font-weight: 600; }
p  { margin: 0 0 1em; }

a { color: var(--orange-dark); }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 140px); position: relative; overflow-x: clip; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: .75em;
}

.lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--ink-soft); }

.squiggle {
  background: var(--squiggle) no-repeat 0 100% / 0% .32em;
  padding-bottom: .12em;
  transition: background-size 1s .4s var(--ease-out);
}
.is-in .squiggle, .squiggle.is-in { background-size: 100% .32em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--olive); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Batik ---------- */
.batik-band {
  height: 28px;
  background: var(--kawung-band) var(--yellow);
  background-size: 28px 28px;
  border-block: 3px solid var(--olive);
  animation: band-slide 30s linear infinite;
}
.batik-band--flip { animation-direction: reverse; }
@keyframes band-slide { to { background-position: 280px 0; } }

/* ---------- Knoppen ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--orange-btn); color: #fff;
  box-shadow: 0 4px 0 var(--orange-btn-dark), 0 10px 24px -10px rgba(154, 80, 38, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--orange-btn-dark), 0 16px 28px -12px rgba(154, 80, 38, .6); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-btn-dark); }
.btn--ghost { background: rgba(255, 245, 230, .7); color: var(--olive-dark); box-shadow: inset 0 0 0 2px var(--olive); }
.btn--ghost:hover { background: var(--cream-light); }
.btn--small { padding: 10px 18px; font-size: .9375rem; }
.btn__was { font-weight: 400; opacity: .75; }

/* Google-iconen (Material Symbols Rounded) */
.icon {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal;
  font-size: 1.25em; line-height: 1; display: inline-block; vertical-align: -.2em;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  user-select: none;
  width: 1em; overflow: hidden; visibility: hidden;
}
.icons-ready .icon { visibility: visible; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--large { padding: 18px 34px; font-size: 1.125rem; }

/* Tjitjak die over de rand van de knop komt kijken */
.btn--peek::before {
  content: "";
  position: absolute; right: 22%; top: -24px; width: 22px; height: 26px;
  background: var(--gecko) no-repeat center / contain;
  opacity: 0; transform: translateY(14px) rotate(0deg) scale(.6);
  transition: opacity .2s, transform .45s var(--ease-bounce);
  pointer-events: none;
}
.btn--peek:hover::before { opacity: 1; transform: translateY(0) rotate(-12deg) scale(1); }

/* ---------- Placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(88, 89, 29, .07) 0 12px, transparent 12px 24px),
    #EFE3C4;
  border: 2px dashed rgba(88, 89, 29, .35);
  border-radius: var(--radius);
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: .8125rem; font-weight: 500; color: var(--olive-dark); opacity: .7;
  text-align: center; width: 85%; pointer-events: none;
}
.ph--alt { background-color: var(--cream-dark); }
.ph--round { border-radius: 50%; aspect-ratio: 1; }
.ph--spread { aspect-ratio: 2 / 1; }
.ph--cover { aspect-ratio: 8 / 9; border-radius: 6px 16px 16px 6px; }
.ph--arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.ph--logo { width: 52px; height: 52px; flex: none; border-radius: 14px; }
.ph--logo::after, .ph--thumb::after { font-size: .625rem; }
.ph--thumb { width: 36px; height: 40px; border-radius: 4px; border-width: 1px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(rgba(255, 234, 206, .55), rgba(255, 234, 206, 0));
  transition: background-color .3s, box-shadow .3s;
}
/* Achtergrond met blur in een eigen laag: backdrop-filter op de header zelf zou het
   vaste mobiele menu binnen de header opsluiten */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 234, 206, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(88, 89, 29, .15);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  height: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo {
  width: 96px;
  opacity: 0; transform: translateY(-8px) rotate(-4deg);
  transition: opacity .3s, transform .5s var(--ease-bounce);
}
.site-header.is-scrolled .site-header__logo { opacity: 1; transform: none; }
.site-header__logo:hover { transform: rotate(-3deg) scale(1.05) !important; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 10px 16px; border-radius: 999px;
  color: var(--olive-dark); font-weight: 500; text-decoration: none;
  transition: background-color .2s, transform .3s var(--ease-bounce);
}
.site-nav a:not(.btn):hover { background: rgba(88, 89, 29, .1); transform: translateY(-2px) rotate(-2deg); }
.site-nav a.is-active { background: var(--olive); color: var(--cream) !important; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--olive); cursor: pointer; position: relative; z-index: 2;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s;
}
.menu-toggle__bars { top: 50%; }
.menu-toggle__bars::before { content: ""; top: -6px; }
.menu-toggle__bars::after  { content: ""; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 12px; }
  .site-header__logo { width: 120px; }
  /* Desktop: header schuift pas in beeld zodra je onder de hero bent */
  .site-header { transform: translateY(-110%); transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s; }
  .site-header.is-scrolled, .site-header:focus-within { transform: none; }
}

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--kawung-dark) var(--cream);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px;
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
    transition: clip-path .5s var(--ease-out);
    visibility: hidden;
  }
  .site-nav.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2)); visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 8px; }
  .site-nav a:not(.btn) { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; padding: 8px 20px; }
  .site-nav__cta { font-size: 1.125rem; padding: 16px 30px; }
}

/* Tjitjak die altijd heen en weer loopt langs de onderkant van de header */
.header-gecko {
  position: absolute; top: calc(100% - 14px); left: 0; width: 100%; height: 30px;
  pointer-events: none; overflow: hidden;
}
.header-gecko svg {
  position: absolute; top: 0; width: 24px; height: 29px;
  color: var(--olive);
  animation: patrol 46s linear infinite;
}
@keyframes patrol {
  0%   { left: 3%;  transform: rotate(90deg); }
  8%   { left: 3%;  transform: rotate(90deg); }
  40%  { left: 58%; transform: rotate(96deg); }
  44%  { left: 60%; transform: rotate(84deg); }
  50%  { left: 60%; transform: rotate(90deg); }
  53%  { left: 60%; transform: rotate(-90deg); }
  60%  { left: 50%; transform: rotate(-96deg); }
  64%  { left: 50%; transform: rotate(-90deg); }
  92%  { left: 3%;  transform: rotate(-84deg); }
  96%  { left: 3%;  transform: rotate(-90deg); }
  100% { left: 3%;  transform: rotate(90deg); }
}

/* ---------- Hero ---------- */
.hero {
  /* --hero-h: hoogte van de hero, --stage: formaat van boom + schommel (vierkant, links onderin) */
  --hero-h: clamp(600px, 100svh, 1100px);
  --stage: min(var(--hero-h), 190vw);
  position: relative;
  height: 100vh; height: var(--hero-h);
  overflow: hidden;
  background: #F6B868;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.hero__layers { position: absolute; inset: 0; }
.hero__layer { position: absolute; will-change: transform; }

/* Touch-apparaten: parallax gestuurd door de scrollpositie zelf, zonder JavaScript per frame */
@keyframes parallax { to { transform: translate3d(0, calc(var(--depth) * 1000px), 0); } }
.hero.is-css-parallax [data-depth] {
  animation: parallax linear both;
  animation-timeline: scroll(root);
  animation-range: 0 1000px;
}
.hero__layer img { display: block; max-width: none; }

/* Achtergrond: iets groter dan de hero zodat parallax geen randen laat zien */
.hero__layer--bg { inset: -8% -4% -4%; }
.hero__layer--bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }

/* Boom + schommel: één vierkant podium, altijd links uitgelijnd */
.hero__stage { left: 0; bottom: 0; width: var(--stage); height: var(--stage); }
.hero__tree { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__swing {
  position: absolute; left: 11%; top: -5%; width: 44%;
  transform-origin: 50% 0;               /* draaipunt: de tak waar de touwen aan hangen */
  animation: swing 4.2s ease-in-out infinite;
}
.hero__swing img { width: 100%; height: auto; }
@keyframes swing {
  0%, 100% { transform: rotate(1.6deg); }
  50%      { transform: rotate(-1.6deg); }
}

/* Voorgrond: breder dan het scherm, deels onder de rand weggezakt */
.hero__layer--front { left: -5%; right: -5%; bottom: 0; }
.hero__layer--front img {
  width: max(110vw, calc(var(--hero-h) * 1.25));
  height: auto; margin-bottom: -18%;
}

.hero__motes { position: absolute; inset: 0; pointer-events: none; }
.mote {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #FFE4A6; box-shadow: 0 0 10px 3px rgba(255, 214, 140, .7);
  opacity: 0; animation: mote linear infinite;
}
@keyframes mote {
  0%   { opacity: 0; transform: translate(0, 0); }
  20%  { opacity: .9; }
  80%  { opacity: .7; }
  100% { opacity: 0; transform: translate(var(--dx, 30px), -140px); }
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 560px; padding: calc(var(--header-h) + 4px) var(--gutter) 0;
  text-align: center;
}
.hero__title { margin: 0; will-change: transform; }
.hero__title img {
  width: 100%; height: auto; margin-inline: auto;
  animation: title-in 1.2s var(--ease-bounce) both;
}
@keyframes title-in { from { opacity: 0; transform: scale(.85) rotate(-3deg); } }
.hero__lead {
  max-width: 34ch; margin: 4px auto 18px; padding: 10px 18px; border-radius: 18px;
  font-size: clamp(1rem, 2.4vw, 1.125rem); font-weight: 500; line-height: 1.45; color: var(--olive-dark);
  background: rgba(255, 238, 212, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade-up .9s .4s var(--ease-out) both;
}
.hero__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fade-up .9s .6s var(--ease-out) both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; z-index: 3; transform: translateX(-50%);
  color: var(--cream); filter: drop-shadow(0 2px 4px rgba(59, 60, 18, .5));
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll svg { transform: rotate(180deg); }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Desktop: tekst rechts in de lucht, zoals op de cover */
@media (min-width: 900px) {
  .hero { align-items: flex-end; }
  .hero__content {
    max-width: none; width: min(46vw, 620px);
    margin-right: clamp(24px, 6vw, 120px);
    padding-top: calc(var(--header-h) + 3vh);
  }
}

@media (max-width: 899px) {
  /* Mobiel: boom vanaf de bovenrand, zodat de touwen in de kruin verdwijnen */
  .hero__stage { top: 0; bottom: auto; }
  .hero__swing { top: 5%; }
  .hero__layer--front img { width: 165vw; margin-bottom: 0; }
  /* Zachte zonnegloed achter het logo, zodat de titel leesbaar blijft op de bladeren */
  .hero__title { position: relative; }
  .hero__title::before {
    content: ""; position: absolute; inset: -18% -10%; z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 238, 212, .92) 55%, rgba(255, 238, 212, 0));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__swing { top: 2%; }
  .hero__layer--front img { width: 104vw; }
}

@media (max-width: 899px) {
  .hero__lead { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 238, 212, .9); }
}

@media (max-width: 599px) {
  .hero__actions .btn--ghost { display: none; }
  .hero__content { max-width: 360px; }
  .hero__lead { font-size: 1rem; margin-bottom: 14px; }
}

/* ---------- Het verhaal ---------- */
.story__intro { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.story__hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; max-width: 500px;
  padding: 10px 22px 10px 14px; border-radius: 999px; text-align: center;
  background: var(--cream-light); color: var(--olive-dark); text-decoration: none; font-size: .875rem; line-height: 1.45;
  box-shadow: inset 0 0 0 2px var(--yellow);
  transition: transform .35s var(--ease-bounce), box-shadow .25s;
}
.story__hint svg { flex: none; width: 24px; height: 30px; color: var(--olive); animation: peek-wiggle 3s ease-in-out infinite; }
.story__hint:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: inset 0 0 0 2px var(--orange); }
@keyframes peek-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-18deg); } 88% { transform: rotate(14deg); } }
@media (max-width: 599px) { .story__hint { border-radius: var(--radius); } }

.characters {
  display: grid; gap: 40px; grid-template-columns: 1fr;
  max-width: 820px; margin: 0 auto 64px;
}
.character { text-align: center; }
.character__img { width: auto; max-width: min(100%, 72vw); margin: 0 auto 20px; transform-origin: 50% 100%; transition: transform .5s var(--ease-bounce); }
.character:hover .character__img { transform: rotate(-4deg) scale(1.05); }
.character:nth-child(2):hover .character__img { transform: rotate(4deg) scale(1.05); }
.character p { color: var(--ink-soft); max-width: 32ch; margin-inline: auto; }

@media (min-width: 700px) {
  .characters { grid-template-columns: 1fr 1fr; gap: 56px; }
  .character:nth-child(2) { margin-top: 80px; }
}

.facts {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 820px;
}
.facts li {
  background: var(--cream-light); border-radius: var(--radius); padding: 18px 16px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .15);
  transition: transform .4s var(--ease-bounce);
}
.facts li:nth-child(odd):hover { transform: rotate(-3deg) translateY(-3px); }
.facts li:nth-child(even):hover { transform: rotate(3deg) translateY(-3px); }
.facts strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: var(--olive-dark); line-height: 1.2; }
.facts span { font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Kijk in het boek ---------- */
.peek { background: var(--kawung-light) var(--olive); color: var(--cream); overflow: hidden; }
.peek h2 { color: var(--cream); }
.peek .eyebrow { color: var(--yellow); }
.peek__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 40px;
}
.peek__head p { max-width: 44ch; opacity: .9; margin: 0; }

.counter {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, .18); padding: 10px 18px 10px 12px; border-radius: 999px;
  color: var(--yellow); font-size: .9375rem;
}
.counter span { color: var(--cream); }
.counter.is-bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15); } }

.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 20px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.spread { flex: 0 0 88%; margin: 0; scroll-snap-align: start; }
@media (min-width: 900px) { .spread { flex-basis: min(820px, 70%); } }
.spread__page { position: relative; }
.spread__page img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); user-select: none; }
.spread__open {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: var(--radius);
  background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.spread__open:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }
.spread__badge {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 245, 230, .92); color: var(--olive-dark); font: 600 .875rem/1 var(--font-body);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease-bounce);
}
.spread__open:hover .spread__badge { transform: scale(1.06) rotate(-2deg); }
.spread figcaption { margin-top: 12px; font-size: .9375rem; opacity: .8; text-align: center; }

.carousel__nav {
  display: flex; gap: 10px; justify-content: center;
  max-width: 1180px; margin: 8px auto 0; padding-inline: var(--gutter);
}
@media (min-width: 900px) { .carousel__nav { justify-content: flex-end; } }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--olive-dark); font-size: 1.25rem;
  transition: transform .3s var(--ease-bounce), opacity .2s;
}
.carousel__btn:hover { transform: scale(1.12) rotate(-6deg); }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }

/* Onzichtbare klikzone over de tjitjak in de illustratie; na vinden verschijnt een ring */
.hidden-tjitjak {
  position: absolute; left: var(--x); top: var(--y); width: max(12%, 44px); aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.hidden-tjitjak:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 2px; }
.spread .hidden-tjitjak { pointer-events: none; }
.hidden-tjitjak.is-found {
  cursor: default;
  box-shadow: 0 0 0 3px var(--yellow), 0 0 0 7px rgba(202, 110, 56, .55);
  animation: found .7s var(--ease-bounce);
}
@keyframes found {
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.reward {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--yellow); color: var(--olive-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  animation: pop-in .6s var(--ease-bounce);
}
.reward[hidden] { display: none; }
.reward__text strong { display: block; font-family: var(--font-heading); font-size: 1.375rem; }
.reward__text span { font-size: .9375rem; }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) rotate(-2deg); } }

.burst-layer { position: fixed; inset: 0; z-index: 120; overflow: hidden; pointer-events: none; }
.burst-gecko { position: absolute; width: 26px; height: 31px; color: var(--yellow); }

/* ---------- Reacties ---------- */
.reviews { text-align: center; background: var(--kawung-dark) var(--cream); }
.reviews__kids { display: block; width: auto; height: clamp(130px, 30vw, 180px); margin: 0 auto 20px; }
.quotes {
  display: grid; gap: 20px; margin-top: 40px; text-align: left;
}
.quote {
  margin: 0; padding: 28px 26px 24px; border-radius: var(--radius-lg);
  background: var(--cream-light); box-shadow: 0 1px 0 rgba(88, 89, 29, .15), 0 18px 34px -24px rgba(59, 60, 18, .5);
  transition: transform .45s var(--ease-bounce);
}
.quote:nth-child(1) { transform: rotate(-1.5deg); }
.quote:nth-child(3) { transform: rotate(1.5deg); }
.quote:hover { transform: rotate(0) translateY(-6px); }
.quote blockquote {
  margin: 0 0 16px; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.35; color: var(--olive-dark);
}
.quote figcaption { font-size: .875rem; color: var(--orange-dark); font-weight: 600; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- Pre-order ---------- */
.order { background: var(--cream-dark); }
.order__grid { display: grid; gap: 48px; align-items: center; }
.order__cover { position: relative; max-width: 460px; margin-inline: auto; width: 100%; padding-top: 12px; }
/* 3D-boek: voorkant, rug en achterkant uit één omslag */
.book {
  --w: min(400px, 70vw);
  --t: calc(var(--w) * .045);           /* dikte van het boek */
  position: relative; width: var(--w); aspect-ratio: 1; margin: 0 auto;
  perspective: 1400px; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.book.is-dragging { cursor: grabbing; }
.book__inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 30deg));
  transition: transform .9s var(--ease-bounce);
}
.book.is-dragging .book__inner { transition: none; }
.book__face, .book__spine, .book__pages {
  position: absolute; display: block; max-width: none;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.book__face { inset: 0; width: 100%; height: 100%; }
.book__face--front { transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; }
.book__face--back  { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); border-radius: 6px 2px 2px 6px; }
.book__spine {
  top: 0; left: calc(var(--t) / -2); width: var(--t); height: 100%;
  transform: rotateY(-90deg);
}
.book__pages { background: repeating-linear-gradient(90deg, #FFF9EE 0 1px, #E9DCC2 1px 2px); }
.book__pages--right {
  top: 1%; right: calc(var(--t) / -2); width: var(--t); height: 98%;
  transform: rotateY(90deg);
}
.book__pages--top, .book__pages--bottom {
  left: 0; width: 99%; height: var(--t);
  background: repeating-linear-gradient(0deg, #FFF9EE 0 1px, #E9DCC2 1px 2px);
}
.book__pages--top    { top: calc(var(--t) / -2); transform: rotateX(90deg); }
.book__pages--bottom { bottom: calc(var(--t) / -2); transform: rotateX(-90deg); }
.book__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -9%; height: 12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(59, 60, 18, .35), transparent);
  filter: blur(4px);
}

.book-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.book-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--cream-light); box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .2);
}
.book-toggle button {
  border: 0; background: none; cursor: pointer;
  font: 600 .9375rem var(--font-body); color: var(--olive-dark);
  padding: 9px 18px; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.book-toggle button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.book-hint { margin: 0; font-size: .8125rem; color: var(--ink-soft); transition: opacity .4s; }
.book-hint span { display: inline-block; transform: scaleX(-1); animation: spin-ccw 4s linear infinite; }
@keyframes spin-ccw { from { transform: scaleX(-1) rotate(0); } to { transform: scaleX(-1) rotate(360deg); } }
.book-hint.is-hidden { opacity: 0; }
.sticker {
  position: absolute; z-index: 3; top: -28px; left: -4px; width: 124px; height: 124px;
  border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(154, 80, 38, .8);
  transform: rotate(10deg);
}
.sticker__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 18s linear infinite;
}
.sticker__ring text {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; fill: #fff;
}
.sticker__core { font-size: 2rem; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }

.order__text { text-align: center; }
.order__text p { color: var(--ink-soft); }
.gift {
  display: inline-flex; gap: 10px; align-items: flex-start; text-align: left;
  background: var(--cream-light); padding: 12px 16px; border-radius: 14px;
  color: var(--olive-dark) !important; font-size: .9375rem;
}
.price { margin: 12px 0 24px; }
.price p { margin: 0; }
.price__label {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-dark) !important; margin-bottom: 4px !important;
}
.price__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.price__now { font-family: var(--font-heading); font-size: clamp(1.75rem, 5.5vw, 3rem); font-weight: 700; line-height: 1; color: var(--olive-dark); }
.price__was { position: relative; font-family: var(--font-heading); font-size: clamp(1.125rem, 4vw, 1.5rem); color: var(--ink-soft); }
.price__was s { text-decoration: none; }
/* Handgetekende streep door de oude prijs */
.price__was::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 3px;
  background: var(--orange); border-radius: 3px; transform: rotate(-12deg);
}
.price__note { font-size: .875rem; margin-top: 10px !important; }
.order__note { font-size: .875rem; margin-top: 16px; }
.order__meta { font-size: .8125rem; margin: 0; opacity: .75; }

@media (min-width: 900px) {
  .order__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .order__text { text-align: left; }
  .price__row { justify-content: flex-start; }
  .sticker { width: 140px; height: 140px; left: -40px; }
}

/* ---------- Auteur ---------- */
.author { background: var(--kawung-light) var(--olive); color: var(--cream); }
.author h2, .author h3 { color: var(--cream); }
.author .eyebrow { color: var(--yellow); }
.author__grid { display: grid; gap: 40px; align-items: center; }
.author__photo { display: flex; justify-content: center; }
.author__img {
  width: min(100%, 380px, 78vw); height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
  transition: transform .5s var(--ease-bounce);
}
.author__img:hover { transform: rotate(-3deg) scale(1.03); }
.author__text > p { color: var(--cream); opacity: .9; }
.author__more { margin: 32px 0 12px; font-size: 1rem; }

.projects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  color: var(--cream); text-decoration: none; font-size: .875rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255, 234, 206, .35);
  transition: background-color .2s, box-shadow .2s, transform .3s var(--ease-bounce);
}
.project:hover { background: rgba(255, 234, 206, .1); box-shadow: inset 0 0 0 1px rgba(255, 234, 206, .7); transform: translateY(-2px); }
.project__icon { width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; }

@media (min-width: 900px) {
  .author__grid { grid-template-columns: 380px 1fr; gap: 72px; }
  .author__name { font-size: clamp(1.75rem, 3vw, 2.5rem); white-space: nowrap; }
}

/* ---------- Zoomweergave (pagina groot bekijken) ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: rgba(40, 41, 12, .96); color: var(--cream);
  animation: viewer-in .3s var(--ease-out);
}
.viewer[hidden] { display: none; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer__bar, .viewer__tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter); flex: none;
}
.viewer__tools { justify-content: center; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.viewer__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--cream); color: var(--olive-dark); cursor: pointer;
  transition: transform .3s var(--ease-bounce), opacity .2s;
}
.viewer__btn .icon { font-size: 1.5rem; }
.viewer__btn:hover { transform: scale(1.1) rotate(-6deg); }
.viewer__btn:disabled { opacity: .35; cursor: default; transform: none; }
.viewer__btn--ghost { background: rgba(255, 245, 230, .14); color: var(--cream); }
.viewer__hint { font-size: .8125rem; opacity: .75; margin: 0 6px; text-align: center; }
.viewer__done {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--yellow); font-weight: 600; font-size: .9375rem;
}
.viewer.is-done .viewer__done { display: flex; }
.viewer.is-done .viewer__counter { display: none; }
.viewer__stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  display: grid; place-items: center;
  touch-action: none; cursor: grab; user-select: none;
}
.viewer__stage.is-panning { cursor: grabbing; }
.viewer__page { position: relative; transform-origin: 50% 50%; will-change: transform; }
.viewer__page.is-animating { transition: transform .35s var(--ease-out); }
.viewer__page img { display: block; width: 100%; height: 100%; border-radius: 10px; pointer-events: none; -webkit-user-drag: none; }
.viewer__caption { margin: 0; padding: 0 var(--gutter); text-align: center; font-size: .9375rem; opacity: .85; }
@media (max-width: 599px) { .viewer__hint { display: none; } }

/* ---------- Vragen ---------- */
.faq { background: var(--cream-light); }
.faq__inner { max-width: 820px; }
.faq__list { display: grid; gap: 10px; margin-top: 32px; }
.faq details {
  background: var(--cream); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .15);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; color: var(--olive-dark);
}
.faq summary::-webkit-details-marker { display: none; }
html:not(.icons-ready) .faq summary::after { color: transparent; }
.faq summary::after {
  content: "add"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  font-family: "Material Symbols Rounded"; font-weight: normal; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
  background: var(--olive); color: var(--cream);
  transition: transform .35s var(--ease-bounce), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--orange); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 120px; background: var(--cream); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.site-footer__logo { width: 180px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site-footer__links a { color: var(--olive-dark); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.site-footer__links .icon { margin-right: 6px; color: var(--orange); }
.gift .icon { color: var(--orange); }
.site-footer p { font-size: .875rem; color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 56px; } }

/* ---------- Sticky pre-order (mobiel) ---------- */
.sticky-cta {
  position: fixed; z-index: 40;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 999px;
  background: var(--olive); color: var(--cream);
  box-shadow: 0 14px 30px -12px rgba(59, 60, 18, .7);
  transform: translateY(150%); transition: transform .5s var(--ease-bounce);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__info { display: flex; align-items: center; gap: 12px; line-height: 1.2; }
.sticky-cta__info strong { display: block; font-size: .9375rem; }
.sticky-cta__info small { font-size: .8125rem; color: var(--yellow); }
.sticky-cta__was { font-weight: 400; opacity: .7; margin-left: 4px; }
.sticky-cta__thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.sticky-cta .btn--primary { box-shadow: none; flex: none; white-space: nowrap; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Kruipende tjitjak (desktop) ---------- */
.crawler {
  position: fixed; right: 18px; top: 0; z-index: 30; width: 34px;
  color: var(--olive); opacity: 0; pointer-events: none;
  transition: opacity .4s;
}
.crawler.is-visible { opacity: 1; }
@media (max-width: 1099px) { .crawler { display: none; } }

/* ---------- Reveal-animaties ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.quote.reveal.is-in:nth-child(1) { transform: rotate(-1.5deg); }
.quote.reveal.is-in:nth-child(3) { transform: rotate(1.5deg); }
.quote.reveal.is-in:hover { transform: rotate(0) translateY(-6px); }

/* ---------- Giftcard ---------- */
.giftcard {
  background:
    radial-gradient(ellipse 60% 50% at 25% 45%, rgba(226, 200, 128, .55), transparent 70%),
    var(--cream-light);
}
.giftcard__grid { display: grid; gap: 40px; align-items: center; }
.giftcard__text { text-align: center; }
.giftcard__text > p { color: var(--ink-soft); }
.giftcard h2 { margin-bottom: 20px; }
.giftcard h2 { color: var(--orange-dark); font-size: clamp(1.375rem, 3.8vw, 2rem); }

/* Envelop + kaart */
.giftcard__visual {
  position: relative; width: 100%; max-width: 440px; margin-inline: auto;
  aspect-ratio: 1 / 1.12;
}
.envelope {
  position: absolute; left: 2%; bottom: 6%; width: 82%; aspect-ratio: 1.45;
  border-radius: 10px;
  background: linear-gradient(160deg, #E9CF8E, var(--yellow) 55%, #D2B46A);
  box-shadow: 0 24px 40px -22px rgba(88, 89, 29, .55), inset 0 0 0 1px rgba(88, 89, 29, .12);
  transform: rotate(-7deg);
}
/* binnenkant met batik-voering, zichtbaar boven de klep */
.envelope::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--kawung-light) var(--olive);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
}
/* zijkanten van de voorkant van de envelop */
.envelope::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(200deg, rgba(255,255,255,.18), transparent 60%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .1);
}
/* open klep */
.envelope__flap {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 58%;
  background: linear-gradient(0deg, #DCC07A, #EAD597);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  border-radius: 10px 10px 0 0;
  transform-origin: 50% 100%;
}

.gcard {
  position: absolute; z-index: 2; right: 4%; top: 0; width: 60%;
  aspect-ratio: 760 / 1075; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1400px; -webkit-tap-highlight-color: transparent;
  transform: translate(-22%, 34%) rotate(-7deg) scale(.86);
  transition: transform 1.1s var(--ease-out) .25s;
}
.giftcard__visual.is-in .gcard { transform: rotate(5deg); }
.gcard:hover { transform: rotate(3deg) translateY(-6px) !important; transition-delay: 0s; transition-duration: .5s; }
.gcard__inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .8s var(--ease-out);
}
.gcard[aria-pressed="true"] .gcard__inner { transform: rotateY(180deg); }
.gcard__side {
  display: block; position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.gcard__side--back { transform: rotateY(180deg); }
.gcard__face {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  box-shadow: 0 26px 40px -18px rgba(46, 42, 26, .55), 0 2px 6px rgba(46, 42, 26, .15);
}
.gcard:focus-visible { outline-offset: 8px; }

/* Postzegel met aftelling */
.stamp {
  --stamp: var(--orange-btn);
  position: absolute; z-index: 3; left: 0; top: 4%;
  width: 96px; height: 120px;
  display: grid; place-content: center; justify-items: center; line-height: 1;
  color: var(--cream);
  /* geperforeerde rand: gaatjes van 12px langs alle kanten */
  background: radial-gradient(circle at 6px 6px, transparent 3.6px, var(--stamp) 4.2px) -6px -6px / 12px 12px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 8px 10px rgba(154, 80, 38, .35));
  animation: stamp-bob 4.5s ease-in-out infinite;
}
.stamp::before {
  content: ""; position: absolute; inset: 6px; background: var(--stamp);
}
.stamp::after {
  content: ""; position: absolute; inset: 11px; border: 1.5px dashed rgba(255, 234, 206, .6);
}
.stamp > * { position: relative; z-index: 1; }
.stamp__small { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stamp__big { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; margin: 4px 0 2px; }
@keyframes stamp-bob { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-5px); } }

.gcard__hint { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; }

/* Spelletjes */
.games {
  margin: 28px auto; max-width: 460px; padding: 18px 18px 16px;
  border-radius: var(--radius); background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .12);
}
.games__title { margin: 0 0 14px; font-weight: 600; color: var(--olive-dark); }
.games__title .icon { color: var(--orange); }
.games__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game { display: grid; justify-items: center; gap: 6px; font-size: .75rem; line-height: 1.2; color: var(--ink-soft); }
.game__icon {
  width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--cream-dark); color: var(--olive);
  box-shadow: inset 0 0 0 1px rgba(88, 89, 29, .1);
}
.game__icon .icon { font-size: 1.5rem; opacity: .6; }
.game--open .game__icon {
  background: var(--kawung-light) var(--olive);
  box-shadow: 0 8px 16px -8px rgba(88, 89, 29, .7);
}
.game--open .game__icon { position: relative; }
.mini-card {
  position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 62 / 80;
  margin: -25% 0 0 -20%; border-radius: 5px; border: 2px solid var(--yellow);
  background: var(--cream-light) center / cover no-repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}
.mini-card--a { background-image: url("../assets/img/memory/tjitjak.webp"); transform: translateX(-26%) rotate(-10deg); }
.mini-card--b { background-image: url("../assets/img/memory/lenny.webp"); transform: translateX(26%) rotate(8deg); animation: mini-wiggle 3s ease-in-out infinite; }
@keyframes mini-wiggle { 50% { transform: translateX(26%) rotate(14deg); } }
.game--open .game__name { color: var(--olive-dark); font-weight: 600; }
@keyframes game-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
[data-deadline][hidden] { display: none; }
.games__note { margin: 14px 0 0; font-size: .8125rem; color: var(--ink-soft); }

.deadline {
  display: block; margin: 0 0 24px;
  font-size: .9375rem; color: var(--ink-soft);
}

@media (min-width: 900px) {
  .giftcard__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .giftcard__text { text-align: left; }
  .games { margin-inline: 0; }
  .stamp { width: 108px; height: 132px; }
  .deadline { display: flex; align-items: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .squiggle { background-size: 100% .32em; transition: none; }
  .hero__layer, .hero__title { transform: none !important; }
  .hero__swing { transform: none; }
  .header-gecko svg { left: 3%; transform: rotate(90deg); }
  .gcard, .gcard__inner { transition: none; }
}

/* Mobiel: uitsnede van de achtergrond (achtergrond-mobiel.avif) */
@media (max-width: 899px) {
  .hero__layer--bg img { object-position: 58% 55%; }
}
