/* =====================================================================
   FIGURES (js/fx/fx.js) — inline 3D figures with the hero finish
   ===================================================================== */
.fx { position: relative; width: 100%; aspect-ratio: 1; max-width: 600px; margin-inline: auto; }
.fx[data-fx="kept"] { aspect-ratio: 5 / 6; max-width: 560px; }
.fx-stage { position: absolute; inset: 0; }
.fx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* no WebGL2, or the figure failed: a real frame of it instead */
.fx.nogl { background: var(--fx-poster) center / contain no-repeat; }
.fx.nogl .fx-labels, .fx.nogl canvas { display: none; }

.fx-label {
  position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap; will-change: transform, opacity;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: oklch(84% .03 230); background: oklch(14% .03 250 / .58);
  border: 1px solid oklch(80% .1 215 / .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.fx-label i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: oklch(40% .05 230); transition: background .5s, box-shadow .5s; }
.fx-label.on { color: oklch(97% .01 230); border-color: oklch(83% .135 211 / .6); box-shadow: 0 0 18px oklch(83% .135 211 / .25); }
.fx-label.on i { background: var(--color-accent); box-shadow: 0 0 10px var(--color-accent), 0 0 2px #fff; }
.fx-label.warm.on { border-color: oklch(80% .14 60 / .65); box-shadow: 0 0 18px oklch(80% .14 60 / .25); }
.fx-label.warm.on i { background: oklch(82% .15 65); box-shadow: 0 0 10px oklch(82% .15 65), 0 0 2px #fff; }
.fx-label.mag.on { border-color: oklch(67% .24 340 / .6); box-shadow: 0 0 18px oklch(67% .24 340 / .25); }
.fx-label.mag.on i { background: var(--color-ignition); box-shadow: 0 0 10px var(--color-ignition), 0 0 2px #fff; }
@media (max-width: 720px) { .fx-label { font-size: .58rem; letter-spacing: .09em; padding: 4px 9px 4px 7px; gap: 6px; } }
@media (max-width: 900px) { .split-figure .fx { max-width: 460px; } }

/* fx-label 10/13: legible on a phone (was about 9px) */
.fx-label { font-size: var(--text-2xs); }
@media (max-width: 720px) { .fx-label { font-size: var(--text-2xs); } }
