/* Local /links/ trial: the original logo face over its own extruded silhouette.
   All decorative faces remain inside the unchanged 240px/220px layout slot. */
.links-logo-3d { perspective: 1000px; perspective-origin: 50% 50%; }
.links-logo-volume {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-16deg);
}
.links-logo-3d[data-logo-sway] .links-logo-volume {
  animation: links-logo-sway 8s ease-in-out infinite;
  animation-play-state: paused;
}
.links-logo-3d[data-logo-sway="running"] .links-logo-volume { animation-play-state: running; }
@keyframes links-logo-sway {
  0%, 100% { transform: rotateY(-16deg); }
  50% { transform: rotateY(16deg); }
}
.links-logo-volume > picture {
  position: relative; display: block; transform: translateZ(8.6px); backface-visibility: hidden;
}
/* TUNING is cut out of the source red band. Back only that enclosed area so
   the original glyph transparency reads white without changing the asset. */
.links-logo-volume > picture::before {
  content: ''; position: absolute; left: 66%; top: 83%; width: 23%; height: 13%;
  z-index: 0; background: #fff; pointer-events: none;
}
.links-logo-volume > picture img { position: relative; z-index: 1; display: block; }
.links-logo-depth, .links-logo-specular {
  position: absolute; inset: 0; pointer-events: none; backface-visibility: hidden;
  -webkit-mask: url("../img/logo-384.png") center / 100% 100% no-repeat;
  mask: url("../img/logo-384.png") center / 100% 100% no-repeat;
}
.links-logo-depth {
  transform: translateZ(calc(-16px + var(--logo-depth) * 1.6px));
  background: linear-gradient(155deg,#f6484f 0%,#c4212b 8%,#bd1728 18%,#8c101c 44%,#370910 70%,#d62333 88%,#720d1a);
  filter: brightness(calc(.76 + var(--logo-depth) * .022));
}
/* Depth order matches the sixteen decorative spans. External declarations
   preserve their original geometry and lighting under style-src 'self'. */
.links-logo-volume > .links-logo-depth:nth-of-type(1) { --logo-depth: 0; }
.links-logo-volume > .links-logo-depth:nth-of-type(2) { --logo-depth: 1; }
.links-logo-volume > .links-logo-depth:nth-of-type(3) { --logo-depth: 2; }
.links-logo-volume > .links-logo-depth:nth-of-type(4) { --logo-depth: 3; }
.links-logo-volume > .links-logo-depth:nth-of-type(5) { --logo-depth: 4; }
.links-logo-volume > .links-logo-depth:nth-of-type(6) { --logo-depth: 5; }
.links-logo-volume > .links-logo-depth:nth-of-type(7) { --logo-depth: 6; }
.links-logo-volume > .links-logo-depth:nth-of-type(8) { --logo-depth: 7; }
.links-logo-volume > .links-logo-depth:nth-of-type(9) { --logo-depth: 8; }
.links-logo-volume > .links-logo-depth:nth-of-type(10) { --logo-depth: 9; }
.links-logo-volume > .links-logo-depth:nth-of-type(11) { --logo-depth: 10; }
.links-logo-volume > .links-logo-depth:nth-of-type(12) { --logo-depth: 11; }
.links-logo-volume > .links-logo-depth:nth-of-type(13) { --logo-depth: 12; }
.links-logo-volume > .links-logo-depth:nth-of-type(14) { --logo-depth: 13; }
.links-logo-volume > .links-logo-depth:nth-of-type(15) { --logo-depth: 14; }
.links-logo-volume > .links-logo-depth:nth-of-type(16) { --logo-depth: 15; }
/* Keep the source face's original red and white: depth is lit on the sides,
   without a white wash over the image. The decorative DOM remains unchanged. */
.links-logo-specular { display: none; }
@media (prefers-reduced-motion: reduce) {
  .links-logo-3d[data-logo-sway] .links-logo-volume { animation: none; }
}
@media (forced-colors: active) {
  .links-logo-3d[data-logo-sway] .links-logo-volume { animation: none; }
  .links-logo-volume { transform: none; }
  .links-logo-depth, .links-logo-specular { display: none; }
  .links-logo-volume > picture { transform: none; }
}
@supports not (transform-style: preserve-3d) {
  .links-logo-3d[data-logo-sway] .links-logo-volume { animation: none; }
  .links-logo-volume, .links-logo-volume > picture { transform: none; }
  .links-logo-depth, .links-logo-specular { display: none; }
}
