/* SignWheel logo, dimensional edition: the Broken Ring rebuilt in
 * layers with real depth. Brass shading in the SVG, layers stacked in
 * 3D, a light that follows the visitor's pointer, and a slow idle
 * sway when nobody is touching it. Flat B mark stays the favicon and
 * the small-size form; this is the large-placement treatment. */
.logo3d {
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  perspective: 720px;
  --rx: 0deg; --ry: 0deg;
}
.logo3d-tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  animation: l3-sway 9s ease-in-out infinite;
}
.l3-layer { position: absolute; inset: 0; }
.l3-layer svg { width: 100%; height: 100%; display: block; overflow: visible; }
.l3-shadow { transform: translateZ(0); opacity: .8; }
.l3-ring   { transform: translateZ(16px); }
.l3-ticks  { transform: translateZ(26px); }
.l3-disc   { transform: translateZ(30px); }
.l3-star   { transform: translateZ(46px); filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .5)); animation: l3-starbob 5.2s ease-in-out infinite; }
.logo3d-glow {
  position: absolute; inset: -6%;
  border-radius: 50%;
  background: radial-gradient(230px circle at var(--gx, 50%) var(--gy, 38%), rgba(255, 214, 120, .20), rgba(255, 214, 120, 0) 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.logo3d-floor {
  position: absolute; left: 16%; right: 16%; bottom: -4.5%; height: 26px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 70%);
  filter: blur(2px);
}
@keyframes l3-sway {
  0%, 100% { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-1.1deg); }
  50% { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(1.1deg) translateY(-4px); }
}
@keyframes l3-starbob {
  0%, 100% { transform: translateZ(46px) translateY(0); }
  50% { transform: translateZ(46px) translateY(-2.6px); }
}
@media (prefers-reduced-motion: reduce) {
  .logo3d-tilt, .l3-star { animation: none; }
}

/* Header size: same object, pocket scale. No floor shadow, gentler glow. */
.logo3d-mini {
  display: inline-block;
  width: 37px;
  vertical-align: -9px;
  margin-right: 10px;
  perspective: 300px;
}
.logo3d-mini .logo3d-floor { display: none; }
.logo3d-mini .logo3d-glow { display: none; }
.logo3d-mini .l3-star { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
