/* Unified SVG platform objects.
   SIZE = one square model envelope for all six SVG silhouettes.
   DEPTH = one Z span shared by every slice of every logo.
   ORIENTATION = --rx/--ry/--rz on each HTML button. Independent of depth.
   A broad enough Y tilt is necessary to SEE the extrusion; equal depth
   doesn't imply equal apparent side area at all viewing angles. */
.platform-scene {
  --platform-model-size: clamp(108px, 11.4vw, 170px);
  --platform-extrusion: 36px;
}
.platform-token.has-sculpture {
  width: var(--platform-model-size);
  /* Half the total extrusion in front and half behind the model origin. */
  --logo-front-z: calc(var(--platform-extrusion) / 2);
  --logo-step-z: calc(var(--platform-extrusion) / 24);
}
.platform-token.has-sculpture .platform-token-sculpture {
  position: absolute;
  inset: 7%;
  display: block;
  transform-style: preserve-3d;
  pointer-events: none;
}
.platform-token.has-sculpture .platform-token-silhouette {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  backface-visibility: hidden;
  pointer-events: none;
  transform: translateZ(calc(var(--logo-front-z) - var(--slice) * var(--logo-step-z)));
}
.platform-token.has-sculpture .platform-token-silhouette path {
  fill: var(--slice-color);
  stroke: none;
}
.platform-token.has-sculpture .platform-token-silhouette--back path {
  stroke: rgba(194, 199, 210, .65);
  stroke-width: .25;
  stroke-dasharray: .85 .75;
  stroke-linejoin: round;
}
.platform-token.has-sculpture .platform-token-silhouette--front path {
  fill: #15171c;
  stroke: #b7b9c1;
  stroke-width: .29;
  stroke-linejoin: round;
  transition: fill 260ms ease, stroke 260ms ease;
}
.platform-token.has-sculpture.is-active .platform-token-silhouette--front path {
  fill: var(--brand);
  stroke: rgba(245, 247, 255, .62);
}
.platform-token.has-sculpture:focus-visible { outline-offset: 6px; }

/* Identical on-screen size and Z thickness at each responsive breakpoint. */
@media(max-width:780px) {
  .platform-scene {
    --platform-model-size: clamp(84px, 18vw, 130px);
    --platform-extrusion: 28px;
  }
}
@media(max-width:570px) {
  .platform-scene {
    --platform-model-size: clamp(68px, 20vw, 93px);
    --platform-extrusion: 22px;
  }
  /* The scene clips at its boundaries. Give the side walls room, not
     just the visible front faces. Keep positions away from the heading. */
  .platform-token--soundcloud { --x: 14% !important; --y: 71% !important; }
  .platform-token--youtubemusic { --x: 83% !important; --y: 71% !important; }
  .platform-token--deezer { --x: 68% !important; --y: 82% !important; }
}
@media(prefers-reduced-motion:reduce) {
  .platform-token.has-sculpture .platform-token-silhouette--front path { transition: none; }
}
