/* 3D tour emblem on the home page's "On the market now" cards (2026-11-24, Juan: "add it to the home page grid
   too"). js/home.js addTours puts it on the photo of every home with a 3D model in /3d/index.json; a click
   opens /homes/<slug>?view=3d. Bottom-right, because the Available pill, the package medal and the Move-in
   ready ribbon (css/move-in-ready.css) hold the other corners. It rides inside .ib-card-img, so it grows with
   the photo on hover like they do. Same look as the "View in 3D" pill on the home's page
   (css/home-detail.css) and the emblem on /inventory (css/inv-thumbs.css): dark glass, gold edge, a small
   gold cube that keeps turning, slower with Reduce Motion on (CJ's own iPhone has it on).
   Its own file so css/home.css, which some 20 pages load, keeps its ?v=. */
.ib-3d{position:absolute;z-index:3;right:.7rem;bottom:.7rem;display:inline-flex;align-items:center;gap:.45rem;
  line-height:1;padding:.36rem .75rem .36rem .5rem;border-radius:999px;background:rgba(24,21,18,.68);
  border:1px solid var(--gold-bright,#D9BC7F);color:#fff;font-family:var(--sans,'Montserrat',sans-serif);
  font-size:.58rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;cursor:pointer;
  box-shadow:0 2px 10px rgb(30 22 18 / .4);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  -webkit-tap-highlight-color:transparent;transition:background .2s}
.ib-3d:hover{background:rgba(24,21,18,.9)}
.ib-cube-box{--c:10px;display:inline-grid;place-items:center;width:calc(var(--c) * 1.7);height:calc(var(--c) * 1.7);flex:none}
.ib-cube{position:relative;display:block;width:var(--c);height:var(--c);transform-style:preserve-3d;animation:ib-cube-spin 4.5s linear infinite}
.ib-cube i{position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box;
  border:1.5px solid var(--gold-bright,#D9BC7F);background:rgba(217,188,127,.16)}
.ib-cube i:nth-child(1){transform:translateZ(calc(var(--c) / 2))}
.ib-cube i:nth-child(2){transform:rotateY(180deg) translateZ(calc(var(--c) / 2))}
.ib-cube i:nth-child(3){transform:rotateY(90deg) translateZ(calc(var(--c) / 2))}
.ib-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(calc(var(--c) / 2))}
.ib-cube i:nth-child(5){transform:rotateX(90deg) translateZ(calc(var(--c) / 2))}
.ib-cube i:nth-child(6){transform:rotateX(-90deg) translateZ(calc(var(--c) / 2))}
@keyframes ib-cube-spin{from{transform:rotateX(-26deg) rotateY(0deg)}to{transform:rotateX(-26deg) rotateY(360deg)}}
@media (prefers-reduced-motion:reduce){.ib-cube{animation-duration:10s}}
@media (max-width:700px){.ib-3d{font-size:.56rem}}
