.branding__logo .smd-link { position: relative; }
.branding__logo .smd-source-hidden { opacity: 0 !important; }
.branding__logo .smd-overlay {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.branding__logo .smd-overlay[hidden] { display: none !important; }
.branding__logo .smd-art {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--smd-fill, #352c74);
  -webkit-mask: var(--smd-mask) center / 100% 100% no-repeat;
  mask: var(--smd-mask) center / 100% 100% no-repeat;
  animation: smd-glow 5s ease-in-out infinite alternate;
}
.smd-overlay[data-family="sport"] { --smd-fill: linear-gradient(135deg, #124b34, #d8a928 48%, #1b55a2); }
.smd-overlay[data-family="winter"] { --smd-fill: linear-gradient(135deg, #12355b, #a7cde2 52%, #2d8c9e); }
.smd-overlay[data-family="spooky"] { --smd-fill: linear-gradient(135deg, #22133f, #e87524 52%, #120e1b); }
.smd-overlay[data-family="nature"] { --smd-fill: linear-gradient(135deg, #0b6b53, #2ab7ca 52%, #1769aa); }
.smd-overlay[data-family="heritage"] { --smd-fill: linear-gradient(135deg, #352c74, #ba466e 50%, #d7a332); }
.smd-overlay[data-family="family"] { --smd-fill: linear-gradient(135deg, #9b3150, #d87e59 50%, #ca992e); }
.smd-overlay[data-family="tradition"] { --smd-fill: linear-gradient(135deg, #8a1735, #c7952c 50%, #137c78); }
.smd-overlay[data-family="national"] { --smd-fill: linear-gradient(135deg, #132d57, #b52746 50%, #c39731); }
.smd-overlay[data-family="remembrance"] { --smd-fill: linear-gradient(135deg, #27364d, #748aa5 50%, #49576d); }
.smd-overlay[data-family="spring"] { --smd-fill: linear-gradient(135deg, #17845e, #ce6686 50%, #318caf); }
.smd-overlay[data-family="celebration"] { --smd-fill: linear-gradient(135deg, #941d38, #c99422 52%, #d94c31); }
.smd-overlay[data-family="science"] { --smd-fill: linear-gradient(135deg, #352c74, #286ec4 52%, #218b9d); }
.branding__logo .smd-particles { position: absolute; inset: 0; overflow: hidden; }
.branding__logo .smd-particle {
  position: absolute;
  left: var(--smd-x);
  top: var(--smd-y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--smd-color);
  opacity: 0;
  animation: smd-rise 3.8s var(--smd-delay) infinite ease-out;
}
.smd-overlay[data-family="winter"] .smd-particle { animation-name: smd-snow; background: #a7cde2; }
.smd-overlay[data-family="sport"] .smd-particle { animation-name: smd-bounce; }
.smd-overlay[data-family="nature"] .smd-particle,
.smd-overlay[data-family="spring"] .smd-particle { width: 5px; height: 3px; border-radius: 100% 0 100% 0; }
.smd-overlay[data-family="spooky"] .smd-particle,
.smd-overlay[data-family="tradition"] .smd-particle { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.smd-overlay[data-family="national"] .smd-particle { width: 5px; height: 5px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 93%, 50% 71%, 21% 93%, 32% 57%, 2% 35%, 39% 35%); }
.smd-overlay[data-family="celebration"] .smd-particle { width: 2px; height: 5px; border-radius: 0; }
.smd-overlay[data-family="science"] .smd-particle { background: transparent; border: 1px solid var(--smd-color); }
.smd-overlay[data-family="remembrance"] .smd-art { animation: none; }
.smd-overlay[data-family="remembrance"] .smd-particles { display: none; }
@keyframes smd-glow { from { filter: saturate(1); } to { filter: saturate(1.12); } }
@keyframes smd-rise { 0%, 16% { opacity: 0; transform: translateY(3px) scale(.5); } 28% { opacity: .7; } 80%, 100% { opacity: 0; transform: translate(var(--smd-drift), -10px) scale(1); } }
@keyframes smd-snow { 0% { opacity: 0; transform: translateY(-8px); } 20% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--smd-drift), 12px); } }
@keyframes smd-bounce { 0%, 15% { opacity: 0; transform: translateY(3px) scale(.6); } 28% { opacity: .7; } 52% { transform: translateY(-8px); } 80%, 100% { opacity: 0; transform: translate(var(--smd-drift), 2px); } }
@media (prefers-reduced-motion: reduce) {
  .branding__logo .smd-art { animation: none !important; }
  .branding__logo .smd-particles { display: none !important; }
}
