/* Concept: één nacht. De pagina scrolt van schemering via middernacht naar
   ochtendgloren; een maan reist mee langs de hemel. Bewust één (nacht)thema. */
:root {
  color-scheme: dark;
  --ink: #0b0c26;          /* middernachtblauw */
  --ink-2: #15173d;        /* iets lichter vlak */
  --velvet: #7c1631;       /* theaterdoek */
  --velvet-deep: #4a0b1d;
  --gold: #e3bd6a;         /* bladgoud */
  --gold-soft: #b8975a;
  --pearl: #f3ecd9;        /* maanlicht, tekst */
  --pearl-dim: #c7c0b0;
  --haze: #9a90d6;         /* droomlila */
  --line: rgba(227, 189, 106, .28);

  --sky-top: #1d1747;      /* wordt door JS bijgestuurd met de scroll */
  --sky-bottom: #0b0c26;

  --f-display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Alegreya", "Iowan Old Style", Georgia, serif;
  --f-label: "Alegreya Sans SC", "Gill Sans", "Trebuchet MS", sans-serif;

  --step-0: clamp(1.05rem, 1rem + .25vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(3.4rem, 2rem + 8vw, 9rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--pearl);
  background: var(--ink);
  background-image: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--pearl); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- achtergrondlagen ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.moon {
  position: fixed; z-index: 1; pointer-events: none;
  width: clamp(90px, 14vw, 180px); aspect-ratio: 1;
  left: 0; top: 0;
  transform: translate(var(--mx, 70vw), var(--my, 12vh));
  will-change: transform;
}
.moon-face {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.55), transparent 22%),
    radial-gradient(circle at 62% 58%, rgba(170,150,110,.35) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 66%, rgba(170,150,110,.28) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 32%, rgba(170,150,110,.25) 0 5%, transparent 6%),
    radial-gradient(circle at 45% 45%, #fbf3dc, #e9d6a6 70%, #c9ad74);
  box-shadow: 0 0 60px 10px rgba(243, 222, 160, .28), 0 0 160px 40px rgba(154, 144, 214, .18);
  opacity: var(--moon-o, 1);
}
.shadow-guide {
  position: fixed; z-index: 2; pointer-events: none;
  width: 280px; height: 280px; left: -140px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(154,144,214,.16), rgba(154,144,214,.05) 40%, transparent 70%);
  transform: translate(var(--sx, -400px), var(--sy, -400px));
  opacity: 0; transition: opacity .6s;
}
body.has-pointer .shadow-guide { opacity: 1; }

main, .footer { position: relative; z-index: 3; }

/* ---------- doek ---------- */
.curtain { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: none; }
.curtain-closed .curtain, .curtain-opening .curtain { display: block; }
.curtain-half {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.35) 0, rgba(0,0,0,0) 3%, rgba(255,255,255,.07) 5.5%, rgba(0,0,0,0) 8%, rgba(0,0,0,.35) 11%),
    linear-gradient(180deg, var(--velvet), var(--velvet-deep));
  transition: transform 2.2s cubic-bezier(.7, 0, .2, 1);
}
.curtain-half.left { left: 0; transform-origin: left; }
.curtain-half.right { right: 0; transform-origin: right; }
.curtain-valance {
  position: absolute; left: 0; right: 0; top: 0; height: 9vh;
  background:
    radial-gradient(ellipse at 50% 0, transparent 60%, rgba(0,0,0,.4) 61%) 0 100% / 12vh 4vh repeat-x,
    linear-gradient(180deg, var(--velvet-deep), var(--velvet));
  border-bottom: 3px solid var(--gold-soft);
  transition: transform 1.6s 1.2s ease-in;
}
.curtain-opening .curtain-half.left { transform: translateX(-100%) scaleX(.6); }
.curtain-opening .curtain-half.right { transform: translateX(100%) scaleX(.6); }
.curtain-opening .curtain-valance { transform: translateY(-110%); }

/* ---------- taalknop ---------- */
.lang {
  position: fixed; z-index: 40;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: max(16px, calc(env(safe-area-inset-left, 0px) + 16px));
  display: inline-flex; padding: 3px; gap: 2px;
  background: rgba(11,12,38,.72); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.lang button {
  font: 700 .82rem var(--f-label); letter-spacing: .1em; color: var(--pearl-dim);
  background: none; border: 0; border-radius: 999px; padding: .35em .8em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--pearl); }

/* ---------- algemene layout ---------- */
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 760px; }
.section { padding-block: clamp(5rem, 12vh, 9rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40rem; }
.eyebrow {
  margin: 0; font: 500 .9rem var(--f-label); letter-spacing: .22em; text-transform: lowercase;
  color: var(--gold);
}
h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font-family: var(--f-display); font-size: var(--step-3); line-height: 1.05; letter-spacing: .01em; }
h3 { font-family: var(--f-body); font-weight: 500; font-size: var(--step-1); line-height: 1.25; }
.section-lede { margin: .4rem 0 0; color: var(--pearl-dim); max-width: 38rem; }

/* ---------- opening ---------- */
.hero {
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.2rem;
  padding-block: 18vh 10vh;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 8vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.title {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: var(--step-4); line-height: .9; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap;
}
.title-word { display: inline-block; }
.title .luna {
  font-style: italic; color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 20%, #fff3cc 45%, var(--gold) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin: 0; font-size: var(--step-2); line-height: 1.25; font-style: italic; max-width: 22ch; text-wrap: balance; }
.hero-from { margin: .6rem 0 0; font: 500 1rem var(--f-label); letter-spacing: .12em; color: var(--pearl-dim); }
.hero-from strong { color: var(--pearl); font-weight: 700; }
.scroll-cue {
  margin-top: 2.5rem; display: inline-flex; flex-direction: column; align-items: center; gap: .2rem;
  font: 500 .85rem var(--f-label); letter-spacing: .24em; color: var(--gold); text-decoration: none;
}
.scroll-cue svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- brief ---------- */
.letter {
  position: relative;
  background:
    linear-gradient(180deg, rgba(243,236,217,.07), rgba(243,236,217,.03));
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 5vw, 3.4rem);
  border-radius: 2px;
}
.letter::before, .letter::after {
  content: ""; position: absolute; width: 38px; height: 38px; border: 1px solid var(--gold);
}
.letter::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.letter::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.letter p { margin: 0 0 1.1em; max-width: 62ch; }
.letter-greet { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.2; color: var(--gold); }
.letter-sign { margin-top: 1.8em !important; font-style: italic; }
.signature { font-family: var(--f-display); font-style: normal; font-size: var(--step-2); color: var(--pearl); line-height: 1.4; }
.insta { font: 500 .95rem var(--f-label); letter-spacing: .08em; font-style: normal; }

/* ---------- verhaal ---------- */
.acts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 620px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .acts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.act { display: grid; gap: .55rem; align-content: start; min-width: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.act-icon { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: .4rem; }
.act-num { margin: 0; font: 500 .85rem var(--f-label); letter-spacing: .18em; color: var(--haze); }
.act p:last-child { margin: 0; color: var(--pearl-dim); }
.moral {
  margin: clamp(4rem, 9vw, 7rem) auto 0; max-width: 20ch; text-align: center;
  font-family: var(--f-display); font-size: var(--step-3); line-height: 1.1; text-wrap: balance;
}
.moral p { margin: 0; }
.moral::before, .moral::after { content: "✦"; display: block; font-size: 1rem; color: var(--gold); margin: 1rem 0; }

/* reveal: altijd zichtbaar, alleen een zachte opkomst als JS het toestaat */
.reveal { transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; }
.js-reveal .reveal:not(.in) { opacity: .25; transform: translateY(18px); filter: blur(3px); }

/* ---------- foto's ---------- */
.gallery { columns: 3 260px; column-gap: clamp(1rem, 2.5vw, 1.8rem); }
.photo {
  break-inside: avoid; margin: 0 0 clamp(1rem, 2.5vw, 1.8rem);
  background: var(--pearl); padding: 10px 10px 0; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transform: rotate(var(--tilt, 0deg)); transition: transform .5s ease, box-shadow .5s ease;
  cursor: zoom-in; border: 0; display: block; width: 100%; text-align: left; font: inherit; color: var(--ink);
}
.photo:hover, .photo:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 40px rgba(154,144,214,.25); }
.photo img { width: 100%; height: auto; background: var(--ink-2); }
.photo figcaption, .photo .cap { display: block; padding: .55rem .2rem .7rem; font: italic .95rem/1.35 var(--f-body); color: #3a3550; min-height: 2.4rem; }
.photo.placeholder { cursor: default; }
.photo.placeholder .ph {
  aspect-ratio: var(--ar, 4/5);
  background:
    radial-gradient(circle at 30% 30%, rgba(227,189,106,.35), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(154,144,214,.45), transparent 45%),
    linear-gradient(160deg, #241e57, #0f1030);
  display: grid; place-items: center; color: var(--pearl-dim); font: 500 .85rem var(--f-label); letter-spacing: .2em;
}

/* ---------- cijfers ---------- */
.numbers {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.number { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .3rem; min-width: 0; }
@media (max-width: 600px) { .number dt { font-size: .78rem; letter-spacing: .03em; } }
.number dd { margin: 0; font-family: var(--f-display); font-size: clamp(2.3rem, 1.4rem + 5vw, 5.6rem); line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.number dt { font: 500 .95rem/1.35 var(--f-label); letter-spacing: .08em; color: var(--pearl-dim); max-width: 18ch; }
.numbers-note { margin: 3rem 0 0; font-size: .9rem; color: var(--pearl-dim); font-style: italic; max-width: 60ch; }

/* ---------- herinneringen ---------- */
.privacy {
  position: relative; margin: .6rem 0 0; max-width: 38rem; padding-left: 1.6rem;
  font-size: .92rem; line-height: 1.5; color: var(--pearl-dim);
}
.privacy::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 15px; height: 18px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Cpath d='M7.5 0A4.5 4.5 0 0 0 3 4.5V7H1.5A1.5 1.5 0 0 0 0 8.5v8A1.5 1.5 0 0 0 1.5 18h12a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 13.5 7H12V4.5A4.5 4.5 0 0 0 7.5 0zm0 2A2.5 2.5 0 0 1 10 4.5V7H5V4.5A2.5 2.5 0 0 1 7.5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Cpath d='M7.5 0A4.5 4.5 0 0 0 3 4.5V7H1.5A1.5 1.5 0 0 0 0 8.5v8A1.5 1.5 0 0 0 1.5 18h12a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 13.5 7H12V4.5A4.5 4.5 0 0 0 7.5 0zm0 2A2.5 2.5 0 0 1 10 4.5V7H5V4.5A2.5 2.5 0 0 1 7.5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.memories-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .memories-layout { grid-template-columns: 1fr; } }
.memory-form {
  display: grid; gap: 1.1rem; padding: clamp(1.3rem, 3vw, 2rem);
  background: rgba(21,23,61,.75); border: 1px solid var(--line); border-radius: 4px;
  backdrop-filter: blur(4px);
}
.field { display: grid; gap: .35rem; }
.field label { font: 500 .95rem var(--f-label); letter-spacing: .06em; color: var(--pearl); }
.opt { color: var(--pearl-dim); font-weight: 400; letter-spacing: .02em; }
.hint { margin: 0; font-size: .88rem; color: var(--pearl-dim); font-style: italic; }
input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--pearl);
  background: rgba(11,12,38,.7); border: 1px solid rgba(243,236,217,.22); border-radius: 3px;
  padding: .7em .8em;
}
textarea { resize: vertical; min-height: 5.5em; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,189,106,.18); }
input::placeholder, textarea::placeholder { color: rgba(199,192,176,.55); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  justify-self: start; font: 700 1rem var(--f-label); letter-spacing: .08em;
  color: var(--ink); background: var(--gold); border: 1px solid var(--gold);
  padding: .8em 1.4em; border-radius: 999px; cursor: pointer; transition: background .3s, transform .3s;
}
.btn:hover { background: #f0d48f; transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(227,189,106,.12); }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: #b9e3b0; }
.form-status.err { color: #f2a7a7; }

.memory-wall { display: grid; gap: 1.2rem; min-width: 0; }
.wall-empty {
  margin: 0; padding: 2.4rem 1.6rem; text-align: center; color: var(--pearl-dim); font-style: italic;
  border: 1px dashed var(--line); border-radius: 4px;
}
.memory {
  position: relative; min-width: 0;
  padding: 1.4rem 1.5rem 1.2rem 1.5rem;
  background: linear-gradient(160deg, rgba(243,236,217,.08), rgba(154,144,214,.06));
  border-radius: 4px; border: 1px solid rgba(243,236,217,.12);
  animation: float-in .9s ease both;
}
.memory::before { content: "✦"; position: absolute; top: -.7rem; left: 1.2rem; color: var(--gold); font-size: 1.1rem; text-shadow: 0 0 12px var(--gold); }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } }
.memory-text { margin: 0 0 .9rem; font-size: 1.08rem; overflow-wrap: anywhere; white-space: pre-line; }
.memory-thanks { margin: 0 0 .9rem; padding-left: .9rem; border-left: 2px solid var(--gold-soft); color: var(--pearl-dim); font-style: italic; font-size: .98rem; overflow-wrap: anywhere; white-space: pre-line; }
.memory-thanks b { font-style: normal; font-weight: 500; font-family: var(--f-label); letter-spacing: .06em; color: var(--gold); font-size: .85rem; display: block; }
.memory-by { margin: 0; font: 500 .92rem var(--f-label); letter-spacing: .08em; color: var(--gold); }
.memory-by span { color: var(--pearl-dim); font-weight: 400; }

/* ---------- aftiteling ---------- */
.credits-frame {
  position: relative; max-height: 70vh; overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.credits-frame.static { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.credits { text-align: center; padding-block: 3rem; display: grid; gap: 3rem; }
.credits.rolling { animation: roll var(--roll-dur, 40s) linear forwards; }
@keyframes roll { from { transform: translateY(70vh); } to { transform: translateY(calc(-100% + 0px)); } }
.credit-role { margin: 0 0 .7rem; font: 500 .9rem var(--f-label); letter-spacing: .24em; color: var(--gold); }
.credit-name { margin: 0; font-family: var(--f-display); font-size: var(--step-2); line-height: 1.2; }
.credit-small { margin: .2rem 0 0; font-style: italic; color: var(--pearl-dim); font-size: .95rem; }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.credit-list li { display: grid; gap: 0; }
.credit-list .n { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.2; }
.credit-list .r { font-size: .9rem; font-style: italic; color: var(--pearl-dim); }
.credit-list .empty { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.2; }
#rollCredits { display: block; margin: 2rem auto 0; }

.jokie {
  position: absolute; right: 4%; bottom: -6px; z-index: 2;
  width: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(58%); transition: transform .5s cubic-bezier(.3,1.6,.5,1);
  opacity: .9;
}
.jokie:hover, .jokie:focus-visible { transform: translateY(18%) rotate(-6deg); }
.jokie svg { width: 100%; height: auto; overflow: visible; }
.j-hat { fill: var(--velvet); stroke: var(--gold); stroke-width: 1.2; }
.j-bell { fill: var(--gold); }
.j-face { fill: #f6e3c8; }
.j-eye { fill: #2a2140; }
.j-smile { fill: none; stroke: #2a2140; stroke-width: 1.4; stroke-linecap: round; }
.j-cheek { fill: #e9a0a0; opacity: .7; }
.j-collar { fill: var(--pearl); stroke: var(--gold-soft); stroke-width: 1; }
.j-body { fill: var(--haze); }

/* ---------- finale ---------- */
.finale { text-align: center; padding-block: clamp(7rem, 22vh, 14rem) clamp(5rem, 14vh, 9rem); }
.finale-line { margin: 0; font-family: var(--f-display); font-size: var(--step-3); line-height: 1.1; text-wrap: balance; }
.finale-line, .finale-night, .finale-doek, .footer, .footer a { transition: color 1.2s ease; }
.finale-night { margin: 2.2rem 0 0; font-style: italic; font-size: var(--step-1); color: var(--pearl-dim); }
.finale-doek { margin: 3rem 0 0; font: 500 .9rem var(--f-label); letter-spacing: .4em; color: var(--gold); }
body.dawn .finale-line { color: #2b1c3c; }
body.dawn .finale-night { color: #4a3358; }
body.dawn .finale-doek { color: var(--velvet); }

.footer {
  padding-block: 2.5rem calc(env(safe-area-inset-bottom, 0px) + 5rem);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  text-align: center; font-size: .88rem; color: var(--pearl-dim);
}
.footer p { margin: .3rem auto; max-width: 60ch; }
body.dawn .footer { color: rgba(43,28,60,.85); }
body.dawn .footer a { color: #6b2340; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  background: rgba(6,6,20,.94); padding: calc(env(safe-area-inset-top, 0px) + 3rem) max(8px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 2rem) max(8px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; min-width: 0; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { font-style: italic; color: var(--pearl-dim); text-align: center; }
.lb-close, .lb-nav { background: none; border: 0; color: var(--pearl); font: 300 2.6rem/1 var(--f-body); cursor: pointer; padding: .3em .4em; }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .5rem); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-nav:hover, .lb-close:hover { color: var(--gold); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem);
  transform: translateX(-50%); max-width: min(92vw, 30rem);
  background: var(--pearl); color: var(--ink); padding: 1rem 1.3rem; border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: 1rem; text-align: center;
  animation: float-in .5s ease both;
}
.toast b { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; display: block; color: var(--velvet); }

/* ---------- rustige beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal .reveal:not(.in) { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 600px) {
  .moon { width: 84px; }
  .hero { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
}
