/* ---------- Tinker 35.0 — shared styles ---------- */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --blue: #2e4bff;
  --yellow: rgb(249, 189, 17);
  --ink: #111114;
  --paper: #f7f6f2;

  --chapter-pad: 12vw;       /* spacer at both ends of the track */

  --hero: 14vw;              /* chapter titles */
  --milestone: 10vw;         /* secondary hero (year markers in vroeger) */

  --label: clamp(0.7rem, 0.55vw + 0.55rem, 1.15rem);
  --body:  clamp(1rem,  0.4vw  + 0.85rem, 1.45rem);

  --orb-size: clamp(34px, 3vmin, 70px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
* { cursor: none !important; }

/* While the Tally popup is open, hand control back to the system cursor. */
body.tally-open, body.tally-open * { cursor: auto !important; }
body.tally-open .cursor { display: none; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  overscroll-behavior: none;
}
body.lock-scroll { overflow: hidden; }
body.dragging * { user-select: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  color: #fff;
  mix-blend-mode: difference;
  transform: translate3d(-200px, -200px, 0);
}
.cursor-icon {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(.6,0,.2,1), opacity 0.18s ease;
  pointer-events: none;
}
.cursor.state-default .icon-default,
.cursor.state-link    .icon-link,
.cursor.state-image   .icon-image,
.cursor.state-content .icon-content,
.cursor.state-grab    .icon-grab,
.cursor.state-close   .icon-close,
.cursor.state-plus    .icon-plus,
.cursor.state-minus   .icon-minus,
.cursor.state-text    .icon-text {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.cursor.state-grab .icon-grab { transform: translate(-50%, -50%) scale(1.1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.75rem 2.25rem;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }
/* The links sit over the light header strip, so a solid ink colour reads
   cleanly. (The header used to use mix-blend difference for white-on-anything
   legibility, but that inverted the new full-colour PNG logo to invisible.) */
.home-link, .lang-switch {
  color: var(--ink);
}

.logo {
  text-align: center;
  line-height: 1;
}
.logo .word {
  font-weight: 700;
  font-size: clamp(1.4rem, 0.7vw + 1rem, 2.4rem);
  letter-spacing: -0.02em;
}
.logo .word .dot { color: var(--blue); }
.logo .thirtyfive {
  font-weight: 300;
  font-size: clamp(2rem, 1.2vw + 1.4rem, 3.6rem);
  letter-spacing: -0.04em;
  display: block;
  margin-top: -0.1rem;
}
.logo .thirtyfive .dot { color: var(--blue); }
.logo .tagline {
  font-size: clamp(0.65rem, 0.25vw + 0.55rem, 1rem);
  font-weight: 400;
  letter-spacing: normal;
  margin-top: 0.15rem;
  opacity: 0.7;
}

/* ---------- Back-to-tinker.nl link ---------- */
.home-link {
  position: absolute;
  top: 1.75rem;
  left: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.85rem, 0.4vw + 0.65rem, 1.2rem);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: lowercase;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.home-link:hover { opacity: 1; }
.home-arrow { transition: transform 0.2s ease; }
.home-link:hover .home-arrow { transform: translate(1.5px, -1.5px); }

/* ---------- Language switch ---------- */
.lang-switch {
  position: absolute;
  top: 1.75rem;
  right: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.85rem, 0.4vw + 0.65rem, 1.2rem);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: lowercase;
}
.lang-btn {
  opacity: 0.45;
  text-transform: lowercase;
  transition: opacity 0.2s ease;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-sep { opacity: 0.35; }

/* ---------- Staff-preview gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  padding: 2rem;
}
html.gate-ok .gate { display: none; }
.gate, .gate * { cursor: auto !important; }
.gate-form[hidden], .gate-choice[hidden] { display: none; }   /* the flex rules below would otherwise beat [hidden] */
.gate-inner {
  width: min(92vw, 30rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}
.gate-logo .logo-mark { height: clamp(3.5rem, 13vw, 6rem); width: auto; }
.gate-eyebrow {
  font-size: 0.72rem;
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 600;
  opacity: 0.5;
}
.gate-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--ink);
}
.gate-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  outline: none;
}
.gate-form button {
  border: none;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  letter-spacing: normal;
  padding: 0 1.4rem;
  text-transform: lowercase;
  transition: background 0.2s ease;
}
.gate-form button:hover { background: var(--blue); }
.gate.shake .gate-form { border-color: #d23; animation: gate-shake 0.4s; }
@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.gate-choice { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.gate-q { font-size: 1rem; }
.gate-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.gate-btns button {
  border: 1px solid var(--ink);
  padding: 0.95rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: lowercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.gate-btns button:hover { background: var(--ink); color: var(--white); }
.gate-btns button[data-go="invite"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.gate-btns button[data-go="invite"]:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Home: horizontal scroll stage ---------- */
.scroll-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
}

.track {
  position: absolute;
  top: 0; left: 0;
  height: 100vh;
  width: max-content;
  display: flex;
  will-change: transform;
}

.track-spacer {
  flex: 0 0 var(--chapter-pad);
  height: 100%;
}

.chapter {
  position: relative;
  flex: 0 0 80vw;          /* default; per-chapter overrides below */
  height: 100vh;
  overflow: visible;
}
.chapter#vroeger { flex-basis: 260vw; }
.chapter#nu      { flex-basis: 60vw; }
.chapter#toekomst{ flex-basis: 100vw; }

.chapter-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--hero);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  white-space: nowrap;
  color: var(--ink);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  text-transform: lowercase;
}
.chapter-title.anchor-left {
  left: 0;
  transform: translateY(-50%);
}
.chapter-title.anchor-right {
  left: auto;
  right: 0;
  transform: translateY(-50%);
}

.milestone {
  position: absolute;
  top: 50%;
  font-size: var(--hero);          /* match the section titles exactly */
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--ink);
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}

/* image placeholder cards — flat, brutalist, viewport-scaled */
.card {
  position: absolute;
  background: #d8d4c8;
  overflow: hidden;
  will-change: transform;
  z-index: 3;
  transform-origin: center;
}

.card::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7em 0.9em;
  font-size: var(--label);
  letter-spacing: normal;
  text-transform: lowercase;
  color: rgba(0,0,0,0.65);
  font-weight: 500;
}

.card.tone-a { background: #f0c2a6; }
.card.tone-b { background: #a8b8e0; }
.card.tone-c { background: #c8dab2; }
.card.tone-d { background: #e4a8b4; }
.card.tone-e { background: var(--blue); color: #fff; }
.card.tone-e::after { color: rgba(255,255,255,0.85); }
.card.tone-f { background: #1a1a1a; color: #fff; }
.card.tone-f::after { color: rgba(255,255,255,0.7); }
.card.tone-g { background: #f4d35e; }

/* tone color tokens (used by polaroid frame + concept fills) */
.tone-a { --tone: #f0c2a6; }
.tone-b { --tone: #a8b8e0; }
.tone-c { --tone: #c8dab2; }
.tone-d { --tone: #e4a8b4; }
.tone-e { --tone: #2e4bff; }
.tone-f { --tone: #1a1a1a; }
.tone-g { --tone: #f4d35e; }

/* ---------- Polaroid cards (colored frame, photo in the middle) ---------- */
.card.polaroid {
  background: var(--tone);
  border: none;
  padding: 0.9vmin;
  display: flex;
  flex-direction: column;
  height: auto;
}
.card.polaroid::after { content: none; }   /* disable the old overlay label */

.polaroid .pol-photo {
  flex: 1;
  min-height: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.08);
  background-size: cover;
  background-position: center;
}
.polaroid .pol-photo.is-blank {
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 10px, transparent 10px 20px);
}
/* Separate thumbnail: scaled to fit, never cropped (keeps any transparency). */
.polaroid .pol-photo.is-thumb {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
}

/* ---------- Decorative sketch on the timeline background ---------- */
/* Positioned as a sibling of the card (not a child) so it stays put while the
   card bobs/parallaxes over it. Sits low in the stack — on the background. */
.chapter-sketch {
  position: absolute;
  z-index: 1;                        /* below cards (3) and the big words (2) */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  mix-blend-mode: multiply;          /* drops the white in line-art PNGs */
  pointer-events: none;
}

/* ---------- Bare-images overview (no frame, caption on hover) ---------- */
/* overflow visible so the title can sit just below the floating image. */
.bare-images .card.polaroid { background: transparent; padding: 0; overflow: visible; }
.bare-images .polaroid .pol-photo.is-blank { display: none; }   /* concept cards have no image */
.bare-images .card.polaroid.is-concept { display: none; }       /* …so drop the whole card: nothing to see, nothing to click */

/* The hovered card lifts above its neighbours (the scale itself is applied in
   JS so it composes with the bob/parallax transform and the orb mask tracks it). */
.bare-images .card.polaroid:hover { z-index: 5; }

/* Title: hidden, left-aligned just under the image; slides + fades in on hover.
   top:100% tracks the image bottom (so it adapts to each card's size); width
   matches the image so longer titles truncate with an ellipsis; forced ink
   colour so it stays legible on the paper below even for white-text tones. */
.bare-images .polaroid .pol-cap {
  display: block;
  position: absolute;
  top: calc(100% + 0.7vmin);
  left: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-0.45rem);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
.bare-images .card.polaroid:hover .pol-cap {
  opacity: 1;
  transform: translateY(0);
}

.polaroid .pol-cap {
  padding: 0.7vmin 0.2vmin 0.25vmin;
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: lowercase;
  color: inherit;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
}
.polaroid .pol-cap b { font-weight: 700; }

/* ---------- Logo (SVG wordmark) ---------- */
.logo-mark {
  display: block;
  height: clamp(4.5rem, 6vw, 8rem);
  width: auto;
  margin: 0 auto;
}

/* ---------- Compact bottom timeline (brutalist, interactive) ---------- */
.timeline {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: clamp(0.7rem, 0.15vw + 0.62rem, 0.92rem);
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.t-step {
  color: rgba(17, 17, 20, 0.42);
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  padding: 0.6rem 1.4rem;
  border-right: 1px solid var(--ink);
  background: transparent;
  text-align: center;
}
.t-step:last-of-type { border-right: none; }
.t-step.is-active {
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
}
.t-step.is-nav:hover {
  color: var(--ink);
  background: rgba(17,17,20,0.05);
}
.t-step.is-nav.is-active:hover {
  color: var(--white);
  background: var(--ink);
}

.t-progress {
  grid-column: 1 / -1;
  height: 5px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.t-progress .t-fill {
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

/* ---------- Hint ---------- */
.scroll-hint {
  position: fixed;
  bottom: 1.75rem;
  right: 2.25rem;
  z-index: 40;
  font-size: clamp(0.7rem, 0.25vw + 0.55rem, 1rem);
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 500;
  mix-blend-mode: difference;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
body.invite-on .scroll-hint { opacity: 0; pointer-events: none; }

/* ---------- Floating blue orbs ---------- */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.orb {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--orb-size);
  height: var(--orb-size);
  border-radius: 50%;
  background: var(--blue);
  will-change: transform;
}

/* SVG-based orbs (home page only — supports per-pixel yellow mask) */
.orbs-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.orbs-svg #dark-mask-shapes text {
  fill: #fff;
  /* No text-transform; source already lowercase. */
}

/* ---------- Modal (image lightbox) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal.visible { pointer-events: auto; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.82);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.visible .modal-backdrop { opacity: 1; }

.modal-image {
  position: fixed;
  z-index: 1;
  overflow: hidden;
  will-change: top, left, width, height;
  transition:
    top    0.42s cubic-bezier(.7,0,.18,1),
    left   0.42s cubic-bezier(.7,0,.18,1),
    width  0.42s cubic-bezier(.7,0,.18,1),
    height 0.42s cubic-bezier(.7,0,.18,1);
}
.modal-image.tone-a { background: #f0c2a6; }
.modal-image.tone-b { background: #a8b8e0; }
.modal-image.tone-c { background: #c8dab2; }
.modal-image.tone-d { background: #e4a8b4; }
.modal-image.tone-e { background: var(--blue); }
.modal-image.tone-f { background: #1a1a1a; }
.modal-image.tone-g { background: #f4d35e; }
.modal-image.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Two cross-fading layers: thumbnail (what's on screen) → full image as it grows. */
.modal-image .mi-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.modal-image .mi-thumb.is-contain { background-size: contain; }
.modal-image .mi-full {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-image.swap .mi-full { opacity: 1; }

.modal-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(82vw, 56rem);
  transform: translate(-50%, 110%);
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.5rem, 1.5vw + 1rem, 3rem) clamp(1.5rem, 1.8vw + 1rem, 3.5rem) clamp(1.75rem, 2vw + 1rem, 3.75rem);
  z-index: 2;
  transition: transform 0.38s cubic-bezier(.7,0,.18,1);
}
.modal.open .modal-panel {
  transform: translate(-50%, 0%);
  transition-delay: 0.22s;
}

.modal-panel .eyebrow {
  font-size: clamp(0.7rem, 0.2vw + 0.6rem, 0.95rem);
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
.modal-panel h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
  text-transform: lowercase;
}
.modal-panel p {
  font-size: var(--body);
  line-height: 1.5;
  max-width: 44rem;
  opacity: 0.78;
}

.modal-close {
  position: absolute;
  top: 1.75rem;
  right: 2.25rem;
  z-index: 3;
  color: #fff;
  font-size: clamp(0.8rem, 0.3vw + 0.6rem, 1.1rem);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: lowercase;
  mix-blend-mode: difference;
}

/* ---------- Invite bar (wide, thin, centered booking-style) ---------- */
.invite-dock {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(96vw, 1120px);
  display: none;
}
.invite-dock.enabled { display: block; }
body.invite-on .timeline { display: none; }

.invite-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--ink);
  overflow: hidden;
  /* White halo lifts the bar out of the page's visual noise. */
  box-shadow: 0 0 0 8px var(--white);
  animation: invite-rise 0.55s cubic-bezier(.7,0,.18,1) both;
}
@keyframes invite-rise {
  from { transform: translateY(130%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ib-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.7rem 1.25rem;
  border-right: 1px solid var(--ink);
  min-width: 0;
}

.ib-intro { background: var(--ink); color: var(--white); justify-content: center; }
.ib-intro .ib-kicker {
  font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1;
}
.ib-intro .ib-event {
  font-size: clamp(0.6rem, 0.13vw + 0.55rem, 0.72rem);
  letter-spacing: normal;
  text-transform: lowercase;
  opacity: 0.65;
}

.ib-field { flex: 1; }
.ib-cell > label {
  font-size: clamp(0.58rem, 0.12vw + 0.52rem, 0.7rem);
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 600;
  opacity: 0.5;
}
.ib-field input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.2rem);
  font-weight: 500;
  outline: none;
  padding: 0;
}
.ib-field input::placeholder { color: rgba(17,17,20,0.32); }
.ib-field.invalid input { color: #d23; }
.ib-field.invalid input::placeholder { color: rgba(221,51,34,0.55); }
.ib-field.invalid > label { color: #d23; opacity: 1; }

/* persons stepper */
.ib-persons { align-items: flex-start; }
.ib-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.05rem;
}
.ib-stepper button {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.ib-stepper button:hover { background: var(--ink); color: var(--white); }
.ib-stepper .ib-count {
  min-width: 1.6rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* submit */
.ib-submit {
  border: none;
  background: var(--blue);
  color: var(--white);
  padding: 0 clamp(1.25rem, 2vw, 2.5rem);
  font-size: clamp(0.78rem, 0.25vw + 0.68rem, 1rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: lowercase;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ib-submit:hover { background: var(--ink); }

/* success overlay */
.ib-success {
  position: absolute;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
}
.ib-success[hidden] { display: none; }
.ib-success .ibs-mark {
  font-size: 1.6rem;
  color: var(--blue);
  animation: spin-in 0.6s cubic-bezier(.7,0,.18,1) both;
}
@keyframes spin-in {
  from { transform: rotate(-90deg) scale(0.2); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}
.ib-success .ibs-text {
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.3rem);
  font-weight: 500;
}
.ib-success .ibs-text b { font-weight: 700; }
.ib-success .ibs-reset {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  padding: 0.55rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.ib-success .ibs-reset:hover { background: var(--ink); color: var(--white); }

@media (max-width: 760px) {
  .invite-dock { left: 1rem; right: 1rem; transform: none; width: auto; }
  .invite-bar { flex-wrap: wrap; }
  .ib-intro { width: 100%; border-right: none; border-bottom: 1px solid var(--ink); }
  .ib-field { flex: 1 1 45%; border-bottom: 1px solid var(--ink); }
  .ib-persons { flex: 1 1 45%; border-bottom: 1px solid var(--ink); }
  .ib-submit { flex: 1 1 100%; padding: 0.9rem; }
  .ib-success { position: static; width: 100%; padding: 0.9rem 1.25rem; }
}

/* ---------- Generic pages (videos, invite) ---------- */
.page {
  min-height: 100vh;
  padding: clamp(6rem, 8vw, 12rem) clamp(1.5rem, 2.25vw, 4rem) 4rem;
}

.page h1 {
  font-size: clamp(4rem, 12vw, 22vw);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: lowercase;
  margin-bottom: 3rem;
}
.page h1 .accent { color: var(--blue); }

.page .lede {
  font-size: clamp(1.2rem, 0.6vw + 1rem, 2.2rem);
  max-width: 50rem;
  line-height: 1.4;
  margin-bottom: 4rem;
}

/* video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 1vw, 2rem);
}
.video-card {
  grid-column: span 4;
  aspect-ratio: 16/10;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(1rem, 1vw + 0.5rem, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(.7,0,.3,1);
}
.video-card:hover { transform: translateY(-6px); }
.video-card.feature {
  grid-column: span 8;
  aspect-ratio: auto;
  min-height: 60vh;
  background: var(--blue);
}
.video-card .play {
  width: clamp(48px, 3.5vw, 96px);
  height: clamp(48px, 3.5vw, 96px);
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(0.85rem, 0.4vw + 0.7rem, 1.4rem);
}
.video-card .meta {
  font-size: var(--label);
  letter-spacing: normal;
  text-transform: lowercase;
  opacity: 0.7;
}
.video-card h3 {
  font-size: clamp(1.3rem, 1vw + 0.8rem, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 30rem;
}
.video-card.feature h3 {
  font-size: clamp(2rem, 1.8vw + 1rem, 4rem);
  max-width: 40rem;
}

/* invite */
.invite-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 3vw, 6rem);
  align-items: start;
}
.invite-form {
  background: var(--white);
  padding: clamp(1.75rem, 2vw + 1rem, 4rem);
}
.invite-form label {
  display: block;
  font-size: var(--label);
  letter-spacing: normal;
  text-transform: lowercase;
  font-weight: 500;
  opacity: 0.65;
  margin-bottom: 0.4rem;
}
.invite-form .field { margin-bottom: clamp(1rem, 1vw + 0.5rem, 2rem); }
.invite-form input, .invite-form textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  font: inherit;
  font-size: var(--body);
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}
.invite-form input:focus, .invite-form textarea:focus {
  border-bottom-color: var(--blue);
}
.invite-form textarea { resize: vertical; min-height: 5rem; }
.invite-form button {
  margin-top: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 2rem;
  font-weight: 500;
  letter-spacing: normal;
  font-size: var(--body);
  transition: background 0.3s ease, transform 0.3s ease;
}
.invite-form button:hover { background: var(--blue); transform: translateY(-2px); }

.invite-detail {
  font-size: var(--body);
  line-height: 1.6;
}
.invite-detail .row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.invite-detail .row span:first-child {
  font-size: var(--label);
  letter-spacing: normal;
  text-transform: lowercase;
  opacity: 0.6;
  font-weight: 500;
}

@media (max-width: 800px) {
  :root { --hero: 24vw; --milestone: 16vw; }
  .video-card, .video-card.feature { grid-column: span 12; }
  .invite-wrap { grid-template-columns: 1fr; }
  .site-header { padding: 1rem 1.25rem; }
}

/* ============================================================
   MOBILE — vertical free-floating stack (toekomst → nu → verleden)
   ============================================================ */
.mobile-stage, .m-orbs { display: none; }

@keyframes m-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes m-float {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(4px, -9px); }
  50%      { transform: translate(-4px, -3px); }
  75%      { transform: translate(3px, 7px); }
}

@media (max-width: 768px) {
  /* hand control back to the touch/native cursor */
  * { cursor: auto !important; }
  .cursor { display: none !important; }

  /* clip horizontal at the <html>/viewport level so the <body> is NOT a scroll
     container (a scrolling body eats wheel events and breaks page scroll). */
  html { overflow-x: hidden; }
  body { overflow-x: visible; overflow-y: visible; height: auto; }
  body.lock-scroll { overflow: hidden; }

  /* the whole desktop horizontal experience is off on mobile */
  .scroll-stage, .orbs-svg, .timeline, .scroll-hint { display: none !important; }

  .site-header { padding: 1.1rem; mix-blend-mode: normal; color: var(--ink); }
  .home-link, .lang-switch { top: 1.1rem; }
  .home-link { left: 1.1rem; }
  .lang-switch { right: 1.1rem; }
  .logo-mark { height: clamp(4rem, 17vw, 5.5rem); }

  .mobile-stage { display: block; position: relative; padding-top: 7rem; padding-bottom: 4rem; }
  body.invite-on .mobile-stage { padding-bottom: 15.5rem; }

  .m-section { position: relative; width: 100%; }
  .m-title {
    position: absolute;
    top: 3vw; left: 4vw; right: 4vw;
    font-size: 18vw;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.85;
    text-transform: lowercase;
    color: var(--ink);
    z-index: 1;
    pointer-events: none;
  }

  /* floating image cards */
  .m-card {
    position: absolute;
    display: block;
    background: none;
    padding: 0;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    animation: m-bob var(--bd, 7s) ease-in-out var(--bdl, 0s) infinite;
    will-change: transform;
  }
  .m-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.06);
  }
  .m-photo.is-thumb { background-size: contain; background-repeat: no-repeat; background-color: transparent; }
  .m-photo.is-blank {
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 10px, transparent 10px 20px);
  }
  .m-cap {
    font-size: 0.72rem; line-height: 1.2; padding: 0.35rem 0.1rem 0;
    text-transform: lowercase; display: flex; flex-wrap: wrap; gap: 0 0.35em;
  }
  .m-cap b { font-weight: 700; }
  .bare-images .m-cap { display: none; }   /* only images float, matching the desktop overview */

  /* concept cards (no image) float as coloured tiles + keep their text */
  .m-card.is-concept .m-photo { background: var(--tone); background-image: none; }
  .bare-images .m-card.is-concept .m-cap { display: flex; }

  /* confetti — blue + yellow orbs drifting over the page */
  .m-orbs { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
  .m-orb { position: absolute; will-change: transform; }   /* scroll parallax */
  .m-orb-dot {
    display: block;
    width: clamp(11px, 3.6vw, 22px); height: clamp(11px, 3.6vw, 22px);
    border-radius: 50%;
    background: var(--blue);
    animation: m-float var(--d, 9s) ease-in-out var(--dl, 0s) infinite;   /* gentle idle float */
    will-change: transform;
  }
  .m-orb-dot.is-yellow { background: var(--yellow); }

  /* sticky, full-width invite */
  .invite-dock { left: 0; right: 0; bottom: 0; transform: none; width: 100%; }
  .invite-bar { flex-wrap: wrap; border-left: none; border-right: none; border-bottom: none; }
  .ib-intro { width: 100%; border-right: none; border-bottom: 1px solid var(--ink); }
  .ib-field { flex: 1 1 50%; border-bottom: 1px solid var(--ink); }
  .ib-persons { flex: 1 1 50%; border-bottom: 1px solid var(--ink); border-right: none; }
  .ib-submit { flex: 1 1 100%; padding: 1rem; }
  .ib-success { position: static; width: 100%; padding: 0.9rem 1.1rem; flex-wrap: wrap; }
  /* once submitted, replace the fields with the confirmation (no stacking) */
  .invite-bar.is-done > .ib-cell,
  .invite-bar.is-done > .ib-submit { display: none; }

  /* modal: full-width image up top, text panel slides up below */
  .modal-panel { left: 0; width: 100%; transform: translate(0, 110%); padding: 1.25rem 1.25rem 1.75rem; }
  .modal.open .modal-panel { transform: translate(0, 0); }
}
