/* The preceding About panel uncovers a slower-moving footer layer. */
#footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-top: 1px solid var(--theka-rule);
  background: #101c2e !important;
}
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 5% 110%, #6553a84d, transparent 65%),
    radial-gradient(ellipse at 100% 100%, #2262ad66, transparent 65%);
  opacity: var(--footer-glow, 1);
}
html.light #footer { background: #eaf0f9 !important; }
html.light #footer::before {
  background: radial-gradient(ellipse at 5% 110%, #b5a4df55, transparent 65%),
    radial-gradient(ellipse at 100% 100%, #83b1e577, transparent 65%);
}
#footer > .container { position: relative; padding-block: clamp(36px, 5vw, 72px) !important; }
#footer.footer-reveal-ready > .container {
  transform: translate3d(0, var(--footer-offset, 0px), 0);
  opacity: var(--footer-opacity, 1);
}
/* Tab navigation always brings fully readable, unshifted links into view. */
#footer.footer-reveal-ready:focus-within > .container { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #footer.footer-reveal-ready > .container { transform: none; opacity: 1; }
  #footer::before { opacity: 1; }
}
@media print {
  #footer.footer-reveal-ready > .container { transform: none; opacity: 1; }
}
