/* =========================================================
   MOTION 2 — GPU-light motion that is allowed even in lite mode.
   Only transform / opacity are animated (composited, no repaints).
   Selectors are more specific than `html.lite *` so these keep running.
   ========================================================= */

/* ---------------- Story orbit ---------------- */
.story__art .st2 { --c1: #19b5f0; --c2: #7a7cff; --c3: #d2577a; }
.story__art .st2-halo { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,240,.32), rgba(42,45,124,.18) 45%, transparent 68%); will-change: opacity; }
.story__art .st2-orb { position: absolute; inset: 27%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #6fe3ff, #19b5f0 38%, #1475bc 70%, #2a2d7c 100%);
  box-shadow: 0 30px 80px -20px rgba(25,181,240,.65), inset 0 -24px 50px rgba(5,6,26,.35); will-change: transform; }
.story__art .st2-orb::after { content: ""; position: absolute; inset: 8% 18% 52% 22%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.45), transparent 70%); }
.story__art .st2-core { z-index: 5; will-change: transform; }
.story__art .st2-wave { position: absolute; inset: 27%; border-radius: 50%; border: 1.5px solid rgba(111,227,255,.55); opacity: 0; will-change: transform, opacity; }

.story__art .st2-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(143,211,255,.2); will-change: transform; }
.story__art .st2-ring--1 { inset: 19%; --dur: 18s; border-top-color: rgba(111,227,255,.85); }
.story__art .st2-ring--2 { inset: 7%; --dur: 32s; border-color: rgba(122,124,255,.22); border-right-color: rgba(160,162,255,.8); }
.story__art .st2-ring--3 { inset: -4%; --dur: 48s; border-style: dashed; border-color: rgba(143,211,255,.22); }

/* satellites: a full-size wrapper rotated to its angle, the item sits on the top of the circle */
.story__art .st2-chip, .story__art .st2-dot { position: absolute; inset: 0; transform: rotate(var(--at, 0deg)); pointer-events: none; }
.story__art .st2-chip__in { position: absolute; top: 0; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1a2470, #0b0f3a); border: 1px solid rgba(143,211,255,.4); box-shadow: 0 12px 28px -10px rgba(0,0,0,.8), 0 0 0 4px rgba(25,181,240,.08); will-change: transform; }
.story__art .st2-chip--sm .st2-chip__in { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 12px; }
.story__art .st2-chip__in svg { width: 20px; height: 20px; fill: none; stroke: #8fe3ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story__art .st2-dot::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #8fe3ff; box-shadow: 0 0 0 4px rgba(143,211,255,.15), 0 0 16px #19b5f0; }
.story__art .st2-dot--rose::before { background: #ff7ea1; box-shadow: 0 0 0 4px rgba(210,87,122,.18), 0 0 16px #d2577a; }
.story__art .st2-dot--violet::before { background: #a9abff; box-shadow: 0 0 0 4px rgba(122,124,255,.18), 0 0 16px #7a7cff; }

@keyframes st2Spin { to { transform: rotate(360deg); } }
@keyframes st2Counter { from { transform: rotate(calc(-1 * var(--at, 0deg))); } to { transform: rotate(calc(-1 * var(--at, 0deg) - 360deg)); } }
@keyframes st2CounterRev { from { transform: rotate(calc(-1 * var(--at, 0deg))); } to { transform: rotate(calc(-1 * var(--at, 0deg) + 360deg)); } }
@keyframes st2Breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes st2Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes st2Glow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes st2Wave { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .story__art .st2-ring--1 { animation: st2Spin var(--dur) linear infinite !important; }
  .story__art .st2-ring--2 { animation: st2Spin var(--dur) linear infinite reverse !important; }
  .story__art .st2-ring--3 { animation: st2Spin var(--dur) linear infinite !important; }
  /* chips stay upright: spin against their ring */
  .story__art .st2-ring--1 .st2-chip__in { animation: st2Counter 18s linear infinite !important; }
  .story__art .st2-ring--2 .st2-chip__in { animation: st2CounterRev 32s linear infinite !important; }
  .story__art .st2-orb { animation: st2Breath 6s ease-in-out infinite !important; }
  .story__art .st2-core { animation: st2Float 5s ease-in-out infinite !important; }
  .story__art .st2-halo { animation: st2Glow 6s ease-in-out infinite !important; }
  .story__art .st2-wave { animation: st2Wave 4.2s cubic-bezier(.2,.6,.3,1) infinite !important; }
  .story__art .st2-wave--2 { animation-delay: 2.1s !important; }
}
/* paused off-screen like every other section */
.is-off .story__art .st2 *, .is-off .story__art .st2-core { animation-play-state: paused !important; }
@media (max-width: 900px) { .story__art .st2-chip__in { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 12px; } .story__art .st2-chip__in svg { width: 17px; height: 17px; } }

/* ---------------- Site-wide scroll reveal (transitions, not animations) ---------------- */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .7s cubic-bezier(.22,1,.36,1) var(--rv-d, 0s), transform .9s cubic-bezier(.22,1,.36,1) var(--rv-d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.rv--left { transform: translate3d(-36px, 0, 0); } html[dir="rtl"] .rv--left { transform: translate3d(36px, 0, 0); }
.rv--scale { transform: scale(.94); }
.rv.is-in.rv--left, .rv.is-in.rv--scale { transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------------- Story: butterflies & firefly flying around the orbit ---------------- */
.story__art .st2-fly { position: absolute; z-index: 6; pointer-events: none; will-change: transform; }
.story__art .st2-fly--1 { inset: 2%; --fd: 26s; }
.story__art .st2-fly--2 { inset: 13%; --fd: 19s; }
.story__art .st2-fly--3 { inset: -9%; --fd: 34s; }
.story__art .st2-fly__bob { position: absolute; top: 0; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; will-change: transform; }
.story__art .st2-fly--2 .st2-fly__bob { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.story__art .st2-fly--3 .st2-fly__bob { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.story__art .st2-fly__bug { display: block; width: 100%; height: 100%; transform: rotate(90deg); }
.story__art .st2-fly--2 .st2-fly__bug { transform: rotate(-90deg); }
.story__art .st2-fly__bug svg { width: 100%; height: 100%; overflow: visible; display: block; }
.story__art .st2-fly--3 .st2-fly__bug { filter: drop-shadow(0 0 6px #ffd65a); }
@keyframes st2Bob { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(6px, -12px); } 50% { transform: translate(-4px, -4px); } 75% { transform: translate(5px, 8px); } }
@keyframes st2Flap { from { transform: scaleY(1); } to { transform: scaleY(.3); } }
@media (prefers-reduced-motion: no-preference) {
  .story__art .st2-fly--1 { animation: st2Spin var(--fd) linear infinite !important; }
  .story__art .st2-fly--2 { animation: st2Spin var(--fd) linear infinite reverse !important; }
  .story__art .st2-fly--3 { animation: st2Spin var(--fd) linear infinite !important; animation-delay: -9s !important; }
  .story__art .st2-fly__bob { animation: st2Bob 3.2s ease-in-out infinite !important; }
  .story__art .st2-fly--2 .st2-fly__bob { animation-duration: 2.6s !important; }
  .story__art .st2-fly .ffly__wing { transform-box: fill-box; animation: st2Flap .14s ease-in-out infinite alternate !important; }
  .story__art .st2-fly .ffly__wing--l { transform-origin: 100% 60%; } .story__art .st2-fly .ffly__wing--r { transform-origin: 0 60%; animation-delay: .07s !important; }
  .story__art .st2-fly .ffly__glow { animation: st2Glow 1.4s ease-in-out infinite !important; }
  /* About photo badge: ring text rotates, EMD mark breathes */
  .about .hero__badge > svg:first-child { animation: st2Spin 18s linear infinite !important; }
  .about .hero__badge-mark { animation: st2Breath 3.2s ease-in-out infinite !important; transform-origin: center; }
}

/* ---------------- Landing polish ---------------- */
.hero__eyebrow { width: fit-content !important; justify-self: start; }
.hero__ctas { align-items: center; }
.hero__frame { transition: transform .5s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; will-change: transform; }
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8f98c9; text-decoration: none; }
html[lang="ar"] .hero__cue { letter-spacing: 0; font-size: 12.5px; }
.hero__cue i { position: relative; width: 1px; height: 38px; background: rgba(143,211,255,.22); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: linear-gradient(#6fe3ff, transparent); }
@keyframes cueDrop { from { transform: translateY(-14px); } to { transform: translateY(40px); } }
@media (prefers-reduced-motion: no-preference) { .hero .hero__cue i::after { animation: cueDrop 1.8s cubic-bezier(.65,0,.35,1) infinite !important; } }
.hero__cue:hover { color: #fff; }
@media (max-width: 900px) { .hero__cue { display: none; } }

/* ---------------- Hero background video ---------------- */
.hero__bgv { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: #05061a; }
.hero__bgv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: saturate(1.05); }
.hero__bgv video[poster] { opacity: .35; }
.hero__bgv.is-playing video { opacity: .62; }
/* navy overlay: darker behind the text, lighter on the right, fades into the next section */
.hero__bgv-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,26,.92) 0%, rgba(5,6,26,.72) 38%, rgba(5,6,26,.35) 70%, rgba(5,6,26,.55) 100%),
              linear-gradient(180deg, rgba(5,6,26,.35) 0%, transparent 25%, transparent 70%, #05061a 100%),
              linear-gradient(120deg, rgba(25,60,160,.28), rgba(122,124,255,.12) 50%, rgba(210,87,122,.16)); }
html[dir="rtl"] .hero__bgv-shade { background:
  linear-gradient(270deg, rgba(5,6,26,.92) 0%, rgba(5,6,26,.72) 38%, rgba(5,6,26,.35) 70%, rgba(5,6,26,.55) 100%),
  linear-gradient(180deg, rgba(5,6,26,.35) 0%, transparent 25%, transparent 70%, #05061a 100%),
  linear-gradient(240deg, rgba(25,60,160,.28), rgba(122,124,255,.12) 50%, rgba(210,87,122,.16)); }
.hero .hero__gl { display: none; }
@media (max-width: 900px) { .hero__bgv-shade { background: linear-gradient(180deg, rgba(5,6,26,.75), rgba(5,6,26,.85) 60%, #05061a); } }
