/* Feliks · the site (promoted from prototypes/strooisel1-2): the letter on card paper, a scatter of the card's crayon forms, Let's go styled like the date, everything playful. */
:root {
  --paper: #f7f2ef;
  --paper-white: #ffffff;
  --indigo: #3a3b78;
  --groen: #3d5e2a;
  --oranje: #e0712d;
  --mosterd: #e2b23a;
  --bordeaux: #9b1e3f;
  --kobalt: #2d3f96;
  --hemel: #79aedb;
  --ink: #2f3050;
  --ink-soft: #6b6c86;
  --lijn: #d9d0c9;
  --lijn-zacht: #e9e1dc;
  --heart: #c4384e;
  --qr-light: #ffffff;

  --serif: Times, "Times New Roman", "Tinos", serif; /* Times (macOS) first; Windows/iPhone fall back to Times New Roman */
  --sans: "DIN Next LT Pro", "DIN Pro", "D-DIN", "Barlow", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.gift-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
}

/* the faintest grain, so the field reads as the card's paper without competing with the motifs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.kaart { overflow-x: clip; text-align: center; }
.kolom {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.75rem 4.5rem;
}

/* strooisel: forms sit behind the text, anchored to their section. Every one is playful (speels-*), which gives it taps back.
   The tilt uses the rotate property, not transform: speels.js adds its gestures on top of it, and a gesture's own
   transform-origin would otherwise swing a rotated transform off its spot. */
.motief {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  height: auto;
  transform: translateY(var(--drift, 0px));
  rotate: var(--draai, 0deg);
  will-change: transform;
}
svg.motief { aspect-ratio: 1; }
.voorkant, .brief, .groet { position: relative; }
.voorkant > :not(.motief, .strooi), .brief > :not(.motief, .strooi), .groet > :not(.motief, .strooi) { position: relative; z-index: 1; }

/* small groups of at most three berries and dots in the gutters; each child is offset by hand so the group reads as a loose sprinkle */
.strooi { position: absolute; z-index: 0; width: 0; height: 0; pointer-events: none; }
.strooi .motief { --drift-f: .04; }
.strooi .vorm-bes { width: 20px; }
.strooi .vorm-stip { width: 13px; }
.strooi-a { right: 14%; top: calc(50% - 6.4rem); }
.strooi-a .vorm-stip { left: 0; top: 0; }
.strooi-b { right: -.6rem; top: 4.1rem; }
.strooi-b .vorm-bes:nth-child(1) { left: -12px; top: 0; }
.strooi-b .vorm-stip { left: -4px; top: 24px; } /* outside the letter's line boxes, so a tap reaches it */
.strooi-b .vorm-bes:nth-child(3) { left: -6px; top: 40px; --draai: 12deg; }
.strooi-c { left: -1.6rem; top: 17.5rem; }
.strooi-c .vorm-bes { left: 0; top: 0; --draai: -8deg; }
.strooi-d { right: -1.4rem; bottom: 1.2rem; }
.strooi-d .vorm-stip { left: -6px; top: -26px; }
.strooi-d .vorm-bes { left: -20px; top: -8px; }
.strooi-e { left: -1.2rem; top: .2rem; }
.strooi-e .vorm-stip { left: 0; top: 0; }
.strooi-f { right: 1.2rem; top: 1.4rem; }
.strooi-f .vorm-bes { left: 0; top: 0; }
.strooi-f .vorm-stip { left: 24px; top: 16px; }
/* first screen, extra inks: two green drops low left, burgundy dashes high right, a red arc low right */
/* extra card figures in the first screen: one per spot, a mix of big and small, spread over the empty paper
   above Let's go, below the date and along the sides (percentages are of the 100svh header) */
.extra .motief { left: 0; top: 0; }
.extra .groot { width: 46px; }
.extra .middel { width: 30px; }
.extra .klein { width: 20px; }
.x1 { left: 5%;   top: 68%; } .x1 .motief { --draai: -24deg; }
.x2 { left: 33%;  top: 79%; } .x2 .motief { --draai: -52deg; }
.x3 { right: 9%;  top: 15%; } .x3 .motief { --draai: 12deg; }
.x4 { left: 15%;  top: 9%;  } .x4 .motief { --draai: -16deg; }
.x5 { right: 6%;  top: 76%; } .x5 .motief { --draai: 18deg; }
.x6 { left: 58%;  top: 6%;  } .x6 .motief { --draai: -30deg; }
.x7 { right: 34%; top: 88%; } .x7 .motief { --draai: -10deg; }

/* voorkant: fits the viewport */
.voorkant {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 2.5rem;
}

/* Let's go styled exactly like the date under the name (size, weight, tracking) */
.letsgo {
  margin: 0 0 1.6rem;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .14em;
  padding-left: .14em;
  color: var(--groen);
}

.naamblok { display: inline-grid; justify-items: center; }

.naam {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.6rem, 22vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--indigo);
}

/* the date on one line straight under the name: zero-padded, the same weight as Let's go, a size up for legibility */
.datum {
  margin: .9rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .3em;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .14em;
  padding-left: .14em; /* balances the trailing tracking so the line sits on the name's axis */
  color: var(--groen);
}
.datum .punt { color: var(--groen); }

/* the fruit lives in the first screen: the banana above-left of the name, the orange by the date's right */
.motief-sinaas { width: clamp(60px, 16vw, 92px); right: -2px; top: calc(50% + 6rem); --draai: 14deg; --drift-f: .12; }
.motief-banaan { width: 68px; left: 6px; top: calc(50% - 9.6rem); --draai: -24deg; --drift-f: -.06; }

/* icon row as in version A: thin line icons (peer, bakfiets, truitje) between two short rules, all in the date's green */
.symbolen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin: -.5rem auto 3.5rem;
  color: var(--groen);
}
.symbolen::before, .symbolen::after { content: ""; flex: 0 0 2.5rem; height: 1px; background: var(--lijn); }
.symbolen .icon { height: 24px; width: auto; display: block; }

.icon { display: inline-block; vertical-align: middle; }

/* the letter */
.brief {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.brief p { margin: 0 0 1.45em; }
.brief p:last-child { margin-bottom: 0; }
.brief + .brief { margin-top: 2.5rem; }

.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--indigo);
  margin-top: 2.2em !important;
}

/* the slinger as a thin divider between the letter's two parts (same spot as in S2) */
.scheiding { margin: 2.2rem auto; line-height: 0; }
.vorm-slinger { width: clamp(120px, 40vw, 170px); height: auto; }

/* bird tracks: the card's light-blue sprig (takje) is a bird's footprint. A little bird hops across the column
   between the letter and the sign-off: the prints alternate a lower and an upper row and lean a bit more each hop. */
.spoor { position: relative; height: 58px; margin: 2.4rem auto 0; max-width: 30ch; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stap { position: absolute; width: 22px; height: 22px; rotate: var(--hoek); }
.stap:nth-child(1) { left: 4%; top: 32px; --hoek: 84deg; }
.stap:nth-child(2) { left: 17%; top: 18px; --hoek: 70deg; }
.stap:nth-child(3) { left: 30%; top: 28px; --hoek: 82deg; }
.stap:nth-child(4) { left: 43%; top: 12px; --hoek: 66deg; }
.stap:nth-child(5) { left: 56%; top: 22px; --hoek: 78deg; }
.stap:nth-child(6) { left: 69%; top: 4px; --hoek: 60deg; }
.stap:nth-child(7) { left: 82%; top: 14px; --hoek: 72deg; }

/* three V birds in the first screen, sparse: two high above the name, one beside the orange */
.vogels { inset: 0; width: auto; height: auto; }
.vogel { width: 22px; }
.vogel-1 { left: 26%; top: calc(50% - 13rem); --draai: -10deg; }
.vogel-2 { left: 44%; top: calc(50% - 15.5rem); width: 16px; --draai: 6deg; }
.vogel-3 { right: -.3rem; top: calc(50% + 3.2rem); width: 19px; --draai: -14deg; }

/* sign-off */
.groet { margin-top: 3.5rem; font-size: 1.0625rem; }
.groet p { margin: 0; }
/* shrink-wrapped lines leave the paper beside them free, so the berries there still get taps */
.groet > p { width: fit-content; margin-inline: auto; }
.ouders { margin-top: .35em !important; font-weight: 400; }
.hartjes { margin-top: 1.25rem !important; color: var(--heart); display: flex; justify-content: center; gap: 0 !important; }
.hartjes .icon { width: 28px; height: 28px; padding: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* hearts: slow reveal on first sight, balloon float on tap (js/site.js adds the classes) */
.hartjes.wacht .icon { opacity: 0; }
.hartjes.verschijn .icon { animation: hart-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hartjes.verschijn .icon:nth-child(2) { animation-delay: .35s; }
.hartjes.verschijn .icon:nth-child(3) { animation-delay: .7s; }
.hartjes .icon.zweef { animation: hart-zweef 2.2s cubic-bezier(.4, 0, .6, 1) forwards; }
.hartjes .icon.weg { opacity: 0; }
.hartjes .icon.terug { animation: hart-in .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hart-in {
  from { opacity: 0; transform: translateY(6px) scale(.4); }
  60% { opacity: 1; transform: translateY(0) scale(1.12); }
  to { opacity: 1; transform: none; }
}
@keyframes hart-zweef {
  0% { transform: none; opacity: 1; }
  12% { transform: translateY(4px) scale(1.25); }
  40% { transform: translate(calc(var(--zwaai) * -.6), -60px) rotate(-8deg) scale(1.1); }
  70% { transform: translate(var(--zwaai), -130px) rotate(6deg) scale(1); opacity: .8; }
  100% { transform: translate(calc(var(--zwaai) * .3), -200px) rotate(-4deg) scale(.9); opacity: 0; }
}

.ouders-noot { display: block; margin-top: .3em; font-family: var(--sans); font-weight: 300; font-size: .9rem; color: var(--ink-soft); }
.ouders-noot .icon-kat { height: 1.3em; width: auto; vertical-align: -.32em; margin: 0 -.12em; color: var(--oranje); }

/* payment button, four styles, all in card inks */
.bijdrage { margin: 3.25rem 0 0; }
.bijdrage-knop {
  min-height: 48px;
  border: 0;
  background: none;
  color: var(--indigo);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bijdrage-knop:focus-visible { outline: 1px solid var(--indigo); outline-offset: 4px; }

.knop-rand {
  padding: .95em 1.9em;
  border: 1px solid var(--indigo);
  border-radius: 999px;
  outline: 1px solid var(--lijn);
  outline-offset: 3px;
  font: 400 .74rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.knop-rand:hover { background: var(--indigo); color: var(--paper); }
.knop-rand:focus-visible { outline-color: var(--indigo); }

.knop-icoon {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1px solid var(--oranje);
  border-radius: 50%;
  outline: 1px solid var(--lijn);
  outline-offset: 3px;
  color: var(--oranje);
  transition: background-color .25s;
}
.knop-icoon .icon { width: 30px; height: 30px; display: block; margin: 2px auto 0; }
.knop-icoon:hover { background: var(--paper-white); }
.knop-icoon .munt {
  position: absolute;
  left: calc(50% - 4px);
  top: 19px;
  width: 7px;
  height: 7px;
  border: 1.4px solid var(--mosterd);
  border-radius: 50%;
  opacity: 0;
}

.knop-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 44px;
  transform: rotate(-3deg);
  transition: transform .35s cubic-bezier(.3, .7, .3, 1);
}
.knop-label:hover, .knop-label:focus-visible { transform: rotate(0); }
.knop-label .touwtje {
  position: absolute;
  left: 0;
  top: calc(50% - 20px);
  width: 64px;
  height: 40px;
  fill: none;
  stroke: var(--mosterd);
  stroke-width: 1.1;
  stroke-linecap: round;
}
.knop-label .label-vorm {
  position: relative;
  display: grid;
  gap: .15rem;
  padding: .8rem 1.5rem .8rem 2.1rem;
  background: var(--paper-white);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--indigo) 10%, transparent);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  text-align: left;
}
.knop-label .label-vorm::before {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--mosterd);
}
.knop-label .label-klein { font: 400 .66rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--groen); }
.knop-label .label-groot { font: italic 400 1.35rem/1.15 var(--serif); color: var(--indigo); }

.knop-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .25rem;
  font: italic 400 1.2rem/1.3 var(--serif);
}
.knop-link .link-tekst {
  background: linear-gradient(var(--oranje), var(--oranje)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .35s;
}
.knop-link:hover .link-tekst { background-size: 0 1px; background-position: 100% 100%; }
.knop-link .pijl { width: 22px; height: 12px; fill: none; stroke: var(--oranje); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.knop-link:hover .pijl { transform: translateX(4px); }

@media (prefers-reduced-motion: no-preference) {
  .knop-icoon .munt { animation: munt-val 1.2s 2.6s ease-in both; }
  .knop-icoon:hover .munt { animation: munt-val 1.2s ease-in both; }
  .knop-icoon:hover .icon { animation: varken-wiebel .6s .75s ease-in-out; }
}
@keyframes munt-val {
  0% { opacity: 0; transform: translateY(-16px); }
  25% { opacity: 1; }
  70% { opacity: 1; transform: translateY(3px); }
  100% { opacity: 0; transform: translateY(6px); }
}
@keyframes varken-wiebel {
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(5deg); }
}

/* payment: a clean white card with one motif peeking over its corner. Mobile is a bottom sheet. */
.gift-dialog {
  --qr-ink: var(--ink);
  --qr-paper: var(--qr-light);
  inset: auto 0 0 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  max-height: 90svh;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--paper-white);
  color: var(--ink);
  box-shadow: 0 -18px 60px color-mix(in srgb, var(--indigo) 25%, transparent);
  overflow: visible;
}
.gift-dialog[open] { display: flex; flex-direction: column; }
.gift-dialog::backdrop {
  background: color-mix(in srgb, var(--indigo) 42%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.gift-kaart {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.4rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  text-align: left;
}

.gift-titel {
  margin: 0 2.75rem 1.25rem 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.005em;
  color: var(--indigo);
  text-wrap: balance;
}
/* the close cross is pinned to the card's top-right corner, outside the scrolling body */
.gift-sluit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lijn);
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.gift-sluit svg { width: 16px; height: 16px; }
.gift-sluit:hover { color: var(--indigo); border-color: var(--indigo); }

[data-gift] { display: flex; flex-direction: column; gap: 1.5rem; }
.gift-rows { order: 1; }
.gift-qr {
  order: 2;
  align-self: center;
  width: 150px;
  border: 1px solid var(--lijn-zacht);
}
.gift-qr svg { display: block; width: 100%; height: auto; }
/* no amount yet: an empty frame the size of the QR, with the instruction (js/site.js) */
.gift-qr.is-leeg { background: none; border: 0; padding: 0; }
.gift-qr-leeg {
  margin: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1.5px dashed var(--lijn);
  border-radius: 2px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}


.gift-hint {
  margin: 0 0 1rem;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--groen);
}

.gift-sluit:focus-visible { outline: 1px solid var(--indigo); outline-offset: 2px; }

.copyrow {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label state" "value state";
  column-gap: .75rem;
  width: 100%;
  padding: .75rem 0;
  border: 0;
  border-top: 1px solid var(--lijn-zacht);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.copyrow:last-child { border-bottom: 1px solid var(--lijn-zacht); }
.copyrow-label {
  grid-area: label;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.copyrow-value {
  grid-area: value;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.copyrow-state {
  grid-area: state;
  align-self: center;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .35em .8em;
  transition: background-color .25s, color .25s;
}
.copyrow:hover .copyrow-state { background: var(--indigo); color: var(--paper-white); }
.copyrow.copied .copyrow-value { color: var(--groen); }
.copyrow.copied .copyrow-state { background: var(--groen); color: var(--paper-white); border-color: var(--groen); }
.copyrow.copy-failed .copyrow-value { user-select: all; -webkit-user-select: all; }
.copyrow.copy-failed .copyrow-state,
.copyrow.copy-failed:hover .copyrow-state { background: none; color: var(--heart); border-color: currentColor; }
.copyrow:focus-visible { outline: 1px solid var(--indigo); outline-offset: 2px; }

/* Bedrag: empty by default, the visitor fills it in; the QR follows it. */
.gift-bedrag { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--lijn-zacht); cursor: text; }
.gift-bedrag-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.gift-bedrag-field { display: inline-flex; align-items: baseline; gap: .25em; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--indigo); border-bottom: 1px solid var(--oranje); }
.gift-bedrag input { all: unset; width: 4.2ch; font: inherit; color: inherit; text-align: left; -moz-appearance: textfield; }
.gift-bedrag input::placeholder { color: var(--ink-soft); opacity: 1; font-style: italic; }
.gift-bedrag input::-webkit-outer-spin-button, .gift-bedrag input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gift-bedrag:focus-within .gift-bedrag-field { border-bottom-color: var(--indigo); }

/* desktop: centred white card, the QR beside the rows */
@media (min-width: 600px) {
  .gift-dialog {
    inset: 0;
    margin: auto;
    width: min(640px, calc(100% - 3rem));
    max-height: calc(100svh - 3rem);
    border-radius: 6px;
    box-shadow: 0 24px 70px color-mix(in srgb, var(--indigo) 30%, transparent);
  }
  .gift-kaart { padding: 2rem 2.25rem 2.25rem; border-radius: 6px; }
  .gift-sluit { top: 14px; right: 14px; }
  .gift-titel { font-size: 1.9rem; margin: 0 3rem 1.6rem 0; }
  [data-gift] { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
  .gift-rows, .gift-qr { order: 0; }
  .gift-qr { width: 200px; align-self: center; }
  }

/* desktop: the motifs breathe in the wide margins, larger, further from the column */
@media (min-width: 720px) {
  .kolom { padding-inline: 2rem; }
  .letsgo { font-size: 1.5rem; }
  .naam { font-size: clamp(7rem, 12vw, 10rem); }
  .datum { font-size: 1.5rem; }
  .motief-sinaas { right: -7vw; top: 56%; }
  .motief-banaan { width: 130px; left: -12vw; top: 30%; --draai: -28deg; }
  .strooi .vorm-bes { width: 26px; }
  .strooi .vorm-stip { width: 16px; }
  .strooi-a { right: -2vw; top: 22%; }
  .strooi-b { right: -8vw; top: 5rem; }
  .strooi-c { left: -7vw; top: 20rem; }
  .strooi-d { right: -6vw; bottom: 2rem; }
  .strooi-e { left: -5vw; top: .4rem; }
  .strooi-f { right: -3vw; top: 1.2rem; }
  .extra .groot { width: 64px; }
  .extra .middel { width: 40px; }
  .extra .klein { width: 26px; }
  .x1 { left: -9vw;  top: 62%; }
  .x2 { left: 10%;   top: 82%; }
  .x3 { right: -6vw; top: 12%; }
  .x4 { left: 4%;    top: 6%;  }
  .x5 { right: -10vw; top: 72%; }
  .x6 { left: 62%;   top: 4%;  }
  .x7 { right: 18%;  top: 86%; }
  .spoor { max-width: 26rem; height: 64px; }
  .stap { width: 26px; height: 26px; }
  .vogel { width: 30px; }
  .vogel-1 { left: 10%; top: 18%; }
  .vogel-2 { left: 24%; top: 10%; width: 22px; }
  .vogel-3 { right: -1vw; top: 40%; width: 26px; }
}
@media (min-width: 1100px) {
  .motief-sinaas { right: -10vw; }
  .motief-banaan { left: -18vw; top: 28%; }
  .strooi-a { right: -5vw; }
  .strooi-b { right: -13vw; }
  .strooi-c { left: -11vw; }
  .strooi-d { right: -10vw; }
  .strooi-e { left: -8vw; }
  .strooi-f { right: -7vw; }
  .x1 { left: -15vw; }
  .x3 { right: -12vw; }
  .x5 { right: -16vw; }
  .vogel-1 { left: 2%; }
  .vogel-2 { left: 18%; }
  .vogel-3 { right: -4vw; }
}

/* staggered fade-in of the words; the forms and icons soft-load on their own as they scroll into view (js/speels.js) */
@media (prefers-reduced-motion: no-preference) {
  .letsgo, .naamblok, .brief, .groet, .bijdrage {
    opacity: 0;
    transform: translateY(8px);
    animation: rijs .9s cubic-bezier(.2, .6, .2, 1) forwards;
  }
  .letsgo { animation-delay: .1s; }
  .naamblok { animation-delay: .35s; }
  .brief, .groet { animation-delay: 1.1s; }
  .bijdrage { animation-delay: 1.3s; }
  @keyframes rijs { to { opacity: 1; transform: none; } }

  /* the trail: hidden until it scrolls into view, then one print at a time; a tap wipes it print by print and replays it */
  .spoor .stap { opacity: 0; }
  .spoor.loopt .stap { animation: stap-in .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n) * .3s); }
  .stap:nth-child(1) { --n: 0; } .stap:nth-child(2) { --n: 1; } .stap:nth-child(3) { --n: 2; } .stap:nth-child(4) { --n: 3; }
  .stap:nth-child(5) { --n: 4; } .stap:nth-child(6) { --n: 5; } .stap:nth-child(7) { --n: 6; }
  @keyframes stap-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
  .spoor.wist .stap { animation: stap-uit .3s ease-in both; animation-delay: calc(var(--n) * .08s); }
  @keyframes stap-uit { from { opacity: 1; } to { opacity: 0; translate: 0 3px; } }

  .gift-dialog[open] { animation: sheet-in .42s cubic-bezier(.2, .8, .2, 1) both; }
  .gift-dialog[open]::backdrop { animation: fade-in .35s ease both; }
  .gift-dialog.is-closing { animation: sheet-out .28s cubic-bezier(.4, 0, .8, .4) both; }
  .gift-dialog.is-closing::backdrop { animation: fade-out .28s ease both; }
  @media (min-width: 600px) {
    .gift-dialog[open] { animation-name: card-in; }
    .gift-dialog.is-closing { animation-name: card-out; }
  }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  @keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
  @keyframes card-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes fade-out { to { opacity: 0; } }
}

/* copy state as a hand-drawn icon (js/vormen.js "kopie", a checkmark after copying); the text feedback is for screen readers */
.copyrow .copyrow-state.is-icoon, .copyrow.copied .copyrow-state.is-icoon, .copyrow.copy-failed .copyrow-state.is-icoon {
  border: 0; padding: 0; background: none; box-shadow: none; min-width: 0; line-height: 0;
}
.copyrow-icoon { width: 26px; height: 26px; display: block; transition: transform .2s; }
.copyrow:hover .copyrow-icoon { transform: rotate(-6deg) scale(1.08); }
.copyrow.copy-failed .copyrow-state.is-icoon { line-height: 1.2; font-size: .72rem; color: var(--ink-soft); }
.copyrow-melding { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
