/* royswart.nl: cv-site in de stijl van het e-ticket-cv.
   Layout: gradient-ticket als hero (stub links, info rechts), rollende balk, daarna één wit vel
   met de blokken programma, line-up, events en een drieluik polsbandjes / soundcheck / richting. */
:root {
  --page: #efedf6;          /* lichtpaarse ondergrond, zoals rond het cv */
  --sheet: #ffffff;
  --ink: #15142b;
  --muted: #5f5d78;
  --hair: #e6e3f0;
  --violet: #5b3df5;        /* labels, accenten */
  --violet-soft: #ece8ff;
  --dot: #ff6b3d;           /* bulletkleur uit het cv */
  --hero-a: #15125a;
  --hero-b: #3a22c4;
  --hero-c: #7a45ec;
  --on-hero: #ffffff;
  --radius: 28px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f0e1c;
    --sheet: #17162b;
    --ink: #f1effa;
    --muted: #aaa7c4;
    --hair: #2b2946;
    --violet: #a08cff;
    --violet-soft: #26224a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  background: var(--page); color: var(--ink); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
h1, h2 { margin: 0; letter-spacing: -.03em; text-wrap: balance; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- topknoppen ---------- */
.nav { margin: 0; padding: 22px clamp(16px, 2.5vw, 32px) 26px; display: flex; justify-content: flex-end; align-items: center; }
.lang {
  min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px;
  font-weight: 600; font-size: .92rem; border: 1px solid var(--hair); background: var(--sheet); color: var(--ink);
}
.lang { padding: 5px; gap: 3px; cursor: pointer; font-family: var(--mono); font-size: .95rem; min-height: 50px; box-shadow: 0 8px 20px -14px rgba(40, 30, 110, .45); }
.lang span { padding: 10px 15px; border-radius: 999px; line-height: 1; }
html[lang="nl"] .lang [data-lang="nl"],
html[lang="en"] .lang [data-lang="en"] { background: var(--ink); color: var(--sheet); }
@media (max-width: 520px) {
  .nav { padding-inline: 12px; gap: 6px; }
  .lang span { padding: 9px 12px; }
}

/* ---------- hero: het ticket ---------- */
.hero { max-width: 1192px; margin: 0 auto; padding: 0 16px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
  color: var(--on-hero);
  background:
    radial-gradient(60% 80% at 8% 100%, rgba(255, 120, 90, .28), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(160, 120, 255, .45), transparent 60%),
    linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
}
.hero-card::before {  /* lichtbundels, zoals op het cv */
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255,255,255,.09) 40%, transparent 46%),
    linear-gradient(115deg, transparent 55%, rgba(255,255,255,.07) 58%, transparent 66%),
    linear-gradient(95deg, transparent 70%, rgba(255,255,255,.06) 72%, transparent 78%);
}
.hero-card > * { position: relative; }

/* ticketstrook met QR */
.hero-stub {
  --notch: 12px;
  position: relative; display: block; text-decoration: none; color: #15142b; background: #fff;
  border-radius: 20px; transform: rotate(-2.5deg);
  box-shadow: 0 30px 50px -24px rgba(5, 3, 40, .65), 0 2px 0 rgba(255,255,255,.4) inset;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  /* ronde uitsparingen ter hoogte van de perforatie */
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--perf), transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% var(--perf), transparent 98%, #000) right / 51% 100% no-repeat;
  --perf: 236px;
}
.hero-stub:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 36px 60px -24px rgba(5, 3, 40, .7); }
.stub-top { display: block; padding: 18px 22px 20px; text-align: center; }
.stub-kicker { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hero-b); margin-bottom: 12px; }
.qr-frame { position: relative; display: block; width: 168px; max-width: 100%; margin: 0 auto; padding: 12px; }
.qr-frame img { display: block; width: 100%; height: auto; }
.qr-frame::before, .qr-frame::after {   /* zoekerhoekjes */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--hero-b), var(--hero-b)) top left / 22px 3px,
    linear-gradient(var(--hero-b), var(--hero-b)) top left / 3px 22px,
    linear-gradient(var(--hero-b), var(--hero-b)) top right / 22px 3px,
    linear-gradient(var(--hero-b), var(--hero-b)) top right / 3px 22px,
    linear-gradient(var(--hero-b), var(--hero-b)) bottom left / 22px 3px,
    linear-gradient(var(--hero-b), var(--hero-b)) bottom left / 3px 22px,
    linear-gradient(var(--hero-b), var(--hero-b)) bottom right / 22px 3px,
    linear-gradient(var(--hero-b), var(--hero-b)) bottom right / 3px 22px;
  background-repeat: no-repeat; border-radius: 4px;
}
.qr-frame::after { display: none; }
.qr-scan {
  position: absolute; left: 8px; right: 8px; top: 12px; height: 2px; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--hero-c), transparent);
  box-shadow: 0 0 12px 2px rgba(122, 69, 236, .55);
}
.hero-stub:hover .qr-scan { animation: qr-scan 1.4s ease-in-out infinite; }
@keyframes qr-scan { 0% { top: 12px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 14px); opacity: 0; } }
.stub-bottom { display: block; padding: 16px 22px 18px; border-top: 2px dashed #dcd8ea; }
.stub-cols { display: grid; grid-template-columns: 1fr auto; gap: 12px; text-align: left; }
.stub-cols small { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #8a87a3; }
.stub-cols b { font-family: var(--mono); font-size: .88rem; letter-spacing: .08em; }
.stub-cta {
  display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  font-size: .8rem; font-weight: 600; color: #fff; background: #15142b; transition: background .2s;
}
.hero-stub:hover .stub-cta { background: var(--hero-b); }
.hero-stub:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin: 0 0 14px; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 0 0 18px; max-width: 15ch; text-wrap: balance; }
.hero-meta { margin: 0; font-size: 1.05rem; }
.hero-dates { margin: 4px 0 0; font-size: .85rem; opacity: .85; }
.person { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.avatar {
  width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden;
  transition: transform .35s cubic-bezier(.3,1.4,.5,1); transform-origin: center;
  border: 3px solid rgba(255,255,255,.85); background: rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar:hover { transform: scale(1.3); }
.avatar-face { font-weight: 800; font-size: 1.4rem; letter-spacing: -.04em; }
.name { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.05; user-select: none; }
.role-line { margin: 2px 0 0; opacity: .9; }
.hero-study { margin: 18px 0 0; font-size: .82rem; opacity: .8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ghost-btn {
  min-height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 10px;
  border-radius: 14px; text-decoration: none; font-weight: 600;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff;
  transition: background .15s;
}
.ghost-btn:hover { background: rgba(255,255,255,.24); }
.ghost-btn[hidden] { display: none; }
.ghost-btn .plus { width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--hero-b); display: grid; place-items: center; font-weight: 800; }
.ghost-btn.cv-link { padding-left: 20px; }

.perforation {   /* gestippelde scheurlijn met halve inkepingen */
  position: relative; height: 28px; margin: 0 6px;
  background: linear-gradient(90deg, var(--hair) 50%, transparent 0) 0 50% / 14px 2px repeat-x;
}

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; gap: 28px; }
  .hero-stub { order: 2; transform: none; max-width: 340px; width: 100%; --perf: 0px; -webkit-mask: none; mask: none; }
  .stub-top { display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px; }
  .stub-kicker { margin: 0; flex: 1; }
  .qr-frame { width: 112px; order: -1; padding: 8px; margin: 0; }
}

/* ---------- rollende balk ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--sheet); margin: 8px 0 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 50s linear infinite; padding: 13px 0; font-family: var(--mono); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.marquee-track span { padding: 0 20px; white-space: nowrap; }
.marquee-track span::after { content: "◆"; margin-left: 40px; color: var(--violet); font-size: .7em; vertical-align: .15em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- het witte vel ---------- */
.content {
  max-width: 1160px; margin: 40px auto 0; background: var(--sheet); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px); box-shadow: 0 30px 60px -40px rgba(40, 30, 110, .35);
}
@media (max-width: 1192px) { .content { margin-inline: 16px; } }
.block + .block { margin-top: 80px; }
.label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 26px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.label b { color: var(--violet); font-weight: 700; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--hair); margin-left: 8px; }
.hint { color: var(--muted); font-size: .95rem; margin: -10px 0 22px; }

/* programma */
.about-grid { display: grid; gap: 40px; }
.about-text { columns: 2 340px; column-gap: 48px; }
.about-text p { break-inside: avoid; }
.about-text p:first-child { column-span: all; max-width: 34em; margin-bottom: 1.2em; }
.about-text p { margin: 0 0 1em; color: var(--muted); }
.about-text p:first-child { color: var(--ink); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--violet-soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fact dt { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--violet); white-space: nowrap; }
.fact dd { margin: 0; font-size: .9rem; color: var(--ink); line-height: 1.4; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact dt { white-space: normal; } }

/* line-up */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card { perspective: 1400px; }
.card button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.card button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 22px; }
.card-inner { position: relative; width: 100%; min-height: 240px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card.flipped .card-inner { transform: rotateY(180deg); }
.card.hovered .card-inner { transform: rotateY(180deg); }

.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; padding: 22px; display: flex; flex-direction: column;
}
.card .front { background: var(--sheet); border: 1px solid var(--hair); overflow: hidden; }
.card .front > * { position: relative; }
.card .front > .front-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.front-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(.3); }
.front-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--sheet) 92%); }
.card .back {
  transform: rotateY(180deg); color: #fff; overflow-y: auto;
  background: linear-gradient(140deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
}
.front .stage {
  align-self: flex-start; font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--hero-b), var(--hero-c));
}
.front .period { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-top: 10px; }
.front .flip-icon { position: absolute; right: 20px; top: 18px; color: var(--muted); }
.front .role { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: auto 0 6px; text-wrap: balance; }
.front .company { color: var(--violet); font-weight: 600; }
.back .company { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.points { margin: 0 0 14px; padding-left: 1.1em; font-size: .92rem; line-height: 1.5; display: grid; gap: 7px; }
.points li::marker { color: var(--dot); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.back .back-label { display: none; }
.also { margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.also b, .also strong { color: var(--ink); font-weight: 600; }

/* aftermovie: fotomozaïek */
.gallery { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; margin: 0 0 16px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: var(--violet-soft); }
.shot-main { grid-row: span 3; }
.shot picture, .shot img { display: block; width: 100%; height: 100%; }
.shot img { object-fit: cover; aspect-ratio: 16 / 9; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shot-main img { aspect-ratio: auto; min-height: 100%; }
.shot:hover img { transform: scale(1.3); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(21, 20, 43, .78); color: #fff; padding: 6px 10px; border-radius: 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .shot-main { grid-column: 1 / -1; grid-row: auto; }
  .shot:not(.shot-main) img { aspect-ratio: 1; }
  .shot:not(.shot-main) figcaption { display: none; }
  .shot-main img { aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) { .gallery { gap: 8px; } }

/* events */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project {
  border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.project .body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.project-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--violet-soft); }
.project-media picture, .project-media img { display: block; width: 100%; height: 100%; }
.project-media img { object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.project:hover .project-media img { transform: scale(1.3); }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.project-feature .project-media { aspect-ratio: auto; min-height: 340px; }
.project-feature .body { align-content: center; padding: 28px 32px; }
.project-feature h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.project-feature p { font-size: 1rem; }
@media (max-width: 680px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .project-media { min-height: 0; aspect-ratio: 16 / 10; }
  .project-feature .body { padding: 16px 18px 20px; }
}
.project-media-empty {
  display: flex; align-items: flex-end; padding: 14px 16px;
  background: radial-gradient(70% 90% at 100% 0%, rgba(160, 120, 255, .45), transparent 60%), linear-gradient(120deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
}
.project-media-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.project:hover { border-color: var(--violet); transform: translateY(-2px); }
.project h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.project p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.project .go { font-weight: 600; font-size: .9rem; color: var(--violet); }
.project .go::after { content: " →"; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .project-grid { grid-template-columns: 1fr; } }

/* drieluik */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.bands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.band { font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hair); background: var(--sheet); }
.band-main { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.edu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.edu li { display: grid; gap: 1px; }
.edu strong { font-weight: 700; order: -1; }
.edu .period { font-family: var(--mono); font-size: .78rem; color: var(--muted); order: 1; }
.edu li > span:last-child { color: var(--muted); font-size: .95rem; }
.direction { margin: 0; color: var(--muted); }
.direction b { color: var(--ink); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; gap: 48px; } }

/* contact */
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: end;
  border-radius: 24px; padding: clamp(28px, 4.5vw, 48px); color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(160, 120, 255, .45), transparent 60%),
    linear-gradient(120deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
}
.label-light, .label-light b { color: rgba(255,255,255,.85); }
.label-light::after { background: rgba(255,255,255,.25); }
.contact-title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.02; }
.contact-sub { margin: 14px 0 0; opacity: .85; max-width: 46ch; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mail { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.5); word-break: break-all; }
.mail[hidden] { display: none; }
.phone { margin: 0; font-weight: 600; }
.phone a { text-decoration: none; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  min-height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 14px;
  text-decoration: none; font-weight: 600; background: #fff; color: var(--hero-b);
}
.socials a:hover { background: var(--violet-soft); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

.footer {
  max-width: 1160px; margin: 0 auto; padding: 24px 16px 44px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.footer p { margin: 0; }

/* ---------- pop-up "Voeg toe aan je team" ---------- */
.wallet-btn {
  display: inline-flex; align-items: center; gap: 13px; min-height: 68px; padding: 9px 24px 9px 13px;
  font: inherit; color: #fff; background: #000; border: 1px solid #a6a6a6; border-radius: 13px; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); transition: transform .15s, box-shadow .15s;
}
.wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.7); }
.wallet-btn:active { transform: translateY(1px); }
.wallet-icon { width: 44px; height: 34px; flex: none; overflow: visible; }
.w-new { opacity: 0; }
.wallet-btn.is-adding { animation: wallet-press .62s cubic-bezier(.3,1.4,.5,1); }
.wallet-btn.is-adding .w-new { animation: wallet-drop .5s cubic-bezier(.5,0,.6,1) forwards; }
.wallet-btn.is-adding .w-stack { animation: wallet-bounce .62s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes wallet-press { 0% { transform: scale(1); } 18% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes wallet-drop { 0% { opacity: 0; transform: translateY(-22px); } 25% { opacity: 1; } 75% { opacity: 1; transform: translateY(8px); } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes wallet-bounce { 0%, 50% { transform: none; } 70% { transform: scaleY(.88); } 100% { transform: none; } }
.wallet-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.wallet-text small { font-size: .94rem; font-weight: 500; letter-spacing: .01em; }
.wallet-text strong { font-size: 1.66rem; font-weight: 600; letter-spacing: -.015em; }
button.ghost-btn { font: inherit; font-weight: 600; cursor: pointer; }
.modal {
  width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: var(--sheet); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(10, 8, 40, .6);
}
.modal::backdrop { background: rgba(14, 12, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal .confetti { position: absolute; }
.modal-head {
  padding: 32px 32px 26px; color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(160, 120, 255, .5), transparent 60%),
    linear-gradient(120deg, var(--hero-a), var(--hero-b) 60%, var(--hero-c));
}
.modal-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin: 0 0 10px; padding-right: 48px; }
.modal-head h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; line-height: 1.08; padding-right: 32px; }
.modal-close {
  position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,.3); }
.modal-body { padding: 26px 32px 30px; }
.modal-body > p:first-child { margin: 0 0 20px; color: var(--muted); }
.modal-links { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.modal-links li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border: 1px solid var(--hair); border-radius: 14px;
}
.ml-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ml-value { font-weight: 600; text-decoration: none; word-break: break-all; }
.ml-value:hover { color: var(--violet); }
.ml-copy {
  font: inherit; font-size: .8rem; font-weight: 600; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hair); background: var(--violet-soft); color: var(--violet);
}
.modal-cta {
  display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; border-radius: 14px;
  text-decoration: none; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--hero-b), var(--hero-c));
  transition: filter .15s;
}
.modal-cta:hover { filter: brightness(1.1); }
.modal-fine { margin: 16px 0 0; text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 480px) {
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .modal-links li { grid-template-columns: minmax(0, 1fr) auto; }
  .ml-label { grid-column: 1 / -1; }
}

/* ---------- easter eggs ---------- */
.name.boing { animation: boing .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes boing { 0% { transform: scale(1); } 40% { transform: scale(1.04, .96); } 100% { transform: scale(1); } }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 200;
  background: var(--ink); color: var(--sheet); font-weight: 600; padding: 12px 22px; border-radius: 14px;
  max-width: calc(100% - 32px); text-align: center; box-shadow: 0 16px 30px -14px rgba(0,0,0,.4);
}
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
