/* «بوابة زيرو» — the short films: animated scenes in the page, narrated in Zero's own voice, captions under them. */
.fm { --c: #1de3c4; position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 20px; overflow: hidden; background: #020913; border: 1px solid rgba(140, 200, 255, .16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); user-select: none; container-type: inline-size; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; color: #e9f5ff; }
.fm:fullscreen { border-radius: 0; border: 0; }
.fm.paused * { animation-play-state: paused !important; }
.fm-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, rgba(25, 184, 255, .14), transparent 70%), #031021; }
.fm-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(140, 200, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 200, 255, .05) 1px, transparent 1px);
  background-size: 4cqw 4cqw; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.fm-stage { position: absolute; inset: 0 0 18% 0; display: grid; place-items: center; }
.fs { position: absolute; inset: 0; display: grid; place-items: center; animation: fsIn .6s cubic-bezier(.22, .8, .24, 1) both; }
.fs.out { animation: fsOut .45s ease both; }
@keyframes fsIn { from { opacity: 0; transform: translateY(2cqw) scale(.985); } }
@keyframes fsOut { to { opacity: 0; transform: translateY(-1.5cqw) scale(1.01); } }
.fm .zi { width: 1em; height: 1em; }

/* captions */
.fm-cap { position: absolute; left: 6%; right: 6%; bottom: 7.5cqw; text-align: center; font-size: 2.35cqw; line-height: 1.6; font-weight: 500; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); min-height: 1.6em; }
.fm-cap span { background: rgba(2, 9, 19, .62); padding: .15em .6em; border-radius: .4em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fm.nocc .fm-cap { display: none; }

/* controls */
.fm-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 2cqw; background: linear-gradient(transparent, rgba(2, 9, 19, .85));
  transition: opacity .25s; direction: ltr; }
.fm.playing:not(:hover) .fm-bar { opacity: 0; }
.fm.playing:not(:hover) .fm-cap { bottom: 3.5cqw; }
.fm-bar button { width: 3.6cqw; height: 3.6cqw; min-width: 30px; min-height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.fm-bar button:hover { background: rgba(255, 255, 255, .18); }
.fm-bar button .zi { width: 50%; height: 50%; }
.fm-bar button.off { opacity: .45; }
.fm-pr { position: relative; flex: 1; height: 1.6cqw; min-height: 14px; cursor: pointer; display: flex; align-items: center; }
.fm-pr i { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.fm-pr b { position: absolute; left: 0; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #1de3c4, var(--c)); }
.fm-pr em { position: absolute; top: 50%; width: 2px; height: 8px; transform: translate(-1px, -50%); background: rgba(2, 9, 19, .9); }
.fm-t { font: 600 1.5cqw Rajdhani, sans-serif; min-width: 76px; color: #cfe3f2; font-size: max(12px, 1.5cqw); }

/* the poster (before the first play) */
.fm-post { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; cursor: pointer;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--c) 18%, transparent), rgba(2, 9, 19, .55)); }
.fm-post::before { content: ''; position: absolute; width: 46cqw; height: 46cqw; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); animation: ring 3.2s ease-out infinite; pointer-events: none; }
.fm-post .pb { width: 10cqw; height: 10cqw; min-width: 64px; min-height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1de3c4, var(--c));
  color: #02121d; box-shadow: 0 0 0 1.4cqw color-mix(in srgb, var(--c) 18%, transparent), 0 16px 50px rgba(0, 0, 0, .5); transition: transform .2s; }
.fm-post:hover .pb { transform: scale(1.06); }
.fm-post.busy .pb { animation: pulse 1s ease-in-out infinite; } @keyframes pulse { 50% { transform: scale(.9); opacity: .7; } }
.fm-post .pb .zi { width: 42%; height: 42%; margin-left: 8%; }
.fm-post b { font-size: 3cqw; font-weight: 700; }
.fm-post small { color: #a9c3d6; font-size: 1.8cqw; }
.fm-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; }

/* ── scenes ── */
.s-title { display: flex; flex-direction: column; align-items: center; gap: 2cqw; text-align: center; }
.s-title .ic { width: 15cqw; height: 15cqw; border-radius: 4.5cqw; display: grid; place-items: center; color: var(--c); font-size: 7.5cqw;
  background: color-mix(in srgb, var(--c) 12%, #061a2e); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 8cqw color-mix(in srgb, var(--c) 30%, transparent);
  animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.s-title h3 { margin: 0; font-size: 5cqw; line-height: 1.25; animation: up .7s .15s both; }
.s-title p { margin: 0; font-size: 2.3cqw; color: #a9c3d6; max-width: 70cqw; animation: up .7s .3s both; }
.s-title .ring { position: absolute; width: 40cqw; height: 40cqw; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); animation: ring 3s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes up { from { transform: translateY(2cqw); opacity: 0; } }

.s-bub { width: 62cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.s-bub div { max-width: 78%; padding: 1.4cqw 2cqw; border-radius: 2.2cqw; font-size: 2.5cqw; animation: up .5s both; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .35); }
.s-bub .me { align-self: flex-start; background: rgba(25, 184, 255, .18); border: 1px solid rgba(25, 184, 255, .35); border-bottom-right-radius: .6cqw; }
.s-bub .zero { align-self: flex-end; background: #0b2540; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-bottom-left-radius: .6cqw; display: flex; gap: 1cqw; align-items: center; }
.s-bub .zero::before { content: ''; flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: conic-gradient(from 90deg, #1de3c4, #19b8ff, #1de3c4); }
.s-bub .typing { align-self: flex-end; display: flex; gap: .6cqw; padding: 1.4cqw 2cqw; background: #0b2540; border-radius: 2cqw; }
.s-bub .typing i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #8fb2c8; animation: bl 1s infinite; }
.s-bub .typing i:nth-child(2) { animation-delay: .15s; } .s-bub .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 50% { opacity: .2; } }

.s-cards { display: grid; grid-template-columns: repeat(var(--n, 4), 15cqw); gap: 2.2cqw; }
.s-cards div { aspect-ratio: 1; border-radius: 2.6cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #072038), #061528); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); animation: pop .6s cubic-bezier(.3, 1.3, .5, 1) both; }
.s-cards div i { font-size: 5cqw; color: var(--c); display: grid; }
.s-cards div b { font-size: 2.2cqw; }

/* a phone */
.s-ph { width: 24cqw; aspect-ratio: 9 / 18.5; border-radius: 3.6cqw; border: .9cqw solid #10243a; background: #051427; box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .55), 0 0 0 1px rgba(140, 200, 255, .15);
  overflow: hidden; position: relative; animation: phIn .8s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes phIn { from { transform: translateY(6cqw) rotate(-4deg); opacity: 0; } }
.s-ph .hd { height: 6cqw; display: flex; align-items: center; gap: 1cqw; padding: 0 1.6cqw; background: #08203a; font-size: 1.5cqw; font-weight: 600; }
.s-ph .hd i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--c); }
.s-ph .row { display: flex; gap: 1cqw; align-items: center; padding: 1.2cqw 1.6cqw; border-bottom: 1px solid rgba(140, 200, 255, .07); animation: up .45s both; }
.s-ph .row i { flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: hsl(var(--h) 60% 45%); }
.s-ph .row span { flex: 1; display: flex; flex-direction: column; gap: .5cqw; }
.s-ph .row span::before, .s-ph .row span::after { content: ''; height: .9cqw; border-radius: .5cqw; background: rgba(233, 245, 255, .7); width: 70%; }
.s-ph .row span::after { background: rgba(147, 173, 195, .35); width: 90%; }
.s-ph .msg { margin: 1cqw 1.6cqw; padding: 1cqw 1.4cqw; border-radius: 1.4cqw; font-size: 1.35cqw; max-width: 75%; animation: up .45s both; }
.s-ph .msg.l { background: #0d2a47; } .s-ph .msg.r { background: color-mix(in srgb, var(--c) 30%, #0d2a47); margin-inline-start: auto; }
.s-ph.call { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; background: radial-gradient(80% 60% at 50% 35%, color-mix(in srgb, var(--c) 25%, #062038), #040f1e); }
.s-ph.call .who { width: 9cqw; height: 9cqw; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); position: relative; }
.s-ph.call .who::before, .s-ph.call .who::after { content: ''; position: absolute; inset: -1.2cqw; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); animation: ring 1.8s ease-out infinite; }
.s-ph.call .who::after { animation-delay: .9s; }
.s-ph.call b { font-size: 1.8cqw; } .s-ph.call small { font-size: 1.3cqw; color: #a9c3d6; }
.s-ph.call .acts { display: flex; gap: 5cqw; margin-top: 4cqw; }
.s-ph.call .acts i { width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; font-size: 2.4cqw; color: #fff; }
.s-ph.call .acts .no { background: #ef4444; } .s-ph.call .acts .yes { background: #22c55e; animation: shake 1.2s infinite; }
@keyframes shake { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }

/* a laptop */
.s-lt { width: 66cqw; animation: phIn .8s cubic-bezier(.22, .8, .24, 1) both; }
.s-lt .scr { aspect-ratio: 16 / 9.6; border-radius: 1.6cqw 1.6cqw .4cqw .4cqw; border: .9cqw solid #10243a; background: #051427; overflow: hidden; display: grid; grid-template-columns: 11cqw 1fr; }
.s-lt .base { height: 1.6cqw; margin: 0 -4cqw; border-radius: 0 0 2cqw 2cqw; background: linear-gradient(#1a3148, #0b1a2a); }
.s-lt .side { background: #071b31; padding: 1.4cqw 1cqw; display: flex; flex-direction: column; gap: 1cqw; }
.s-lt .side i { height: 1.3cqw; border-radius: .6cqw; background: rgba(147, 173, 195, .22); }
.s-lt .side i:first-child { background: var(--c); width: 70%; }
.s-lt .mn { padding: 1.6cqw; display: grid; grid-template-rows: auto 1fr; gap: 1.4cqw; }
.s-lt .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; }
.s-lt .tile { padding: 1cqw; border-radius: 1cqw; background: #0a2540; display: flex; flex-direction: column; gap: .6cqw; animation: up .5s both; }
.s-lt .tile i { height: .8cqw; width: 60%; border-radius: .4cqw; background: rgba(147, 173, 195, .35); }
.s-lt .tile b { font: 700 2.2cqw Rajdhani, sans-serif; color: var(--c); direction: ltr; text-align: right; }
.s-lt .chart { direction: ltr; position: relative; border-radius: 1cqw; background: #0a2540; padding: 1.4cqw; display: flex; align-items: flex-end; gap: 1cqw; }
.s-lt .chart i { flex: 1; border-radius: .5cqw .5cqw 0 0; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 30%, transparent)); transform-origin: bottom; animation: grow .8s both; }
@keyframes grow { from { transform: scaleY(0); } }
.s-lt .lst { display: flex; flex-direction: column; gap: .9cqw; }
.s-lt .lst div { display: grid; grid-template-columns: 2.6cqw 1fr 7cqw; gap: 1cqw; align-items: center; padding: .8cqw 1cqw; border-radius: .8cqw; background: #0a2540; animation: up .45s both; }
.s-lt .lst div i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: hsl(var(--h) 55% 45%); }
.s-lt .lst div span { height: 1cqw; border-radius: .5cqw; background: rgba(233, 245, 255, .55); }
.s-lt .lst div em { height: 1.4cqw; border-radius: .7cqw; background: color-mix(in srgb, var(--c) 55%, transparent); }
.s-lt .meet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; }
.s-lt .meet div { aspect-ratio: 16 / 10; border-radius: 1cqw; background: linear-gradient(160deg, hsl(var(--h) 40% 30%), #08203a); position: relative; animation: pop .5s both; }
.s-lt .meet div::after { content: ''; position: absolute; left: 50%; top: 42%; width: 28%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: hsl(var(--h) 55% 60% / .8); }
.s-lt .meet div.spk { outline: .3cqw solid var(--c); }

/* devices */
.s-dev { display: flex; align-items: flex-end; gap: 4cqw; }
.s-dev > div { animation: up .6s both; display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; }
.s-dev .pc { width: 34cqw; aspect-ratio: 16 / 10; border-radius: 1.2cqw; border: .8cqw solid #10243a; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #072038), #051427); }
.s-dev .ph2 { width: 11cqw; aspect-ratio: 9 / 18.5; border-radius: 2cqw; border: .7cqw solid #10243a; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #072038), #051427); }
.s-dev .wb { width: 24cqw; aspect-ratio: 16 / 11; border-radius: 1.2cqw; border: 1px solid rgba(140, 200, 255, .3); background: linear-gradient(#10243a 0 2.2cqw, #062038 2.2cqw); }
.s-dev b { font: 700 2.2cqw Rajdhani, sans-serif; letter-spacing: .1cqw; color: #cfe3f2; }
.s-dev .zz { display: grid; place-items: center; height: 100%; color: var(--c); font-size: 5cqw; }

/* a map */
.s-map { position: relative; width: 66cqw; aspect-ratio: 16 / 9; border-radius: 2cqw; overflow: hidden; background: #061a2c; border: 1px solid rgba(140, 200, 255, .16); animation: pop .6s both; }
.s-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-map .rd { fill: none; stroke: rgba(147, 173, 195, .22); stroke-width: 6; stroke-linecap: round; }
.s-map .rd2 { fill: none; stroke: rgba(147, 173, 195, .12); stroke-width: 3; }
.s-map .ln { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s ease forwards; filter: drop-shadow(0 0 6px var(--c)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.s-map .shop { animation: pop .4s both; }
.s-map .car { offset-rotate: auto; animation: drive 6s linear infinite; }
@keyframes drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* a flow */
.s-flow { display: flex; align-items: center; gap: 0; }
.s-flow div { padding: 1.6cqw 2.4cqw; border-radius: 1.8cqw; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #072038), #061528); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  font-size: 2.3cqw; font-weight: 600; animation: pop .5s both; white-space: nowrap; }
.s-flow span { width: 6cqw; height: 2px; background: linear-gradient(90deg, transparent, var(--c)); position: relative; animation: up .4s both; }
.s-flow span::after { content: ''; position: absolute; top: -.5cqw; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--c); animation: slide 1.6s linear infinite; box-shadow: 0 0 1cqw var(--c); }
@keyframes slide { from { left: 100%; } to { left: -10%; } }

/* the shield */
.s-sh { position: relative; width: 60cqw; height: 30cqw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3cqw; }
.s-sh .bx { padding: 1.4cqw; border-radius: 1.6cqw; background: #0a2540; display: flex; flex-direction: column; gap: 1cqw; font-size: 1.8cqw; animation: up .5s both; }
.s-sh .bx em { font-style: normal; padding: .4cqw .8cqw; border-radius: .6cqw; background: rgba(255, 181, 71, .16); color: #ffd28a; }
.s-sh .bx.out em { background: rgba(52, 211, 153, .16); color: #a7f3d0; letter-spacing: .2cqw; }
.s-sh .sd { width: 14cqw; height: 16cqw; display: grid; place-items: center; color: #34d399; font-size: 10cqw; filter: drop-shadow(0 0 3cqw rgba(52, 211, 153, .5)); animation: pop .7s .2s both; }

/* the end */
.s-end { display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; text-align: center; }
.s-end svg.mk { width: 13cqw; height: 13cqw; animation: pop .7s both; }
.s-end b { font-size: 4cqw; animation: up .6s .15s both; }
.s-end small { font: 700 2.4cqw Rajdhani, sans-serif; letter-spacing: 1cqw; color: #7fa3bd; animation: up .6s .3s both; direction: ltr; }
