/* Calm sound control (speaker button only). */
.no-js .snd { display: none; }
.snd { position: relative; display: inline-flex; }
.snd__btn:hover { transform: none; }
.snd__icon { overflow: visible; }
.snd__bars rect { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(.55); transition: transform .6s var(--ease, ease); }
.snd__slash { opacity: 0; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .5s var(--ease, ease), opacity .3s; }
.snd__btn.is-muted { color: var(--mute); }
.snd__btn.is-muted .snd__bars rect { transform: scaleY(.3); }
.snd__btn.is-muted .snd__slash { opacity: 1; stroke-dashoffset: 0; }
.snd__btn.is-playing { color: var(--gold); }
.snd__btn.is-playing .b1 { animation: sndBar 2.4s ease-in-out infinite; }
.snd__btn.is-playing .b2 { animation: sndBar 1.9s ease-in-out -.7s infinite; }
.snd__btn.is-playing .b3 { animation: sndBar 2.8s ease-in-out -1.4s infinite; }
@keyframes sndBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.snd__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .snd__btn.is-playing .snd__bars rect { animation: none; transform: scaleY(.8); }
  .snd__bars rect, .snd__slash { transition: none; }
}
