/* =========================================================
   Nevi 24 — "scrapbook kertas kuning, ditulis pulpen biru"
   ========================================================= */

:root {
  /* color roles */
  --paper: #FFF2A1;        /* kertas kuning mentega */
  --paper-deep: #FFE36B;   /* sampul buku, highlight */
  --cream: #FFFDF3;        /* kartu, polaroid, surat */
  --ink: #2C34C7;          /* tinta pulpen kobalt */
  --ink-deep: #1B2185;     /* teks isi di atas kertas */
  --ink-soft: #5A61D9;     /* garis tipis */
  --coral: #FF7B6B;        /* api lilin, hati */
  --on-ink: #FFF8CC;       /* teks di atas biru */

  /* type */
  --f-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --f-body: "Figtree", "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* radii by purpose */
  --r-pill: 999px;
  --r-card: 28px;
  --r-section: 40px;
  --r-photo: 4px;

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms;
  --t-mid: 260ms;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
mark { background: linear-gradient(transparent 55%, var(--paper-deep) 55%); color: inherit; padding: 0 2px; }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { --wrap: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 16px; }

.hand { font-family: var(--f-hand); font-weight: 700; color: var(--ink); line-height: 1.05; }
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.025em;
}
.sub { font-size: 1.125rem; max-width: 52ch; }

/* hand-drawn strokes */
.doodle { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 2.5px solid var(--ink);
  font: 700 1rem/1 var(--f-body); text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 0 var(--ink-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn-ink:hover { box-shadow: 0 6px 0 var(--ink-deep); }
.btn-line:hover { background: var(--cream); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink-deep); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i .fill { fill: currentColor; stroke: none; }

.arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid currentColor; background: transparent;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.arrow:hover { transform: scale(1.08); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding-block: var(--s5);
}
.logo {
  font: 800 1.75rem/1 var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -0.03em;
}
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: var(--s6); }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink-deep);
  padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat;
  transition: background-size var(--t-mid) var(--ease-out);
}
.nav-links a:hover { background-size: 100% 2px; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s6);
  align-items: center;
  padding-block: var(--s6) var(--s9);
}
.hero-date { font-size: 1.6rem; transform: rotate(-3deg); display: inline-block; margin-bottom: var(--s3); }
.hero-title {
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  font-weight: 800; line-height: .92; letter-spacing: -0.04em;
}
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; }
.hero-title .name { position: relative; display: inline-block; white-space: nowrap; }
.hero-title .underline {
  position: absolute; left: -2%; right: -4%; bottom: -.12em; width: 106%; height: .3em;
  stroke-width: 5; overflow: visible;
}
.hero-lede { margin-top: var(--s5); font-size: 1.1875rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }

.stats {
  display: flex; margin: var(--s7) 0 0; padding: 0;
}
.stat { padding-inline: var(--s5); border-left: 2px solid var(--ink-soft); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dd { margin: 0; order: -1; }
.stat { display: flex; flex-direction: column; }
.stat dt { font-size: .875rem; color: var(--ink-deep); }
.num {
  font: 800 2.25rem/1.1 var(--f-display); color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.num-sm { font-size: 1.6rem; line-height: 1.4; }

.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo { position: relative; margin: 0; aspect-ratio: 3 / 4; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 999px 999px 24px 24px;
}
.photo-outline {
  position: absolute; inset: -12px -10px -10px -14px; width: calc(100% + 24px); height: calc(100% + 22px);
  stroke-width: 2.5; pointer-events: none;
}
.note { position: absolute; font-size: 1.55rem; z-index: 2; }
.note-steps { left: -112px; top: 6%; rotate: -10deg; }
.sparks { position: absolute; width: 58px; height: 58px; }
@media (max-width: 1240px) { .note-steps { display: none; } }
.sparks-a { left: -54px; top: 46%; }
.sparks-b { right: -60px; bottom: 34%; }
.bubble {
  position: absolute; right: -54px; top: -16px; width: 132px; height: 116px;
  display: grid; place-items: center; z-index: 2;
}
.bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--paper); }
.bubble .hand { position: relative; font-size: 1.45rem; text-align: center; transform: rotate(6deg) translateY(-4px); }

.books {
  position: absolute; right: -40px; bottom: -26px; z-index: 3;
  display: flex; flex-direction: column-reverse; align-items: flex-end;
}
.book {
  position: relative;
  font: 700 1.3rem/1 var(--f-hand); color: var(--ink);
  background: var(--paper-deep);
  border: 2.5px solid var(--ink); border-radius: 6px 10px 10px 6px;
  padding: 7px 28px 7px 14px; margin-top: -2px;
  box-shadow: inset -12px 0 0 var(--cream), inset -14.5px 0 0 var(--ink);
}
.book:nth-child(1) { width: 210px; transform: rotate(-1deg); }
.book:nth-child(2) { width: 196px; transform: translateX(-8px) rotate(1.5deg); }
.book:nth-child(3) { width: 204px; transform: translateX(6px) rotate(-2deg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: var(--s8); }
  .hero-art { order: -1; width: min(78%, 360px); margin-top: var(--s4); }
  .note-steps { left: -78px; font-size: 1.2rem; top: 0; }
  .bubble { right: -40px; width: 104px; height: 92px; }
  .bubble .hand { font-size: 1.15rem; }
  .books { right: -30px; bottom: -22px; }
  .book { font-size: 1.05rem; }
  .book:nth-child(1) { width: 168px; } .book:nth-child(2) { width: 158px; } .book:nth-child(3) { width: 164px; }
  .sparks-a { left: -40px; width: 44px; } .sparks-b { right: -44px; width: 44px; }
}
@media (max-width: 520px) {
  .stats { justify-content: space-between; }
  .stat { padding-inline: var(--s3); }
  .num { font-size: 1.75rem; }
  .num-sm { font-size: 1.15rem; }
  .stat dt { font-size: .78rem; }
  .note-steps { display: none; }
}

/* ---------- traits ---------- */
.traits {
  /* hard split, kertas kuning ke biru: bukan gradien dekoratif */
  background: linear-gradient(var(--paper) 45%, var(--ink) 45%);
}
.traits-card {
  position: relative;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-card);
  padding: var(--s7) var(--s7) var(--s8);
}
.note-grow { right: 36px; top: -28px; font-size: 1.5rem; rotate: 8deg; background: var(--cream); padding: 4px 10px; border-radius: 8px; }
.traits-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6);
  margin-top: var(--s7); text-align: center;
}
.traits-list .icon { width: 64px; height: 64px; margin: 0 auto var(--s4); }
.icon-fill { fill: var(--ink); }
.traits-list h3 { font-size: 1.1875rem; font-weight: 800; }
.traits-list p { margin-top: var(--s2); font-size: .975rem; max-width: 22ch; margin-inline: auto; }
.traits-list li:nth-child(even) { transform: translateY(18px); }
@media (max-width: 900px) {
  .traits-list { grid-template-columns: 1fr 1fr; }
  .traits-card { padding: var(--s6) var(--s5) var(--s7); }
}
@media (max-width: 420px) {
  .traits-list { gap: var(--s5) var(--s3); }
  .traits-list h3 { font-size: 1.05rem; }
  .note-grow { right: 14px; font-size: 1.2rem; }
}

/* ---------- gallery ---------- */
.gallery { background: var(--ink); color: var(--on-ink); padding-block: var(--s9) var(--s8); }
.gallery .h2 { color: var(--on-ink); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap;
  margin-bottom: var(--s7);
}
.gallery .section-head .hand { color: var(--paper); font-size: 1.5rem; transform: rotate(-2deg); }

.polaroids {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6) var(--s5);
}
.polaroids li { transform: rotate(var(--r)); }
.polaroid {
  position: relative; display: block; width: 100%;
  background: var(--cream); border: 0; border-radius: var(--r-photo);
  padding: 10px 10px 0;
  box-shadow: 0 10px 0 -2px var(--ink-deep);
  transition: transform var(--t-mid) var(--ease-spring);
}
.polaroid::before { /* selotip washi */
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgb(255 227 107 / .85); border-radius: 2px;
}
.polaroid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.polaroid .cap {
  display: block; padding: 10px 4px 14px;
  font: 700 1.35rem/1.1 var(--f-hand); color: var(--ink); text-align: center;
}
.polaroid:hover { transform: rotate(calc(var(--r) * -1)) scale(1.04); }
@media (max-width: 900px) { .polaroids { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); } }
@media (max-width: 420px) { .polaroid .cap { font-size: 1.1rem; } }

/* ---------- wishes ---------- */
.wishes { background: var(--ink); padding-bottom: var(--s9); }
.wishes-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center;
  background: var(--paper);
  border-radius: var(--r-section);
  padding: var(--s8) var(--s7);
}
.checks { margin-top: var(--s6); display: grid; gap: var(--s4); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 1.125rem; font-weight: 500; }
.tick { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.tick circle { fill: var(--ink); }
.tick path { fill: none; stroke: var(--paper); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.wishes-art { position: relative; min-height: 380px; }
.mini-polaroid {
  position: absolute; margin: 0; width: 52%;
  background: var(--cream); padding: 10px 10px 0; border-radius: var(--r-photo);
  box-shadow: 0 8px 0 -2px rgb(27 33 133 / .25);
}
.mini-polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mini-polaroid figcaption { font-size: 1.2rem; text-align: center; padding: 10px 0 14px; }
.mp-1 { left: 2%; top: 4%; transform: rotate(-6deg); }
.mp-2 { left: 46%; top: 30%; transform: rotate(5deg); }
.sparks-c { left: -8px; bottom: 6%; }
.stamp { position: absolute; right: -24px; top: -46px; width: 120px; height: 120px; }
.stamp circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.stamp text { font: 700 15px var(--f-hand); fill: var(--ink); letter-spacing: 1px; }
.stamp-heart { fill: var(--coral); }
@media (max-width: 900px) {
  .wishes-card { grid-template-columns: 1fr; padding: var(--s7) var(--s5); }
  .wishes-art { min-height: 300px; }
  .stamp { right: 0; top: -10px; width: 96px; height: 96px; }
}

/* ---------- letter ---------- */
.letter-sec { padding-block: var(--s9); position: relative; }
.letter-sec::before, .openwhen::after, .footer::before { /* tepi scallop */
  content: ""; position: absolute; left: 0; right: 0; height: 24px;
  background: radial-gradient(circle at 24px 0, var(--ink) 23px, transparent 24px) 0 0 / 48px 24px repeat-x;
}
.letter-sec::before { top: 0; }
.letter-sec .sub { margin: var(--s3) auto 0; }

.envelope { position: relative; margin-top: var(--s9); }
.env-body {
  position: relative; height: 150px;
  background: var(--ink); border-radius: 18px 18px 0 0;
}
.env-flap {
  position: absolute; inset: 0;
  background: var(--ink-deep);
  clip-path: polygon(0 0, 100% 0, 50% 88%);
  transform-origin: top center;
  transition: transform 600ms var(--ease-out);
}
.env-to { position: absolute; left: 24px; bottom: 14px; color: var(--paper); font-size: 1.5rem; }
.envelope[data-state="open"] .env-flap { transform: scaleY(-.42); background: var(--ink-soft); }

.seal {
  position: absolute; left: 50%; top: 92px; z-index: 3;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
}
.seal svg {
  width: 76px; height: 76px; padding: 10px;
  background: var(--coral); border-radius: 50%;
  border: 3px solid var(--cream);
  fill: var(--cream);
  transition: transform var(--t-mid) var(--ease-spring);
}
.seal span {
  font-weight: 700; font-size: .9375rem; color: var(--on-ink);
  background: var(--ink-deep); padding: 4px 12px; border-radius: var(--r-pill);
}
.seal:hover svg { transform: scale(1.08) rotate(-6deg); }
.envelope[data-state="open"] .seal { display: none; }

.letter {
  position: relative;
  background-color: var(--cream);
  border: 2.5px solid var(--ink); border-top: 0;
  border-radius: 0 0 var(--r-card) var(--r-card);
  padding: 36px clamp(24px, 6vw, 64px) 40px;
  font-size: 1.125rem; line-height: 1.75;
}
.letter p + p { margin-top: 20px; }
.letter::before { /* garis margin buku tulis */
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(10px, 3vw, 36px);
  width: 2px; background: var(--coral); opacity: .55;
}
.letter-hi { font-size: 2.2rem; line-height: 1.1; margin-bottom: 8px; }
.letter-sign { margin-top: 32px !important; font-size: 1.7rem; line-height: 1.1; }
.letter-sign span { font-size: 2.6rem; display: inline-block; transform: rotate(-4deg) translateY(4px); }

.js .envelope[data-state="closed"] .letter { display: none; }
.js .envelope[data-state="closed"] .env-body { border-radius: 18px; height: 230px; }
.js .envelope[data-state="closed"] .seal { top: 118px; }
.js .envelope[data-state="closed"] .env-flap { clip-path: polygon(0 0, 100% 0, 50% 62%); }
.js .envelope[data-state="closed"] { margin-top: var(--s7); }

/* ---------- open when ---------- */
.openwhen { position: relative; background: var(--ink); color: var(--on-ink); padding-block: var(--s9); }
.openwhen .h2 { color: var(--on-ink); }
.openwhen .sub { margin-top: var(--s3); }
.openwhen::after { bottom: -24px; z-index: 1; }
.arrows { display: flex; gap: var(--s3); color: var(--on-ink); }

.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%);
  gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px var(--s5); margin-inline: -4px;
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.cards li { scroll-snap-align: start; perspective: 1200px; }
.card {
  position: relative; display: block; width: 100%; height: 260px;
  border: 0; padding: 0; background: none; text-align: left;
  transform-style: preserve-3d;
  transition: transform 560ms var(--ease-spring);
}
.card[aria-expanded="true"] { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s5);
  border-radius: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card-front { background: var(--cream); color: var(--ink-deep); }
.card-back { background: var(--paper); color: var(--ink-deep); transform: rotateY(180deg); }
.env-ico { width: 56px; height: 42px; }
.card-when { font: 600 1.375rem/1.2 var(--f-display); color: var(--ink); }
.card-when strong { font-weight: 800; }
.card-hint { font-size: .875rem; color: var(--ink-deep); }
.card-msg { font-size: 1.0625rem; line-height: 1.5; }
.card-from { font-size: 1.6rem; align-self: flex-end; }
@media (max-width: 760px) { .cards { grid-auto-columns: 82%; } .arrows { display: none; } }

/* ---------- cake ---------- */
.cake-sec { padding-block: var(--s10) var(--s8); }
.cake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.cake-copy .sub { margin-top: var(--s4); }
.cake-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
.mic-note { margin-top: var(--s3); font-size: .875rem; max-width: 44ch; }
.wish-done { margin-top: var(--s5); font-size: 2rem; min-height: 1.1em; }
.cake-wrap { justify-self: center; width: min(100%, 420px); }
.cake { width: 100%; height: auto; overflow: visible; }
.cake .plate { fill: var(--ink); opacity: .15; }
.cake .tier { fill: var(--ink); }
.cake .drip { fill: var(--cream); }
.cake .sprinkles path { stroke: var(--paper-deep); stroke-width: 4; stroke-linecap: round; }
.cake .candle text {
  font: 800 92px/1 var(--f-display); fill: var(--coral);
  stroke: var(--ink); stroke-width: 3; paint-order: stroke;
}
.cake .wick { stroke: var(--ink-deep); stroke-width: 3; stroke-linecap: round; }
.cake .flame path { fill: var(--paper-deep); stroke: var(--coral); stroke-width: 2; }
.cake .flame .core { fill: var(--coral); stroke: none; }
.cake .flame { animation: flicker 1.4s var(--ease-out) infinite alternate; }
.cake .flame:nth-of-type(2) { animation-delay: -.5s; }
.cake .smoke path { fill: none; stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; opacity: 0; stroke-dasharray: 80; stroke-dashoffset: 80; }
.cake.out .flame { animation: none; transform: scale(0); transition: transform 280ms var(--ease-out); }
.cake.out .smoke path { animation: smoke 1.6s var(--ease-out) forwards; }
.cake.out .smoke path:nth-child(2) { animation-delay: .12s; }

@keyframes flicker {
  0% { transform: rotate(-4deg) scale(1, 1); }
  50% { transform: rotate(3deg) scale(.94, 1.06); }
  100% { transform: rotate(-2deg) scale(1.04, .96); }
}
@keyframes smoke {
  0% { opacity: .9; stroke-dashoffset: 80; }
  70% { opacity: .5; }
  100% { opacity: 0; stroke-dashoffset: 0; transform: translateY(-14px); }
}
@media (max-width: 900px) {
  .cake-grid { grid-template-columns: 1fr; }
  .cake-wrap { order: -1; width: min(86%, 340px); }
}

/* ---------- closing ---------- */
.closing {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: var(--s6); align-items: center;
  padding-block: var(--s7) var(--s10);
}
.h2.big { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.closing .sub { margin-top: var(--s4); }
.closing-art { position: relative; }
.cloud { width: 170px; height: 180px; margin-left: auto; display: block; }
.note-same { left: -10px; top: 0; font-size: 1.5rem; rotate: -8deg; }
@media (max-width: 760px) {
  .closing { grid-template-columns: 1fr; }
  .closing-art { height: 180px; }
  .note-same { left: 0; }
}

/* ---------- footer ---------- */
.footer {
  position: relative; background: var(--ink); color: var(--on-ink);
  text-align: center; padding: var(--s8) var(--s5) var(--s7); font-size: .9375rem;
}
.footer::before {
  top: -24px; transform: scaleY(-1);
  background: radial-gradient(circle at 24px 0, var(--ink) 23px, transparent 24px) 0 0 / 48px 24px repeat-x;
}

@media (max-width: 760px) { .footer { padding-bottom: 104px; } }

/* ---------- music fab ---------- */
.music-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink);
  border: 3px solid var(--paper);
  box-shadow: 0 4px 0 var(--ink-deep);
  transition: transform var(--t-fast) var(--ease-out);
}
.music-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.music-fab:hover { transform: scale(1.06); }
.music-fab[aria-pressed="true"] svg { animation: bob 1.25s var(--ease-out) infinite alternate; }
.music-fab[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px dashed var(--ink); animation: spin 8s linear infinite;
}
@keyframes bob { to { transform: translateY(-3px) rotate(-6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(27 33 133 / .88); }
.lightbox figure {
  margin: 0; background: var(--cream); padding: 12px 12px 0; border-radius: var(--r-photo);
  transform: rotate(-1.5deg);
}
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--cream); }
.lightbox figcaption { text-align: center; font-size: 1.6rem; padding: 12px 0 16px; }
.lb-controls { display: flex; justify-content: center; gap: var(--s4); margin-top: var(--s5); color: var(--on-ink); }
.lightbox[open] figure { animation: pop 300ms var(--ease-spring); }
@keyframes pop { from { transform: scale(.9) rotate(-5deg); opacity: 0; } }

/* ---------- floating doodles ---------- */
.float { animation: float 5s ease-in-out infinite alternate; }
@keyframes float { to { translate: 0 -8px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
