/* =====================================================================
   Directline — shared pieces of the inner pages (work.html, project.html)
   The header, closing call to action and footer come from the homepage
   (styles.css + footer.css); this file adds what the inner pages share:
   the active nav link, reveal-on-scroll and the follow-the-pointer label.
   ===================================================================== */
.inner { background: var(--paper); }
.header nav a[aria-current="page"] { color: var(--lime); }

/* reveal on scroll: [data-rv] rises in once it enters the view */
.motion-ok [data-rv] { opacity: 0; translate: 0 36px; transition: opacity .9s cubic-bezier(.22,1,.36,1), translate .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--rv-d, 0ms); }
.motion-ok [data-rv].is-in { opacity: 1; translate: 0 0; }
.motion-ok [data-rv="clip"] { opacity: 1; translate: none; clip-path: inset(100% 0 0 0 round 14px); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); transition-delay: var(--rv-d, 0ms); }
.motion-ok [data-rv="clip"].is-in { clip-path: inset(0 0 0 0 round 14px); }

/* the pointer label ("افتح") that follows the mouse over project cards */
.cursor-tag {
  position: fixed; z-index: 60; top: 0; left: 0; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--deep);
  font-size: 13px; font-weight: 600; scale: 0; transition: scale .35s cubic-bezier(.22,1,.36,1);
}
.cursor-tag.on { scale: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor-tag { display: none; } }

/* a project's own accent, shared by both pages */
.accent-bg { background: var(--acc, var(--purple)); color: var(--acc-ink, #fff); }
.wd { display: inline-block; white-space: nowrap; }
