#sxj-splash{
  position: fixed; inset: 0; z-index: 99999;
  color-scheme: light;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 55%, #e8f1fa 100%);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  -webkit-tap-highlight-color: transparent;
}
.sxj-bg{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(244,248,252,0.82) 45%, rgba(232,241,250,0.92) 100%),
    url("../images/image2.jpeg") center 42% / cover no-repeat;
  opacity:0;
  animation: sxjBgIn 1.1s ease-out 0.1s forwards;
  pointer-events:none;
}
@keyframes sxjBgIn{
  from{ opacity:0; transform:scale(1.04); }
  to{ opacity:1; transform:scale(1); }
}
html.sxj-splashing { overflow: hidden !important; }
#sxj-splash.sxj-out { opacity: 0; visibility: hidden; pointer-events: none; }
#sxj-splash::before, #sxj-splash::after{
  content:""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
#sxj-splash::before{
  width: 480px; height: 480px; top: -150px; right: -120px;
  background: radial-gradient(circle, rgba(26,107,181,0.28), transparent 70%);
  animation: sxjOrb 14s ease-in-out infinite;
}
#sxj-splash::after{
  width: 380px; height: 380px; bottom: -130px; left: -90px;
  background: radial-gradient(circle, rgba(74,159,217,0.22), transparent 70%);
  animation: sxjOrb 18s ease-in-out infinite reverse;
}
@keyframes sxjOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(28px,-22px) scale(1.08); }
}

.sxj-grid-bg{
  position:absolute; inset:0; opacity:0;
  background-image:
    linear-gradient(rgba(26,107,181,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,181,.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  animation: sxjGrid 1.4s ease-out forwards;
}
@keyframes sxjGrid {
  0%   { opacity:0; transform: scale(.92); }
  100% { opacity:.10; transform: scale(1); }
}

.sxj-stage{
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}

.sxj-thumbs{ display:none !important; }

.sxj-shockwave{
  position: absolute; left: 50%; top: 50%;
  width: 120%; height: 120%; border-radius: 50%;
  border: 2px solid rgba(26,107,181,0.55);
  transform: translate(-50%,-50%) scale(0.5);
  opacity: 0; pointer-events: none;
}
.sxj-shockwave.w1{ animation: sxjShock 1.6s 0.30s cubic-bezier(.2,.9,.2,1) forwards; }
.sxj-shockwave.w2{ animation: sxjShock 1.6s 0.55s cubic-bezier(.2,.9,.2,1) forwards; border-color: rgba(74,159,217,0.50); }
.sxj-shockwave.w3{ animation: sxjShock 1.6s 0.80s cubic-bezier(.2,.9,.2,1) forwards; border-color: rgba(26,107,181,0.35); }
@keyframes sxjShock {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0; border-width: 2px; }
  20%  { opacity: 0.9; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; border-width: 0.5px; }
}

.sxj-spark{
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #1a6bb5 55%, transparent 80%);
  opacity: 0; pointer-events: none;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 16px rgba(26,107,181,0.65);
}
.sxj-spark.k1{ animation: sxjSpark 1.0s 0.35s cubic-bezier(.2,.9,.2,1) forwards; --tx:  150px; --ty: -64px; }
.sxj-spark.k2{ animation: sxjSpark 1.0s 0.42s cubic-bezier(.2,.9,.2,1) forwards; --tx: -134px; --ty: -98px; }
.sxj-spark.k3{ animation: sxjSpark 1.0s 0.48s cubic-bezier(.2,.9,.2,1) forwards; --tx:  124px; --ty:  120px; }
.sxj-spark.k4{ animation: sxjSpark 1.0s 0.55s cubic-bezier(.2,.9,.2,1) forwards; --tx: -148px; --ty:  78px; }
.sxj-spark.k5{ animation: sxjSpark 1.0s 0.40s cubic-bezier(.2,.9,.2,1) forwards; --tx:   28px; --ty: -158px; }
.sxj-spark.k6{ animation: sxjSpark 1.0s 0.50s cubic-bezier(.2,.9,.2,1) forwards; --tx:  -38px; --ty:  158px; }
.sxj-spark.k7{ animation: sxjSpark 1.0s 0.45s cubic-bezier(.2,.9,.2,1) forwards; --tx: -178px; --ty:  -10px; }
.sxj-spark.k8{ animation: sxjSpark 1.0s 0.55s cubic-bezier(.2,.9,.2,1) forwards; --tx:  178px; --ty:   10px; }
@keyframes sxjSpark {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); }
}

.sxj-logo-img{
  position: relative;
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  filter: drop-shadow(0 24px 48px rgba(26,107,181,0.42));
  image-rendering: -webkit-optimize-contrast;
  animation:
    sxjLogoReveal 1.1s 0.10s cubic-bezier(.18,.89,.32,1.28) forwards,
    sxjBreathe 4.2s 1.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes sxjLogoReveal {
  0%   { opacity: 0; transform: scale(0.4) rotate(-90deg); }
  50%  { opacity: 1; transform: scale(1.18) rotate(8deg); }
  75%  { opacity: 1; transform: scale(0.96) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes sxjBreathe {
  0%,100% { transform: scale(1) rotateY(0deg); filter: drop-shadow(0 24px 48px rgba(26,107,181,0.42)); }
  50%     { transform: scale(1.04) rotateY(8deg); filter: drop-shadow(0 32px 64px rgba(26,107,181,0.55)); }
}

.sxj-halo{
  position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26,107,181,0.20), transparent 65%);
  opacity: 0; transform: scale(0.7);
  animation: sxjHalo 1.2s 0.30s ease-out forwards, sxjHaloPulse 3.6s 1.5s ease-in-out infinite;
}
@keyframes sxjHalo { to { opacity: 1; transform: scale(1); } }
@keyframes sxjHaloPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.06); } }

.sxj-stage::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events:none;
  border-radius: 16px;
  animation: sxjSheen 1.6s 1.3s ease-in-out forwards;
}
@keyframes sxjSheen {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.sxj-tagline{
  margin-top: 1.2rem;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: #0a1628;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  max-width: 92vw;
  opacity: 0;
  animation: sxjTagIn 0.4s 1.30s ease-out forwards;
}
@keyframes sxjTagIn { to { opacity: 1; } }
.sxj-stack{ display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.sxj-line{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  max-width: min(22rem, 92vw);
  flex-wrap: wrap;
}
.sxj-line.line-1{ font-size: clamp(0.84rem, 2.4vw, 1.05rem); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #4a3f30; }
.sxj-line.line-2{ font-size: clamp(0.78rem, 2.1vw, 0.98rem); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #4a3f30; margin-top: 0.15rem; }
[dir="rtl"] .sxj-tagline{
  font-family: 'Cairo', 'Noto Sans Arabic', system-ui, sans-serif;
}
.sxj-tagline .sxj-type{
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}
.sxj-tagline .sxj-type.t1{ animation: sxjType 1.15s steps(22, end) 1.35s forwards; }
.sxj-tagline .sxj-type.t2{ animation: sxjType 0.95s steps(14, end) 1.85s forwards; }
@keyframes sxjType { to { clip-path: inset(0 0% 0 0); -webkit-clip-path: inset(0 0% 0 0); } }
.sxj-tagline .sxj-rest{
  background: linear-gradient(135deg, #1a6bb5 0%, #4d9ae8 50%, #1a6bb5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  /* Fallback when WebKit clip fails (Samsung / dark mode) */
  color: #0e4a7a;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .sxj-tagline .sxj-rest{
    color: transparent;
  }
}
.sxj-caret{ display: inline-block; width: 2px; height: 1em; background: #1a6bb5; vertical-align: middle; animation: sxjCaret 0.6s step-end 1.4s 6 forwards; }
@keyframes sxjCaret { 50% { background: transparent; } 100% { opacity: 0; } }

.sxj-progress{
  margin-top: 1.4rem;
  width: min(280px, 60vw); height: 3px; border-radius: 999px;
  background: rgba(26,107,181,0.18);
  overflow: hidden; position: relative; opacity: 0;
  animation: sxjTagIn 0.4s 1.40s ease-out forwards;
}
.sxj-progress::after{
  content:""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #1a6bb5, #4d9ae8, transparent);
  transform: translateX(-100%);
  animation: sxjProg 1.4s 1.4s cubic-bezier(.55,.05,.32,1) infinite;
}
@keyframes sxjProg { 0% { transform: translateX(-100%); } 100% { transform: translateX(220%); } }

.sxj-skip{
  position:absolute; bottom:18px; right:20px;
  color:rgba(74,63,48,.55); font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  opacity:0; animation: sxjTagIn 0.5s 2.6s ease-out forwards;
  pointer-events:none;
}
[dir="rtl"] .sxj-skip{ right:auto; left:20px; }

@media (max-width: 600px){
  .sxj-stage{ width: min(360px, 86vw); }
}
@media (max-width: 768px){
  .sxj-tagline .sxj-type{
    animation: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .sxj-caret{ animation: none !important; opacity: 0; width: 0; height: 0; margin: 0; }
  .sxj-tagline .sxj-rest{
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #7a4a22;
    color: #7a4a22;
  }
  .sxj-line.line-1{ color: #3d3428; }
}
@media (max-width: 480px){
  .sxj-stage{ width: min(300px, 86vw); }
  .sxj-tagline{ gap: 0.2rem; }
  .sxj-line.line-1{ letter-spacing: 0.12em; font-size: 0.78rem; }
  .sxj-line.line-2{ letter-spacing: 0.16em; font-size: 0.72rem; }
  .sxj-spark.k1{ --tx:  100px; --ty: -42px; }
  .sxj-spark.k2{ --tx: -90px;  --ty: -66px; }
  .sxj-spark.k3{ --tx:  84px;  --ty:  82px; }
  .sxj-spark.k4{ --tx: -98px;  --ty:  52px; }
  .sxj-spark.k5{ --tx:  20px;  --ty: -106px; }
  .sxj-spark.k6{ --tx: -26px;  --ty:  106px; }
  .sxj-spark.k7{ --tx: -118px; --ty:  -8px; }
  .sxj-spark.k8{ --tx:  118px; --ty:   8px; }
}
@media (max-width: 360px){
  .sxj-stage{ width: 90vw; }
  .sxj-tagline{ letter-spacing: 0.12em; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce){
  .sxj-logo-img, .sxj-halo, .sxj-progress::after,
  #sxj-splash::before, #sxj-splash::after,
  .sxj-tagline, .sxj-progress, .sxj-grid-bg, .sxj-spark, .sxj-caret, .sxj-shockwave, .sxj-stage::after {
    animation: none !important;
  }
  .sxj-shockwave { display: none; }
  .sxj-logo-img{ opacity: 1; transform: none; }
  .sxj-tagline{ opacity: 1; }
  .sxj-progress{ opacity: 1; }
  .sxj-tagline .sxj-type{ clip-path: none; -webkit-clip-path: none; }
  .sxj-caret{ display: none; }
}

@media (max-width: 768px){
  #sxj-splash::before, #sxj-splash::after{ filter: blur(28px) !important; opacity: 0.7; }
  .sxj-spark.k5, .sxj-spark.k6, .sxj-spark.k7, .sxj-spark.k8{ display: none !important; }
  .sxj-spark{ box-shadow: none !important; width: 6px; height: 6px; }
  .sxj-shockwave.w3{ display: none !important; }
  .sxj-grid-bg{ display: none !important; }
  .sxj-logo-img{ filter: drop-shadow(0 12px 22px rgba(26,107,181,0.30)) !important; }
  .sxj-halo{ animation: sxjHalo 1s 0.3s ease-out forwards !important; }
  .sxj-logo-img, .sxj-shockwave, .sxj-spark, .sxj-halo{ transform: translateZ(0); will-change: transform, opacity; }
}
