/* هیما ۱۶: خلاصه‌ی سه زیرسیستم + نمونه‌کار HIMA Media (روی پس‌زمینه‌ی ثابت) */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* خلاصه‌ی هر زیرسیستم */
.w16 { padding: clamp(56px, 8vw, 110px) var(--gutter); scroll-margin-top: 20px; }
.w16-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.w16.flip .w16-pic { order: 2; }
.w16-pic { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.w16-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.w16:hover .w16-pic img { transform: scale(1.04); }
.w16-kick { margin: 0 0 10px; font: 500 15px var(--en); letter-spacing: .08em; color: var(--amber); direction: ltr; text-align: right; }
.w16-kick b { letter-spacing: .3em; font-weight: 700; }
.w16-tx h2 { margin: 0; font: 900 clamp(26px, 3.2vw, 42px)/1.35 var(--fa); color: #fff; text-wrap: balance; }
.w16-lead { margin: 16px 0 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 2; color: rgba(255, 255, 255, .72); }
.w16-fe { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.w16-fe li { display: flex; gap: 12px; align-items: flex-start; }
.w16-fe svg { width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 12px; color: var(--amber); background: rgba(245, 162, 58, .1); box-shadow: inset 0 0 0 1px rgba(245, 162, 58, .25); }
.w16-fe b { display: block; font-size: 15px; color: #fff; }
.w16-fe span { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .6); }
.w16-acts { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.w-b1, .w-b2 { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.w-b1 { background: #fff; color: #111; }
.w-b1:hover { background: rgba(255, 255, 255, .88); transform: translateY(-1px); }
.w-b1 svg { width: 18px; height: 18px; }
.w-b2 { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.w-b2:hover { background: rgba(255, 255, 255, .08); }

/* نمونه‌کار */
.pf { padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(56px, 8vw, 110px); scroll-margin-top: 20px; }
.pf-in { max-width: 1200px; margin: 0 auto; }
.pf-head { text-align: center; }
.pf-head h2 { margin: 0; font: 900 clamp(26px, 3vw, 40px)/1.35 var(--fa); color: #fff; }
.pf-head p { margin: 8px 0 0; color: rgba(255, 255, 255, .6); }
.pf-stats { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-stats div { padding: 18px 12px; border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pf-stats dt { font: 900 clamp(26px, 3vw, 38px)/1.2 var(--fa); color: var(--amber); }
.pf-stats dd { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.pf-filter { margin: 36px 0 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pf-filter button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: 500 14px var(--fa); color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s, color .2s; }
.pf-filter button:hover { color: #fff; }
.pf-filter button[aria-selected="true"] { background: #fff; color: #111; box-shadow: none; font-weight: 700; }
.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 220px); grid-auto-flow: dense; gap: 12px; }
.pf-it { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #111; font: inherit; color: #fff; text-align: start; }
.pf-it.feat { grid-column: span 2; grid-row: span 2; }
.pf-it[hidden] { display: none; }
.pf-it img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.pf-it:hover img, .pf-it:focus-visible img { transform: scale(1.06); filter: brightness(.7); }
.pf-cap { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transform: translateY(30%); opacity: 0; transition: transform .4s, opacity .4s; }
.pf-it:hover .pf-cap, .pf-it:focus-visible .pf-cap { transform: none; opacity: 1; }
.pf-cap b { font-size: 15px; } .pf-cap small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.pf-play { position: absolute; top: 12px; inset-inline-start: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.pf-play svg { width: 18px; height: 18px; }
.pf-it.pop { animation: pfPop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pfPop { from { opacity: 0; transform: scale(.94); } }
@media (hover: none) { .pf-cap { opacity: 1; transform: none; } }

/* مشتریان: نوار لوگوی روان */
.pf-clients { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.pf-clients p { margin: 0 0 18px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.pf-marq { overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent); direction: ltr; }
.pf-track { display: flex; gap: clamp(36px, 5vw, 72px); width: max-content; animation: pfMarq 38s linear infinite; padding: 6px 0; }
.pf-marq:hover .pf-track { animation-play-state: paused; }
.pf-track img { height: 40px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.pf-track img:hover { opacity: 1; filter: none; }
@keyframes pfMarq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pf-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* نظر مشتری */
.pf-quote { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 760px; text-align: center; }
.pf-quote svg { width: 34px; height: 34px; color: var(--amber); opacity: .8; }
.pf-quote blockquote { margin: 10px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 2.1; color: #fff; }
.pf-quote figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.pf-quote figcaption span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* نمایش تمام‌صفحه */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(0, 0, 0, .94); color: #fff; }
.lb::backdrop { background: rgba(0, 0, 0, .9); }
.lb[open] { display: grid; place-items: center; animation: lbIn .3s ease-out; }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1400px, 92vw); }
.lb-media img, .lb-media video { max-width: 92vw; max-height: 80dvh; border-radius: 12px; display: block; }
.lb-media iframe { width: min(1200px, 92vw); aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.lb figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.lb figcaption span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.lb button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .2); }
.lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 16px; left: 16px; } .lb-p { right: 16px; top: 50%; translate: 0 -50%; } .lb-n { left: 16px; top: 50%; translate: 0 -50%; }

@media (max-width: 900px) {
    .w16-in { grid-template-columns: 1fr; }
    .w16.flip .w16-pic { order: 0; }
    .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .w16-fe { grid-template-columns: 1fr; }
    .pf-it.feat { grid-row: span 1; }
}
.pf-more { margin: 26px 0 0; text-align: center; }
