/* =====================================================================
   CITYICON — Motion & 3D layer
   ---------------------------------------------------------------------
   Depth, motion and micro-interaction on top of style.css.
   Everything here is pure CSS + the vanilla engine in assets/js/effects.js.
   No external libraries, no CDN, no build step.

   Every animation is disabled under prefers-reduced-motion (see the end of
   this file) — motion is decoration, never the only way to read the page.
   ===================================================================== */

:root {
  --ci-ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ci-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ci-dur-fast:    .18s;
  --ci-dur:         .38s;
  --ci-dur-slow:    .75s;
}

/* ==================================================================== */
/* Keyframes                                                            */
/* ==================================================================== */
@keyframes ciFadeUp    { from { opacity:0; transform:translate3d(0,26px,0); }      to { opacity:1; transform:none; } }
@keyframes ciFadeDown  { from { opacity:0; transform:translate3d(0,-22px,0); }     to { opacity:1; transform:none; } }
@keyframes ciFadeLeft  { from { opacity:0; transform:translate3d(-30px,0,0); }     to { opacity:1; transform:none; } }
@keyframes ciFadeRight { from { opacity:0; transform:translate3d(30px,0,0); }      to { opacity:1; transform:none; } }
@keyframes ciZoomIn    { from { opacity:0; transform:scale(.9); }                  to { opacity:1; transform:none; } }
@keyframes ciPopIn     { 0% { opacity:0; transform:scale(.7) translateZ(0); } 60% { opacity:1; transform:scale(1.06); } 100% { opacity:1; transform:scale(1); } }
@keyframes ciFlipIn    { from { opacity:0; transform:perspective(900px) rotateX(-38deg); } to { opacity:1; transform:perspective(900px) rotateX(0); } }

@keyframes ciFloat     { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-16px) rotate(3deg); } }
@keyframes ciFloatSlow { 0%,100% { transform:translateY(0) translateX(0); } 33% { transform:translateY(-22px) translateX(10px); } 66% { transform:translateY(10px) translateX(-8px); } }
@keyframes ciSpin3d    { from { transform:rotateX(-18deg) rotateY(0deg); } to { transform:rotateX(-18deg) rotateY(360deg); } }
@keyframes ciSpinY     { from { transform:rotateY(0deg); } to { transform:rotateY(360deg); } }
@keyframes ciPulseRing { 0% { transform:scale(.85); opacity:.75; } 70% { transform:scale(1.6); opacity:0; } 100% { opacity:0; } }
@keyframes ciShimmer   { 0% { background-position:-500px 0; } 100% { background-position:500px 0; } }
@keyframes ciGradient  { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes ciGlare     { 0% { transform:translateX(-120%) skewX(-18deg); } 100% { transform:translateX(320%) skewX(-18deg); } }
@keyframes ciBlink     { 0%,100% { opacity:1; } 50% { opacity:.62; } }
@keyframes ciRise      { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes ciCountPop  { 0% { transform:scale(1); } 45% { transform:scale(1.14); } 100% { transform:scale(1); } }
@keyframes ciDrawRing  { from { stroke-dashoffset: var(--dash); } to { stroke-dashoffset: var(--target); } }

/* ==================================================================== */
/* Scroll reveal — elements start hidden, engine adds .is-in            */
/* ==================================================================== */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;                 /* authoritative — never rely on the keyframe */
  animation: ciFadeUp var(--ci-dur-slow) var(--ci-ease-out) forwards;
}
[data-reveal="down"].is-in  { animation-name: ciFadeDown; }
[data-reveal="left"].is-in  { animation-name: ciFadeLeft; }
[data-reveal="right"].is-in { animation-name: ciFadeRight; }
[data-reveal="zoom"].is-in  { animation-name: ciZoomIn; }
[data-reveal="pop"].is-in   { animation-name: ciPopIn; }
[data-reveal="flip"].is-in  { animation-name: ciFlipIn; }

/* If JavaScript never runs, content must not stay invisible. */
.no-js [data-reveal] { opacity: 1 !important; animation: none !important; }

/* ==================================================================== */
/* 3D tilt cards                                                        */
/* ==================================================================== */
.ci-tilt {
  position: relative;          /* contains the injected .ci-glare */
  transform-style: preserve-3d;
  transition: transform var(--ci-dur) var(--ci-ease-out),
              box-shadow var(--ci-dur) var(--ci-ease-out);
  will-change: transform;
}
.ci-tilt-wrap { perspective: 1000px; }

.ci-tilt.is-tilting {
  transition: transform 80ms linear, box-shadow var(--ci-dur) var(--ci-ease-out);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
}

/* Lift child layers off the card surface for real parallax depth. */
.ci-depth-1 { transform: translateZ(18px); }
.ci-depth-2 { transform: translateZ(34px); }
.ci-depth-3 { transform: translateZ(52px); }

/* Moving specular highlight driven by --gx / --gy from the engine. */
.ci-glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ci-dur) var(--ci-ease-out);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, .28), transparent 42%);
}
.ci-tilt.is-tilting .ci-glare { opacity: 1; }

/* ==================================================================== */
/* Hero — canvas particle field + floating 3D solids                    */
/* ==================================================================== */
.ci-hero { perspective: 1400px; }

#ciHeroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .38;
}

.ci-hero-shapes {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
  overflow: hidden;
}
.ci-shape {
  position: absolute;
  opacity: .5;
  animation: ciFloatSlow 14s ease-in-out infinite;
}
.ci-shape--ring {
  width: 190px; height: 190px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16);
  top: 8%; right: 6%;
  animation-duration: 18s;
}
.ci-shape--ring::after {
  content: ""; position: absolute; inset: 26px;
  border-radius: 50%; border: 2px dashed rgba(245, 158, 11, .32);
}
.ci-shape--dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ci-accent);
  box-shadow: 0 0 22px 5px rgba(245, 158, 11, .55);
  bottom: 22%; left: 8%;
  animation-duration: 11s;
}
.ci-shape--bar {
  width: 130px; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(37,99,235,.85), transparent);
  top: 62%; right: 20%;
  animation-duration: 16s;
}
.ci-shape--tri {
  width: 0; height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 58px solid rgba(255, 255, 255, .1);
  top: 20%; left: 4%;
  animation-duration: 20s;
}

/* --- Rotating 3D cube ---------------------------------------------- */
.ci-cube-stage {
  perspective: 900px;
  width: 150px;
  height: 230px;                 /* room for the perspective projection */
  margin: 0 auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ci-cube {
  position: relative;
  width: 150px; height: 150px;
  transform-style: preserve-3d;
  animation: ciSpin3d 17s linear infinite;
}
.ci-cube__face {
  position: absolute;
  width: 150px; height: 150px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(16, 29, 51, .72));
  backdrop-filter: blur(3px);
  color: #fff;
  font-size: 2.1rem;
  box-shadow: inset 0 0 34px rgba(37, 99, 235, .3);
}
.ci-cube__face--front  { transform: translateZ(75px); }
.ci-cube__face--back   { transform: rotateY(180deg) translateZ(75px); }
.ci-cube__face--right  { transform: rotateY(90deg)   translateZ(75px); }
.ci-cube__face--left   { transform: rotateY(-90deg)  translateZ(75px); }
.ci-cube__face--top    { transform: rotateX(90deg)   translateZ(75px); }
.ci-cube__face--bottom { transform: rotateX(-90deg)  translateZ(75px); }

/* ==================================================================== */
/* Buttons — ripple, magnetic pull, sheen                               */
/* ==================================================================== */
.btn { position: relative; overflow: hidden; }

.ci-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .45);
  animation: ciRippleOut .62s var(--ci-ease-out);
  pointer-events: none;
}
@keyframes ciRippleOut { to { transform: scale(2.6); opacity: 0; } }

.btn-primary, .btn-accent { transition: transform var(--ci-dur-fast) var(--ci-ease-spring), box-shadow var(--ci-dur) ease, background-color .15s ease; }
.btn-primary:hover, .btn-accent:hover { transform: translateY(-2px) scale(1.015); }
.btn-primary:active, .btn-accent:active { transform: translateY(0) scale(.99); }

.ci-magnetic { transition: transform var(--ci-dur) var(--ci-ease-out); will-change: transform; }

/* Sheen sweep on primary CTAs */
.ci-sheen::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.ci-sheen:hover::after { animation: ciGlare .85s var(--ci-ease-out); }

/* ==================================================================== */
/* Cards, tiles and lists                                               */
/* ==================================================================== */
.ci-card { transition: transform var(--ci-dur) var(--ci-ease-out), box-shadow var(--ci-dur) var(--ci-ease-out), border-color var(--ci-dur) ease; }

.ci-cat-tile { position: relative; overflow: hidden; }
.ci-cat-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(245,158,11,.07));
  opacity: 0;
  transition: opacity var(--ci-dur) ease;
}
.ci-cat-tile:hover::before { opacity: 1; }
.ci-cat-tile .ci-cat-icon { transition: transform var(--ci-dur) var(--ci-ease-spring), background-color var(--ci-dur) ease, color var(--ci-dur) ease; }
.ci-cat-tile:hover .ci-cat-icon { transform: translateY(-4px) rotateY(180deg) scale(1.08); }

.ci-quiz-card { position: relative; overflow: hidden; }
.ci-quiz-card::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.09), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.ci-quiz-card:hover::after { animation: ciGlare 1.05s var(--ci-ease-out); }

.ci-stat { transition: transform var(--ci-dur) var(--ci-ease-out), box-shadow var(--ci-dur) ease; }
.ci-stat:hover { transform: translateY(-4px); box-shadow: var(--ci-shadow); }
.ci-stat-icon { transition: transform var(--ci-dur) var(--ci-ease-spring); }
.ci-stat:hover .ci-stat-icon { transform: rotateY(180deg) scale(1.06); }

.ci-stat-value.is-counting { animation: ciCountPop .5s var(--ci-ease-spring); }

.ci-table tbody tr { transition: background-color .15s ease, transform .15s ease; }
.ci-table tbody tr:hover { transform: translateX(3px); }

/* ==================================================================== */
/* Pricing plans                                                        */
/* ==================================================================== */
.ci-plan { transition: transform var(--ci-dur) var(--ci-ease-out), box-shadow var(--ci-dur) ease, border-color var(--ci-dur) ease; }
.ci-plan.popular {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
.ci-plan.popular::before {
  content: "";
  position: absolute; inset: -1.5px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--ci-primary), var(--ci-accent), var(--ci-primary));
  background-size: 260% 260%;
  animation: ciGradient 6s ease infinite;
  z-index: -1;
}
.ci-plan-features li { transition: transform var(--ci-dur-fast) ease; }
.ci-plan:hover .ci-plan-features li { transform: translateX(3px); }


/* ==================================================================== */
/* How it works — a flow that travels from one step to the next          */
/* -------------------------------------------------------------------- */
/* A highlight moves along the row on a six-beat loop: the connector      */
/* fills, then the next marker lights up. No spinning or flipping — the   */
/* numbers stay readable at all times.                                    */
/* ==================================================================== */
.ci-step {
  position: relative;
  text-align: center;
  padding: 1rem .5rem;
  --beat: 1.5s;                       /* time per step */
  --cycle: 9s;                        /* 6 steps x beat */
}
.ci-step h3 { font-size: .98rem; margin-bottom: .3rem; }
.ci-step p  { font-size: .85rem; color: var(--ci-muted); margin: 0; }

/* Connector: a muted dashed track ... */
.ci-step::before {
  content: "";
  position: absolute; top: 41px;      /* marker centre: 1rem padding + 26px */
  left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ci-border-strong) 0 5px, transparent 5px 11px);
  opacity: .7;
}
/* ... with a coloured fill that sweeps across it in turn. */
.ci-step::after {
  content: "";
  position: absolute; top: 40px;      /* centred on the same axis */
  left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ci-primary), var(--ci-accent));
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(37, 99, 235, .5);
  animation: ciStepFlow var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * var(--beat));
}
.ci-step.is-last::before,
.ci-step.is-last::after { display: none; }

@keyframes ciStepFlow {
  0%   { transform: scaleX(0); opacity: 0; }
  4%   { opacity: 1; }
  16%  { transform: scaleX(1); opacity: 1; }
  72%  { transform: scaleX(1); opacity: 1; }
  86%  { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* Marker */
.ci-step-num {
  position: relative;
  width: 52px; height: 52px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ci-navy) 0%, var(--ci-chrome) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 5px rgba(16, 29, 51, .07), 0 6px 16px -6px rgba(15, 23, 42, .5);
  transition: transform .35s var(--ci-ease-spring), box-shadow .35s ease, background .35s ease;
  z-index: 1;
}
.ci-step-num__value { position: relative; z-index: 2; }

/* The travelling highlight: each marker takes its turn. */
.ci-step-num::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ci-primary) 0%, var(--ci-primary-dark) 100%);
  opacity: 0;
  animation: ciStepLight var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * var(--beat));
  z-index: 1;
}
/* An expanding ring, like a signal passing through. */
.ci-step-num::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ci-accent);
  opacity: 0;
  animation: ciStepRing var(--cycle) linear infinite;
  animation-delay: calc(var(--i) * var(--beat));
}
@keyframes ciStepLight {
  0%, 2%   { opacity: 0; }
  8%, 70%  { opacity: 1; }
  84%,100% { opacity: 0; }
}
@keyframes ciStepRing {
  0%   { opacity: 0; transform: scale(1); }
  6%   { opacity: .9; transform: scale(1); }
  22%  { opacity: 0; transform: scale(1.75); }
  100% { opacity: 0; transform: scale(1.75); }
}

/* Hover: a clean lift, never a flip — the number must stay readable. */
.ci-step:hover .ci-step-num {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, .14), 0 14px 26px -10px rgba(37, 99, 235, .6);
}
.ci-step h3 { transition: color .3s ease; }
.ci-step:hover h3 { color: var(--ci-primary); }

@media (max-width: 991.98px) {
  .ci-step::before, .ci-step::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-step::after, .ci-step-num::after, .ci-step-num::before { animation: none; }
  .ci-step::after { transform: scaleX(1); opacity: .5; }
}

/* ==================================================================== */
/* Score ring + confetti                                                */
/* ==================================================================== */
.ci-score-ring { position: relative; }
.ci-score-ring::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--ring-color, var(--ci-primary));
  opacity: 0;
  animation: ciPulseRing 2.4s var(--ci-ease-out) 3;
}
#ciConfetti {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
}

/* ==================================================================== */
/* Quiz engine motion                                                   */
/* ==================================================================== */
.ci-option { transition: transform var(--ci-dur-fast) var(--ci-ease-out), border-color var(--ci-dur-fast) ease, background-color var(--ci-dur-fast) ease, box-shadow var(--ci-dur-fast) ease; }
.ci-option:hover { transform: translateX(4px); }
.ci-option.selected { animation: ciPopIn .34s var(--ci-ease-spring); }
.ci-option-key { transition: transform var(--ci-dur-fast) var(--ci-ease-spring); }
.ci-option.selected .ci-option-key { transform: rotateY(180deg); }

.ci-palette-btn { transition: transform var(--ci-dur-fast) var(--ci-ease-spring), background-color .15s ease, border-color .15s ease, color .15s ease; }
.ci-palette-btn:hover { transform: translateY(-3px) scale(1.06); }
.ci-palette-btn.answered { animation: ciPopIn .3s var(--ci-ease-spring); }

.ci-timer.danger { animation: ciBlink 1.4s ease-in-out infinite; }

.ci-progress-bar { position: relative; overflow: hidden; }

/* ==================================================================== */
/* Review items                                                         */
/* ==================================================================== */
.ci-review-option { transition: transform var(--ci-dur-fast) ease; }
.ci-review-item:hover .ci-review-option.is-correct { transform: translateX(3px); }

/* ==================================================================== */
/* Navigation & shell                                                   */
/* ==================================================================== */
.ci-navbar { transition: box-shadow var(--ci-dur) ease, background-color var(--ci-dur) ease; }
.ci-navbar.is-stuck { box-shadow: 0 6px 24px rgba(15, 23, 42, .1); }

.ci-navbar .nav-link { position: relative; }
.ci-navbar .nav-link::after {
  content: "";
  position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; border-radius: 2px;
  background: var(--ci-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ci-dur) var(--ci-ease-out);
}
.ci-navbar .nav-link:hover::after,
.ci-navbar .nav-link.active::after { transform: scaleX(1); }

/* Scroll progress indicator */
#ciScrollBar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ci-primary), var(--ci-accent));
  z-index: 2000;
  transition: width .1s linear;
}

.ci-sidebar-link { transition: background-color var(--ci-dur-fast) ease, color var(--ci-dur-fast) ease, border-color var(--ci-dur-fast) ease, padding-left var(--ci-dur-fast) var(--ci-ease-out); }
.ci-sidebar-link:hover { padding-left: 1.6rem; }
.ci-sidebar-link i { transition: transform var(--ci-dur) var(--ci-ease-spring); }
.ci-sidebar-link:hover i { transform: scale(1.18) rotate(-6deg); }

/* Back to top */
#ciTopBtn {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  border: none;
  background: var(--ci-navy); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--ci-shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all var(--ci-dur) var(--ci-ease-out);
  z-index: 1500;
}
#ciTopBtn.is-visible { opacity: 1; visibility: visible; transform: none; }
#ciTopBtn:hover { background: var(--ci-primary); transform: translateY(-3px); }

/* ==================================================================== */
/* Page + alert entrances                                               */
/* ==================================================================== */
.ci-page-head > .container { animation: ciFadeUp .55s var(--ci-ease-out); }
.alert { animation: ciFadeDown .35s var(--ci-ease-out); }
.ci-auth-card { animation: ciPopIn .5s var(--ci-ease-out); }
.modal.fade .modal-dialog { transition: transform .3s var(--ci-ease-spring); }

/* Skeleton shimmer for any future async content */
.ci-skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%);
  background-size: 500px 100%;
  animation: ciShimmer 1.4s linear infinite;
  border-radius: 6px;
}

/* Animated gradient text for hero emphasis */
.ci-gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--ci-accent) 45%, #fff 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ciGradient 7s ease infinite;
}

/* Badge pop */
.ci-badge { transition: transform var(--ci-dur-fast) var(--ci-ease-spring); }
.ci-badge:hover { transform: translateY(-1px) scale(1.05); }

.badge-premium { position: relative; overflow: hidden; }
.badge-premium::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: none;
}
.badge-premium:hover::after { animation: ciGlare .9s var(--ci-ease-out); }

/* Avatar ring on hover */
.ci-avatar { transition: transform var(--ci-dur) var(--ci-ease-spring), box-shadow var(--ci-dur) ease; }
.ci-avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }

/* Rank medals shimmer */
.ci-rank.gold, .ci-rank.silver, .ci-rank.bronze { position: relative; overflow: hidden; }
.ci-rank.gold::after, .ci-rank.silver::after, .ci-rank.bronze::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: none;
}
.ci-rank.gold:hover::after, .ci-rank.silver:hover::after, .ci-rank.bronze:hover::after {
  animation: ciGlare 1s var(--ci-ease-out);
}

/* Empty-state icon float */
.ci-empty i { transition: transform var(--ci-dur) var(--ci-ease-spring); }
.ci-empty:hover i { transform: translateY(-4px); }

/* Feature icon 3D pop */
.ci-feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--ci-primary-soft);
  color: var(--ci-primary);
  transition: transform var(--ci-dur) var(--ci-ease-spring), box-shadow var(--ci-dur) ease;
  transform-style: preserve-3d;
}
.ci-card:hover .ci-feature-icon {
  transform: translateZ(20px) rotateY(180deg);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}

/* Marquee strip */
.ci-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ci-marquee__track {
  display: flex; gap: 2.5rem;
  width: max-content;
  animation: ciMarquee 46s linear infinite;
}
.ci-marquee:hover .ci-marquee__track { animation-play-state: paused; }
@keyframes ciMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Testimonial / quote card */
.ci-quote {
  position: relative;
  padding-top: 2.2rem;
}
.ci-quote::before {
  content: "\201C";
  position: absolute; top: -.35rem; left: 0;
  font-size: 4rem; line-height: 1;
  color: var(--ci-primary);
  opacity: .18;
  font-family: Georgia, serif;
}

/* Section divider wave */
.ci-wave { display: block; width: 100%; height: 54px; }

/* ==================================================================== */
/* Footer                                                               */
/* ==================================================================== */
.ci-footer { position: relative; overflow: hidden; }
.ci-footer::before {
  content: "";
  position: absolute; top: -160px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .22), transparent 68%);
  pointer-events: none;
}
.ci-social a {
  transition: transform var(--ci-dur) var(--ci-ease-spring), background-color var(--ci-dur) ease;
}
.ci-social a:hover { transform: translateY(-4px) rotate(-6deg); }
.ci-social a.is-facebook:hover  { background: #1877f2; }
.ci-social a.is-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.ci-social a.is-twitter:hover   { background: #000; }
.ci-social a.is-linkedin:hover  { background: #0a66c2; }
.ci-social a.is-youtube:hover   { background: #ff0000; }
.ci-social a.is-whatsapp:hover  { background: #25d366; }

.ci-footer li a { transition: padding-left var(--ci-dur-fast) var(--ci-ease-out), color var(--ci-dur-fast) ease; }
.ci-footer li a:hover { padding-left: 6px; }

.ci-footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.ci-footer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.ci-newsletter .form-control {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.ci-newsletter .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.ci-newsletter .form-control:focus {
  background: rgba(255, 255, 255, .12);
  border-color: var(--ci-accent);
  box-shadow: none; color: #fff;
}

/* ==================================================================== */
/* Reduced motion — kill every animation, keep every layout             */
/* ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #ciHeroCanvas, .ci-hero-shapes, .ci-cube-stage { display: none; }
  .ci-tilt { transform: none !important; }
}

/* Print: no motion, no decoration */
@media print {
  [data-reveal] { opacity: 1 !important; }
  #ciHeroCanvas, .ci-hero-shapes, #ciTopBtn, #ciScrollBar, #ciConfetti { display: none !important; }
}

/* ==================================================================== */
/* Dashboard & admin panel motion                                       */
/* ==================================================================== */

/* Admin attempt-trend bars grow from the baseline */
@keyframes ciBarGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ci-bar {
  transform-origin: bottom;
  animation: ciBarGrow .7s var(--ci-ease-spring) backwards;
  transition: filter var(--ci-dur) ease;
}
.ci-bar:hover { filter: brightness(1.25); }
.ci-bar-col:nth-child(1)  .ci-bar { animation-delay: .02s; }
.ci-bar-col:nth-child(2)  .ci-bar { animation-delay: .06s; }
.ci-bar-col:nth-child(3)  .ci-bar { animation-delay: .10s; }
.ci-bar-col:nth-child(4)  .ci-bar { animation-delay: .14s; }
.ci-bar-col:nth-child(5)  .ci-bar { animation-delay: .18s; }
.ci-bar-col:nth-child(6)  .ci-bar { animation-delay: .22s; }
.ci-bar-col:nth-child(7)  .ci-bar { animation-delay: .26s; }
.ci-bar-col:nth-child(8)  .ci-bar { animation-delay: .30s; }
.ci-bar-col:nth-child(9)  .ci-bar { animation-delay: .34s; }
.ci-bar-col:nth-child(10) .ci-bar { animation-delay: .38s; }
.ci-bar-col:nth-child(11) .ci-bar { animation-delay: .42s; }
.ci-bar-col:nth-child(12) .ci-bar { animation-delay: .46s; }
.ci-bar-col:nth-child(13) .ci-bar { animation-delay: .50s; }
.ci-bar-col:nth-child(14) .ci-bar { animation-delay: .54s; }

/* Progress bars sweep to width on first paint */
@keyframes ciBarSlide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ci-progress-bar { transform-origin: left; animation: ciBarSlide .9s var(--ci-ease-out) backwards; }

/* Dashboard greeting panel — subtle animated gradient wash */
.ci-greet {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #fff 0%, #f6f9ff 45%, #fff 100%);
  background-size: 220% 220%;
}
.ci-greet::after {
  content: "";
  position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .1), transparent 68%);
  pointer-events: none;
}


/* Topbar drop-in */

/* Nav tabs underline slide */
.nav-tabs .nav-link { position: relative; transition: color var(--ci-dur-fast) ease; }
.nav-tabs .nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ci-primary);
  transform: scaleX(0);
  transition: transform var(--ci-dur) var(--ci-ease-out);
}
.nav-tabs .nav-link.active::after { transform: scaleX(1); }

/* Modal content lift */
.modal-content { animation: ciPopIn .34s var(--ci-ease-spring); }

/* Accordion chevron spin */
.accordion-button::after { transition: transform var(--ci-dur) var(--ci-ease-spring); }
.accordion-button:not(.collapsed)::after { transform: rotate(-180deg); }

@media (prefers-reduced-motion: reduce) {
  .ci-bar, .ci-progress-bar, .progress-bar,
  .ci-sidebar-link, .ci-topbar, .modal-content, .ci-greet { animation: none !important; }
}

/* Rotating headline word ---------------------------------------------- */
.ci-rotate {
  display: inline-block;
  text-align: left;
  transition: opacity .17s var(--ci-ease-out), transform .17s var(--ci-ease-out);
}
.ci-rotate.is-out    { opacity: 0; transform: translateY(-10px); }
.ci-rotate.is-in-word{ animation: ciWordIn .30s var(--ci-ease-spring); }
@keyframes ciWordIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-rotate, .ci-rotate.is-out, .ci-rotate.is-in-word {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

/* Theme transition — colour only, so layout never animates */
html.js body, html.js .ci-card, html.js .ci-navbar, html.js .ci-sidebar,
html.js .ci-topbar, html.js .ci-table, html.js .form-control {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ==================================================================== */
/* 3D city globe                                                        */
/* -------------------------------------------------------------------- */
/* A lit sphere rather than a wireframe: a shaded planet body, an        */
/* atmospheric halo, a tilted orbit ring, and city labels projected onto */
/* the surface by effects.js. Depth drives scale, opacity and blur.      */
/* ==================================================================== */
.ci-globe {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* Atmospheric halo */
.ci-globe::before {
  content: "";
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              rgba(59,130,246,.30) 0%, rgba(59,130,246,.14) 52%,
              rgba(59,130,246,.05) 66%, transparent 74%);
  filter: blur(10px);
  z-index: 0;
}

/* The planet body — lit from the upper left */
.ci-globe__core {
  position: absolute; inset: 17%;
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.34) 0%, transparent 34%),
    radial-gradient(circle at 34% 30%, #3b82f6 0%, #1d4ed8 38%, #14295c 68%, #0a1531 100%);
  box-shadow:
    inset -26px -22px 60px rgba(3,7,18,.85),
    inset 14px 12px 44px rgba(147,197,253,.30),
    0 0 60px rgba(37,99,235,.42);
  filter: none;
}

/* Landmass-ish texture so it does not read as a flat disc */
.ci-globe__core::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  opacity: .40;
  background:
    radial-gradient(ellipse 22% 13% at 36% 34%, rgba(245,158,11,.75), transparent 62%),
    radial-gradient(ellipse 15% 20% at 62% 52%, rgba(52,211,153,.55), transparent 62%),
    radial-gradient(ellipse 26% 10% at 48% 70%, rgba(245,158,11,.45), transparent 62%),
    radial-gradient(ellipse 12% 16% at 24% 58%, rgba(52,211,153,.40), transparent 62%);
  mix-blend-mode: screen;
  animation: ciGlobeDrift 40s linear infinite;
}
@keyframes ciGlobeDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-6%); }
}

/* Meridian cage, sitting just above the surface */
.ci-globe__cage {
  position: absolute; inset: 17%;
  transform-style: preserve-3d;
  animation: ciGlobeSpin 30s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.ci-globe__ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(191, 219, 254, .26);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.ci-globe__ring:nth-child(1) { transform: rotateY(0deg); }
.ci-globe__ring:nth-child(2) { transform: rotateY(45deg); }
.ci-globe__ring:nth-child(3) { transform: rotateY(90deg); }
.ci-globe__ring:nth-child(4) { transform: rotateY(135deg); }
.ci-globe__ring--lat { border-color: rgba(245, 158, 11, .22); }
.ci-globe__ring:nth-child(5) { transform: rotateX(90deg) scale(.995); }
.ci-globe__ring:nth-child(6) { transform: rotateX(90deg) translateZ(34%) scale(.80); }
.ci-globe__ring:nth-child(7) { transform: rotateX(90deg) translateZ(-34%) scale(.80); }
@keyframes ciGlobeSpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* A tilted orbit ring outside the planet */
.ci-globe__orbit {
  position: absolute; inset: 6%;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, .35);
  transform: rotateX(74deg) rotateZ(-12deg);
  z-index: 3;
  pointer-events: none;
  animation: ciOrbitSpin 22s linear infinite;
}
.ci-globe__orbit::after {
  content: "";
  position: absolute; top: -6px; left: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ci-accent);
  box-shadow: 0 0 16px 4px rgba(245,158,11,.75);
  transform: translateX(-50%);
}
@keyframes ciOrbitSpin { from { transform: rotateX(74deg) rotateZ(-12deg) rotate(0deg); }
                         to   { transform: rotateX(74deg) rotateZ(-12deg) rotate(360deg); } }

/* City labels on the surface */
.ci-globe__words { position: absolute; inset: 0; transform-style: preserve-3d; z-index: 4; }
.ci-globe__word {
  position: absolute; top: 50%; left: 50%;
  white-space: nowrap;
  font-weight: 700; font-size: .84rem;
  letter-spacing: .01em;
  color: #eaf2ff;
  text-shadow: 0 1px 8px rgba(0,0,0,.85);
  will-change: transform, opacity;
  pointer-events: auto; cursor: default;
  transition: color .2s ease;
}
.ci-globe__word::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin-right: .38rem;
  vertical-align: middle; opacity: .75;
}
.ci-globe__word.is-accent { color: var(--ci-accent); }
.ci-globe__word:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ci-globe__cage, .ci-globe__orbit, .ci-globe__core::after { animation: none; }
}
@media (max-width: 991.98px) {
  .ci-globe { max-width: 330px; }
  .ci-globe__word { font-size: .7rem; }
}
}

/* ==================================================================== */
/* Challenge screen                                                     */
/* ==================================================================== */
.ci-challenge-shell { position: relative; }
.ci-challenge-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.ci-challenge-bg img { width: 100%; height: 100%; object-fit: cover; }
.ci-challenge-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(246,247,251,.94), rgba(246,247,251,.97));
  backdrop-filter: blur(3px);
}
[data-theme="dark"] .ci-challenge-bg::after {
  background: linear-gradient(180deg, rgba(10,16,32,.94), rgba(10,16,32,.97));
}

/* Per-question progress */
.ci-qprogress { height: 4px; border-radius: 99px; background: #e8edf5; overflow: hidden; margin-top: .35rem; }
.ci-qprogress-bar { height: 100%; width: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--ci-accent), var(--ci-danger)); transition: width 1s linear; }
[data-theme="dark"] .ci-qprogress { background: #1b263f; }

/* Question image */
.ci-qimage { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--ci-border); }
.ci-qimage img { width: 100%; max-height: 320px; object-fit: contain; display: block; background: #f6f8fc; }
[data-theme="dark"] .ci-qimage img { background: #0d1526; }

/* Violation overlay */
.ci-viol-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(11,18,32,.92);
  display: none; place-items: center; padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.ci-viol-overlay.is-open { display: grid; animation: ciFadeUp .25s var(--ci-ease-out); }
.ci-viol-card {
  max-width: 460px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #7f1d1d, #450a0a);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 2rem 1.75rem;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
}
.ci-viol-card i { font-size: 2.6rem; color: #fca5a5; }
.ci-viol-card h3 { color: #fff; font-size: 1.25rem; margin: .6rem 0 .4rem; }
.ci-viol-card p { color: rgba(255,255,255,.85); font-size: .92rem; }

/* ============================================================
   LOADING SCREEN
   ------------------------------------------------------------
   Three independent ways out, because a splash that sticks is
   worse than no splash at all:
     1. JS removes it on window 'load'
     2. JS removes it on a hard timeout
     3. this CSS animation ends at opacity 0 / visibility hidden,
        so even with every script blocked it clears itself
   The .no-js rule keeps it hidden entirely when JS is off.
   ============================================================ */
.no-js .ci-splash { display: none !important; }

.ci-splash {
  --splash-ms: 1400ms;
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #1b3a6b 0%, #101d33 45%, #080f1c 100%);
  animation: ciSplashOut 600ms ease forwards;
  animation-delay: calc(var(--splash-ms) + 2500ms);   /* failsafe, JS is normally faster */
}
.ci-splash.is-out { animation: ciSplashOut 520ms ease forwards; animation-delay: 0ms; }

@keyframes ciSplashOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.ci-splash__stage { text-align: center; color: #fff; padding: 1rem; }

/* --- orb: three tilted rings around a lit core --- */
.ci-splash__orb {
  position: relative;
  width: 128px; height: 128px;
  margin: 0 auto 1.4rem;
  transform-style: preserve-3d;
  animation: ciSplashSpin 9s linear infinite;
}
@keyframes ciSplashSpin { to { transform: rotateY(360deg); } }

.ci-splash__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(96,165,250,.45);
  border-top-color: rgba(147,197,253,.95);
  border-bottom-color: transparent;
}
.ci-splash__ring:nth-child(1) { transform: rotateX(68deg); animation: ciSplashRing 2.6s linear infinite; }
.ci-splash__ring:nth-child(2) { transform: rotateY(68deg); animation: ciSplashRing 3.4s linear infinite reverse; }
.ci-splash__ring:nth-child(3) { transform: rotateX(28deg) rotateY(42deg); animation: ciSplashRing 4.2s linear infinite; }
@keyframes ciSplashRing { to { rotate: z 360deg; } }

.ci-splash__core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #93c5fd, #2563eb 58%, #14306b 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 34px rgba(59,130,246,.65);
  animation: ciSplashPulse 2.1s ease-in-out infinite;
}
@keyframes ciSplashPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 0 26px rgba(59,130,246,.5); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 0 48px rgba(59,130,246,.85); }
}
.ci-splash__core img { width: 62%; height: 62%; object-fit: contain; }
.ci-splash__mark { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; color: #fff; }

/* the satellite that orbits the orb */
.ci-splash__sat {
  position: absolute; top: 50%; left: 50%;
  width: 9px; height: 9px; margin: -4.5px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 12px 3px rgba(251,191,36,.75);
  animation: ciSplashOrbit 3.1s linear infinite;
}
@keyframes ciSplashOrbit {
  from { transform: rotate(0deg) translateX(66px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(66px) rotate(-360deg); }
}

.ci-splash__name {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .01em;
  animation: ciSplashRise .6s ease both .1s;
}
.ci-splash__msg {
  font-size: .86rem; color: #9fb6d4; margin-top: .2rem;
  animation: ciSplashRise .6s ease both .22s;
}
@keyframes ciSplashRise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.ci-splash__bar {
  width: 186px; height: 3px; margin: 1.15rem auto 0;
  border-radius: 999px; overflow: hidden;
  background: rgba(148,163,184,.22);
}
.ci-splash__bar i {
  display: block; height: 100%; width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #60a5fa, #fbbf24, transparent);
  animation: ciSplashSweep 1.25s ease-in-out infinite;
}
@keyframes ciSplashSweep {
  from { transform: translateX(-110%); }
  to   { transform: translateX(320%); }
}

/* Someone who asked for less motion gets a plain panel that still clears. */
@media (prefers-reduced-motion: reduce) {
  .ci-splash__orb, .ci-splash__ring, .ci-splash__core,
  .ci-splash__sat, .ci-splash__bar i { animation: none !important; }
  .ci-splash__name, .ci-splash__msg  { animation: none !important; opacity: 1; transform: none; }
}

/* ============================================================
   HERO — three visuals, one message
   The left-hand copy never moves; only the object on the right
   changes. Slides are stacked and cross-faded, so the hero keeps
   a fixed height and nothing below it jumps.
   ============================================================ */
.ci-heroshow { position: relative; min-height: 420px; }
@media (max-width: 991px) { .ci-heroshow { min-height: 330px; margin-top: 2rem; } }

.ci-heroshow__slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: scale(.94) translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1), visibility 0s linear .7s;
}
.ci-heroshow__slide.is-on {
  opacity: 1; visibility: visible;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1), visibility 0s;
}

.ci-heroshow__dots {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  display: flex; gap: .45rem; z-index: 5;
}
.ci-heroshow__dots button {
  width: 30px; height: 4px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden;
  transition: background .3s ease, width .3s ease;
}
.ci-heroshow__dots button.is-on { width: 46px; background: rgba(255,255,255,.32); }
.ci-heroshow__dots button span { display: block; height: 100%; width: 0; border-radius: 999px; background: #fbbf24; }
.ci-heroshow__dots button.is-on span { animation: ciHeroFill 6s linear forwards; }
@keyframes ciHeroFill { from { width: 0; } to { width: 100%; } }

/* ---------------- slide 2: podium ---------------- */
.ci-podium { position: relative; width: min(340px, 82%); height: 300px; }
.ci-podium__glow {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.34), transparent 62%);
  filter: blur(6px);
  animation: ciPodiumGlow 4s ease-in-out infinite;
}
@keyframes ciPodiumGlow { 0%,100% { opacity:.55; } 50% { opacity:1; } }

.ci-podium__set {
  position: absolute; inset: auto 0 22% 0;
  display: flex; align-items: flex-end; justify-content: center; gap: .6rem;
  perspective: 700px;
}
.ci-podium__col { display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; }
.ci-podium__block {
  width: 76px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.35) inset;
  transform: rotateX(9deg);
  animation: ciPodiumRise .9s cubic-bezier(.2,.8,.3,1) both;
}
.ci-podium__col--1 .ci-podium__block { height: 116px; animation-delay: .15s;
  background: linear-gradient(180deg, rgba(251,191,36,.45), rgba(217,119,6,.22)); border-color: rgba(251,191,36,.6); }
.ci-podium__col--2 .ci-podium__block { height: 84px; animation-delay: .05s; }
.ci-podium__col--3 .ci-podium__block { height: 62px; animation-delay: .25s; }
@keyframes ciPodiumRise { from { transform: rotateX(9deg) scaleY(.1); opacity: 0; } to { opacity: 1; } }

.ci-podium__medal {
  width: 38px; height: 38px; margin-bottom: .4rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #1e293b;
  background: linear-gradient(145deg, #e2e8f0, #94a3b8);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6);
}
.ci-podium__col--1 .ci-podium__medal { background: linear-gradient(145deg,#fde68a,#f59e0b); color: #4a3105;
  width: 44px; height: 44px; font-size: 1.05rem; }
.ci-podium__col--3 .ci-podium__medal { background: linear-gradient(145deg,#e0a678,#b45309); color: #fff; }

.ci-podium__cup {
  font-size: 2rem; color: #fbbf24; margin-bottom: .3rem;
  filter: drop-shadow(0 6px 14px rgba(251,191,36,.6));
  animation: ciCupFloat 3s ease-in-out infinite;
}
@keyframes ciCupFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }

.ci-podium__spark { position: absolute; inset: 0; pointer-events: none; }
.ci-podium__spark i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24; opacity: 0;
  animation: ciSpark 3.2s ease-in-out infinite;
}
.ci-podium__spark i:nth-child(1){ left:18%; top:30%; animation-delay:0s; }
.ci-podium__spark i:nth-child(2){ left:78%; top:22%; animation-delay:.5s; }
.ci-podium__spark i:nth-child(3){ left:36%; top:12%; animation-delay:1s; }
.ci-podium__spark i:nth-child(4){ left:64%; top:38%; animation-delay:1.5s; }
.ci-podium__spark i:nth-child(5){ left:50%; top:6%;  animation-delay:2s; }
.ci-podium__spark i:nth-child(6){ left:88%; top:48%; animation-delay:2.5s; }
@keyframes ciSpark {
  0%   { opacity: 0; transform: translateY(6px) scale(.5); }
  35%  { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(.4); }
}

/* ---------------- slide 3: city map ----------------
   The previous skyline was a row of vertical bars of varying height, which
   reads as a bar chart. This is a tilted map plane with pins instead —
   unambiguously about places, and distinct from the globe on slide 1. */
.ci-citymap { position: relative; width: min(380px, 88%); height: 320px; perspective: 900px; }

.ci-citymap__plane {
  position: absolute; inset: 8% 0 14%;
  border-radius: 18px;
  transform: rotateX(52deg) rotateZ(-12deg);
  transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(37,99,235,.34), rgba(15,39,68,.5));
  border: 1px solid rgba(148,197,253,.35);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.8), 0 0 40px rgba(59,130,246,.22) inset;
  animation: ciMapFloat 7s ease-in-out infinite;
}
@keyframes ciMapFloat {
  0%,100% { transform: rotateX(52deg) rotateZ(-12deg) translateY(0); }
  50%     { transform: rotateX(52deg) rotateZ(-12deg) translateY(-14px); }
}

.ci-citymap__grid {
  position: absolute; inset: 0; border-radius: inherit;
  background-image:
    linear-gradient(rgba(148,197,253,.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,197,253,.20) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 55%, transparent 88%);
}

/* Roads: a couple of brighter lines so the plane reads as a map, not a grid. */
.ci-citymap__road {
  position: absolute; background: rgba(191,219,254,.45); border-radius: 999px;
}
.ci-citymap__road--1 { left: 6%; right: 6%; top: 38%; height: 2px; }
.ci-citymap__road--2 { top: 8%; bottom: 8%; left: 46%; width: 2px; }
.ci-citymap__road--3 { left: 12%; right: 30%; top: 68%; height: 2px; transform: rotate(-8deg); }

/* A slow radar sweep — motion without another spinning object. */
.ci-citymap__sweep {
  position: absolute; left: 50%; top: 50%;
  width: 150%; height: 150%; transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(96,165,250,.30), transparent 28%);
  border-radius: 50%;
  animation: ciMapSweep 6s linear infinite;
  mask-image: radial-gradient(circle at 0 0, #000 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 55%, transparent 78%);
}
@keyframes ciMapSweep { to { transform: rotate(360deg); } }

.ci-citymap__pin {
  position: absolute;
  transform: translate(-50%, -100%) rotateX(-52deg) rotateZ(12deg);
  transform-style: preserve-3d;
  display: flex; flex-direction: column; align-items: center;
  animation: ciPinFloat 3.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ciPinFloat {
  0%,100% { translate: 0 0; }
  50%     { translate: 0 -7px; }
}
.ci-citymap__pin .bi {
  font-size: 1.35rem; color: #fbbf24;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.55));
}
.ci-citymap__pin b {
  font-size: .62rem; font-weight: 700; color: #fff;
  padding: .12rem .4rem; border-radius: 6px; white-space: nowrap;
  background: rgba(11,28,48,.75);
  border: 1px solid rgba(148,197,253,.3);
  backdrop-filter: blur(4px);
}
/* The ping sits on the plane under each pin. */
.ci-citymap__ping {
  position: absolute; bottom: -4px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; border: 2px solid rgba(251,191,36,.8);
  animation: ciPing 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes ciPing {
  0%   { transform: scale(.4); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

.ci-citymap__trophy {
  position: absolute; right: 4%; top: 2%;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; color: #4a3105;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  box-shadow: 0 14px 28px -10px rgba(217,119,6,.8);
  animation: ciCupFloat 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ci-heroshow__slide { transition: opacity .25s ease; transform: none; }
  .ci-heroshow__dots button span,
  .ci-podium__glow, .ci-podium__block, .ci-podium__cup, .ci-podium__spark i,
  .ci-citymap__plane, .ci-citymap__sweep, .ci-citymap__pin,
  .ci-citymap__ping, .ci-citymap__trophy {
    animation: none !important;
  }
  .ci-citymap__ping { opacity: 0; }
}

/* Hero backdrops — one per slide, cross-faded in step with the visual.
   The existing .ci-hero-bg img rules still apply; these only add the
   stacking and the fade, so the scrims over the top are untouched. */
.ci-hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 9s linear;
}
.ci-hero-bg img.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .ci-hero-bg img { transition: opacity .3s ease; transform: none; }
}
