/* Shared footer and visualizer styles for non-home pages. */
.audio-visualizer {
  position: absolute;
  left: 0;
  width: 100%;
  height: 68px;
  padding: 0 clamp(.7rem, 2.2vw, 2.2rem);
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, .6vw, 8px);
  pointer-events: none;
  z-index: 1;
  opacity: .64;
}

.vis-bar {
  flex: 1 1 0;
  min-width: 4px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.vis-bar::before {
  content: "";
  width: 100%;
  height: 88%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, rgba(143, 107, 50, .92) 0%, rgba(204, 174, 90, .98) 62%, rgba(242, 224, 176, .95) 100%);
  box-shadow: 0 0 8px rgba(204, 174, 90, .32), inset 0 1px 0 rgba(255, 245, 215, .38);
  transform-origin: bottom center;
  animation: visualizerPulse var(--dur, 1.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.site-footer {
  position: relative;
  display: grid;
  gap: 0;
  isolation: isolate;
  margin-top: -1px;
  padding: 0;
  border-top: none;
  background-color: #0b0b0b !important;
  color: #d8c8a5;
  font-size: .9rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/backgrounds/paisley3-mobile-256.webp?v=20261016") center / cover no-repeat fixed;
  opacity: .012;
  filter: brightness(.58) contrast(1);
  pointer-events: none;
}

.site-footer > * { position: relative; z-index: 1; }

.site-footer__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(180px, 1fr));
  gap: .9rem 1.2rem;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border: clamp(10px, 1.3vw, 18px) solid #171819;
  border-radius: 3px;
  background: #171717;
  box-shadow: inset 0 0 0 2px #c9c9c4, inset 0 0 0 5px #111, 0 8px 20px rgba(0, 0, 0, .45);
}

.site-footer__content::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid #777;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.22) 1px 4px), repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.2) 1px 4px), linear-gradient(180deg, #141414, #0b0b0b);
  box-shadow: inset 0 10px 18px rgba(255,255,255,.06), inset 0 -10px 18px rgba(0,0,0,.55);
}

.site-footer__content > * { position: relative; z-index: 1; }
.site-footer__brand { display: grid; align-content: start; gap: .32rem; }
.site-footer__logo-link { width: fit-content; display: inline-flex; align-items: center; justify-content: center; padding: .34rem .48rem; border: 1px solid rgba(255,230,190,.24); border-radius: 11px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(255,219,150,.1); }
.site-footer__logo { display: block; width: auto; height: 42px; }
.site-footer__tagline { margin: 0; color: #f2d497; font-family: "Cal Sans", system-ui, sans-serif; font-size: 1rem; letter-spacing: .02em; }
.site-footer__summary { max-width: 38ch; margin: 0; color: rgba(236,222,187,.92); line-height: 1.45; }
.site-footer__panel { display: grid; align-content: start; gap: .42rem; }
.site-footer__panel-title { margin: 0 0 .12rem; color: #f2d497; font-family: "Cal Sans", system-ui, sans-serif; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .15rem; padding: .55rem .18rem 0; border-top: 1px solid rgba(207,166,109,.28); }
.site-footer__bottom p { margin: 0; color: rgba(226,211,177,.84); font-size: .8rem; }

.audio-visualizer--footer { position: relative; left: auto; bottom: auto; width: 100%; height: 62px; padding-top: 4px; overflow: hidden; border-radius: 0 0 10px 10px; background: transparent !important; box-shadow: none; opacity: .72; }
.site-footer a { width: fit-content; color: #f1c76f; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.site-footer a:hover { color: #ffe2a6; text-decoration: underline; transform: translateX(1px); }
.site-footer p, .site-footer a { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }

@keyframes visualizerPulse {
  0%, 100% { transform: scaleY(var(--s1, .22)); opacity: .48; }
  25% { transform: scaleY(var(--s2, .76)); opacity: 1; }
  50% { transform: scaleY(var(--s3, .4)); opacity: .7; }
  75% { transform: scaleY(var(--s4, .92)); opacity: 1; }
}

@media (max-width: 940px) {
  .audio-visualizer { height: 58px; opacity: .56; }
  .site-footer__content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .audio-visualizer { height: 50px; opacity: .48; }
  .site-footer { gap: .44rem; padding: 0 .52rem .3rem; }
  .audio-visualizer--footer { height: 34px; border-radius: 0 0 8px 8px; opacity: .38; }
  .site-footer__content { grid-template-columns: 1fr; gap: .5rem; padding: .68rem .7rem; border-radius: 11px; }
  .site-footer__content::before { inset: 5px; border-radius: 8px; }
  .site-footer__panel, .site-footer__summary { display: none; }
  .site-footer__brand { gap: .16rem; }
  .site-footer__logo-link { padding: .22rem .34rem; border-radius: 8px; }
  .site-footer__logo { height: 32px; }
  .site-footer__tagline { font-size: .86rem; }
  .site-footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .36rem; margin-top: 0; padding: .3rem .04rem 0; }
  .site-footer__bottom p, .site-footer__bottom a { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vis-bar::before { animation: none; transform: scaleY(.5); }
}
