/* RLSS Boost — the "WE ARE BACK" popup (comeback.js): the ball rockets in and scores a goal explosion,
   then the words slam in. Shown once per visitor (localStorage), forced with ?back for testing. */
/* first visit: black from the very first paint (set by the inline script in <head>) until the popup
   takes over; if the script never runs, the black lifts by itself so nobody is stuck on it */
html.cb-pending::after { content: ""; position: fixed; inset: 0; z-index: 1199; background: #02040a; pointer-events: none;
  animation: cbPendingOut .6s ease 4.5s forwards; }
@keyframes cbPendingOut { to { opacity: 0; visibility: hidden; } }
.cb { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; overflow: hidden; color: #fff; font-family: var(--rb-f, "Geist", sans-serif);
  -webkit-tap-highlight-color: transparent; }
html.cb-open { overflow: hidden; }
/* the real site shows through around the edges; behind the words it's held dark enough to read */
.cb-back { position: absolute; inset: 0;
  background: radial-gradient(60% 52% at 50% 56%, rgba(1, 2, 8, .9), rgba(1, 2, 8, .74) 62%, rgba(1, 2, 8, .64) 100%);
  backdrop-filter: blur(8px) saturate(125%); -webkit-backdrop-filter: blur(8px) saturate(125%); }
/* the black the ball flies through; the explosion burns it away and the real site shows behind */
.cb-black { position: absolute; inset: 0; background: #02040a; pointer-events: none; transition: opacity 1.3s cubic-bezier(.2, .7, .2, 1) .05s; }
.cb.boom .cb-black { opacity: 0; }
.cb-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the ball in flight: JS drives its transform; it vanishes into the explosion */
/* the real 3D ball in flight (ball3d.js positions it); the picture below is its stand-in without WebGL */
.cb-ball3d { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; will-change: transform, opacity, filter; }
.cb-ball { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; pointer-events: none; opacity: 0; will-change: transform, opacity, filter; }
/* god rays behind the words, turning slowly once the dust settles */
.cb-rays { position: absolute; left: 50%; top: 46%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(120, 190, 255, .09) 0deg 4deg, transparent 4deg 13deg, rgba(255, 150, 70, .07) 13deg 16deg, transparent 16deg 26deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, transparent 70%);
  transition: opacity 1.4s ease; animation: cbSpin 70s linear infinite; }
.cb.boom .cb-rays { opacity: 1; }
@keyframes cbSpin { to { transform: rotate(360deg); } }

.cb-stage { position: relative; display: grid; justify-items: center; text-align: center; padding: 24px 20px; max-width: 980px; will-change: translate; }
.cb-kicker { margin: 0 0 6px; font: 700 13px/1 var(--rb-d, "Rajdhani", sans-serif); letter-spacing: .42em; text-transform: uppercase; color: var(--rb-cyan, #7ce7ff);
  opacity: 0; transform: translateY(10px); }
.cb-title { margin: 0; display: grid; justify-items: center; line-height: .82; text-transform: uppercase; }
.cb-we { font: 700 clamp(26px, 4.4vw, 56px)/1 var(--rb-d, "Rajdhani", sans-serif); letter-spacing: .5em; margin-right: -.5em; color: #dfe9ff; opacity: 0; }
.cb-big { position: relative; display: block; margin-top: .04em; font: 700 clamp(118px, 23vw, 330px)/.86 var(--rb-d, "Rajdhani", sans-serif); letter-spacing: -.01em;
  transform: skewX(-8deg); opacity: 0; color: transparent;
  background: linear-gradient(100deg, #fff 0%, #fff3d2 16%, #ffc94a 34%, #ff8a24 52%, #ff5f12 68%, #fff 86%, #ffe7b0 100%);
  background-size: 260% 100%; background-position: 80% 0; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 130, 40, .55)) drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); }
.cb-mark { display: inline-block; width: 0; height: 0; vertical-align: baseline; }   /* where the baseline is: the sparks aim at it */
/* glitch slices at impact: two offset copies in the team colours, cut into bands */
.cb-big::before, .cb-big::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; -webkit-text-fill-color: currentColor; background: none; }
.cb-big::before { color: rgba(40, 160, 255, .9); }
.cb-big::after { color: rgba(255, 110, 40, .9); }
.cb-sub { margin: 26px 0 0; max-width: 620px; font: 500 clamp(16px, 1.6vw, 20px)/1.55 var(--rb-f, "Geist", sans-serif); color: #c3cee6; opacity: 0; transform: translateY(14px); }
.cb-sub b { color: #fff; font-weight: 650; }
.cb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.cb-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 99px; font: 650 15px/1 var(--rb-f, "Geist", sans-serif);
  border: 1px solid rgba(150, 190, 255, .22); background: rgba(12, 20, 40, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); opacity: 0; transform: translateY(14px) scale(.96); }
.cb-chips svg { width: 18px; height: 18px; flex: none; }
.cb-chips li:nth-child(1) svg { color: #7ce7ff; filter: drop-shadow(0 0 6px rgba(124, 231, 255, .8)); }
.cb-chips li:nth-child(2) svg { color: #3ddc97; filter: drop-shadow(0 0 6px rgba(61, 220, 151, .8)); }
.cb-chips li:nth-child(3) svg { color: #ffcf5a; filter: drop-shadow(0 0 6px rgba(255, 207, 90, .8)); }
.cb-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; opacity: 0; transform: translateY(14px); }
.cb-cta .rb-btn { min-height: 54px; padding: 0 26px; font-size: 16px; }
.cb-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(150, 180, 255, .2); background: rgba(255, 255, 255, .05);
  color: #c9d3ea; font: 400 26px/1 var(--rb-f, sans-serif); cursor: pointer; opacity: 0; transition: opacity .4s ease .2s, background .2s, color .2s; }
.cb-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cb.boom .cb-x { opacity: 1; }

/* ── the sequence (classes added by comeback.js on the beat): .boom at impact, .formed when the
   explosion's sparks have assembled into BACK ── */
.cb.boom .cb-we { animation: cbSlam .55s cubic-bezier(.2, 1.4, .3, 1) .1s both; }
.cb.formed .cb-big { animation: cbLock .62s cubic-bezier(.2, 1.3, .3, 1) both, cbSheen 1.7s cubic-bezier(.4, 0, .2, 1) .15s both,
  cbBreathe 3.6s ease-in-out 2.2s infinite; }
.cb.formed .cb-big::before { animation: cbGlitchB .45s steps(1) both; }
.cb.formed .cb-big::after { animation: cbGlitchO .45s steps(1) both; }
.cb.formed .cb-kicker { animation: cbRise .7s cubic-bezier(.16, 1, .3, 1) .2s both; }
.cb.formed .cb-sub { animation: cbRise .8s cubic-bezier(.16, 1, .3, 1) .35s both; }
.cb.formed .cb-chips li { animation: cbPop .7s cubic-bezier(.2, 1.4, .3, 1) both; }
.cb.formed .cb-chips li:nth-child(1) { animation-delay: .5s; }
.cb.formed .cb-chips li:nth-child(2) { animation-delay: .6s; }
.cb.formed .cb-chips li:nth-child(3) { animation-delay: .7s; }
.cb.formed .cb-cta { animation: cbRise .8s cubic-bezier(.16, 1, .3, 1) .85s both; }
@keyframes cbSlam { 0% { opacity: 0; transform: scale(2.6); filter: blur(14px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; } }
/* the moment the sparks become the word: it lands white-hot and cools into its colours */
@keyframes cbLock {
  0% { opacity: 0; transform: skewX(-8deg) scale(1.07); filter: brightness(2.6) blur(3px) drop-shadow(0 0 60px rgba(255, 190, 90, 1)); }
  30% { opacity: 1; transform: skewX(-8deg) scale(.985); filter: brightness(1.7) blur(0) drop-shadow(0 0 70px rgba(255, 160, 60, .95)); }
  100% { opacity: 1; transform: skewX(-8deg) scale(1); filter: brightness(1) drop-shadow(0 0 30px rgba(255, 130, 40, .55)) drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); } }
/* a white glint runs across it and leaves it orange into white */
@keyframes cbSheen { from { background-position: 0% 0; } to { background-position: 80% 0; } }
@keyframes cbBreathe { 50% { filter: drop-shadow(0 0 46px rgba(255, 140, 50, .75)) drop-shadow(0 18px 40px rgba(0, 0, 0, .7)); } }
@keyframes cbGlitchB {
  0% { opacity: .9; transform: translate(-14px, 0); clip-path: inset(10% 0 62% 0); } 20% { transform: translate(10px, 0); clip-path: inset(58% 0 14% 0); }
  40% { transform: translate(-8px, 0); clip-path: inset(28% 0 44% 0); } 60% { transform: translate(5px, 0); clip-path: inset(72% 0 4% 0); }
  80% { transform: translate(-3px, 0); clip-path: inset(4% 0 80% 0); } 100% { opacity: 0; } }
@keyframes cbGlitchO {
  0% { opacity: .9; transform: translate(14px, 0); clip-path: inset(48% 0 30% 0); } 20% { transform: translate(-10px, 0); clip-path: inset(6% 0 70% 0); }
  40% { transform: translate(8px, 0); clip-path: inset(66% 0 10% 0); } 60% { transform: translate(-5px, 0); clip-path: inset(20% 0 54% 0); }
  80% { transform: translate(3px, 0); clip-path: inset(84% 0 2% 0); } 100% { opacity: 0; } }
@keyframes cbRise { to { opacity: 1; transform: none; } }
@keyframes cbPop { to { opacity: 1; transform: none; } }

/* leaving = the jump into the site: the words rush at you, the rest drops away, the rays and the dark
   lift, and the streaks (comeback.js) finish on a flash as the site lands */
.cb.warp { pointer-events: none; }
.cb.warp .cb-title { animation: cbWarpOut .62s cubic-bezier(.55, 0, .85, .35) forwards; }
.cb.warp .cb-kicker, .cb.warp .cb-sub, .cb.warp .cb-cta, .cb.warp .cb-chips li { animation: cbFall .3s ease forwards !important; }
.cb.warp .cb-x { opacity: 0; transition: opacity .2s ease; }
.cb.warp .cb-rays { opacity: 0; scale: 1.9; transition: opacity .55s ease, scale .9s cubic-bezier(.6, 0, .9, .5); }
.cb.warp .cb-back { opacity: 0; transition: opacity .8s ease .3s; }
.cb.warp .cb-fx { opacity: 0; transition: opacity .45s ease .8s; }
@keyframes cbWarpOut { to { transform: scale(5.5); opacity: 0; filter: blur(16px); } }
@keyframes cbFall { to { opacity: 0; transform: translateY(26px) scale(.94); } }

@media (max-width: 640px) {
  .cb-we { letter-spacing: .36em; margin-right: -.36em; }
  .cb-big { font-size: clamp(104px, 33vw, 170px); }
  .cb-sub { margin-top: 20px; }
  .cb-chips li { padding: 9px 13px 9px 10px; font-size: 14px; }
  .cb-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .cb-cta .rb-btn { width: 100%; }
  .cb-ball { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb.warp .cb-title { animation: cbFall .3s ease forwards; }
  .cb-rays { animation: none; }
  .cb.boom .cb-big::before, .cb.boom .cb-big::after { animation: none; }
}

/* phones: the same show, lighter - no live blur over the page (it re-blurs every frame), static rays,
   no endless glow animation on the big word */
@media (max-width: 699px) {
  /* without the blur nothing hides the page, and the bright banner hero shows straight through: hold it solid */
  .cb-back { backdrop-filter: none; -webkit-backdrop-filter: none;
    background: radial-gradient(60% 52% at 50% 56%, rgba(1, 2, 8, .99), rgba(2, 3, 10, .97) 62%, rgba(2, 3, 10, .96) 100%); }
  .cb-chips li, .cb .rb-btn.ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cb-rays { width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; animation: none; }
  .cb.formed .cb-big { animation: cbLock .62s cubic-bezier(.2, 1.3, .3, 1) both, cbSheen 1.7s cubic-bezier(.4, 0, .2, 1) .15s both; }
}
