/* ============================================================
   AIDsAgent — slide-by-slide scroll-driven landing
   ============================================================ */
:root {
  --bg: #050714;
  --bg-2: #0a0e22;
  --bg-3: #0e1530;
  --panel: #0d1228;
  --line: rgba(120, 160, 255, 0.10);
  --line-strong: rgba(120, 160, 255, 0.22);
  --text: #e8f0ff;
  --text-dim: #a7b3cf;
  --muted: #6b7a99;

  --green: #14ff7a;
  --green-soft: #00ff8855;
  --pink: #ff2a6d;
  --pink-soft: #ff2a6d55;
  --cyan: #00d4ff;
  --cyan-soft: #00d4ff55;
  --amber: #ffb800;

  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1320px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.accent-green { color: var(--green); text-shadow: 0 0 24px var(--green-soft); }
.accent-pink  { color: var(--pink);  text-shadow: 0 0 24px var(--pink-soft); }
.accent-cyan  { color: var(--cyan);  text-shadow: 0 0 24px var(--cyan-soft); }

/* ============================================================
   GLOBAL FX
   ============================================================ */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(20,255,122,0.10), rgba(255,42,109,0.06) 30%, transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: screen;
  transition: opacity 200ms ease;
  filter: blur(8px);
}
.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(255,255,255,0.012) 3px, transparent 4px);
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* ============================================================
   SLIDE FRAMEWORK
   ============================================================ */
.slide {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 36px) 40px 80px;
  overflow: hidden;
}
/* pinned slides own their own internal scroll height; suppress horizontal padding gymnastics */
.slide--games-pin, .slide--countries-pin {
  display: block;
  padding: 0;
  overflow: visible;
  min-height: unset;
}
.slide__bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.slide__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
}

/* ============================================================
   SLIDE PROGRESS RAIL (left edge)
   ============================================================ */
.slide-rail {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.slide-rail a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 250ms ease;
}
.slide-rail a span { opacity: 0; transition: opacity 250ms ease, transform 250ms ease; transform: translateX(-4px); }
.slide-rail a i {
  width: 18px; height: 1px;
  background: var(--muted);
  transition: width 300ms ease, background 300ms ease, box-shadow 300ms ease, height 300ms ease;
  display: block;
}
.slide-rail a:hover { color: var(--text); }
.slide-rail a:hover span { opacity: 1; transform: translateX(0); }
.slide-rail a:hover i { width: 32px; background: var(--text); }
.slide-rail a.is-active { color: var(--green); }
.slide-rail a.is-active span { opacity: 1; transform: translateX(0); }
.slide-rail a.is-active i {
  width: 40px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  height: var(--nav-h);
  background: rgba(5,7,20,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5,7,20,0.85);
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; font-size: 17px; }
.nav__logo { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(255,42,109,0.5)); }
.nav__wordmark { line-height: 1; }
.nav__links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav__links a {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  position: relative; padding: 6px 0;
  transition: color 200ms ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--green);
  transition: width 300ms ease;
  box-shadow: 0 0 8px var(--green);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__ctas { display: flex; gap: 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn--lg { padding: 16px 24px; font-size: 13px; }
.btn--xl { padding: 20px 32px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(180deg, var(--green) 0%, #0acc63 100%);
  color: #00220e;
  box-shadow: 0 0 0 1px rgba(20,255,122,0.6), 0 0 24px rgba(20,255,122,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(20,255,122,0.9), 0 8px 32px rgba(20,255,122,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(120,160,255,0.4);
  transform: translateY(-2px);
}
.nav__cta { padding: 9px 14px; font-size: 11px; }

/* ============================================================
   ORB / BG ELEMENTS
   ============================================================ */
.grid-floor, .grid-ceiling {
  position: absolute;
  left: -10%; right: -10%;
  height: 55%;
  background-image:
    linear-gradient(rgba(20,255,122,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,255,122,0.18) 1px, transparent 1px);
  background-size: 60px 60px;
  perspective: 600px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.85), transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.85), transparent 80%);
}
.grid-floor {
  bottom: -10%;
  transform: rotateX(60deg);
  transform-origin: bottom;
  animation: gridScroll 20s linear infinite;
}
.grid-ceiling {
  top: -10%;
  transform: rotateX(-60deg);
  transform-origin: top;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
}
@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}
.hero__orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__orb--1 {
  top: -250px; left: -200px;
  background: radial-gradient(circle, rgba(20,255,122,0.4), transparent 65%);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--2 {
  bottom: -300px; right: -200px;
  background: radial-gradient(circle, rgba(255,42,109,0.4), transparent 65%);
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.hero__orb--cta {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(20,255,122,0.3), rgba(255,42,109,0.2) 40%, transparent 70%);
  width: 900px; height: 900px;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.1); }
}

.orb-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
}
.orb-blob--green { background: radial-gradient(circle, rgba(20,255,122,0.5), transparent 60%); top: 5%; left: -10%; animation: orbFloat 14s ease-in-out infinite; }
.orb-blob--pink  { background: radial-gradient(circle, rgba(255,42,109,0.5), transparent 60%); bottom: 5%; right: -10%; animation: orbFloat 18s ease-in-out infinite reverse; }
.orb-blob--cyan  { background: radial-gradient(circle, rgba(0,212,255,0.45), transparent 60%); top: 10%; left: -10%; animation: orbFloat 16s ease-in-out infinite; }
.orb-blob--right { left: auto; right: -10%; }
.orb-blob--center { left: 50%; top: 50%; transform: translate(-50%, -50%); animation: orbFloat 20s ease-in-out infinite; }

.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }

/* ============================================================
   STAGGER / REVEAL ON SLIDE-IN
   Elements with data-stagger start hidden, animate in when their slide enters.
   ============================================================ */
[data-stagger] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
/* delays by index */
[data-stagger="0"] { transition-delay: 100ms; }
[data-stagger="1"] { transition-delay: 250ms; }
[data-stagger="2"] { transition-delay: 400ms; }
[data-stagger="3"] { transition-delay: 550ms; }
[data-stagger="4"] { transition-delay: 700ms; }
[data-stagger="5"] { transition-delay: 850ms; }
[data-stagger="6"] { transition-delay: 1000ms; }

/* rotational variants — "ㄘㄜ ㄒㄧㄤˋ ㄏㄨㄟˊ ㄒㄩㄢˊ" : side spin */
[data-spin="left"]  { transform: translateX(-80px) rotate(-8deg) scale(0.92); transform-origin: left center; }
[data-spin="right"] { transform: translateX(80px)  rotate(8deg)  scale(0.92); transform-origin: right center; }
[data-spin="up"]    { transform: translateY(80px)  rotate(-4deg) scale(0.94); transform-origin: center bottom; }

.slide.is-in [data-stagger] { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }

/* exit animation when slide scrolls past viewport upwards (subtle) */
.slide.is-past [data-stagger] {
  opacity: 0;
  transform: translateY(-30px) scale(0.97);
  transition-delay: 0ms;
}

/* ============================================================
   HERO
   ============================================================ */
.slide--hero { padding-top: calc(var(--nav-h) + 24px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__col-left { min-width: 0; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(20,255,122,0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green);
  background: rgba(20,255,122,0.05);
  margin-bottom: 24px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  position: relative;
}
.dot-pulse::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--green);
  animation: dotPulse 1.8s ease-out infinite;
}
.dot-pulse--small { width: 6px; height: 6px; }
@keyframes dotPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.hero__line { display: block; }
.hero__line--glitch { position: relative; }
.hero__line--glitch::before,
.hero__line--glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.hero__line--glitch::before { color: var(--pink); transform: translate(2px, 0); mix-blend-mode: screen; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); animation: glitch1 4s infinite; }
.hero__line--glitch::after  { color: var(--cyan); transform: translate(-2px, 0); mix-blend-mode: screen; clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); animation: glitch2 4s infinite; }
@keyframes glitch1 {
  0%, 92%, 100% { transform: translate(0,0); }
  93% { transform: translate(3px, -1px); }
  95% { transform: translate(-2px, 2px); }
  97% { transform: translate(1px, -3px); }
}
@keyframes glitch2 {
  0%, 92%, 100% { transform: translate(0,0); }
  93% { transform: translate(-3px, 1px); }
  95% { transform: translate(2px, -2px); }
  97% { transform: translate(-1px, 3px); }
}

.hero__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 0 30px;
  line-height: 1.65;
}
.hero__ctas { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero__metrics {
  display: flex; align-items: center;
  gap: 22px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13,18,40,0.5);
  backdrop-filter: blur(12px);
  max-width: 700px;
  position: relative;
}
.hero__metrics::before, .hero__metrics::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--green);
}
.hero__metrics::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__metrics::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.metric { flex: 1; min-width: 0; }
.metric__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 0 14px var(--green-soft);
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metric__sep {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}

/* ----- hero visual ----- */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}
.hero__visual-frame {
  position: relative;
  width: 100%; height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 80px rgba(20,255,122,0.18), inset 0 0 60px rgba(255,42,109,0.18);
  transition: transform 200ms ease-out;
}
.hero__visual-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  animation: visualKenBurns 18s ease-in-out infinite alternate;
}
@keyframes visualKenBurns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}
.hero__visual-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(20,255,122,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,255,122,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__visual-corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--green); border-style: solid; border-width: 0;
  z-index: 2;
}
.hero__visual-corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.hero__visual-corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.hero__visual-corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.hero__visual-corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.hero__visual-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 20px var(--green);
  animation: scan 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hero__visual-tag {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(20,255,122,0.5);
  border-radius: 100px;
  font-size: 10px;
  color: var(--green);
  backdrop-filter: blur(8px);
}

.chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(13,18,40,0.92);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 3;
}
.chip--1 { top: 10%; left: -10%; color: var(--green); border-color: rgba(20,255,122,0.45); box-shadow: 0 0 24px rgba(20,255,122,0.3); }
.chip--2 { top: 48%; right: -8%; color: var(--pink); border-color: rgba(255,42,109,0.45); box-shadow: 0 0 24px rgba(255,42,109,0.3); animation-delay: -2s; }
.chip--3 { bottom: 8%; left: -6%; color: var(--cyan); border-color: rgba(0,212,255,0.45); box-shadow: 0 0 24px rgba(0,212,255,0.3); animation-delay: -4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero__scroll {
  position: absolute;
  bottom: 70px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--green), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: var(--green);
  animation: scrollLine 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}
@keyframes scrollLine {
  0%   { top: -12px; }
  100% { top: 42px; }
}

/* ----- ticker ----- */
.ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--green);
  color: #001a08;
  padding: 11px 0;
  overflow: hidden;
  transform: skewY(-1.2deg) translateY(22px);
  border-top: 2px solid #00220e;
  border-bottom: 2px solid #00220e;
  width: 110%;
  margin-left: -5%;
  z-index: 4;
}
.ticker__track {
  display: flex; gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  animation: tickerScroll 40s linear infinite;
}
.ticker__track span { flex-shrink: 0; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  margin: 0 auto 48px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(20,255,122,0.3);
  border-radius: 4px;
  background: rgba(20,255,122,0.05);
}
.hash { color: var(--text-dim); margin-right: 6px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.service {
  position: relative;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13,18,40,0.85) 0%, rgba(8,11,28,0.95) 100%);
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
  display: flex; flex-direction: column;
  --accent: var(--green);
  --accent-soft: var(--green-soft);
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.service:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 80px -20px var(--accent-soft);
}
.service:hover::before { opacity: 0.7; }

.service--pink { --accent: var(--pink); --accent-soft: var(--pink-soft); }
.service--cyan { --accent: var(--cyan); --accent-soft: var(--cyan-soft); }

.service__visual {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service__visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms ease;
}
.service:hover .service__visual img { transform: scale(1.06); }
.service__visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,11,28,0.95) 100%);
}
.service__visual-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: overlay;
}

.service__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px 0;
  font-size: 11px;
}
.service__num { color: var(--muted); letter-spacing: 0.15em; }
.service__tag {
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 12px 22px 0;
}
.service__title-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.service__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 14px 22px 0;
  margin: 0;
}
.service__bullets {
  list-style: none;
  padding: 14px 22px 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}
.service__bullets li {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.service__bullets li:last-child { border-bottom: 0; }
.service__bullet-bar {
  width: 14px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.service__readout {
  margin: 16px 22px 22px;
  padding: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  margin-top: auto;
}
.readout-row {
  display: grid; grid-template-columns: 36px 1fr 60px;
  align-items: center; gap: 10px;
  padding: 5px 0;
}
.readout-label { color: var(--muted); }
.readout-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.readout-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in oklch, var(--accent) 60%, white));
  box-shadow: 0 0 12px var(--accent);
  border-radius: 3px;
}
.slide.is-in .readout-bar i { animation: barFill 1.8s cubic-bezier(0.2, 0.9, 0.2, 1) both; transform-origin: left; }
@keyframes barFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.readout-val { color: var(--accent); text-align: right; font-weight: 700; }

.split { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.split__side { flex: 1; text-align: center; }
.split__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 16px var(--accent-soft);
}
.split__label {
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 6px;
}
.split__plus {
  font-size: 22px; color: var(--accent);
  font-family: var(--font-display); font-weight: 800;
}

.terminal { font-size: 11px; line-height: 1.7; }
.terminal__row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-prompt { color: var(--accent); margin-right: 6px; }
.t-ok { color: var(--green); margin-right: 6px; }
.t-green { color: var(--green); font-weight: 700; }
.t-cur { color: var(--accent); animation: blink 1s steps(2) infinite; }
.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ============================================================
   GAMES
   ============================================================ */
.games__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: stretch;
}
.games__tabs { display: flex; flex-direction: column; gap: 4px; }
.game-tab {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: rgba(13,18,40,0.4);
  text-align: left;
  transition: all 250ms ease;
  position: relative;
  overflow: hidden;
}
.game-tab__num { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.game-tab__name { flex: 1; font-weight: 600; font-size: 15px; color: var(--text-dim); }
.game-tab__arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: transform 250ms ease, color 250ms ease;
}
.game-tab:hover {
  background: rgba(20,255,122,0.06);
  border-color: var(--line-strong);
}
.game-tab:hover .game-tab__name { color: var(--text); }
.game-tab:hover .game-tab__arrow { transform: translateX(4px); color: var(--green); }
.game-tab.is-active {
  background: linear-gradient(90deg, rgba(20,255,122,0.12), rgba(20,255,122,0.02));
  border-color: rgba(20,255,122,0.3);
  border-left-color: var(--green);
  box-shadow: inset 0 0 30px rgba(20,255,122,0.05);
}
.game-tab.is-active .game-tab__num { color: var(--green); }
.game-tab.is-active .game-tab__name { color: var(--text); }
.game-tab.is-active .game-tab__arrow { color: var(--green); transform: translateX(4px); }

.games__stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  min-height: 520px;
}
.games__stage::before, .games__stage::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--green); z-index: 2;
}
.games__stage::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.games__stage::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.game-panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}
.game-panel.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.game-panel__img {
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.game-panel__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  animation: visualKenBurns 14s ease-in-out infinite alternate;
}
.game-panel__img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(13,18,40,0.6) 100%),
    linear-gradient(rgba(20,255,122,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,255,122,0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  mix-blend-mode: overlay;
}
.game-panel__body { padding: 24px 28px 28px; }
.game-panel__eyebrow { font-size: 11px; color: var(--green); letter-spacing: 0.18em; margin-bottom: 10px; }
.game-panel__title { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin: 0 0 10px; line-height: 1.1; }
.game-panel__body p { color: var(--text-dim); font-size: 14px; line-height: 1.65; margin: 0 0 18px; max-width: 620px; }
.game-panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.game-panel__stats > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 5px;
}
.game-panel__stats span:first-child {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-display);
}
.game-panel__stats span:last-child {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   COUNTRIES
   ============================================================ */
.countries__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.map {
  position: relative;
  aspect-ratio: 6 / 5;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, #050a1e 0%, #0a1230 100%);
  overflow: hidden;
}
.map__svg { width: 100%; height: 100%; display: block; }
.map__corner {
  position: absolute;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.map__corner--tl { top: 12px; left: 14px; }
.map__corner--tr { top: 12px; right: 14px; }
.map__corner--bl { bottom: 12px; left: 14px; }
.map__corner--br { bottom: 12px; right: 14px; color: var(--green); }

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
}
.map-node__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green), 0 0 4px #fff inset;
  border: 2px solid #000;
  transition: transform 200ms ease;
}
.map-node__pulse {
  position: absolute;
  top: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: dotPulse 2s ease-out infinite;
}
.map-node__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  background: rgba(0,0,0,0.6);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transform: translateY(4px);
  transition: color 200ms ease, border-color 200ms ease;
}
.map-node:hover .map-node__dot { transform: scale(1.3); }
.map-node:hover .map-node__label { color: var(--text); border-color: var(--green); }
.map-node.is-active .map-node__dot {
  background: var(--pink);
  box-shadow: 0 0 22px var(--pink), 0 0 6px #fff inset;
  transform: scale(1.3);
}
.map-node.is-active .map-node__pulse { border-color: var(--pink); }
.map-node.is-active .map-node__label {
  color: var(--text);
  border-color: var(--pink);
  background: rgba(255,42,109,0.15);
}

.country-detail {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  min-height: 480px;
}
.country-detail::before, .country-detail::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--pink); z-index: 2;
}
.country-detail::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.country-detail::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.country-panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1.1fr 1fr;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}
.country-panel.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.country-panel__img {
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.country-panel__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  animation: visualKenBurns 14s ease-in-out infinite alternate;
}
.country-panel__img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(13,18,40,0.7) 100%),
    linear-gradient(rgba(255,42,109,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,42,109,0.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  mix-blend-mode: overlay;
}
.country-panel__body { padding: 22px 26px 26px; }
.country-panel__flag {
  display: inline-block;
  font-size: 11px;
  color: var(--pink);
  background: rgba(255,42,109,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,42,109,0.35);
  margin-bottom: 12px;
}
.country-panel__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.15;
}
.country-panel__body p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.country-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-panel__chips span {
  padding: 5px 11px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners__stack { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-tile {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 250ms ease;
  position: relative;
  overflow: hidden;
}
.brand-tile::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(20,255,122,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 250ms ease;
}
.brand-tile img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(0.4) brightness(0.9);
  transition: filter 250ms ease, transform 250ms ease;
  position: relative;
  z-index: 1;
}
.brand-tile:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20,255,122,0.2);
}
.brand-tile:hover::before { opacity: 1; }
.brand-tile:hover img { filter: grayscale(0) brightness(1.1); transform: scale(1.08); }

/* ============================================================
   CTA SLIDE
   ============================================================ */
.slide--cta {
  padding-bottom: 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.cta__inner {
  display: flex; flex-direction: column;
  align-items: center;
  width: 100%;
}
.cta__content {
  max-width: 820px;
  text-align: center;
  padding: 60px 20px 80px;
}
.cta__eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 22px;
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 12px var(--green); }
  50%      { text-shadow: 0 0 28px var(--green), 0 0 50px var(--green); }
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.cta__sub {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 36px;
  line-height: 1.6;
}
.cta__buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta__contacts {
  font-size: 13px;
  color: var(--text-dim);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.cta__contacts a { transition: color 200ms ease; }
.cta__contacts a:hover { color: var(--green); }
.cta__sep { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: 100%;
  background: #02040d;
  border-top: 1px solid var(--line);
  padding: 48px 40px 20px;
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.footer__brand img { width: 32px; height: 32px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__h {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.footer__cols a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  padding: 4px 0;
  transition: color 200ms ease;
}
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  flex-wrap: wrap; gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .slide-rail { display: none; }
  /* simplify pinned sections to plain stacks on small screens */
  .slide--games-pin, .slide--countries-pin { min-height: 100vh; }
  .slide--games-pin .pin, .slide--countries-pin .pin { height: auto; }
  .slide--games-pin .pin__inner, .slide--countries-pin .pin__inner { position: relative; height: auto; min-height: 100vh; padding: calc(var(--nav-h) + 24px) 20px 60px; }
  .games-pin { grid-template-columns: 1fr; gap: 18px; }
  .games-pin__rail { display: none; }
  .games-pin__steps { flex-direction: row; overflow-x: auto; }
  .countries-pin { grid-template-columns: 1fr; gap: 18px; }
  .globe-wrap { aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
  .countries-pin__rail { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
  .services__grid { grid-template-columns: 1fr; }
  .games__layout { grid-template-columns: 1fr; }
  .countries__layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  /* turn off snap on small screens for better reading */
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav { padding: 12px 16px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 9px; }
  .slide { padding: calc(var(--nav-h) + 24px) 20px 60px; }
  .hero__metrics { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .metric__sep { display: none; }
  .hero__title { font-size: 36px; }
  .game-panel__stats { grid-template-columns: 1fr; }
  .cta__content { padding: 40px 16px 60px; }
  .cta__buttons .btn { width: 100%; justify-content: center; }
  .footer { padding: 32px 16px 16px; }
  .footer__cols { grid-template-columns: 1fr; }
  .ticker { font-size: 11px; }
}

/* ============================================================
   PINNED SLIDE FRAMEWORK
   (Games + Countries are tall sections with sticky inner viewports)
   ============================================================ */
.pin {
  position: relative;
  /* total scrollable height set per-section below */
}
.slide--games-pin .pin     { height: 500vh; }   /* 5 game tabs × 100vh */
.slide--countries-pin .pin { height: 600vh; }   /* 6 country panels × 100vh */

.slide--games-pin .pin__inner,
.slide--countries-pin .pin__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 12px) 40px 24px;
  overflow: hidden;
}
.pin__inner > .slide__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-head--inline { margin: 0 auto 18px; }
.section-head--inline .section-title { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 6px; }
.section-head--inline .section-eyebrow { margin-bottom: 10px; padding: 4px 12px; font-size: 11px; }

/* ============================================================
   GAMES (PINNED)
   ============================================================ */
.games-pin {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr 60px;
  gap: 28px;
  align-items: stretch;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

/* left step indicator */
.games-pin__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.games-pin__steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: rgba(13,18,40,0.4);
  transition: all 350ms ease;
  cursor: default;
}
.games-pin__steps li .mono { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.games-pin__steps li > span:last-child { font-weight: 600; font-size: 15px; color: var(--text-dim); flex: 1; }
.games-pin__steps li.is-active {
  background: linear-gradient(90deg, rgba(20,255,122,0.16), rgba(20,255,122,0.02));
  border-color: rgba(20,255,122,0.4);
  border-left-color: var(--green);
  box-shadow: inset 0 0 30px rgba(20,255,122,0.08);
  transform: translateX(4px);
}
.games-pin__steps li.is-active .mono,
.games-pin__steps li.is-active > span:last-child { color: var(--text); }
.games-pin__steps li.is-active .mono { color: var(--green); }

/* center stage */
.games-pin__stage {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  min-height: 480px;
}
.games-pin__stage::before, .games-pin__stage::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--green); z-index: 3;
}
.games-pin__stage::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.games-pin__stage::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* the game-panel cross-fade rules already exist; restate the layout for inside the pin */
.games-pin__stage .game-panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1.15fr 1fr;
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.games-pin__stage .game-panel.is-active {
  opacity: 1; transform: scale(1) translateY(0); pointer-events: auto;
}

/* right vertical rail */
.games-pin__rail {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
}
.games-pin__rail-fill {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.08);
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.games-pin__rail-fill::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--green), var(--cyan));
  box-shadow: 0 0 8px var(--green);
  transition: height 300ms ease;
}
.games-pin__rail-dots {
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
  z-index: 1;
}
.games-pin__rail-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.games-pin__rail-dots span.is-active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.games-pin__rail-label {
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.2em;
  white-space: nowrap;
  display: none; /* hidden — too cluttered */
}

/* ============================================================
   COUNTRIES PINNED — GLOBE + DETAIL
   ============================================================ */
.countries-pin {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

/* ----- GLOBE ----- */
.globe-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: min(560px, 60vh);
  margin: 0 auto;
  display: flex;
  align-items: center; justify-content: center;
}
.globe {
  position: relative;
  width: 100%; height: 100%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.globe__halo {
  position: absolute; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, rgba(20,255,122,0.18) 65%, transparent 80%);
  filter: blur(20px);
  pointer-events: none;
  animation: haloBreath 4s ease-in-out infinite;
}
@keyframes haloBreath {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.globe__atmo {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(0,212,255,0.18), transparent 55%);
  box-shadow: inset 0 0 40px rgba(0,212,255,0.18), 0 0 60px rgba(20,255,122,0.18);
  pointer-events: none;
}

.globe__sphere {
  position: absolute; inset: 8%;
  border-radius: 50%;
  transform-style: preserve-3d;
  /* set inline by JS; this is the rotating wireframe + markers container */
  transform: rotateX(0deg) rotateY(0deg);
  pointer-events: none;
}

/* the dark "ball" base — STATIC, gives the silhouette so the sphere never collapses */
.globe__ball {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(20,255,122,0.10) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.7) 0%, transparent 60%),
    radial-gradient(circle, #0a1530 0%, #050a1a 70%, #02040c 100%);
  box-shadow:
    inset -20px -30px 60px rgba(0,0,0,0.75),
    inset 20px 20px 40px rgba(20,255,122,0.05);
  pointer-events: none;
}

/* faux continents — STATIC overlay painted on the ball (purely decorative) */
.globe__continents {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 14% 8%  at 56% 56%, rgba(20,255,122,0.45), transparent 70%),
    radial-gradient(ellipse  8% 12% at 62% 60%, rgba(20,255,122,0.40), transparent 70%),
    radial-gradient(ellipse 12% 16% at 44% 48%, rgba(20,255,122,0.40), transparent 70%),
    radial-gradient(ellipse 22% 12% at 56% 38%, rgba(20,255,122,0.32), transparent 70%),
    radial-gradient(ellipse  6%  9% at 72% 38%, rgba(20,255,122,0.40), transparent 70%),
    radial-gradient(ellipse 22%  5% at 58% 66%, rgba(20,255,122,0.32), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(1px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 65%, transparent 75%);
  mask-image: radial-gradient(circle, #000 65%, transparent 75%);
}

/* wireframe rings — inside the rotating .globe__sphere preserve-3d space */
.ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(20,255,122,0.28);
  pointer-events: none;
  box-shadow: 0 0 4px rgba(20,255,122,0.2);
}
.ring--lat { transform: rotateX(var(--rx, 0deg)); }
.ring--lng { transform: rotateY(var(--ry, 0deg)); }

/* country markers — placed via rotateY(lng) rotateX(-lat) translateZ(R) */
.g-marker {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  /* translate the dot to the sphere surface */
  transform:
    rotateY(calc(var(--lng) * 1deg))
    rotateX(calc(-1 * var(--lat) * 1deg))
    translateZ(calc(var(--sphereR, 240px)));
  pointer-events: none;
}
.g-marker i {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green), 0 0 4px #fff inset;
  border: 2px solid #000;
  position: absolute;
  left: -7px; top: -7px;
  transition: background 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.g-marker i::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--green);
  animation: dotPulse 2s ease-out infinite;
}
.g-marker b {
  position: absolute;
  left: 12px; top: -8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transform: scale(0.9);
  opacity: 0.7;
  transition: all 300ms ease;
}
.g-marker.is-active i {
  background: var(--pink);
  box-shadow: 0 0 24px var(--pink), 0 0 6px #fff inset;
  transform: scale(1.4);
}
.g-marker.is-active i::before { border-color: var(--pink); }
.g-marker.is-active b {
  border-color: var(--pink);
  background: rgba(255,42,109,0.2);
  transform: scale(1);
  opacity: 1;
}

.globe__hud {
  position: absolute;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  z-index: 3;
}
.globe__hud--tl { top: 0; left: 0; }
.globe__hud--tr { top: 0; right: 0; text-align: right; }
.globe__hud--bl { bottom: 0; left: 0; }
.globe__hud--br { bottom: 0; right: 0; color: var(--green); text-align: right; }
.globe__hud span { color: var(--green); margin-left: 4px; }

/* ----- country detail panel ----- */
.countries-pin .country-detail {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  min-height: 480px;
}
.countries-pin .country-detail::before, .countries-pin .country-detail::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--pink); z-index: 3;
}
.countries-pin .country-detail::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.countries-pin .country-detail::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.countries-pin .country-panel {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 1.05fr 1fr;
  opacity: 0;
  transform: translateX(30px) scale(0.97);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.countries-pin .country-panel.is-active {
  opacity: 1; transform: translateX(0) scale(1); pointer-events: auto;
}

/* ----- bottom progress rail for countries ----- */
.countries-pin__rail {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 18px auto 0;
  width: 100%;
  padding: 0 20px;
}
.countries-pin__rail-fill {
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.countries-pin__rail-fill::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 8px var(--pink);
  transition: width 300ms ease;
}
.countries-pin__rail-labels {
  list-style: none;
  display: flex; justify-content: space-between;
  padding: 8px 0 0; margin: 0;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.countries-pin__rail-labels li.is-active { color: var(--pink); }

/* ============================================================
   RESPONSIVE OVERRIDES — must come AFTER pinned framework
   (equal selector specificity → source order wins)
   ============================================================ */
@media (max-width: 900px) {
  /* turn pinned scroll sections into normal stacked slides */
  .slide--games-pin .pin,
  .slide--countries-pin .pin {
    height: auto;
  }
  .slide--games-pin .pin__inner,
  .slide--countries-pin .pin__inner {
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 24px) 20px 56px;
    justify-content: flex-start;
    overflow: visible;
  }

  /* GAMES → single column; stack all panels statically (no scroll-jack on mobile) */
  .games-pin {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .games-pin__rail { display: none; }
  .games-pin__steps { display: none; }
  .games-pin__stage {
    min-height: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .games-pin__stage::before, .games-pin__stage::after { display: none; }
  .games-pin__stage .game-panel {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    grid-template-rows: auto auto;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    margin-bottom: 14px;
  }
  .games-pin__stage .game-panel__img { aspect-ratio: 16 / 10; }

  /* COUNTRIES → globe on top, all country panels stacked below, centered */
  .countries-pin {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
  .globe-wrap {
    max-width: min(360px, 70vw);
    width: 100%;
  }
  .countries-pin .country-detail {
    width: 100%;
    min-height: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .countries-pin .country-detail::before,
  .countries-pin .country-detail::after { display: none; }
  .countries-pin .country-panel {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    grid-template-rows: auto auto;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    margin-bottom: 14px;
  }
  .countries-pin .country-panel__img { aspect-ratio: 16 / 10; }
  .countries-pin__rail { display: none; }
}

@media (max-width: 720px) {
  .games-pin__stage { min-height: 0; }
  .games-pin__steps li > span:last-child { font-size: 13px; }
  .globe-wrap { max-width: min(300px, 78vw); }
  .countries-pin .country-detail { min-height: 0; }
  .section-head--inline .section-title { font-size: clamp(24px, 7vw, 34px); }
}

/* ---- HERO centering on mobile (text + image + metrics all centered) ---- */
@media (max-width: 900px) {
  .hero__col-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__metrics { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero__title { align-items: center; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__metrics { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__metrics .metric { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; }
  .nav__wordmark { font-size: 15px; }
  .ticker__track { font-size: 11px; gap: 28px; }
}

