/* User Stories: the globe, the flags and the wall under the spotlight (stories-more.js,
   founder 2026-11-06: "Add more features to this page with 3D animations"). */

.stm { margin-top: 64px; display: flex; flex-direction: column; gap: 26px; }

/* ---- 1. the globe ---- */
.stm-reach { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center;
  padding: 30px; border: 1px solid var(--border); background: linear-gradient(150deg, rgba(56, 182, 255, .08), rgba(139, 92, 246, .05) 60%, transparent); }
.stm-reach h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.stm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #f5b82e); }
.stm-sub { margin: 0; max-width: none; color: var(--text-muted); line-height: 1.6; }
.stm-sub b { color: var(--text); font-size: 1.15rem; }
.stm-reach-tx { display: flex; flex-direction: column; gap: 2px; }
.stm-globe { position: relative; min-height: 460px; }
.stm-globe .sa-globe { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.stm-globe .sa-globe.is-drag { cursor: grabbing; }
.stm-hint { position: absolute; right: 10px; bottom: 8px; font-size: .74rem; color: var(--text-muted); pointer-events: none; }
.stm-globe .sa-gtip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); padding: 6px 10px; font-size: .78rem; font-weight: 600;
  white-space: nowrap; color: #fff; background: rgba(4, 11, 31, .92); border: 1px solid rgba(255, 255, 255, .14); pointer-events: none; }

/* ---- 2. the flags ---- */
.stm-chips { display: flex; flex-wrap: wrap; gap: 10px; perspective: 800px; }
.stm-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s, box-shadow .25s; }
.stm-chip:hover, .stm-chip:focus-visible { background: rgba(255, 255, 255, .09); border-color: rgba(125, 184, 255, .55); }
.stm-chip.is-on { background: linear-gradient(135deg, rgba(56, 182, 255, .3), rgba(139, 92, 246, .3)); border-color: rgba(125, 184, 255, .75);
  box-shadow: 0 10px 26px -14px rgba(56, 182, 255, .9); }
.stm-chip b { font-size: .76rem; font-weight: 800; color: var(--text-muted); }
.stm-chip.is-on b { color: var(--text); }
.stm-flag { width: 20px; height: 15px; flex: none; }

/* ---- 3. the wall ---- */
.stm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stm-find { flex: 1 1 280px; min-width: 0; padding: 11px 14px; font: inherit; font-size: .92rem; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.stm-find:focus-visible { outline: 2px solid #38b6ff; outline-offset: 2px; }
.stm-count { margin: 0; font-size: .86rem; color: var(--text-muted); }

.stm-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; perspective: 1100px; }
.stm-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.stm-card:hover { transform: translateY(-2px); border-color: rgba(125, 184, 255, .5); box-shadow: 0 22px 44px -26px rgba(4, 11, 31, .95), 0 0 0 1px rgba(125, 184, 255, .12); }
.stm-q { margin: 0; font-size: .94rem; line-height: 1.62; color: var(--text); }
.stm-who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.stm-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; font-size: .8rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #38b6ff, #8b5cf6); border-radius: 50% !important; }
.stm-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stm-id strong { font-size: .92rem; }
.stm-place { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-muted); }
.stm-more { align-self: center; padding: 11px 24px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); cursor: pointer; transition: background .25s, border-color .25s; }
.stm-more:hover { background: rgba(255, 255, 255, .1); border-color: rgba(125, 184, 255, .6); }

@media (max-width: 900px) {
  .stm-reach { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .stm-globe { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .stm-card, .stm-chip { transition: none; }
}
