/* About: count-ups, 3D timeline, globe of where students come from (pairs with about-fx.js; founder 2026-10-09). */
.abx { margin-top: 56px; display: flex; flex-direction: column; gap: 64px; }
.abx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.abx-eyebrow i { width: 8px; height: 8px; border-radius: 50% !important; background: #34d399; }
html.sfx-on .abx-eyebrow i { animation: abx-ping 2s ease-out infinite; }
@keyframes abx-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
.abx h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 12px; }

/* Numbers */
.abx-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 900px; }
.abx-num { padding: 22px 18px; border: 1px solid var(--border); text-align: center; background: linear-gradient(160deg, rgba(56, 182, 255, .12), rgba(139, 92, 246, .07) 60%, transparent);
  transform: rotateX(10deg); transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.abx-num:hover { transform: rotateX(0) translateY(-4px); box-shadow: 0 24px 50px -26px rgba(56, 182, 255, .6); }
.abx-num strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #38b6ff, #8b5cf6 55%, #34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.abx-num span { display: block; margin-top: 6px; font-size: .86rem; color: var(--text-muted); }

/* Timeline */
.abx-tl { text-align: center; }
.abx-track { position: relative; list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.abx-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 24px; height: 3px; background: linear-gradient(90deg, #38b6ff, #8b5cf6, #ec4899, #f5b82e, #34d399); opacity: .7; }
html.sfx-on .abx-track::after { content: ""; position: absolute; top: 19px; left: 6%; width: 12px; height: 12px; border-radius: 50% !important; background: #fff; box-shadow: 0 0 14px #8b5cf6, 0 0 26px #38b6ff; animation: abx-run 6s ease-in-out infinite; }
@keyframes abx-run { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(94% - 12px); opacity: 0; } }
.abx-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.abx-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50% !important; color: #fff;
  background: linear-gradient(135deg, #1f7bff, #8b5cf6); box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(56, 182, 255, .55); }
.abx-dot .sfx-ic { width: 22px; height: 22px; }
.abx-card { width: 100%; padding: 18px 16px; text-align: left; border: 1px solid var(--border); background: var(--surface); }
.abx-card b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); }
.abx-card strong { display: block; margin: 4px 0 6px; color: var(--text); }
.abx-card p { margin: 0; font-size: .86rem; color: var(--text-muted); line-height: 1.5; }
html.sfx-on .abx-wait .abx-step { opacity: 0; transform: rotateY(-60deg) translateY(30px); transform-origin: 0 50%;
  transition: opacity .6s ease calc(var(--i) * 140ms), transform .9s cubic-bezier(.2, .9, .3, 1.15) calc(var(--i) * 140ms); }
html.sfx-on .abx-wait .abx-step.is-in { opacity: 1; transform: none; }

/* Globe */
/* A BIGGER BOX FOR THE GLOBE (founder 2026-11-06: "Make this container bigger ... so the map can fit
   perfectly"). The sphere is drawn from the SHORTER side of its box (R = min(W,H) * 0.42 in
   site-analytics-globe.js), so a tall narrow column throws away the height it has; this gives the globe
   more of the row and a squarer box to fill. */
.abx-reach { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 20px 28px; align-items: center; padding: 34px; border: 1px solid var(--border);
  background: radial-gradient(600px 400px at 100% 50%, rgba(56, 182, 255, .12), transparent 70%), var(--surface); }
.abx-reach-tx p { color: var(--text-muted); margin: 0 0 16px; }
/* ONE ROW (founder 2026-11-06: "Put this in one row Where our users come from"). The eight were two
   columns of four inside the 478px text column; they are their own row across the whole card now, so
   all eight read left to right. On a narrow screen the row scrolls sideways rather than wrapping back
   into a block - the page itself must never scroll sideways, but a strip of chips may. */
/* The words and the globe keep row 1; the strip is row 2, across both. Without saying so, the strip
   pushed the globe onto a row of its own. */
.abx-reach-tx { grid-column: 1; grid-row: 1; }
.abx-top { list-style: none; margin: 0; padding: 0; grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; }
/* Eight equal cells: a country can be "Chad" or "United Arab Emirates", so they share the width and a
   long name ends in an ellipsis instead of pushing the row out of the card. The full name is the
   title, and the globe says it too when you touch its dot. */
.abx-top li { flex: 1 1 0; min-width: 0; gap: 7px; padding: 8px; }
.abx-top li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.abx-top li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); font-size: .9rem; opacity: 0; transform: translateX(-12px); animation: abx-in .5s ease forwards calc(var(--i) * 90ms); }
@keyframes abx-in { to { opacity: 1; transform: none; } }
.abx-top b { display: grid; place-items: center; width: 24px; height: 24px; font-size: .78rem; color: #fff; background: rgba(56, 182, 255, .35); }
/* the flag stands where the rank number used to, now that the eight are picked at random */
.abx-top .abx-flag { width: 26px; height: 19.5px; flex: none; }
.abx-top b.abx-dot { width: 10px; height: 10px; border-radius: 50% !important; background: rgba(56, 182, 255, .55); margin: 0 8px; }
.abx-top li.is-top b { background: linear-gradient(135deg, #f5b82e, #ec4899); }
.abx-globe { position: relative; grid-column: 2; grid-row: 1; min-height: 560px; }
.abx-globe .sa-globe { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.abx-globe .sa-globe.is-drag { cursor: grabbing; }
.abx-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; }
.abx-hint { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: .72rem; color: #6f7fa6; }

@media (max-width: 960px) {
  .abx-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abx-track { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 8px; }
  .abx-track::before { left: 32px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, #38b6ff, #8b5cf6, #ec4899, #f5b82e, #34d399); }
  html.sfx-on .abx-track::after { display: none; }
  .abx-step { flex-direction: row; align-items: flex-start; }
  .abx-dot { flex: none; }
  .abx-reach { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .abx-reach-tx, .abx-globe, .abx-top { grid-column: 1; grid-row: auto; }
  .abx-top { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .abx-top li { flex: 0 0 auto; min-width: max-content; }
  .abx-globe { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .abx-num, .abx-num:hover { transform: none; }
  .abx-top li { opacity: 1; transform: none; animation: none; }
}
