/* =====================================================================
   GALLERY – "Our Journey In Pictures": everything centred,
   designed background, animated stat cards
   (load LAST in gallery.html)
   ===================================================================== */
@property --gj-ang{syntax:"<angle>";inherits:false;initial-value:0deg}

html body .panel.journey{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;padding:clamp(24px,2.4vw,40px) clamp(18px,2vw,34px)!important;border-radius:18px!important;
  border:1px solid rgba(70,110,230,.18)!important;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%,rgba(31,95,255,.12),transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 100%,rgba(227,20,27,.10),transparent 70%),
    linear-gradient(rgba(11,35,80,.04) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg,rgba(11,35,80,.04) 1px,transparent 1px) 0 0/28px 28px,
    linear-gradient(180deg,#ffffff,#f3f6fd)!important;
  box-shadow:0 14px 36px rgba(11,27,69,.08)!important}
/* slow running light around the panel */
html body .panel.journey::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;z-index:2;
  background:conic-gradient(from var(--gj-ang),transparent 0 70%,rgba(31,95,255,.65) 82%,rgba(227,20,27,.7) 92%,transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:gjRun 8s linear infinite}
/* dot cluster in the corner */
html body .panel.journey::after{content:"";position:absolute;z-index:-1;right:-10px;top:-10px;width:160px;height:120px;pointer-events:none;
  background:radial-gradient(circle,rgba(31,95,255,.35) 1.6px,transparent 2.2px) 0 0/16px 16px;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 25%,transparent 72%);mask-image:radial-gradient(ellipse at center,#000 25%,transparent 72%)}
@keyframes gjRun{to{--gj-ang:360deg}}

/* heading block: centred, button underneath */
html body .journey .journey-head{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:14px!important;width:100%;margin:0 0 clamp(18px,1.8vw,28px)!important;text-align:center!important}
html body .journey .journey-head > div{display:flex;flex-direction:column;align-items:center;max-width:620px}
html body .journey .title-bar{text-align:center!important;margin:0 0 8px!important;padding:0 0 12px!important;border:0!important;position:relative}
html body .journey .title-bar::before{display:none!important}
html body .journey .title-bar::after{content:"";position:absolute;left:50%;bottom:0;width:70px;height:4px;border-radius:4px;transform:translateX(-50%);
  background:linear-gradient(90deg,#e3141b,#1f5fff);box-shadow:0 0 10px rgba(227,20,27,.4)}
html body .journey .journey-head p{text-align:center!important;text-align-last:center!important;margin:0!important;max-width:560px;line-height:1.6}

/* stat cards: 4 in a row, everything centred */
html body .journey .stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(10px,1vw,18px)!important;width:100%}
html body .journey .gb-stat{
  --ac:#1f5fff;position:relative;overflow:hidden;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  text-align:center!important;padding:clamp(16px,1.6vw,26px) 10px clamp(14px,1.4vw,22px)!important;border-radius:16px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.8))!important;
  border:1px solid color-mix(in srgb,var(--ac) 20%,#e6ebf5)!important;
  box-shadow:0 8px 20px rgba(11,27,69,.06)!important;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
html body .journey .gb-stat:nth-child(1){--ac:#d7262e}
html body .journey .gb-stat:nth-child(2){--ac:#3f63e0}
html body .journey .gb-stat:nth-child(3){--ac:#3f9a4a}
html body .journey .gb-stat:nth-child(4){--ac:#d99a16}
/* coloured bar on top of each card */
html body .journey .gb-stat::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,transparent,var(--ac),transparent)}
/* light sweep on hover */
html body .journey .gb-stat::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;transform:skewX(-20deg);pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.7),transparent);transition:left .7s ease}
html body .journey .gb-stat:hover{transform:translateY(-6px);border-color:color-mix(in srgb,var(--ac) 45%,#fff)!important;
  box-shadow:0 18px 34px color-mix(in srgb,var(--ac) 22%,transparent)!important}
html body .journey .gb-stat:hover::after{left:130%}
/* icon in a soft circle with a pulsing ring */
html body .journey .gb-stat > i{position:relative;display:grid!important;place-items:center;width:clamp(44px,3.6vw,58px);height:clamp(44px,3.6vw,58px);
  margin:0 0 4px!important;border-radius:50%;font-size:clamp(18px,1.5vw,24px)!important;color:var(--ac)!important;
  background:color-mix(in srgb,var(--ac) 11%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ac) 25%,#fff);transition:transform .4s}
html body .journey .gb-stat > i::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid color-mix(in srgb,var(--ac) 45%,transparent);
  opacity:0;animation:gjRing 3s ease-out infinite}
html body .journey .gb-stat:nth-child(2) > i::after{animation-delay:.75s}
html body .journey .gb-stat:nth-child(3) > i::after{animation-delay:1.5s}
html body .journey .gb-stat:nth-child(4) > i::after{animation-delay:2.25s}
@keyframes gjRing{0%{transform:scale(.9);opacity:.8}70%,100%{transform:scale(1.35);opacity:0}}
html body .journey .gb-stat:hover > i{transform:rotate(-10deg) scale(1.08)}
html body .journey .gb-stat > b{display:block;width:100%;text-align:center!important;margin:0!important;
  font-size:clamp(24px,2.2vw,36px)!important;font-weight:800!important;line-height:1.05!important;color:#0b1b45!important;font-variant-numeric:tabular-nums}
html body .journey .gb-stat > span{display:block;width:100%;text-align:center!important;text-align-last:center!important;margin:0!important;
  font-size:clamp(12px,.95vw,14.5px)!important;font-weight:600!important;color:#4b5675!important;line-height:1.3}

/* entrance: cards rise one by one when the panel scrolls into view */
html body .journey.gj-anim .gb-stat{opacity:0;transform:translateY(24px)}
html body .journey.gj-anim.gj-in .gb-stat{opacity:1;transform:none;transition:opacity .6s ease,transform .7s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s}
html body .journey.gj-anim.gj-in .gb-stat:nth-child(2){transition-delay:.12s}
html body .journey.gj-anim.gj-in .gb-stat:nth-child(3){transition-delay:.24s}
html body .journey.gj-anim.gj-in .gb-stat:nth-child(4){transition-delay:.36s}
html body .journey.gj-anim.gj-in .gb-stat:hover{transform:translateY(-6px);transition-delay:0s}

/* narrow panel (e.g. third column, phones): 2 x 2 – decided by the panel's own width */
html body .panel.journey{container-type:inline-size}
@container (max-width:700px){ html body .journey .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important} }
@media (prefers-reduced-motion:reduce){
  html body .panel.journey::before,html body .journey .gb-stat > i::after{animation:none}
  html body .journey.gj-anim .gb-stat{opacity:1;transform:none}
}

/* force icon, number and label to the centre (overrides the site-wide left alignment) */
html body .journey .gb-stat,html body .journey .gb-stat *{text-align:center!important;text-align-last:center!important}
html body .journey .gb-stat > *{align-self:center!important;margin-left:auto!important;margin-right:auto!important;justify-content:center!important}
html body .journey .gb-stat > b,html body .journey .gb-stat > span{width:100%!important;display:block!important}
