/* ═══════════════════════════════════════════════════════════════
   شاشة الدخول — DR.Omar Aql · محطة الميدان
   ═══════════════════════════════════════════════════════════════ */

html.oa-splash-lock,
body.oa-splash-lock {
  overflow: hidden !important;
}

.oa-splash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(0, 168, 120, .28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 8% 90%, rgba(226, 128, 58, .18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(31, 182, 201, .12), transparent 55%),
    #04130F;
  cursor: pointer;
  color: #EAF7F2;
  isolation: isolate;
  animation: oaSplashIn .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes oaSplashIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.oa-splash.is-leaving {
  animation: oaSplashOut .7s cubic-bezier(.4, 0, .2, 1) forwards;
  pointer-events: none;
}
@keyframes oaSplashOut {
  to {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(8px);
  }
}

.oa-splash__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.oa-splash__hex {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%232BC896' stroke-opacity='.13' stroke-width='1.1'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z'/%3E%3Cpath d='M28 65l28 16v32L28 129 0 113V81z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 97px;
  opacity: .7;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}
.oa-splash__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.oa-splash__glow--a {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  top: -12%; inset-inline-end: -8%;
  background: #00A878;
  opacity: .45;
  animation: oaGlow 7s ease-in-out infinite alternate;
}
.oa-splash__glow--b {
  width: 34vw; height: 34vw; max-width: 420px; max-height: 420px;
  bottom: -10%; inset-inline-start: -10%;
  background: #E2803A;
  opacity: .28;
  animation: oaGlow 9s ease-in-out infinite alternate-reverse;
}
.oa-splash__glow--c {
  width: 28vw; height: 28vw; max-width: 340px; max-height: 340px;
  top: 40%; inset-inline-start: 42%;
  background: #1FB6C9;
  opacity: .22;
  animation: oaGlow 8s ease-in-out infinite alternate;
}
@keyframes oaGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -5%, 0) scale(1.12); }
}

.oa-splash__helix {
  position: absolute;
  top: 6%;
  width: 36px;
  height: 88%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='120' viewBox='0 0 40 120'%3E%3Cg fill='none' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 0c24 15 24 45 0 60S16 105 8 120' stroke='%2300A878' stroke-opacity='.55'/%3E%3Cpath d='M32 0C8 15 8 45 32 60s24 45 0 60' stroke='%231FB6C9' stroke-opacity='.55'/%3E%3Cg stroke='%23E2803A' stroke-opacity='.45'%3E%3Cpath d='M12 12h16M9 30h22M12 48h16M12 72h16M9 90h22M12 108h16'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 36px 110px repeat-y;
  opacity: .4;
  animation: oaHelix 14s linear infinite;
}
.oa-splash__helix--r { inset-inline-end: 4%; }
.oa-splash__helix--l { inset-inline-start: 4%; animation-direction: reverse; opacity: .28; }
@keyframes oaHelix {
  from { background-position-y: 0; }
  to   { background-position-y: 110px; }
}

.oa-splash__stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 24px 20px;
  max-width: 560px;
}

.oa-splash__quote {
  position: relative;
  z-index: 4;
  width: min(420px, 92vw);
  margin: 0 0 18px;
  padding: 12px 16px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #fffdf8;
  color: #14342C;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  text-align: start;
  animation: oaQuotePop .7s cubic-bezier(.22, 1, .36, 1) .1s both;
}
.oa-splash__quote::after {
  content: "";
  position: absolute;
  bottom: -8px;
  inset-inline-start: 46%;
  width: 16px;
  height: 16px;
  background: #fffdf8;
  transform: rotate(45deg);
  border-radius: 2px;
}
.oa-splash__badge {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(0, 168, 120, .16);
  color: #068B67;
  font-size: 11px;
  font-weight: 800;
}
.oa-splash__quote[data-type="scientific"] .oa-splash__badge {
  background: rgba(31, 182, 201, .18);
  color: #0E7A88;
}
.oa-splash__quoteText {
  margin: 0;
  font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
  color: #14342C;
}
@keyframes oaQuotePop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.oa-splash__orbit {
  position: relative;
  width: 236px;
  height: 236px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
}
.oa-splash__ring {
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(43, 200, 150, .38);
  border-radius: 50%;
  animation: oaSpin 22s linear infinite;
}
.oa-splash__ring--2 {
  inset: -8px;
  border-style: solid;
  border-color: rgba(226, 128, 58, .18);
  border-top-color: rgba(226, 128, 58, .7);
  border-inline-end-color: rgba(31, 182, 201, .7);
  animation-duration: 10s;
  animation-direction: reverse;
}
@keyframes oaSpin { to { transform: rotate(360deg); } }

.oa-splash__core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border-radius: 50%;
  background: #9fd9c8;
  color: #fff;
  border: 4px solid rgba(240, 252, 247, .92);
  box-shadow: 0 18px 50px -16px rgba(0, 168, 120, .9);
  animation: oaCore 2.4s ease-in-out infinite;
}
.oa-splash__core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}
.oa-splash__core svg { width: 48px; height: 48px; }
@keyframes oaCore {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.oa-splash__sat {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  color: #fff;
  animation: oaSat 5.5s ease-in-out infinite;
}
.oa-splash__sat svg { width: 24px; height: 24px; }
.oa-splash__sat--bio {
  top: -6px;
  inset-inline-start: 50%;
  margin-inline-start: -26px;
  background: #00A878;
  animation-delay: 0s;
}
.oa-splash__sat--geo {
  bottom: 18px;
  inset-inline-start: -6px;
  background: #E2803A;
  animation-delay: .4s;
}
.oa-splash__sat--sci {
  bottom: 18px;
  inset-inline-end: -6px;
  background: #1FB6C9;
  animation-delay: .8s;
}
@keyframes oaSat {
  0%, 100% { filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); transform: translateY(0); }
  50%      { filter: drop-shadow(0 16px 22px rgba(0,0,0,.45)); transform: translateY(-8px); }
}
.oa-splash__kicker {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', ui-monospace, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(111, 224, 188, .85);
}

.oa-splash__name {
  margin: 0;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.05;
  color: #F0FCF7;
  text-shadow: 0 10px 40px rgba(0, 168, 120, .45);
  animation: oaName .8s cubic-bezier(.22, 1, .36, 1) .15s both;
}
@keyframes oaName {
  from { opacity: 0; transform: translateY(14px); letter-spacing: .18em; }
  to   { opacity: 1; transform: none; letter-spacing: .04em; }
}

.oa-splash__ar {
  margin: 12px 0 0;
  font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(234, 247, 242, .72);
}

.oa-splash__bar {
  width: min(240px, 70vw);
  height: 4px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.oa-splash__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00A878, #1FB6C9 50%, #E2803A);
  animation: oaBar 2.6s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes oaBar {
  0%   { width: 0; }
  100% { width: 100%; }
}

.oa-splash__hint {
  margin: 14px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(234, 247, 242, .5);
}
.oa-splash__skip {
  margin: 8px 0 0;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(234, 247, 242, .35);
}

.oa-splash__float {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.oa-splash__float li {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  color: rgba(234, 247, 242, .55);
  opacity: .55;
  animation: oaFloat 7s ease-in-out infinite;
}
.oa-splash__float li:nth-child(1) { top: 14%; inset-inline-start: 16%; color: #2BC896; animation-delay: 0s; }
.oa-splash__float li:nth-child(2) { top: 22%; inset-inline-end: 14%; color: #F0A063; animation-delay: .6s; }
.oa-splash__float li:nth-child(3) { bottom: 18%; inset-inline-start: 12%; color: #57D2E0; animation-delay: 1.1s; }
.oa-splash__float li:nth-child(4) { bottom: 24%; inset-inline-end: 18%; color: #2BC896; animation-delay: .3s; }
.oa-splash__float li:nth-child(5) { top: 48%; inset-inline-start: 7%; color: #E2803A; animation-delay: 1.4s; }
.oa-splash__float li:nth-child(6) { top: 52%; inset-inline-end: 8%; color: #57D2E0; animation-delay: .9s; }
@keyframes oaFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(8deg); }
}

.oa-splash.is-lite .oa-splash__glow,
.oa-splash.is-lite .oa-splash__helix,
.oa-splash.is-lite .oa-splash__float,
.oa-splash.is-lite .oa-splash__ring {
  animation: none;
  display: none;
}
.oa-splash.is-lite .oa-splash__hex { opacity: .25; }

@media (max-width: 640px) {
  .oa-splash__orbit { width: 196px; height: 196px; }
  .oa-splash__core { width: 132px; height: 132px; }
  .oa-splash__quoteText { font-size: 14.5px; }
  .oa-splash__core svg { width: 40px; height: 40px; }
  .oa-splash__sat { width: 44px; height: 48px; }
  .oa-splash__helix { display: none; }
  .oa-splash__float li:nth-child(5),
  .oa-splash__float li:nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .oa-splash,
  .oa-splash * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .oa-splash__bar span { width: 100%; }
}
