/* ══ موشن‌های الهام‌گرفته از DSN (rezaasadi.net) ══ */

/* نشانگر سفارشی */
.cursor-dot,.cursor-ring{position:fixed;top:0;left:0;pointer-events:none;z-index:500;border-radius:50%;opacity:0;transform:translate(-50%,-50%)}
html.has-cursor .cursor-dot{width:6px;height:6px;background:var(--gold);opacity:1}
html.has-cursor .cursor-ring{width:38px;height:38px;border:1.5px solid rgba(99,22,38,.45);opacity:1;transition:width .3s var(--ease),height .3s var(--ease),border-color .3s,background .3s}
html.has-cursor .cursor-ring.grow{width:58px;height:58px;border-color:var(--gold);background:rgba(99,22,38,.06)}
html.has-cursor,html.has-cursor a,html.has-cursor button,html.has-cursor label{cursor:none}
html.has-cursor input,html.has-cursor textarea{cursor:text}

/* نوار متحرک مارکی */
.marquee{overflow:hidden;border-block:1px solid var(--line);background:var(--surface);padding:15px 0}
.mq-track{display:flex;width:max-content;animation:mq 30s linear infinite}
.marquee.rev .mq-track{animation-direction:reverse}
.marquee:hover .mq-track{animation-play-state:paused}
.mq-track span{display:flex;align-items:center;gap:30px;padding-inline-end:30px;white-space:nowrap;font-size:.98rem;font-weight:800;color:var(--gold-2)}
.mq-track i{font-style:normal;color:var(--gold);font-size:.8rem}
@keyframes mq{to{transform:translateX(50%)}}

/* پردهٔ ماسک تیترها */
html.js .sec-head h2,html.js .cta-in h2{overflow:hidden}
html.js .sec-head h2 span,html.js .cta-in h2 span{display:inline-block;transform:translateY(120%);transition:transform 1s var(--ease) .1s}
html.js .sec-head.reveal.in h2 span,html.js .cta-in.reveal.in h2 span{transform:none}
html.js .slide h1{overflow:hidden}
html.js .slide.is-active h1 span{transform:none}

/* تیلت کارت‌ها */
.tilt{transform-style:preserve-3d;will-change:transform}

/* پرده‌نمایی تصاویر هنگام ریویل */
html.js .reveal .c-thumb img,html.js .reveal .g-thumb img,html.js .reveal .pod-thumb img{clip-path:inset(0 0 100% 0);transition:clip-path 1.1s var(--ease) .2s,transform 1s var(--ease)}
html.js .reveal.in .c-thumb img,html.js .reveal.in .g-thumb img,html.js .reveal.in .pod-thumb img{clip-path:inset(0 0 0% 0)}

/* واژه‌واژهٔ تیتر اسلایدر (جایگزین ماسک کل عبارت) */
html.js .slide h1 span{transform:none;transition:none}
html.js .slide h1 .w{display:inline-block;font-style:normal;opacity:0;transform:translateY(65%) rotate(4deg);transition:transform .9s var(--ease),opacity .7s}
html.js .slide.is-active h1 .w{opacity:1;transform:none}

/* پیش‌نمایش شناور فهرست پادکست */
.pod-preview{position:fixed;left:50%;top:50%;z-index:60;width:240px;aspect-ratio:16/10;border-radius:12px;overflow:hidden;pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.85) rotate(-4deg);transition:opacity .3s var(--ease),transform .3s var(--ease);box-shadow:var(--shadow);border:1px solid var(--line-2)}
.pod-preview.show{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-4deg)}
.pod-preview img{width:100%;height:100%;object-fit:cover}

/* مارکی غول‌پیکر فوتر */
.foot-marquee{overflow:hidden;padding:8px 0 26px}
.fmq-track{display:flex;gap:46px;width:max-content;animation:mq 46s linear infinite}
.fmq-track span{font-size:clamp(2.6rem,7vw,5.6rem);font-weight:900;white-space:nowrap;color:transparent;-webkit-text-stroke:1px rgba(230,201,164,.4);line-height:1.5}
.fmq-track .psi{color:var(--sand);-webkit-text-stroke:0;font-family:serif}

@media (prefers-reduced-motion:reduce){
  .mq-track{animation:none}
  .cursor-dot,.cursor-ring{display:none}
}
