/* tb-globe.css — hero globe with orbiting product links.
   Default styles = the no-JS / no-WebGL view: a responsive grid of product cards.
   tb-globe.js adds .tb-on to #tb-globe to switch to the orbiting layout. */

.tb-globe{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  min-height:min(80vh,720px);
  padding:32px 16px;
  color:var(--fg,#F5F6FA);
  font-family:var(--font,"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif);
  background:
    radial-gradient(60% 55% at 50% 48%,rgba(94,92,230,.16),transparent 70%),
    radial-gradient(40% 40% at 50% 50%,rgba(10,132,255,.10),transparent 75%),
    var(--bg,#06070C);
}

/* ---------- Fallback grid (also the no-JS view) ---------- */
.tb-globe-list{
  list-style:none; margin:0; padding:0; width:100%; max-width:var(--maxw,1180px);
  display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
}
@media (min-width:640px){ .tb-globe-list{ grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px } }
.tb-globe-list li{ margin:0; padding:0; list-style:none }
.tb-globe-list li:nth-child(-n+4){ grid-column:span 1 }
@media (min-width:900px){ .tb-globe-list li:nth-child(-n+4){ grid-row:1 } }
.tb-globe-list a{
  display:block; height:100%; box-sizing:border-box; min-height:44px;
  padding:16px 16px 16px 18px; text-decoration:none; color:inherit;
  background:var(--panel,rgba(255,255,255,.035));
  border:1px solid var(--hair,rgba(255,255,255,.09));
  border-left:3px solid var(--c,#0A84FF);
  border-radius:16px;
  transition:transform .35s var(--ease,cubic-bezier(.16,1,.3,1)),border-color .2s,background .2s;
}
.tb-globe-list li:nth-child(-n+4) a{ background:var(--panel-2,rgba(255,255,255,.06)); padding-block:22px }
.tb-globe-list a:hover{ transform:translateY(-3px); border-color:var(--hair-strong,rgba(255,255,255,.16)); border-left-color:var(--c,#0A84FF) }
.tb-globe-list a b{ display:block; font-weight:700; font-size:1.05rem; letter-spacing:-.01em }
.tb-globe-list li:nth-child(-n+4) a b{ font-size:1.2rem }
.tb-globe-list a span{ display:block; margin-top:6px; font-size:.88rem; line-height:1.45; color:var(--fg-2,#A6ABBC) }
.tb-globe a:focus-visible{ outline:2px solid #fff; outline-offset:3px }

/* JS-only furniture is hidden until enhanced */
.tb-globe-stage,.tb-globe-info,.tb-globe-pause{ display:none }

/* ---------- Enhanced layout (.tb-on) ---------- */
.tb-globe.tb-on{ display:block; padding:0; height:min(80vh,720px); min-height:460px }
.tb-on .tb-globe-stage{
  display:block; position:absolute; inset:0; z-index:1;
  touch-action:pan-y; cursor:grab; -webkit-user-select:none; user-select:none;
}
.tb-on.tb-drag .tb-globe-stage{ cursor:grabbing }
.tb-globe-stage canvas{ display:block; width:100%; height:100%; pointer-events:none }

/* The list becomes a zero-size layer; each <li> is moved by JS, the <a> is the clickable orb. */
.tb-on .tb-globe-list{
  position:absolute; inset:0; z-index:2; display:block; max-width:none;
  pointer-events:none; overflow:hidden;
}
.tb-on .tb-globe-list li{ position:absolute; left:0; top:0; width:0; height:0; will-change:transform,opacity }
/* li is moved by JS; --s carries the depth scale */
.tb-on .tb-globe-list a{
  position:absolute; left:0; top:0; width:44px; height:44px; min-height:0; padding:0;
  display:grid; place-items:center; box-sizing:border-box;
  background:none; border:0; border-radius:50%; pointer-events:auto;
  transform:translate(-50%,-50%); transition:none;
}
.tb-on .tb-globe-list li.is-primary a{ width:60px; height:60px }
.tb-on .tb-globe-list a:hover{ transform:translate(-50%,-50%) }
.tb-on .tb-globe-list li:nth-child(-n+4) a{ background:none; padding:0 }

/* glowing orb */
.tb-on .tb-globe-list a::before{
  content:""; width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff 0,var(--c,#0A84FF) 45%,color-mix(in srgb,var(--c,#0A84FF) 55%,#000) 100%);
  box-shadow:0 0 14px 2px var(--c,#0A84FF),0 0 34px 6px color-mix(in srgb,var(--c,#0A84FF) 45%,transparent);
  transform:scale(var(--s,1));
  transition:transform .3s var(--ease,cubic-bezier(.16,1,.3,1)),box-shadow .3s;
}
.tb-on .tb-globe-list li.is-primary a::before{ width:28px; height:28px }
.tb-on .tb-globe-list a:hover::before,
.tb-on .tb-globe-list a:focus-visible::before{
  transform:scale(calc(var(--s,1) * 1.35));
  box-shadow:0 0 22px 5px var(--c,#0A84FF),0 0 56px 14px color-mix(in srgb,var(--c,#0A84FF) 50%,transparent);
}
/* soft pulse ring on headline products */
.tb-on .tb-globe-list li.is-primary a::after{
  content:""; position:absolute; inset:10px; border-radius:50%;
  border:1px solid var(--c,#0A84FF); opacity:0; animation:tb-pulse 3.2s ease-out infinite;
}
@keyframes tb-pulse{ 0%{transform:scale(.7);opacity:.7} 100%{transform:scale(1.5);opacity:0} }

/* name label under the orb; the tagline <span> stays in the DOM for screen readers only */
.tb-on .tb-globe-list a b{
  position:absolute; top:calc(100% - 6px); left:50%; transform:translateX(-50%) scale(var(--s,1)); transform-origin:50% 0;
  white-space:nowrap; font-size:12px; font-weight:600; letter-spacing:.01em; line-height:1;
  padding:4px 9px; border-radius:999px; color:#fff;
  background:rgba(6,7,12,.62); border:1px solid rgba(255,255,255,.12);
}
.tb-on .tb-globe-list li.is-primary a b{ font-size:14px; font-weight:700; padding:5px 11px; top:calc(100% - 10px) }
.tb-on .tb-globe-list a:hover b,
.tb-on .tb-globe-list a:focus-visible b{ border-color:var(--c,#0A84FF); background:rgba(6,7,12,.85) }
.tb-on .tb-globe-list a span{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.tb-on .tb-globe-list a:focus-visible{ outline:2px solid #fff; outline-offset:-4px }

/* info line (hover / focus shows the tagline here; aria-hidden, links carry the real text) */
.tb-on .tb-globe-info{
  display:block; position:absolute; z-index:3; left:50%; bottom:18px; transform:translateX(-50%);
  width:min(92%,520px); text-align:center; pointer-events:none;
  font-size:14px; line-height:1.45; color:var(--fg-2,#A6ABBC); min-height:42px;
}
.tb-globe-info strong{ display:block; color:#fff; font-size:15px; font-weight:700 }

/* pause / play control for the motion */
.tb-on .tb-globe-pause{
  display:grid; place-items:center; position:absolute; z-index:4; top:12px; right:12px;
  width:44px; height:44px; padding:0; cursor:pointer; color:#fff; font:inherit; font-size:14px;
  background:rgba(255,255,255,.06); border:1px solid var(--hair,rgba(255,255,255,.09)); border-radius:50%;
}
.tb-on .tb-globe-pause:hover{ background:rgba(255,255,255,.12) }
.tb-on .tb-globe-pause:focus-visible{ outline:2px solid #fff; outline-offset:2px }
.tb-on.tb-static .tb-globe-pause{ display:none }

/* Phones: names only, smaller orbs */
@media (max-width:639px){
  .tb-on .tb-globe-list a b{ font-size:11px; padding:3px 7px }
  .tb-on .tb-globe-list li.is-primary a b{ font-size:12px; padding:4px 8px }
  .tb-on .tb-globe-list li.is-primary a::before{ width:24px; height:24px }
  .tb-on .tb-globe-info{ bottom:10px; font-size:13px }
}

@media (prefers-reduced-motion:reduce){
  .tb-on .tb-globe-list li.is-primary a::after{ animation:none; opacity:0 }
  .tb-globe-list a,.tb-on .tb-globe-list a::before{ transition:none }
}
