/* تیزرهایِ متحرکِ ابزارها (۱۴۰۵/۰۸/۲۰) — macro ِ teaser در templates/nabeghe_env/_teasers.html
   مشترکِ بنرِ خانهٔ استودیو (_hub_banner.html) و صفحه‌هایِ /tools/<slug>. انیمیشن‌ها با کلاسِ is-active رویِ والد پخش می‌شوند؛
   رنگ‌ها از --c1/--c2 ِ والد. */
/* اجزایِ مشترکِ نمایش‌ها */
.m-type{ display:inline-block; white-space:nowrap; clip-path: inset(0 0 0 100%); }
.is-active .m-type{ animation: hbType 1.3s steps(26) .35s forwards; }
.m-caret{ display:inline-block; width:2px; height:1em; background: currentColor; animation: hbBlink .8s steps(1) infinite; }
.m-done{ position:absolute; bottom:-2px; left:50%; translate:-50% 0; white-space:nowrap; font-size:.7rem; font-weight:900; padding:5px 12px; border-radius:999px;
  background:#fff; color:#15803D; box-shadow: 0 10px 22px -10px rgba(0,0,0,.5); opacity:0; }
.is-active .m-done{ animation: hbPop .45s cubic-bezier(.2,.9,.3,1.4) 3.1s forwards; }

/* ۱) پاورپوینت */
.m-ppt{ position:relative; width:100%; max-width:270px; display:flex; flex-direction:column; gap:7px; padding-bottom:18px; }
.m-in{ display:flex; align-items:center; gap:3px; padding:9px 12px; border-radius:12px; background:#fff; color:#1E293B; font-size:.76rem; font-weight:700; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.m-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.m-sl{ aspect-ratio:16/9; border-radius:8px; background:#fff; padding:8px; display:flex; flex-direction:column; gap:5px; opacity:0; box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
.is-active .m-sl{ animation: hbPop .45s cubic-bezier(.2,.9,.3,1.3) forwards; }
.is-active .m-sl:nth-child(1){ animation-delay:1.6s; } .is-active .m-sl:nth-child(2){ animation-delay:1.9s; }
.is-active .m-sl:nth-child(3){ animation-delay:2.2s; } .is-active .m-sl:nth-child(4){ animation-delay:2.5s; }
.m-sl b{ height:7px; width:58%; border-radius:3px; background: var(--c1); }
.m-sl > i{ height:4px; width:86%; border-radius:2px; background:#CBD5E1; }
.m-sl--t{ background: linear-gradient(135deg, var(--c1), var(--c2)); justify-content:center; }
.m-sl--t b{ background:#fff; width:70%; } .m-sl--t > i{ background: rgba(255,255,255,.55); width:50%; }
.m-bars{ flex:1; display:flex; align-items:flex-end; gap:4px; }
.m-bars i{ flex:1; border-radius:2px 2px 0 0; background: var(--c1); transform-origin:bottom; }
.m-bars i:nth-child(1){ height:35%; } .m-bars i:nth-child(2){ height:62%; } .m-bars i:nth-child(3){ height:48%; } .m-bars i:nth-child(4){ height:90%; }
.is-active .m-bars i{ animation: hbGrow .6s cubic-bezier(.2,.8,.2,1) 2.2s both; }
.m-pie{ width:30px; height:30px; border-radius:50%; background: conic-gradient(var(--c1) 0 62%, #93C5FD 62% 84%, #E2E8F0 84%); align-self:center; }
.is-active .m-pie{ animation: hbSpinIn .8s cubic-bezier(.2,.8,.2,1) 2.4s both; }

/* ۲) پوستر */
.m-poster{ display:flex; align-items:center; gap:14px; }
.m-pcard{ position:relative; width:150px; aspect-ratio:4/5; border-radius:14px; padding:14px 10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  text-align:center; color:#fff; background: linear-gradient(160deg, #FDE68A, #F472B6 52%, #7C3AED); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.is-active .m-pcard{ animation: hbHue 6s linear forwards; }
.m-pcard > *{ opacity:0; }
.is-active .m-pcard > *{ animation: hbIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
.is-active .m-h1{ animation-delay:.5s !important; } .is-active .m-big{ animation: hbPop .5s cubic-bezier(.2,.9,.3,1.5) .9s forwards !important; }
.is-active .m-h2{ animation-delay:1.3s !important; } .is-active .m-pbtn{ animation-delay:1.7s !important; } .is-active .m-badge{ animation: hbBadge .5s cubic-bezier(.2,.9,.3,1.5) 2.1s forwards !important; }
.m-h1{ font-size:.92rem; font-weight:900; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.m-big{ font-size:2.3rem; font-weight:900; line-height:1.1; text-shadow: 0 4px 14px rgba(0,0,0,.3); }
.m-h2{ font-size:.62rem; font-weight:700; }
.m-pbtn{ margin-top:4px; font-size:.6rem; font-weight:900; padding:4px 10px; border-radius:999px; background:#fff; color:#831843; }
.m-badge{ position:absolute; top:-9px; left:-12px; font-size:.58rem; font-weight:900; padding:4px 8px; border-radius:7px; background:#FACC15; color:#422006; rotate:-10deg; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.m-sw{ display:flex; flex-direction:column; gap:8px; }
.m-sw i{ width:20px; height:20px; border-radius:50%; border:2px solid rgba(255,255,255,.75); opacity:0; }
.m-sw i:nth-child(1){ background: linear-gradient(135deg, #FDE68A, #7C3AED); } .m-sw i:nth-child(2){ background: linear-gradient(135deg, #67E8F9, #2563EB); }
.m-sw i:nth-child(3){ background: linear-gradient(135deg, #FCA5A5, #B91C1C); } .m-sw i:nth-child(4){ background: linear-gradient(135deg, #BBF7D0, #15803D); }
.is-active .m-sw i{ animation: hbPop .35s ease-out forwards; }
.is-active .m-sw i:nth-child(1){ animation-delay:2.4s; } .is-active .m-sw i:nth-child(2){ animation: hbPop .35s ease-out 2.55s forwards, hbRing .6s ease-out 3.3s forwards; }
.is-active .m-sw i:nth-child(3){ animation-delay:2.7s; } .is-active .m-sw i:nth-child(4){ animation-delay:2.85s; }

/* ۳) صفحه‌ساز */
.m-web{ width:100%; max-width:370px; border-radius:12px; overflow:hidden; background:#fff; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); }
.m-chrome{ height:24px; display:flex; align-items:center; gap:5px; padding:0 10px; background:#F1F5F9; }
.m-chrome i{ width:7px; height:7px; border-radius:50%; background:#F87171; } .m-chrome i:nth-child(2){ background:#FBBF24; } .m-chrome i:nth-child(3){ background:#34D399; }
.m-chrome span{ margin-inline:auto; font-size:.58rem; color:#64748B; background:#fff; padding:1px 14px; border-radius:999px; direction:ltr; }
.m-page{ display:flex; flex-direction:column; gap:8px; padding:10px; }
.m-page > *{ opacity:0; }
.is-active .m-page > *{ animation: hbIn .5s cubic-bezier(.2,.8,.2,1) forwards; }
.is-active .m-hero{ animation-delay:.9s !important; } .is-active .m-cards{ animation-delay:1.6s !important; }
.is-active .m-nav{ animation-delay:.4s !important; }
.m-nav{ display:flex; align-items:center; justify-content:space-between; }
.m-nav b{ width:34px; height:9px; border-radius:3px; background: var(--c1); }
.m-nav span{ display:flex; gap:5px; } .m-nav span i{ width:18px; height:4px; border-radius:2px; background:#CBD5E1; }
.m-hero{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:14px 12px; border-radius:9px; background: linear-gradient(120deg, var(--c1), color-mix(in srgb, var(--c1) 50%, #67E8F9)); }
.m-hero b{ width:62%; height:9px; border-radius:3px; background:#fff; } .m-hero i{ width:42%; height:5px; border-radius:2px; background: rgba(255,255,255,.65); }
.m-hero span{ width:54px; height:14px; border-radius:999px; background:#fff; margin-top:2px; }
.is-active .m-hero span{ animation: hbPulse 1.2s ease-in-out 2.4s 2; }
.m-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:6px; }
.m-cards i{ height:38px; border-radius:7px; background:#F1F5F9; border:1px solid #E2E8F0; }

/* ۴) بستهٔ محتوای هفته */
.m-week{ position:relative; width:100%; max-width:400px; display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:5px; padding-bottom:30px; }
.m-day{ display:flex; flex-direction:column; gap:4px; min-height:112px; padding:6px 4px; border-radius:9px; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); }
.m-day small{ font-size:.56rem; font-weight:700; text-align:center; opacity:.85; }
.m-chip{ font-style:normal; font-size:.54rem; font-weight:900; text-align:center; padding:6px 1px; border-radius:6px; color:#fff; opacity:0; box-shadow: 0 6px 12px -8px rgba(0,0,0,.6); }
.m-chip--reel{ background:#DB2777; } .m-chip--post{ background:#2563EB; } .m-chip--story{ background:#7C3AED; }
.is-active .m-chip{ animation: hbIn .4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.5s + var(--d) * .2s); }
.is-active .m-chip--2{ animation-delay: calc(2s + var(--d) * .14s); }

/* ۵) ویدیو */
.m-video{ position:relative; width:100%; max-width:370px; }
.m-scene{ position:relative; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background: linear-gradient(#FB923C, #F472B6 45%, #312E81); box-shadow: 0 24px 40px -20px rgba(0,0,0,.7); }
.m-sun{ position:absolute; left:50%; top:24%; width:46px; height:46px; border-radius:50%; background:#FDE68A; box-shadow: 0 0 34px #FDE68A; translate:-50% 0; }
.is-active .m-sun{ animation: hbSet 6s ease-in-out forwards; }
.m-hill{ position:absolute; bottom:-34%; left:-12%; width:78%; height:72%; border-radius:50%; background:#1E1B4B; }
.m-hill--2{ left:auto; right:-16%; width:74%; bottom:-40%; background:#312E81; }
.m-play{ position:absolute; left:50%; top:50%; width:44px; height:44px; translate:-50% -50%; border-radius:50%; background: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.m-play::after{ content:""; position:absolute; left:17px; top:13px; border-style:solid; border-width:9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.is-active .m-play{ animation: hbFade .5s ease-in .7s forwards; }
.m-dub{ position:absolute; top:8px; right:8px; font-size:.62rem; font-weight:800; padding:3px 9px; border-radius:999px; background: rgba(0,0,0,.45); }
.m-sub{ position:absolute; bottom:20px; left:50%; translate:-50% 0; white-space:nowrap; font-size:.74rem; font-weight:800; padding:4px 10px; border-radius:6px; background: rgba(0,0,0,.62); opacity:0; }
.is-active .m-sub{ animation: hbIn .3s ease-out 1.1s forwards; }
.is-active .m-type--sub{ animation-delay:1.2s; animation-duration:1.6s; }
.m-prog{ position:absolute; bottom:8px; left:10px; right:10px; height:3px; border-radius:2px; background: rgba(255,255,255,.3); overflow:hidden; }
.m-prog i{ display:block; height:100%; background:#EF4444; transform-origin:right; transform:scaleX(0); }
.is-active .m-prog i{ animation: hbProg 6s linear .7s forwards; }

/* ۶) موسیقی */
.m-music{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px 18px; width:100%; max-width:370px; }
.m-disc{ position:relative; width:118px; height:118px; border-radius:50%; background: repeating-radial-gradient(circle, #111 0 2px, #262626 2px 4px); box-shadow: 0 18px 34px -16px rgba(0,0,0,.8); }
.m-disc i{ position:absolute; inset:34%; border-radius:50%; background: conic-gradient(from 30deg, var(--c1), #F472B6, var(--c1)); border:3px solid #111; }
.is-active .m-disc{ animation: hbSpin 3s linear infinite; }
.m-eq{ display:flex; align-items:center; gap:3px; height:90px; }
.m-eq i{ flex:1; height:18%; border-radius:3px; background: linear-gradient(#fff, rgba(255,255,255,.35)); }
.is-active .m-eq i{ animation: hbEq .85s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -.11s); }
.is-active .m-eq i:nth-child(3n){ animation-duration:.62s; } .is-active .m-eq i:nth-child(3n+1){ animation-duration:1.05s; }
.m-track{ grid-column:1 / -1; justify-self:start; font-size:.74rem; font-weight:800; padding:6px 12px; border-radius:999px; background: rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); }

@keyframes hbIn{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform:none; } }
@keyframes hbPop{ from{ opacity:0; transform: scale(.6); } to{ opacity:1; transform: scale(1); } }
@keyframes hbType{ from{ clip-path: inset(0 0 0 100%); } to{ clip-path: inset(0 0 0 0); } }
@keyframes hbBlink{ 50%{ opacity:0; } }
@keyframes hbGrow{ from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
@keyframes hbSpinIn{ from{ opacity:0; transform: rotate(-120deg) scale(.5); } to{ opacity:1; transform:none; } }
@keyframes hbSpin{ to{ transform: rotate(360deg); } }
@keyframes hbHue{ 0%, 55%{ filter:none; } 65%, 100%{ filter: hue-rotate(-55deg) saturate(1.15); } }
@keyframes hbBadge{ from{ opacity:0; transform: scale(.3) rotate(-30deg); } to{ opacity:1; transform:none; } }
@keyframes hbRing{ to{ box-shadow: 0 0 0 4px rgba(255,255,255,.55); transform: scale(1.15); } }
@keyframes hbPulse{ 50%{ transform: scale(1.12); } }
@keyframes hbSet{ to{ top:46%; } }
@keyframes hbFade{ to{ opacity:0; transform: scale(1.5); } }
@keyframes hbProg{ to{ transform: scaleX(1); } }
@keyframes hbEq{ from{ height:14%; } to{ height:96%; } }
@keyframes hbFill{ from{ width:0; } to{ width:100%; } }

@media (prefers-reduced-motion: reduce){
  .is-active .m-type, .m-type{ animation:none !important; clip-path:none; }
  .is-active [class^="m-"], .is-active [class*=" m-"], .is-active [class^="m-"] *{ animation:none !important; }
  .m-sl, .m-pcard > *, .m-sw i, .m-page > *, .m-chip, .m-sub, .m-done{ opacity:1 !important; }
  .m-prog i{ transform: scaleX(.6); } .m-play{ opacity:0; }
}


/* ══ فاز ۲ (۱۴۰۵/۰۸/۲۰): تصویرساز، ویرایشگرِ تصویر، جابه‌جاییِ چهره، عکسِ محصول، ویرایشگرِ ویدیو، زیرنویس، موشن ══ */
/* تصویرساز: متن ← ۴ تصویر که از محو به واضح «ظاهر» می‌شوند */
.m-ig{ position:relative; width:100%; max-width:250px; display:flex; flex-direction:column; gap:8px; padding-bottom:18px; }
.m-ig-grid{ display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.m-art{ position:relative; aspect-ratio:1; border-radius:11px; overflow:hidden; opacity:0; filter: blur(14px) saturate(.4); box-shadow: 0 12px 22px -14px rgba(0,0,0,.6); }
.is-active .m-art{ animation: mIgDev 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.is-active .m-art--1{ animation-delay:1.5s; } .is-active .m-art--2{ animation-delay:1.8s; } .is-active .m-art--3{ animation-delay:2.1s; } .is-active .m-art--4{ animation-delay:2.4s; }
.m-art--1{ background: linear-gradient(#FDBA74, #F472B6 60%, #7C2D12); } .m-art--2{ background: linear-gradient(#93C5FD, #C4B5FD 55%, #1E3A8A); }
.m-art--3{ background: linear-gradient(#FDE68A, #FB923C 55%, #78350F); } .m-art--4{ background: linear-gradient(#A7F3D0, #67E8F9 50%, #134E4A); }
.m-art b{ position:absolute; width:34%; height:34%; border-radius:50%; top:16%; left:30%; background: rgba(255,255,255,.75); box-shadow: 0 0 18px rgba(255,255,255,.8); }
.m-art s{ position:absolute; left:-10%; right:-10%; bottom:-18%; height:55%; border-radius:50% 50% 0 0; background: rgba(0,0,0,.35); }
@keyframes mIgDev{ 0%{ opacity:0; filter: blur(14px) saturate(.4); transform: scale(.92); } 60%{ opacity:1; } 100%{ opacity:1; filter:none; transform:none; } }

/* ویرایشگرِ تصویر: پس‌زمینه با یک جاروب پاک می‌شود و شطرنجیِ شفاف پیدا می‌شود */
.m-ie{ display:flex; align-items:center; gap:14px; width:100%; max-width:360px; }
.m-ie-card{ position:relative; flex:none; width:170px; aspect-ratio:4/5; border-radius:16px; overflow:hidden; box-shadow: 0 22px 40px -20px rgba(0,0,0,.65); }
.m-ie-check{ position:absolute; inset:0; background: conic-gradient(#E5E7EB 25%, #fff 0 50%, #E5E7EB 0 75%, #fff 0) 0 0/18px 18px; }
.m-ie-bg{ position:absolute; inset:0; z-index:1; background: linear-gradient(160deg, #78716C, #44403C 60%, #292524); }
.is-active .m-ie-bg{ animation: mIeErase 1.4s cubic-bezier(.6,0,.3,1) 1s forwards; }
.m-ie-obj{ position:absolute; z-index:2; left:50%; bottom:16%; translate:-50% 0; width:42%; height:62%; }
.m-ie-obj i{ position:absolute; inset:18% 8% 0; border-radius:12px 12px 16px 16px; background: linear-gradient(135deg, #F472B6, #DB2777 60%, #9D174D); box-shadow: inset -8px 0 14px rgba(0,0,0,.25); }
.m-ie-obj b{ position:absolute; top:0; left:32%; right:32%; height:22%; border-radius:6px 6px 2px 2px; background:#FDE68A; }
.m-ie-scan{ position:absolute; z-index:3; top:0; bottom:0; width:3px; left:100%; background:#fff; box-shadow: 0 0 14px 4px rgba(255,255,255,.9); opacity:0; }
.is-active .m-ie-scan{ animation: mIeScan 1.4s cubic-bezier(.6,0,.3,1) 1s forwards; }
@keyframes mIeErase{ from{ clip-path: inset(0 0 0 0); } to{ clip-path: inset(0 100% 0 0); } }
@keyframes mIeScan{ 0%{ left:100%; opacity:1; } 95%{ opacity:1; } 100%{ left:0; opacity:0; } }
.m-ie-ops{ display:flex; flex-direction:column; gap:7px; }
.m-ie-ops i{ font-style:normal; font-size:.66rem; font-weight:800; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; white-space:nowrap; }
.is-active .m-ie-ops i{ animation: hbIn .4s ease-out forwards; }
.is-active .m-ie-ops i:nth-child(1){ animation-delay:2.4s; background:#fff; color:#BE185D; } .is-active .m-ie-ops i:nth-child(2){ animation-delay:2.65s; }
.is-active .m-ie-ops i:nth-child(3){ animation-delay:2.9s; } .is-active .m-ie-ops i:nth-child(4){ animation-delay:3.15s; }

/* جابه‌جاییِ چهره: چهرهٔ تو رویِ سه شخصیت می‌نشیند */
.m-fs{ display:flex; align-items:center; gap:12px; }
.m-fs-me, .m-fs-c{ position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; }
.m-fs-me i{ width:66px; height:66px; border-radius:50%; background: radial-gradient(circle at 50% 38%, #FCD9B6 0 34%, transparent 35%), radial-gradient(circle at 50% 110%, #6366F1 0 48%, transparent 49%), #E0E7FF;
  border:3px solid #fff; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
.m-fs small{ font-size:.6rem; font-weight:800; }
.m-fs-arr{ font-size:1.2rem; font-weight:900; opacity:.8; }
.m-fs-cards{ display:flex; gap:8px; }
.m-fs-c{ width:76px; padding:8px 6px; border-radius:14px; opacity:0; box-shadow: 0 16px 28px -16px rgba(0,0,0,.7); }
.m-fs-c i{ width:52px; height:66px; border-radius:26px 26px 12px 12px; background: radial-gradient(circle at 50% 30%, #FCD9B6 0 24%, transparent 25%), var(--fsg); }
.m-fs-c--1{ background: linear-gradient(160deg, #1E1B4B, #312E81); --fsg: radial-gradient(circle at 50% 30%, transparent 0 30%, #E5E7EB 31% 44%, transparent 45%), linear-gradient(#94A3B8, #475569); }
.m-fs-c--2{ background: linear-gradient(160deg, #78350F, #B45309); --fsg: linear-gradient(#FBBF24 0 18%, transparent 18%), linear-gradient(#7F1D1D, #450A0A); }
.m-fs-c--3{ background: linear-gradient(160deg, #14532D, #15803D); --fsg: linear-gradient(transparent 55%, #fff 55% 62%, transparent 62%), linear-gradient(#DC2626, #7F1D1D); }
.is-active .m-fs-c{ animation: hbPop .5s cubic-bezier(.2,.9,.3,1.4) forwards; }
.is-active .m-fs-c--1{ animation-delay:1s; } .is-active .m-fs-c--2{ animation-delay:1.5s; } .is-active .m-fs-c--3{ animation-delay:2s; }
.is-active .m-fs-me i{ animation: mFsPulse 1.2s ease-in-out .6s 3; }
@keyframes mFsPulse{ 50%{ box-shadow: 0 0 0 8px rgba(255,255,255,.25), 0 12px 24px -12px rgba(0,0,0,.6); } }

/* عکسِ محصول: قبل/بعد با یک خطِ جابه‌جا شونده */
.m-pp{ width:100%; max-width:320px; }
.m-pp-frame{ position:relative; aspect-ratio:4/3; border-radius:16px; overflow:hidden; box-shadow: 0 22px 40px -20px rgba(0,0,0,.65); }
.m-pp-before, .m-pp-after{ position:absolute; inset:0; display:grid; place-items:center; }
.m-pp-before{ background: linear-gradient(160deg, #D6D3D1, #A8A29E); filter: saturate(.5); }
.m-pp-after{ background: radial-gradient(70% 70% at 50% 40%, #FEF3C7, #F59E0B 55%, #92400E); clip-path: inset(0 0 0 100%); }
.is-active .m-pp-after{ animation: mPpWipe 2.6s cubic-bezier(.6,0,.3,1) .8s forwards; }
.m-pp-obj{ width:26%; height:52%; border-radius:12px 12px 18px 18px; background: linear-gradient(135deg, #fff, #E5E7EB); box-shadow: 0 6px 0 -2px rgba(0,0,0,.15); }
.m-pp-after .m-pp-obj{ background: linear-gradient(135deg, #fff, #FDE68A); box-shadow: 0 30px 30px -14px rgba(0,0,0,.45); }
.m-pp-glow{ position:absolute; width:60%; height:20%; bottom:12%; left:20%; border-radius:50%; background: rgba(0,0,0,.25); filter: blur(8px); }
.m-pp-frame small{ position:absolute; top:8px; right:8px; font-size:.6rem; font-weight:900; padding:3px 8px; border-radius:999px; background: rgba(0,0,0,.5); color:#fff; }
.m-pp-after small{ background:#fff; color:#92400E; }
.m-pp-bar{ position:absolute; top:0; bottom:0; width:3px; left:100%; background:#fff; box-shadow: 0 0 12px rgba(255,255,255,.9); }
.is-active .m-pp-bar{ animation: mPpBar 2.6s cubic-bezier(.6,0,.3,1) .8s forwards; }
@keyframes mPpWipe{ 0%{ clip-path: inset(0 0 0 100%); } 70%, 100%{ clip-path: inset(0 0 0 0); } }
@keyframes mPpBar{ 0%{ left:100%; } 70%{ left:0; opacity:1; } 100%{ left:0; opacity:0; } }

/* ویرایشگرِ ویدیو: قاب ۱۶:۹ ← ۹:۱۶، تایم‌لاین با جامپ‌کات */
.m-ve{ width:100%; max-width:330px; display:flex; flex-direction:column; gap:9px; align-items:center; }
.m-ve-screen{ width:100%; height:120px; display:grid; place-items:center; }
.m-ve-frame{ position:relative; width:180px; height:102px; border-radius:12px; overflow:hidden; background: linear-gradient(160deg, #F87171, #7F1D1D); box-shadow: 0 18px 32px -16px rgba(0,0,0,.7); }
.is-active .m-ve-frame{ animation: mVeAspect 1s cubic-bezier(.6,0,.3,1) 1.2s forwards; }
.m-ve-frame i{ position:absolute; width:30%; aspect-ratio:1; border-radius:50%; top:24%; left:35%; background: radial-gradient(circle at 50% 40%, #FCD9B6 0 45%, transparent 46%), #1F2937; }
.m-ve-frame b{ position:absolute; bottom:6px; right:8px; font-size:.8rem; opacity:0; }
.is-active .m-ve-frame b{ animation: hbPop .4s ease-out 2.6s forwards; }
@keyframes mVeAspect{ to{ width:64px; height:114px; } }
.m-ve-tl{ position:relative; width:100%; height:26px; display:flex; gap:3px; padding:4px; border-radius:10px; background: rgba(0,0,0,.25); }
.m-ve-clip{ flex:1; border-radius:5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 2px, rgba(255,255,255,.25) 2px 7px); }
.m-ve-clip--b{ flex:1.4; } .m-ve-cut{ flex:.4; border-radius:5px; background: rgba(255,255,255,.12); }
.is-active .m-ve-cut{ animation: mVeCut .5s ease-in 2s forwards; }
@keyframes mVeCut{ to{ flex:0; opacity:0; margin:0 -1.5px; } }
.m-ve-head{ position:absolute; top:-3px; bottom:-3px; width:2px; right:6px; background:#fff; box-shadow: 0 0 8px #fff; }
.is-active .m-ve-head{ animation: mVeHead 5s linear .6s forwards; }
@keyframes mVeHead{ to{ right: calc(100% - 8px); } }
.m-ve-ops{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.m-ve-ops i{ font-style:normal; font-size:.62rem; font-weight:800; padding:5px 9px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; }
.is-active .m-ve-ops i{ animation: hbIn .4s ease-out forwards; }
.is-active .m-ve-ops i:nth-child(1){ animation-delay:2s; } .is-active .m-ve-ops i:nth-child(2){ animation-delay:1.3s; }
.is-active .m-ve-ops i:nth-child(3){ animation-delay:2.6s; } .is-active .m-ve-ops i:nth-child(4){ animation-delay:3s; }

/* زیرنویس: کلمه‌به‌کلمه هم‌زمان با گفتار + ترجمه */
.m-st{ width:100%; max-width:330px; display:flex; flex-direction:column; gap:10px; }
.m-st-screen{ position:relative; aspect-ratio:16/10; border-radius:14px; overflow:hidden; background: linear-gradient(170deg, #334155, #0F172A); box-shadow: 0 22px 40px -20px rgba(0,0,0,.7); }
.m-st-person{ position:absolute; left:50%; bottom:0; translate:-50% 0; width:40%; height:78%; }
.m-st-person i{ position:absolute; width:46%; aspect-ratio:1; left:27%; top:0; border-radius:50%; background:#FCD9B6; }
.m-st-person b{ position:absolute; left:6%; right:6%; bottom:0; height:52%; border-radius:50% 50% 0 0; background: linear-gradient(#6366F1, #3730A3); }
.m-st-line{ position:absolute; bottom:22px; left:50%; translate:-50% 0; white-space:nowrap; font-size:.86rem; font-weight:900; color:#fff; text-shadow: 0 2px 6px rgba(0,0,0,.8); opacity:0; }
.is-active .m-st-line{ animation: hbIn .3s ease-out .5s forwards; }
.m-st-line em{ font-style:normal; transition: color .2s; }
.is-active .m-st-line em{ animation: mStWord .45s steps(1) forwards; }
.is-active .m-st-line em:nth-child(1){ animation-delay:.8s; } .is-active .m-st-line em:nth-child(2){ animation-delay:1.25s; }
.is-active .m-st-line em:nth-child(3){ animation-delay:1.7s; } .is-active .m-st-line em:nth-child(4){ animation-delay:2.15s; }
@keyframes mStWord{ 0%{ color:#FACC15; transform: scale(1.12); } 100%{ color:#FACC15; } }
.m-st-en{ position:absolute; bottom:6px; left:50%; translate:-50% 0; white-space:nowrap; direction:ltr; font-size:.66rem; font-weight:700; color:#E2E8F0; opacity:0; }
.is-active .m-st-en{ animation: hbIn .4s ease-out 2.9s forwards; }
.m-st-langs{ display:flex; justify-content:center; gap:6px; }
.m-st-langs i{ font-style:normal; font-size:.62rem; font-weight:800; padding:5px 9px; border-radius:999px; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); }
.is-active .m-st-langs i:nth-child(2){ animation: mStLang .4s ease-out 2.8s forwards; }
@keyframes mStLang{ to{ background:#fff; color:#0F172A; } }

/* موشن‌گرافیک: یک ریلزِ تبلیغاتی که صحنه‌به‌صحنه ساخته می‌شود */
.m-mo{ display:flex; align-items:center; gap:14px; }
.m-mo-phone{ position:relative; width:132px; aspect-ratio:9/16; border-radius:18px; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  background: radial-gradient(90% 60% at 50% 30%, #A78BFA, #6D28D9 55%, #2E1065); border:3px solid rgba(255,255,255,.85); box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); }
.m-mo-phone > *{ opacity:0; }
.is-active .m-mo-logo{ animation: hbPop .5s cubic-bezier(.2,.9,.3,1.5) .5s forwards; }
.is-active .m-mo-t1{ animation: hbIn .45s ease-out 1s forwards; } .is-active .m-mo-t2{ animation: hbIn .45s ease-out 1.35s forwards; }
.is-active .m-mo-badge{ animation: mMoBadge .6s cubic-bezier(.2,.9,.3,1.6) 1.9s forwards; } .is-active .m-mo-cta{ animation: hbIn .45s ease-out 2.4s forwards; }
.is-active .m-mo-bar{ animation: hbIn .3s ease-out .4s forwards; }
.m-mo-logo{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:1.2rem; background:#fff; }
.m-mo-t1{ font-size:.86rem; font-weight:900; color:#fff; }
.m-mo-t2{ font-size:.58rem; color: rgba(255,255,255,.85); }
.m-mo-badge{ position:absolute; top:12px; left:10px; font-size:.78rem; font-weight:900; padding:4px 8px; border-radius:9px; background:#FACC15; color:#422006; rotate:-8deg; }
.m-mo-cta{ margin-top:4px; font-size:.58rem; font-weight:900; padding:5px 12px; border-radius:999px; background:#fff; color:#6D28D9; }
.m-mo-bar{ position:absolute; top:6px; left:8px; right:8px; height:3px; border-radius:2px; background: rgba(255,255,255,.3); overflow:hidden; }
.m-mo-bar i{ display:block; height:100%; width:0; background:#fff; }
.is-active .m-mo-bar i{ animation: hbFill 5s linear .4s forwards; }
@keyframes mMoBadge{ from{ opacity:0; transform: scale(.2) rotate(-40deg); } to{ opacity:1; transform:none; } }
.m-mo-tags{ display:flex; flex-direction:column; gap:7px; }
.m-mo-tags i{ font-style:normal; font-size:.64rem; font-weight:800; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; white-space:nowrap; }
.is-active .m-mo-tags i{ animation: hbIn .4s ease-out forwards; }
.is-active .m-mo-tags i:nth-child(1){ animation-delay:2.7s; } .is-active .m-mo-tags i:nth-child(2){ animation-delay:2.95s; } .is-active .m-mo-tags i:nth-child(3){ animation-delay:3.2s; }

@media (prefers-reduced-motion: reduce){
  .m-art, .m-ie-ops i, .m-fs-c, .m-ve-ops i, .m-st-line, .m-st-en, .m-mo-phone > *, .m-mo-tags i{ opacity:1 !important; filter:none !important; }
  .m-ie-bg{ clip-path: inset(0 100% 0 0); } .m-pp-after{ clip-path: inset(0 0 0 50%); }
}

/* ══ فاز ۳ و ۴ (۱۴۰۵/۰۸/۲۰): چت، نوشتار، ایده، تحلیلِ سند، اکسل، رزومه، صدا، صدا به متن، کد، منو، سئو، پژوهش ══ */
.m-card-in{ opacity:0; }
/* چت */
.m-chat{ width:100%; max-width:330px; display:flex; flex-direction:column; gap:8px; }
.m-b{ max-width:85%; padding:9px 12px; border-radius:14px; font-size:.7rem; line-height:1.9; opacity:0; box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
.m-b--me{ align-self:flex-start; background:#fff; color:#1F2937; border-bottom-right-radius:4px; }
.m-b--ai{ align-self:flex-end; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); color:#fff; border-bottom-left-radius:4px; min-width:60%; }
.is-active .m-b--me{ animation: hbIn .4s ease-out .3s forwards; } .is-active .m-b--ai{ animation: hbIn .4s ease-out 1s forwards; } .is-active .m-b--2{ animation: hbIn .4s ease-out 3.4s forwards; }
.m-dots{ display:inline-flex; gap:3px; } .m-dots i{ width:5px; height:5px; border-radius:50%; background:#fff; animation: hbBlink 1s infinite; }
.m-dots i:nth-child(2){ animation-delay:.2s; } .m-dots i:nth-child(3){ animation-delay:.4s; }
.is-active .m-dots{ animation: mHide 0s linear 1.8s forwards; }
.m-b--ai .m-type{ display:block; white-space:normal; }
.is-active .m-b--ai .m-type{ animation-delay:1.8s; animation-duration:1.4s; }
@keyframes mHide{ to{ display:none; width:0; opacity:0; } }
/* نوشتار */
.m-doc{ display:flex; align-items:center; gap:14px; }
.m-doc-page{ width:160px; aspect-ratio:3/4; padding:16px 14px; border-radius:10px; background:#fff; display:flex; flex-direction:column; gap:8px; box-shadow: 0 22px 40px -20px rgba(0,0,0,.6); }
.m-doc-page > *{ display:block; border-radius:3px; background:#CBD5E1; height:6px; transform-origin:right; transform: scaleX(0); }
.m-doc-t{ height:9px !important; width:70%; background: var(--c1) !important; }
.is-active .m-doc-page > *{ animation: mGrowX .5s ease-out forwards; }
.is-active .m-doc-page > *:nth-child(2){ animation-delay:.4s; } .is-active .m-doc-page > *:nth-child(3){ animation-delay:.6s; } .is-active .m-doc-page > *:nth-child(4){ animation-delay:.8s; }
.is-active .m-doc-page > *:nth-child(5){ animation-delay:1s; } .is-active .m-doc-page > *:nth-child(6){ animation-delay:1.2s; }
.m-doc-short{ width:55%; }
.is-active .m-doc-sel{ animation: mGrowX .5s ease-out .8s forwards, mSel .6s ease-out 2.2s forwards !important; }
@keyframes mGrowX{ to{ transform: scaleX(1); } }
@keyframes mSel{ to{ background: color-mix(in srgb, var(--c1) 55%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 25%, transparent); } }
.m-doc-tools{ display:flex; flex-direction:column; gap:7px; }
.m-doc-tools i{ font-style:normal; font-size:.64rem; font-weight:800; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; white-space:nowrap; }
.is-active .m-doc-tools i{ animation: hbIn .35s ease-out forwards; } .is-active .m-doc-tools i:nth-child(1){ animation-delay:1.5s; } .is-active .m-doc-tools i:nth-child(2){ animation: hbIn .35s ease-out 1.7s forwards, mStLang .3s ease-out 2.4s forwards; }
.is-active .m-doc-tools i:nth-child(3){ animation-delay:1.9s; } .is-active .m-doc-tools i:nth-child(4){ animation-delay:2.1s; }
/* ایده‌ها */
.m-ideas{ position:relative; width:100%; max-width:290px; display:flex; flex-direction:column; gap:8px; }
.m-idea{ position:relative; padding:9px 13px; border-radius:14px; background:#fff; color:#1F2937; display:flex; flex-direction:column; gap:5px; opacity:0; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
.m-idea b{ font-size:.78rem; font-weight:900; color: var(--c2); } .m-idea small{ font-size:.62rem; color:#475569; }
.m-idea i{ display:block; height:5px; border-radius:3px; background:#E2E8F0; } .m-idea i:last-child{ width:60%; }
.m-idea i{ display:none; }
.is-active .m-idea--1{ animation: hbIn .5s ease-out .5s forwards; } .is-active .m-idea--2{ animation: hbIn .5s ease-out 1.3s forwards; } .is-active .m-idea--3{ animation: hbIn .5s ease-out 2.1s forwards; }
/* تحلیلِ سند */
.m-dsc{ display:flex; align-items:center; gap:12px; }
.m-dsc-page{ position:relative; width:130px; aspect-ratio:3/4; padding:12px; border-radius:10px; background:#fff; display:flex; flex-direction:column; gap:7px; overflow:hidden; box-shadow: 0 20px 36px -18px rgba(0,0,0,.6); }
.m-dsc-page b{ font-size:.64rem; font-weight:900; color:#1F2937; } .m-dsc-page i{ display:block; height:5px; border-radius:3px; background:#CBD5E1; }
.is-active .m-dsc-risk{ animation: mRisk .4s ease-out 1.8s forwards; } .is-active .m-dsc-risk--2{ animation-delay:2.1s; }
@keyframes mRisk{ to{ background:#F87171; box-shadow: 0 0 0 3px rgba(248,113,113,.35); } }
.m-dsc-scan{ position:absolute; left:0; right:0; top:0; height:3px; background: var(--c1); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--c1) 70%, transparent); }
.is-active .m-dsc-scan{ animation: mScan 1.6s ease-in-out .2s forwards; }
@keyframes mScan{ to{ top:100%; opacity:0; } }
.m-dsc-rep{ display:flex; flex-direction:column; gap:6px; }
.m-dsc-rep span{ font-size:.62rem; font-weight:800; padding:6px 10px; border-radius:10px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); opacity:0; white-space:nowrap; }
.m-dsc-rep span.bad{ background: rgba(248,113,113,.25); border-color: rgba(248,113,113,.5); }
.is-active .m-dsc-rep span{ animation: hbIn .35s ease-out forwards; } .is-active .m-dsc-rep span:nth-child(1){ animation-delay:2s; } .is-active .m-dsc-rep span:nth-child(2){ animation-delay:2.3s; }
.is-active .m-dsc-rep span:nth-child(3){ animation-delay:2.6s; } .is-active .m-dsc-rep span:nth-child(4){ animation-delay:2.9s; }
/* اکسل */
.m-sheet{ display:flex; align-items:center; gap:10px; }
.m-rc{ position:relative; width:74px; height:110px; }
.m-rcpt{ position:absolute; width:60px; height:84px; border-radius:6px; background: repeating-linear-gradient(#fff 0 9px, #E5E7EB 9px 11px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.m-rcpt--1{ top:0; right:0; rotate:8deg; } .m-rcpt--2{ top:12px; right:8px; rotate:-6deg; } .m-rcpt--3{ top:24px; right:4px; rotate:2deg; }
.is-active .m-rcpt{ animation: mFly .6s ease-in forwards; } .is-active .m-rcpt--1{ animation-delay:1s; } .is-active .m-rcpt--2{ animation-delay:1.3s; } .is-active .m-rcpt--3{ animation-delay:1.6s; }
@keyframes mFly{ to{ transform: translateX(-60px) scale(.4); opacity:0; } }
.m-tbl{ display:grid; grid-template-columns: repeat(3, auto); gap:1px; border-radius:10px; overflow:hidden; background:#16A34A; box-shadow: 0 20px 36px -18px rgba(0,0,0,.6); }
.m-tbl span{ font-size:.58rem; padding:6px 8px; background:#fff; color:#1F2937; opacity:0; white-space:nowrap; }
.m-tbl span.h{ background:#DCFCE7; font-weight:900; color:#14532D; opacity:1; }
.is-active .m-tbl span:not(.h){ animation: hbIn .3s ease-out forwards; }
.is-active .m-tbl span:nth-child(n+4):nth-child(-n+6){ animation-delay:1.7s; } .is-active .m-tbl span:nth-child(n+7):nth-child(-n+9){ animation-delay:2s; }
.is-active .m-tbl span:nth-child(n+10){ animation-delay:2.3s; }
/* رزومه */
.m-cv{ position:relative; display:flex; width:200px; aspect-ratio:3/4; border-radius:10px; overflow:hidden; background:#fff; box-shadow: 0 22px 40px -20px rgba(0,0,0,.6); }
.m-cv-side{ width:36%; padding:12px 8px; display:flex; flex-direction:column; align-items:center; gap:6px; background: var(--cvc, var(--c1)); transition: background .4s; }
.is-active .m-cv-side{ animation: mCvc 4s steps(1) 1.6s forwards; }
@keyframes mCvc{ 0%{ background:#0F766E; } 33%{ background:#7C3AED; } 66%{ background:#DB2777; } 100%{ background:#0F766E; } }
.m-cv-ph{ width:38px; height:38px; border-radius:50%; background: radial-gradient(circle at 50% 38%, #FCD9B6 0 32%, transparent 33%), radial-gradient(circle at 50% 110%, #E5E7EB 0 48%, transparent 49%), rgba(255,255,255,.3); border:2px solid #fff; }
.m-cv-side b{ width:70%; height:5px; border-radius:3px; background: rgba(255,255,255,.9); } .m-cv-side s{ width:80%; height:4px; border-radius:2px; background: rgba(255,255,255,.5); text-decoration:none; }
.m-cv-main{ flex:1; padding:14px 10px; display:flex; flex-direction:column; gap:6px; }
.m-cv-name{ font-size:.7rem; font-weight:900; color:#1F2937; } .m-cv-main small{ font-size:.54rem; color: var(--c1); margin-bottom:4px; }
.m-cv-main i{ display:block; height:5px; border-radius:3px; background:#CBD5E1; transform-origin:right; transform: scaleX(0); } .m-cv-main i.short{ width:60%; }
.is-active .m-cv-main i{ animation: mGrowX .4s ease-out forwards; }
.is-active .m-cv-main i:nth-of-type(1){ animation-delay:.5s; } .is-active .m-cv-main i:nth-of-type(2){ animation-delay:.7s; } .is-active .m-cv-main i:nth-of-type(3){ animation-delay:.9s; }
.is-active .m-cv-main i:nth-of-type(4){ animation-delay:1.1s; } .is-active .m-cv-main i:nth-of-type(5){ animation-delay:1.3s; }
.m-cv-sw{ position:absolute; left:-34px; top:20px; }
/* صدا */
.m-voice{ width:100%; max-width:320px; display:flex; flex-direction:column; gap:12px; }
.m-voice-txt{ padding:10px 14px; border-radius:14px; background:#fff; color:#1F2937; font-size:.74rem; font-weight:700; box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); }
.m-voice-row{ display:flex; align-items:center; gap:10px; }
.m-voice-av{ flex:none; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-size:1.1rem; background: rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); }
.m-voice-eq{ flex:1; height:56px; }
.m-voice-chips{ display:flex; justify-content:center; gap:6px; }
.m-voice-chips i{ font-style:normal; font-size:.62rem; font-weight:800; padding:5px 10px; border-radius:999px; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3); }
.m-voice-chips i.on{ background:#fff; color: var(--c2); }
/* صدا به متن */
.m-stt{ width:100%; max-width:320px; display:flex; flex-direction:column; gap:10px; }
.m-stt-wave{ display:flex; align-items:center; gap:3px; height:50px; padding:0 6px; }
.m-stt-wave i{ flex:1; height:20%; border-radius:3px; background: rgba(255,255,255,.75); }
.is-active .m-stt-wave i{ animation: hbEq .7s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -.09s); }
.m-stt-txt{ padding:10px 12px; border-radius:12px; background:#fff; color:#1F2937; font-size:.68rem; font-weight:700; min-height:40px; box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); }
.m-stt-txt .m-type{ white-space:normal; }
.is-active .m-stt-txt .m-type{ animation-delay:1s; animation-duration:2s; }
.m-stt-acts{ display:flex; justify-content:center; gap:6px; }
.m-stt-acts i{ font-style:normal; font-size:.62rem; font-weight:800; padding:5px 10px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; }
.is-active .m-stt-acts i{ animation: hbIn .35s ease-out forwards; } .is-active .m-stt-acts i:nth-child(1){ animation-delay:3.1s; } .is-active .m-stt-acts i:nth-child(2){ animation-delay:3.3s; } .is-active .m-stt-acts i:nth-child(3){ animation-delay:3.5s; }
/* کد */
.m-code{ width:100%; max-width:330px; border-radius:12px; overflow:hidden; background:#0F172A; box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); }
.m-code-bar{ height:24px; display:flex; align-items:center; gap:5px; padding:0 10px; background:#1E293B; }
.m-code-bar i{ width:7px; height:7px; border-radius:50%; background:#F87171; } .m-code-bar i:nth-child(2){ background:#FBBF24; } .m-code-bar i:nth-child(3){ background:#34D399; }
.m-code-bar span{ margin-inline:auto; font-size:.58rem; color:#94A3B8; direction:ltr; }
.m-code-body{ margin:0; padding:12px 14px; display:flex; flex-direction:column; gap:4px; font: 600 .66rem/1.7 ui-monospace, Menlo, Consolas, monospace; color:#E2E8F0; text-align:left; }
.m-cl{ display:block; white-space:pre; clip-path: inset(0 100% 0 0); }
.m-cl em{ font-style:normal; color:#C084FC; } .m-cl q{ color:#86EFAC; quotes:none; }
.m-cl.ok{ color:#4ADE80; }
.is-active .m-cl{ animation: mTypeL .8s steps(24) forwards; } .is-active .m-cl--1{ animation-delay:.4s; } .is-active .m-cl--2{ animation-delay:1.2s; } .is-active .m-cl--3{ animation-delay:2s; } .is-active .m-cl--4{ animation-delay:3.1s; animation-duration:.4s; }
@keyframes mTypeL{ to{ clip-path: inset(0 0 0 0); } }
/* منو */
.m-menu{ display:flex; align-items:center; gap:14px; }
.m-menu-phone{ width:140px; padding:14px 12px; border-radius:18px; background:#FFFBEB; color:#422006; display:flex; flex-direction:column; gap:7px; border:3px solid rgba(255,255,255,.85); box-shadow: 0 22px 40px -18px rgba(0,0,0,.7); }
.m-menu-phone b{ font-size:.8rem; font-weight:900; text-align:center; } .m-menu-cat{ font-size:.58rem; font-weight:800; color:#A16207; border-bottom:1px dashed #FDE68A; padding-bottom:4px; }
.m-menu-it{ display:flex; align-items:center; gap:6px; font-size:.6rem; font-weight:700; opacity:0; }
.m-menu-it i{ width:20px; height:20px; border-radius:6px; background: linear-gradient(135deg, #D97706, #78350F); } .m-menu-it em{ margin-inline-start:auto; font-style:normal; color:#A16207; }
.is-active .m-menu-it{ animation: hbIn .35s ease-out forwards; } .is-active .m-menu-it:nth-of-type(2){ animation-delay:.8s; } .is-active .m-menu-it:nth-of-type(3){ animation-delay:1.1s; } .is-active .m-menu-it:nth-of-type(4){ animation-delay:1.4s; }
.m-qr{ display:flex; flex-direction:column; align-items:center; gap:6px; opacity:0; }
.is-active .m-qr{ animation: hbPop .5s cubic-bezier(.2,.9,.3,1.4) 2s forwards; }
.m-qr i{ width:70px; height:70px; border-radius:10px; border:6px solid #fff; background:
  conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0/14px 14px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
.m-qr small{ font-size:.6rem; font-weight:800; }
/* سئو */
.m-seo{ display:flex; align-items:center; gap:18px; }
.m-gauge{ position:relative; width:120px; height:120px; display:grid; place-items:center; }
.m-gauge svg{ position:absolute; inset:0; transform: rotate(-90deg); }
.m-gauge circle{ fill:none; stroke-width:3.2; } .m-gauge .bg{ stroke: rgba(255,255,255,.2); }
.m-gauge .fg{ stroke:#fff; stroke-linecap:round; stroke-dasharray:97.4; stroke-dashoffset:97.4; }
.is-active .m-gauge .fg{ animation: mGauge 1.6s cubic-bezier(.2,.8,.2,1) .5s forwards; }
@keyframes mGauge{ to{ stroke-dashoffset:12.7; } }
.m-gauge b{ font-size:1.6rem; font-weight:900; margin-top:-8px; } .m-gauge small{ position:absolute; bottom:30px; font-size:.56rem; font-weight:800; opacity:.85; }
.m-seo-list{ display:flex; flex-direction:column; gap:6px; }
.m-seo-list span{ font-size:.64rem; font-weight:800; padding:6px 10px; border-radius:10px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); opacity:0; white-space:nowrap; }
.m-seo-list span.warn{ background: rgba(250,204,21,.25); border-color: rgba(250,204,21,.55); }
.is-active .m-seo-list span{ animation: hbIn .35s ease-out forwards; } .is-active .m-seo-list span:nth-child(1){ animation-delay:1.2s; } .is-active .m-seo-list span:nth-child(2){ animation-delay:1.5s; }
.is-active .m-seo-list span:nth-child(3){ animation-delay:1.8s; } .is-active .m-seo-list span:nth-child(4){ animation-delay:2.1s; }
/* پژوهش */
.m-rs{ width:100%; max-width:320px; display:flex; flex-direction:column; gap:9px; }
.m-rs-src{ display:flex; gap:6px; flex-wrap:wrap; }
.m-rs-src i{ font-style:normal; font-size:.6rem; font-weight:800; padding:5px 9px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); opacity:0; }
.is-active .m-rs-src i{ animation: hbPop .35s ease-out forwards; } .is-active .m-rs-src i:nth-child(1){ animation-delay:1.8s; } .is-active .m-rs-src i:nth-child(2){ animation-delay:2s; }
.is-active .m-rs-src i:nth-child(3){ animation-delay:2.2s; } .is-active .m-rs-src i:nth-child(4){ animation-delay:2.4s; }
.m-rs-rep{ padding:12px 14px; border-radius:12px; background:#fff; display:flex; flex-direction:column; gap:6px; opacity:0; box-shadow: 0 16px 30px -16px rgba(0,0,0,.6); }
.is-active .m-rs-rep{ animation: hbIn .45s ease-out 2.8s forwards; }
.m-rs-rep b{ font-size:.68rem; font-weight:900; color: var(--c2); } .m-rs-rep i{ display:block; height:5px; border-radius:3px; background:#CBD5E1; } .m-rs-rep i.short{ width:60%; }

@media (prefers-reduced-motion: reduce){
  .m-b, .m-idea, .m-dsc-rep span, .m-tbl span, .m-menu-it, .m-qr, .m-seo-list span, .m-rs-src i, .m-rs-rep, .m-stt-acts i, .m-doc-tools i{ opacity:1 !important; }
  .m-doc-page > *, .m-cv-main i{ transform:none !important; } .m-cl{ clip-path:none !important; } .m-gauge .fg{ stroke-dashoffset:12.7; } .m-dots{ display:none; }
}

/* ══ بنرِ معرفیِ داخلِ ابزارها (۱۴۰۵/۰۸/۲۰؛ مالک تأیید کرد) — static/js/nb_teaser_host.js
   یک بار پخش ← tz-rest (مکث رویِ آخرین حالت) · موس رویش ← دوباره · کاهشِ حرکت / env-calm ← tz-static (فریمِ آخر، بی‌انیمیشن) ══ */
.tz-hero{ position:relative; display:grid; place-items:center; overflow:hidden; border-radius:24px; padding:14px; color:#fff; isolation:isolate;
  background: radial-gradient(120% 140% at 88% 0%, color-mix(in srgb, var(--c1) 80%, #fff) 0%, var(--c1) 36%, var(--c2) 100%);
  box-shadow: 0 24px 50px -32px var(--c1); }
.tz-hero::before{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size:18px 18px;
  -webkit-mask-image: linear-gradient(to left, transparent 10%, #000 75%); mask-image: linear-gradient(to left, transparent 10%, #000 75%); }
.tz-hero > *{ transform: scale(.92); }
.au-hero-art.tz-hero{ gap:0; }
.tz-hero--center{ width:min(380px, 100%); height:200px; margin:0 auto 18px; }
.tz-hero--pg{ height:250px; }
.tz-hero--ex{ flex:0 0 310px; height:200px; }
@media (max-width: 640px){
  .au-hero-art.tz-hero{ height:190px; } .au-hero-art.tz-hero > *{ transform: scale(.78); }
  .tz-hero--center{ height:180px; } .tz-hero--center > *{ transform: scale(.82); }
  .tz-hero--ex{ flex-basis:auto; width:100%; height:180px; } .tz-hero--ex > *{ transform: scale(.82); }
}
.tz-rest, .tz-rest *{ animation-play-state: paused !important; }
.tz-static *, .tz-static *::before, .tz-static *::after{ animation-delay:0s !important; animation-duration:1ms !important; animation-iteration-count:1 !important; transition:none !important; }
/* بنرهایِ عکسیِ واقعی (پاورپوینت، ویرایشگرِ تصویر و ویدیو، بستهٔ محتوا): فقط یک ورودِ بادبزنی */
.tz-photo.is-active .sl-stack-1, .tz-photo.is-active .sl-stack-2, .tz-photo.is-active .vx-reel, .tz-photo.is-active.cp-art--img img{ animation: tzFanIn .8s cubic-bezier(.2,.8,.2,1) both; }
.tz-photo.is-active .sl-stack-2, .tz-photo.is-active .vx-reel--2{ animation-delay:.15s; }
.tz-photo.is-active .vx-reel--3{ animation-delay:.3s; }
.tz-photo.is-active .sl-stack-3{ animation: tzFanIn .8s cubic-bezier(.2,.8,.2,1) .3s both, slFloat 6s ease-in-out 1.1s infinite; }
@keyframes tzFanIn{ from{ opacity:0; translate:0 22px; scale:.9; } to{ opacity:1; translate:0 0; scale:1; } }
.tz-hero .m-music, .tz-hero .m-voice, .tz-hero .m-rs, .tz-hero .m-web{ width:min(100%, 360px); }
.tz-hero .m-music{ grid-template-columns:auto minmax(90px, 1fr); }
@media (max-width: 640px){ .tz-hero .m-disc{ width:96px; height:96px; } }

/* جایگاه‌هایِ دیگرِ بنر (۱۴۰۵/۰۸/۲۰ — همهٔ ابزارهایِ بنردار) */
.tz-hero--side{ width:100%; height:240px; }
.tz-hero--sl{ flex:0 0 360px; height:240px; }
.tz-hero--top{ width:100%; height:200px; margin:0 0 16px; }
.mo-hero .tz-hero--top, .ch-onb-hero .tz-hero--top{ max-width:560px; margin-inline:auto; }
/* گوشی: یک نوارِ جمع‌وجور برایِ همه (مالک: «در گوشی خیلی جمع‌وجور») */
@media (max-width: 700px){
  .tz-hero, .au-hero-art.tz-hero, .tz-hero--side, .tz-hero--sl, .tz-hero--top, .tz-hero--center, .tz-hero--ex, .tz-hero--pg{
    display:grid !important; flex:none !important; width:100% !important; height:150px !important; min-height:0 !important; margin:0 0 12px !important; padding:6px !important; border-radius:18px !important; }
  .tz-hero > *, .au-hero-art.tz-hero > *, .tz-hero--center > *, .tz-hero--ex > *{ transform: scale(.62) !important; }
}
@media (min-width: 701px){ .mv-hero--uni{ display:grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items:center; gap:22px; } .mv-hero--uni .tz-hero{ height:230px; } }
@media (max-width: 700px){ .igst-hero{ grid-template-columns: minmax(0, 1fr) !important; } }
