/* ============================================================
   CINEMATIC LAYER — v69 «سینمای شب» (arakilid.ir)
   لایه سینمایی واقعی روی کلاس‌های واقعی قالب. اصول:
   - فقط transform و opacity (CLS امن)
   - prefers-reduced-motion → همه افکت‌ها خاموش
   - (hover:none)/(pointer:coarse) → tilt/magnetic/key غیرفعال، افکت‌ها سبک‌تر
   - RTL آگاه: برای متن فارسی اسپلیت کلمه‌به‌کلمه (نه حرف‌به‌حرف)
   - هیچ z-index بالاتر از ۱۵۰ در این لایه تعریف نشده
   ============================================================ */

:root{
  --cine-night-0:#0B0C10;
  --cine-night-1:#0F1218;
  --cine-night-2:#151923;
  --cine-gold:var(--kt-gold); /* 69.5.0: unified burnished gold */
  --cine-gold-bright:var(--kt-gold-hi);
  --cine-gold-deep:var(--kt-gold-deep);
}

/* ---------- ۱) شب سینمایی: گرین فیلم + وینیت ---------- */
/* روی .hero--dispatch و هر سکشن تیره دیگر اعمال می‌شود */
/* محتوا همیشه بالای گرین/وینیت */

/* ---------- ۲) باریکه نور طلایی ---------- */
.cine-streak{
  position:absolute;inset-inline:0;top:0;height:2px;z-index:4;pointer-events:none;opacity:.85;
  background:linear-gradient(90deg,transparent,var(--cine-gold) 30%,var(--cine-gold-bright) 50%,var(--cine-gold) 70%,transparent);
}

/* ---------- ۳) تایپوگرافی جنبشی — کلمه‌به‌کلمه (RTL امن) ---------- */
/* نکته: برای فارسی هرگز حرف جدا نمی‌شود چون اتصال حروف می‌شکند؛
   واحد انیمیشن کلمه است و stagger از راست (ترتیب DOM) شروع می‌شود. */
[data-cine-split] .cine-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
/* 69.4.1: حالت پنهان فقط با html.cine-boot — اگر cinematic.js اصلاً لود نشود،
   متن اسپلیت‌شده همیشه visible می‌ماند. */
html.cine-boot [data-cine-split] .cine-w > span{
  display:inline-block;transform:translateY(112%);opacity:0;
  transition:transform .8s var(--ease-out),opacity .6s ease;
  transition-delay:calc(var(--i,0)*70ms);
}
html.cine-boot [data-cine-split].in .cine-w > span{transform:translateY(0);opacity:1}
/* متن لاتین: حرف‌به‌حرف (بدون مشکل اتصال) */
html.cine-boot [data-cine-split] .cine-l{
  display:inline-block;transform:translateY(112%);opacity:0;
  transition:transform .7s var(--ease-out),opacity .5s ease;
  transition-delay:calc(var(--i,0)*38ms);
}
html.cine-boot [data-cine-split].in .cine-l{transform:translateY(0);opacity:1}

/* برق طلایی روی خط تأکیدی تیتر (یک‌بار، بعد از اسپلیت کلمه‌ای) */
@keyframes cine-shine{from{background-position:120% 0}to{background-position:-120% 0}}

/* ---------- ۴) reveal پلکانی سکشن‌ها (scrollytelling) ---------- */
/* 69.4.0: حالت پنهان اولیه فقط با html.cine-boot (یعنی وقتی cinematic.js واقعاً بوت شد)؛
   در غیر این صورت محتوا همیشه visible است. */
.cine-up{
  transition:opacity .6s var(--ease-out),transform .6s var(--ease-out); /* 69.6.0: was .7s — snappier reveal */
  transition-delay:calc(var(--d,0)*70ms); /* 69.6.0: was 90ms */
}
html.cine-boot .cine-up{opacity:0;transform:translateY(28px)}
html.cine-boot .cine-up.in{opacity:1;transform:none}

/* ---------- ۵) گرید بنتو خدمات ---------- */
/* اسپن‌ها را JS بر اساس کارت‌های «مرئی» ست می‌کند تا فیلتر نشکند */

/* ---------- ۶) کارت شیشه‌ای (فقط روی سکشن تیره) ---------- */
.cine-glass{
  background:rgb(255 255 255/.05);
  border:1px solid rgb(255 255 255/.12);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-radius:1.25rem;
  box-shadow:0 24px 60px -24px rgb(0 0 0/.6);
}
/* دکمه‌های راهنمای هوشمند — کارت ویزارد روشن است، پس کارت روشن + متن تیره.
   (باگ موبایل ۱۴۰۵/۰۷/۰۵: سکشن .section--night رنگ سفید را به ارث می‌دهد؛ بدون color صریح،
   متن دکمه‌ها روی کارت روشن نامرئی می‌شد) */
.dispatcher .disp__problem.cine-glass,
.dispatcher .disp__option.cine-glass{
  background:var(--surface);
  border:1.5px solid var(--line);
  color:var(--ink);
}
/* 70.0.0 loop8 (Worker A — mobile-native): gated — the border/brand wash
   sticks after tap on touch (tappable wizard buttons). */
@media (hover:hover) and (pointer:fine){
.dispatcher .disp__problem.cine-glass:hover,
.dispatcher .disp__option.cine-glass:hover{
  border-color:var(--brand);
  background:var(--brand-soft);
  color:var(--ink);
}
}

/* 70.0.0 loop12 — press feedback for the wizard's tap-heavy buttons.
   The dispatcher wizard is the most tap-intensive interaction on the site
   and its buttons had zero :active response (designspells press spell;
   transform-only 120ms, reduced-motion-escaped like every other press rule). */
.dispatcher .disp__problem.cine-glass,
.dispatcher .disp__option.cine-glass{transition:transform .12s var(--ease-out)}
.dispatcher .disp__problem.cine-glass:active,
.dispatcher .disp__option.cine-glass:active{transform:scale(.97)}
@media (prefers-reduced-motion:reduce){
  .dispatcher .disp__problem.cine-glass,
  .dispatcher .disp__option.cine-glass{transition:none}
  .dispatcher .disp__problem.cine-glass:active,
  .dispatcher .disp__option.cine-glass:active{transform:none}
}

/* ---------- ۷) tilt سه‌بعدی کارت‌ها — حداکثر ۳.۵ درجه، فقط دسکتاپ (69.4.3: نصف شد) ---------- */
@media (hover:hover) and (pointer:fine){
  .cine-tilt{transform-style:preserve-3d;transition:transform .35s var(--ease-out),box-shadow .35s ease}
  .service-card.cine-tilt:hover,
  .why-card.cine-tilt:hover{box-shadow:var(--sh-gold)}
}

/* ---------- ۸) دکمه CTA: مغناطیسی + پالس طلایی (۳ تکرار) ---------- */
.cine-cta{
  position:relative;min-height:48px;
  transition:transform .25s var(--ease-out),box-shadow .25s ease;
}
.cine-cta::after{
  content:"";position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;
  border:2px solid rgb(240 216 120/.7);
  animation:cine-pulse 2.6s ease-out 3;
}
@keyframes cine-pulse{
  0%{transform:scale(1);opacity:.8}
  70%,100%{transform:scale(1.12);opacity:0}
}
/* هرگز روی آیتم‌های نوار تماس چسبان */
.mobile-bottom-bar .cine-cta::after{display:none}
.mobile-bottom-bar .cine-cta{will-change:auto}

/* 69.4.8 (perf): بلوک «کلید سه‌بعدی CSS» حذف شد — هیچ قالبی .cine-key رندر
   نمی‌کند؛ ~۵۰ خط CSS مرده + انیمیشن بی‌نهایت cine-float حذف شد. */

/* ---------- ۱۱) بافت باریکه نور روی سکشن تیره راهنما ---------- */
.section--night.cine-night{position:relative;isolation:isolate;overflow:clip}
.section--night.cine-night::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.cine-texture{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url('../images/cinematic/texture-light-streak.webp') center/cover no-repeat;
  opacity:.4;
}
.section--night.cine-night > *{position:relative;z-index:1}

/* ---------- ۱۲) آیکون‌های بنتو (WebP طلایی/سرمه‌ای) ---------- */

/* ---------- موبایل / coarse pointer: افکت‌ها سبک‌تر ---------- */
@media (hover:none),(pointer:coarse){
  /* revealهای سریع‌تر */
  [data-cine-split] .cine-w > span{transition-duration:.5s;transition-delay:calc(var(--i,0)*25ms)}
  [data-cine-split] .cine-l{transition-duration:.4s;transition-delay:calc(var(--i,0)*20ms)}
  .cine-up{transition-duration:.5s;transition-delay:calc(var(--d,0)*50ms)}
  html.cine-boot .cine-up{transform:translateY(14px)}
  /* گرین و وینیت سبک‌تر */
  /* پالس محدود به ۳ تکرار (کم‌مصرف) */
  .cine-cta::after{animation-iteration-count:3}
  /* برق متحرک خاموش؛ گرادیان طلایی استاتیک می‌ماند */
  /* backdrop-filter سبک‌تر */
  .cine-glass{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  /* بافت باریکه نور کم‌رنگ‌تر */
  .cine-texture{opacity:.22}
}

/* ---------- ویوپورت باریک (≤900px): کلید ۳بعدی مخفی ---------- */
/* 69.4.8: گارد موبایل .cine-key-stage حذف شد (بلوک کلید ۳بعدی کلاً رفت) */

/* ---------- prefers-reduced-motion: همه‌چیز استاتیک (بدون !important) ---------- */
/* آبشار + تقدم سورس کافی است: هر سلکتور اسپسیفیسیتی برابر/بالاتر از قانون
   متناظرش دارد و این بلوک آخرین بلوک فایل است. */
@media (prefers-reduced-motion:reduce){
  html.cine-boot [data-cine-split].in .cine-w > span,html.cine-boot [data-cine-split].in .cine-l,
  html.cine-boot [data-cine-split] .cine-w > span,html.cine-boot [data-cine-split] .cine-l,
  html.cine-boot .cine-up.in,html.cine-boot .cine-up{transform:none;opacity:1;transition:none}
  .cine-cta::after{animation:none;display:none}
  .cine-cta,.cine-tilt{transition:none}
}

/* ---------- forced-colors: لایه تزئینی خاموش ---------- */
@media (forced-colors:active){
  .cine-streak{display:none}
}

/* ============================================================
   V69.4 CINEMATIC PASS — rewired to real classes (corp-/cb2- prefixed)
   یگانه جهت نور: طلایی از بالا-راست (inline-start)؛ طلایی ≤۱۰٪ پیکسل.
   فقط transform/opacity؛ بدون CLS؛ بدون CTA جدید.
   ============================================================ */

/* ---------- 69.4.1 HERO ---------- */
.cine-hero{isolation:isolate}
/* لایه نور کلیدی + وینیت روی خود سکشن (z-index:2 — روی تصویر، زیر streak؛
   مرکز شفاف است تا خوانایی متن حفظ شود؛ pointer-events:none).
   گرادیان خوانایی اصلی (160deg سرمه‌ای) حفظ و زیر لایه‌های نور ادغام شده —
   هر سه ::before یکی‌اند و این قانون (دیرتر در آبشار) جایگزین آن می‌شود. */
.cine-hero::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    radial-gradient(90% 62% at 88% 6%, rgb(229 168 35/.13), transparent 60%),
    radial-gradient(120% 105% at 50% 45%, transparent 55%, rgb(0 0 0/.5) 100%),
    linear-gradient(160deg,rgb(4 10 20/.55),rgb(4 10 20/.82) 70%);
}
.cine-hero .corp-hero__grid{position:relative;z-index:3}
/* ورود پلکانی: kicker → تیتر → زیرتیتر → اکشن‌ها → میکروکپی
   (حالت پنهان فقط با cine-boot؛ fallback در صورت خطای JS) */
.cine-hero .corp-hero__kicker,
.cine-hero .corp-hero__subtitle,
.cine-hero .corp-hero__actions,
.cine-hero .corp-hero__microcopy{
  transition:opacity .6s ease,transform .6s var(--ease-out);
}
html.cine-boot .cine-hero .corp-hero__kicker,
html.cine-boot .cine-hero .corp-hero__subtitle,
html.cine-boot .cine-hero .corp-hero__actions,
html.cine-boot .cine-hero .corp-hero__microcopy{opacity:0;transform:translateY(16px)}
/* 69.4.1 FIX: reveal-ها با html.cine-boot پیشوند شدند تا اسپسیفیسیتی‌شان
   از قانون پنهان (0,3,1) بالاتر برود (0,4,1)؛ وگرنه .in هیچ‌وقت اعمال نمی‌شد. */
html.cine-boot .cine-hero.in .corp-hero__kicker{opacity:1;transform:none;transition-delay:.05s}
html.cine-boot .cine-hero.in .corp-hero__subtitle{opacity:1;transform:none;transition-delay:.38s}
html.cine-boot .cine-hero.in .corp-hero__actions{opacity:1;transform:none;transition-delay:.48s}
/* ویژوال: فقط opacity (transform دست پارالاکس JS است) */
.cine-hero .corp-hero__visual{transition:opacity .8s ease .5s}
html.cine-boot .cine-hero .corp-hero__visual{opacity:0}
html.cine-boot .cine-hero.in .corp-hero__visual{opacity:1}
/* تیتر جنبشی — کلمه‌به‌کلمه (اسپلیتر JS: .cine-w > span با --i) */
.cine-hero [data-cine-split] .cine-w{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.08em;margin-bottom:-.08em}
/* 69.4.1: گیت‌شده با cine-boot مثل قانون عمومی */
html.cine-boot .cine-hero [data-cine-split] .cine-w > span{
  display:inline-block;transform:translateY(112%);opacity:0;
  transition:transform .7s var(--ease-out),opacity .5s ease;
  transition-delay:calc(var(--i,0)*70ms + .12s);
}
html.cine-boot .cine-hero [data-cine-split].in .cine-w > span{transform:translateY(0);opacity:1}
/* برق طلایی تک‌ضربه روی خط تأکیدی — overlay لغزان، RTL: راست→چپ */
.cine-hero .corp-hero__title-accent{color:var(--kt-gold-hi)}
.cine-hero [data-cine-split] .corp-hero__title-accent .cine-w{position:relative}
.cine-hero [data-cine-split] .corp-hero__title-accent .cine-w::after{
  content:"";position:absolute;inset:-.08em 0;pointer-events:none;
  background:linear-gradient(to left,transparent,rgb(255 242 200/.5) 50%,transparent);
  transform:translateX(115%);opacity:0;
}
.cine-hero [data-cine-split].in .corp-hero__title-accent .cine-w::after{
  animation:cine69-sheen .9s var(--ease-out) calc(.6s + var(--i,0)*70ms) 1 both;
}
@keyframes cine69-sheen{
  0%{transform:translateX(115%);opacity:0}
  18%{opacity:1}
  100%{transform:translateX(-115%);opacity:0}
}
@media (max-width:900px){
  .cine-hero::before{
    background:
      radial-gradient(90% 52% at 88% 4%, rgb(229 168 35/.08), transparent 60%),
      radial-gradient(120% 105% at 50% 45%, transparent 62%, rgb(0 0 0/.38) 100%),
      linear-gradient(160deg,rgb(4 10 20/.55),rgb(4 10 20/.82) 70%);
  }
  .cine-hero [data-cine-split].in .corp-hero__title-accent .cine-w::after{animation-duration:.7s}
}
@media (prefers-reduced-motion:reduce){
  /* 69.4.1: پیشوند html.cine-boot تا با قانون پنهان (0,3,1)/(0,4,1) مساوی و با تقدم سورس برنده شود */
  html.cine-boot .cine-hero .corp-hero__kicker,html.cine-boot .cine-hero .corp-hero__subtitle,
  html.cine-boot .cine-hero .corp-hero__actions,html.cine-boot .cine-hero .corp-hero__microcopy,
  html.cine-boot .cine-hero .corp-hero__visual{opacity:1;transform:none;transition:opacity .2s ease}
  html.cine-boot .cine-hero [data-cine-split] .cine-w > span{opacity:1;transform:none;transition:none}
  .cine-hero [data-cine-split].corp-hero__title-accent .cine-w::after,html.cine-boot .cine-hero [data-cine-split] .corp-hero__title-accent .cine-w::after{display:none}
}

/* ---------- 69.4.2 SERVICES — عمق کارت ---------- */
/* نور کلیدی از لبه بالا (بر لایه قدیمی service-card::before با اسپسیفیسیتی بالاتر غلبه می‌کند) */
.corp-services .corp-svc.cine-tilt::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:linear-gradient(180deg,rgb(255 255 255/.07),transparent 34%);
}
.corp-services .corp-svc.cine-tilt > *{position:relative;z-index:1}
/* هاله طلایی گوشه بالا-راست روی hover — فقط دسکتاپ */
@media (hover:hover) and (pointer:fine){
  .corp-services .corp-svc.cine-tilt::after{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    background:radial-gradient(48% 36% at 90% 0%,rgb(229 168 35/.20),transparent 70%);
    opacity:0;transition:opacity .25s var(--corp-ease, var(--ease-out));
  }
  .corp-services .corp-svc.cine-tilt:hover::after{opacity:1}
}
/* کراس‌فید ماسک‌دارِ فیلتر (blur طبق Emil) — با تایم‌اوت ۱۷۰ms در main.js هماهنگ.
   اسپسیفیسیتی بالاتر از html.cine-boot .cine-up.in تا حین فیلتر واقعاً مخفی شود. */
html.cine-boot .corp-svc.cine-up.is-hiding{
  opacity:0;filter:blur(4px);transform:scale(.98);
  transition:opacity .17s var(--ease-out),filter .17s var(--ease-out),transform .17s var(--ease-out);
}
@media (prefers-reduced-motion:reduce){
  html.cine-boot .corp-svc.cine-up.is-hiding{filter:none;transform:none;transition:opacity .16s ease}
  .corp-services .corp-svc.cine-tilt::after{display:none}
}

/* ---------- 69.4.3 PROCESS — خط اتصالِ ترسیم‌شونده ---------- */
/* حالت اولیه فقط با cine-boot (fallback: خط همیشه visible) */
html.cine-boot .corp-proc__steps.cine-up::before{
  transform:scaleY(0);transform-origin:top;
  transition:transform 1.1s var(--ease-out) .35s,opacity .7s ease;
}
.corp-proc__steps.cine-up.in::before{transform:scaleY(1)}
@media (min-width:900px){
  html.cine-boot .corp-proc__steps.cine-up::before{transform:scaleX(0);transform-origin:right /* inline-start در RTL */}
  html.cine-boot .corp-proc__steps.cine-up.in::before{transform:scaleX(1)}
}
@media (prefers-reduced-motion:reduce){
  .corp-proc__steps.cine-up::before{transform:none;transition:opacity .2s ease}
}

/* ---------- 69.4.4 COVERAGE — پنل محله‌ها ---------- */
/* stagger پلکانی محله‌ها هنگام تعویض تب (keyframes چون display:none→grid ترنزیشن نمی‌گیرد؛
   هم‌خانواده با panelIn موجود) */
.coverage__panel.active .coverage__hood{
  animation:cb2-hood-in .3s var(--ease-out) both;
  animation-delay:calc(var(--hood-i,0)*35ms);
}
@keyframes cb2-hood-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .coverage__panel.active .coverage__hood{animation:none}
}

/* ---------- 69.4.5 SHIFT — کارت شیفت ---------- */
.shift__card{position:relative;overflow:hidden}
.shift__card::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(58% 95% at 100% 50%,rgb(229 168 35/.10),transparent 65%);
}

/* ---------- 69.4.6 FAQ — کارت تماس ---------- */
.cb2-faq .cb2-faq__cta{position:relative;overflow:hidden}
.cb2-faq .cb2-faq__cta::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(70% 60% at 50% 0%,rgb(229 168 35/.12),transparent 70%);
}

/* ---------- 69.4.7 DISPATCHER — کارت نتیجه ---------- */
.disp__result-card:not([hidden]){animation:dispIn .28s var(--ease-out)}
@media (prefers-reduced-motion:reduce){
  .disp__result-card:not([hidden]){animation:none}
}

/* ---------- 69.4.8 HEADER — شیشه روی اسکرول ---------- */
.site-header{transition:box-shadow var(--t-base),background-color .28s var(--ease-out)}
.site-header.stuck{
  background:rgb(255 255 255/.84);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
@media (prefers-reduced-transparency:reduce){
  .site-header.stuck{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* ---------- 69.4.9 MOBILE DOCK — توکن‌های easing ---------- */
.mobile-bottom-bar{transition:transform .28s var(--ease-out),opacity .28s var(--ease-out)}

/* ---------- 69.4.10 CONTACT — سابمیت ---------- */
.cb2-contact .cb2-form__submit{transition:transform .16s var(--cb2-ease),opacity .16s var(--cb2-ease),background-color .16s var(--cb2-ease)}
.cb2-contact .cb2-form__submit:active{transform:scale(.98);transition-duration:.12s}

/* ============================================================
   69.4.11 — الهام از 21st.dev (بازنویسی تمیز، بدون کپی کد)
   چهار الگوی مدرن، هم‌خوان با هویت سینمایی تیره/طلایی قالب:
   ۱) spotlight کارت‌ها (Aceternity Spotlight / 21st spotlight-card)
   ۲) shimmer دکمه CTA اصلی (Magic UI shimmer-button)
   ۳) border beam دور پنل راهنما (Magic UI border-beam)
   ۴) آکاردئون نرم FAQ با grid-rows (آکاردئون‌های 21st.dev)
   اصول: فقط transform/opacity (69.4.8: background-position از انیمیشن‌های بی‌نهایت
   حذف شد — fully composited)، بدون transition:all،
   بدون !important، طلایی کم‌رنگ، reduced-motion → حالت ایستا.
   ============================================================ */

/* ---------- ۱) spotlight: نور طلایی دنبال‌کننده موس روی کارت خدمات ---------- */
@media (hover:hover) and (pointer:fine){
  .cine-spot{position:relative}
  .cine-spot::before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
    opacity:0;transition:opacity .45s ease;
    /* مختصات موس را JS در --sx/--sy می‌نویسد؛ fallback مرکز کارت */
    background:radial-gradient(260px circle at var(--sx,50%) var(--sy,50%),rgb(201 162 39/.14),transparent 65%);
  }
  .cine-spot:hover::before{opacity:1}
  /* محتوا همیشه بالای لایه نور */
  .cine-spot > *{position:relative;z-index:2}
}
@media (prefers-reduced-motion:reduce){
  .cine-spot::before{display:none}
}

/* ---------- ۲) shimmer: برق آرام و دوره‌ای روی CTA اصلی هیرو ---------- */
/* لایه مستقل داخل دکمه تا با حلقه پالس cine-cta::after تداخل نکند؛
   فقط CTA غالب هیرو این افکت را می‌گیرد (یک CTA غالب در هر ویوپورت). */
.cine-shimmer__sweep{
  position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;
  contain:paint;
  opacity:0;
  /* تأخیر ۹ ثانیه‌ای تا با پالس ۳تایی ابتدای لود هم‌پوشانی نکند */
  animation:cine-sweep-op 7s ease-in-out 9s infinite;
}
/* 69.4.8 (perf): برق با transform روی ::before به‌جای background-position —
   انیمیشن بی‌نهایت حالا fully composited است؛ بدون repaint هر فریم. */
.cine-shimmer__sweep::before{
  content:"";position:absolute;top:-12%;bottom:-12%;width:45%;inset-inline-start:0;
  background:linear-gradient(105deg,transparent,rgb(255 250 235/.45) 50%,transparent);
  will-change:transform;
  animation:cine-sweep-x 7s ease-in-out 9s infinite;
}
@keyframes cine-sweep-op{
  0%{opacity:0}
  8%{opacity:1}
  38%{opacity:1}
  50%,100%{opacity:0}
}
@keyframes cine-sweep-x{
  0%{transform:translateX(-160%)}
  38%{transform:translateX(360%)}
  50%,100%{transform:translateX(360%)}
}
/* RTL: جهت برق با جهت خواندن (راست‌به‌چپ) هم‌خوان می‌شود */
[dir="rtl"] .cine-shimmer__sweep::before{animation-name:cine-sweep-x-rtl}
@keyframes cine-sweep-x-rtl{
  0%{transform:translateX(160%)}
  38%{transform:translateX(-360%)}
  50%,100%{transform:translateX(-360%)}
}
@media (prefers-reduced-motion:reduce){
  .cine-shimmer__sweep{display:none}
}

/* ---------- ۳) border beam: نور طلاییِ چرخان دور حاشیه پنل راهنما ---------- */
/* تکنیک: لایه‌ای که mask آن فقط نوار حاشیه را نشان می‌دهد + نقطه نورانی
   که با offset-path دور مستطیل گرد می‌چرخد. بدون پشتیبانی offset-path،
   لایه خالی و نامرئی می‌ماند (progressive enhancement). */
.disp.cine-beam{position:relative}
.cine-beam__orbit{
  position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:5;
  padding:1.5px;
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite:exclude;
}
@supports (offset-path:rect(0 0 0 0)){
  .cine-beam__orbit::after{
    content:"";position:absolute;inset:0;aspect-ratio:1/1;width:120px;display:none;
    background:linear-gradient(to left,var(--cine-gold),var(--cine-gold-bright),transparent);
    offset-path:rect(0 auto auto 0 round 20px);
  }
  /* 69.4.3 (اجماع منتقدان): چرخش فقط وقتی پنل راهنما در ویوپورت است —
     JS با IntersectionObserver کلاس beam-live می‌زند؛ در غیر این صورت
     لایه نامرئی و بدون هزینه انیمیشن می‌ماند. */
  .cine-beam.beam-live .cine-beam__orbit::after{display:block;animation:cine-beam-orbit 9s linear infinite}
}
@keyframes cine-beam-orbit{to{offset-distance:100%}}
/* RTL: آینه‌کردن مدار تا جهت چرخش با جهت صفحه هم‌خوان شود */
[dir="rtl"] .cine-beam__orbit{transform:scaleX(-1)}
@media (prefers-reduced-motion:reduce){
  .cine-beam__orbit{display:none}
}

/* ============================================================
   69.4.2 — «استودیو موج» + عمق کدی + scrollytelling مراحل کار
   درس‌های ریل‌ها (21st.dev / img2threejs / Taste). اصول:
   - فقط transform/opacity؛ بدون transition:all؛ بدون !important
   - همه مقادیر تازه از توکن‌های tokens.css
   - طلایی ≤۱۰٪؛ تک‌جهت نور از بالا-راست
   - قانون reveal طلایی (DESIGN.md §۷): hidden فقط با html.cine-boot
   ============================================================ */

/* ---------- ۶۹.۴.۱۲-الف) مش‌گرادیان متحرک هیرو — CSS خالص، بدون ویدیو ----------
   69.4.3 (اجماع منتقدان): از ۳ حباب به ۲ حباب آرام‌تر؛ در موبایل/coarse
   انیمیشن کاملاً متوقف (فقط گرادیان ثابت) — سایت امدادی، سرعت تماس حیاتی است.
   دو حباب در دو عمق؛ drift روی حباب درونی، parallax موس روی لفاف بیرونی
   (data-cine-depth) تا transformها تداخل نکنند. */
.cine-mesh{
  position:absolute;inset:0;z-index:var(--z-deco);overflow:hidden;pointer-events:none;
}
.cine-mesh__drift{position:absolute;inset:0;will-change:transform}
.cine-mesh__blob{
  position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;will-change:transform;
}
.cine-mesh__blob--1{
  width:44vmax;height:44vmax;top:-14vmax;inset-inline-start:-10vmax;
  background:radial-gradient(circle at 50% 50%,rgb(229 168 35/.20),transparent 65%);
  animation:cine-mesh-drift1 38s ease-in-out infinite alternate;
}
.cine-mesh__blob--2{
  width:52vmax;height:52vmax;bottom:-18vmax;inset-inline-end:-12vmax;
  background:radial-gradient(circle at 50% 50%,rgb(38 84 150/.34),transparent 65%);
  animation:cine-mesh-drift2 46s ease-in-out infinite alternate;
}
@keyframes cine-mesh-drift1{from{transform:translate3d(0,0,0)}to{transform:translate3d(4vmax,3vmax,0)}}
@keyframes cine-mesh-drift2{from{transform:translate3d(0,0,0)}to{transform:translate3d(-4vmax,-2.5vmax,0)}}

/* ---------- ۶۹.۴.۱۲-ب) کارت شیشه‌ای شناور آمار هیرو ----------
   داده واقعی از Customizer (kelid_hero_stat_*). reveal فقط opacity تا با
   transformِ parallax موس (inline) تداخل نکند. */
.corp-hero__stat{
  display:flex;align-items:center;gap:var(--sp-3);
  margin-top:var(--sp-4);padding:var(--sp-3) var(--sp-4);
  border-radius:var(--r-lg);
  transition:opacity var(--dur-slow) ease;
}
.corp-hero__stat-num{
  font-size:1.6rem;font-weight:800;line-height:1;color:var(--tok-gold-bright);white-space:nowrap;
}
.corp-hero__stat-label{
  font-size:.8rem;line-height:1.9;color:var(--tok-text-dim);
}
html.cine-boot .corp-hero__stat{opacity:0}
html.cine-boot .cine-hero.in .corp-hero__stat{opacity:1;transition-delay:.68s}
@media (min-width:900px){
  .corp-hero__stat{
    position:absolute;bottom:-22px;inset-inline-start:var(--sp-6);
    flex-direction:column;align-items:flex-start;gap:var(--sp-1);
    padding:var(--sp-4) var(--sp-5);min-width:200px;margin-top:0;
    box-shadow:var(--sh-lg);
  }
  .corp-hero__stat-num{font-size:1.9rem}
}

/* ---------- ۶۹.۴.۱۲-ج) انضباط CTA — واتساپ ghost ساکت ----------
   DESIGN.md §۳: فقط یک CTA غالب (تماس طلایی) در هر ویوپورت. */
.corp-hero__wa{
  background:transparent;
  border-color:rgb(255 255 255/.22);
  color:rgb(255 255 255/.85);
}
@media (hover:hover) and (pointer:fine){
  .corp-hero__wa:hover{border-color:rgb(255 255 255/.45);color:#fff}
}

/* ---------- ۶۹.۴.۱۳) مراحل کار: scrollytelling ----------
   ::before مسیر کم‌رنگ موجود می‌ماند؛ ::after نوار پیشرفت است که با
   --proc-p (۰ تا ۱، از JS) پر می‌شود. قدم فعال: هاله طلایی روی مارکر.
   متن قدم‌ها همیشه کنتراست کامل دارد (کم‌رنگ نمی‌شوند). */
.corp-proc__steps::after{
  content:"";position:absolute;border-radius:2px;pointer-events:none;z-index:0; /* 69.10.0: was 1 — زیر تصویرها */
  inset-inline-start:44px;top:28px;bottom:28px;width:2px; /* 69.10.0: مرکز دقیق 88px */
  background:linear-gradient(to bottom,var(--tok-gold-bright),var(--tok-gold));
  transform:scaleY(var(--proc-p,0));transform-origin:top;
}
@media (min-width:900px){
  .corp-proc__steps::after{
    inset-inline:12.5%;top:60px;bottom:auto;width:auto;height:2px; /* 69.10.0: مرکز دقیق 120px */
    transform:scaleX(var(--proc-p,0));transform-origin:right; /* RTL: از inline-start */
    background:linear-gradient(to left,var(--tok-gold-bright),var(--tok-gold));
  }
}
.corp-proc__marker{transition:box-shadow var(--dur-base) ease,border-color var(--dur-base) ease}
.corp-proc__step.is-active .corp-proc__marker{
  border-color:var(--tok-gold-bright);
  box-shadow:0 0 0 6px var(--corp-navy),0 0 26px rgb(229 168 35/.45);
}
.corp-proc__step.is-active .corp-proc__num{color:var(--tok-gold-bright)}
/* 69.10.0: قدم فعال — هاله روی تصویر (مارکر با چیپ شماره ادغام شد) */
.corp-proc__art{transition:box-shadow var(--dur-base) ease,border-color var(--dur-base) ease}
.corp-proc__step.is-active .corp-proc__art{
  border-color:var(--tok-gold-bright);
  box-shadow:0 0 26px rgb(229 168 35/.4);
}
.corp-proc__step.is-active .corp-proc__numchip{
  box-shadow:0 4px 14px rgba(0,0,0,.5),0 0 18px rgb(229 168 35/.65);
}

/* ---------- ۶۹.۴.۲: موبایل/coarse — مش کم‌رنگ‌تر ---------- */
/* 69.4.3: انیمیشن حباب‌ها در موبایل/coarse کاملاً متوقف — فقط گرادیان ثابت.
   (صرفه‌جویی باتری/CPU؛ حس سینمایی با نور ثابت حفظ می‌شود) */
@media (hover:none),(pointer:coarse){
  .cine-mesh__blob{filter:blur(52px);opacity:.38;animation:none}
  /* border beam در موبایل غیرفعال */
  .cine-beam__orbit{display:none}
}
@media (max-width:900px){
  .cine-mesh__blob--1{width:60vmax;height:60vmax}
  .cine-mesh__blob--2{width:66vmax;height:66vmax}
}

/* ---------- ۶۹.۴.۲: reduced-motion — همه‌چیز استاتیک ---------- */
@media (prefers-reduced-motion:reduce){
  .cine-mesh__blob{animation:none}
  html.cine-boot .corp-hero__stat{opacity:1;transition:none}
  .corp-proc__steps::after{transform:none}
  .corp-proc__step.is-active .corp-proc__marker{box-shadow:0 0 0 6px var(--corp-navy)}
}

/* ---------- ۶۹.۴.۲: forced-colors — تزئینات خاموش ---------- */
@media (forced-colors:active){
  .cine-mesh{display:none}
}

/* ============================================================
   70.0.5 — Hero Direction B (cinematic, owner-approved 2026-09-30)
   Full-bleed macro key visual + dark scrim, minimal bottom-anchored
   copy, one dominant gold CTA. WhatsApp as a quiet ghost text-link.
   Mobile master: 390px. All classes namespaced cine-hero__*.
   ============================================================ */
.cine-hero--b {
	padding-top: 0;
	padding-bottom: 0;
	background: #0B0C10;
	overflow: hidden;
	position: relative;
}
/* kill the old corporate radial-glow layer on the new hero */
.cine-hero--b::before { display: none; }

/* full-bleed background visual */
.cine-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.cine-hero__bg picture,
.cine-hero__bg .cine-hero__bg-img {
	display: block;
	width: 100%;
	height: 100%;
}
.cine-hero__bg .cine-hero__bg-img {
	object-fit: cover;
	object-position: center 30%;
	transform: scale(1);
	animation: cine-hero-b-kenburns 18s ease-out 1 forwards;
}
@keyframes cine-hero-b-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

/* dark scrim — legibility over imagery */
.cine-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
		rgba(7,8,12,.94) 0%,
		rgba(7,8,12,.62) 34%,
		rgba(7,8,12,.12) 62%,
		rgba(7,8,12,.30) 100%);
}

/* bottom-anchored content column */
.cine-hero__content {
	position: relative;
	z-index: 2;
	min-height: 34rem; /* 544px — header ~64 + hero 544 + dock 80 < 844 fold */
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: 3rem;
	padding-bottom: 2rem;
}

/* status chip — the only "۲۴ ساعته" instance in the hero */
.cine-hero__chip {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .8rem;
	font-weight: 600;
	color: #fff;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	padding: 9px 16px;
	background: rgba(0,0,0,.38);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.cine-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2fbf71;
	box-shadow: 0 0 10px rgba(47,191,113,.9);
	flex: none;
}

.cine-hero__title {
	font-family: "Lalezar","Lalezar-fallback",sans-serif;
	font-weight: 400;
	font-size: clamp(2.3rem, 10.5vw, 3.1rem);
	line-height: 1.5;
	color: #fff;
	margin: 16px 0 0;
	text-wrap: balance;
	text-shadow: 0 3px 24px rgba(0,0,0,.55);
}
.cine-hero__title-line,
.cine-hero__title-accent { display: block; }
.cine-hero__title-accent { color: var(--kt-gold-hi); } /* AAA on dark */

.cine-hero__sub {
	color: rgba(255,255,255,.9);
	font-size: .95rem;
	line-height: 1.9;
	margin: 10px 0 0;
	text-shadow: 0 2px 12px rgba(0,0,0,.6);
	max-width: 34ch;
}

/* the one dominant gold CTA — the only large gold surface in the hero */
.cine-hero__cta {
	margin-top: 20px;
	min-height: 72px;
	border-radius: 20px;
	background: var(--kt-gold-grad);
	color: #1A1408;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	box-shadow: 0 26px 60px -18px rgba(201,162,39,.5);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	transition: transform 180ms var(--ease-out);
}
.cine-hero__cta:active { transform: scale(.97); }
.cine-hero__cta-label { font-size: .95rem; font-weight: 800; }
.cine-hero__cta-num {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: .02em; /* latin digits only — no negative Persian tracking */
	display: inline-flex;
	align-items: center;
}
.cine-hero__cta svg { flex: none; }

/* quiet secondary — low-emphasis text link under the CTA */
.cine-hero__wa {
	margin-top: 12px;
	align-self: center;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: rgba(255,255,255,.72);
	font-size: .86rem;
	font-weight: 500;
	text-decoration: none;
	padding: 10px 16px;
	text-shadow: 0 2px 8px rgba(0,0,0,.6);
	-webkit-tap-highlight-color: transparent;
	transition: color 180ms var(--ease-out);
}
.cine-hero__wa:active { color: #fff; }

.cine-hero--b :focus-visible {
	outline: 3px solid var(--kt-gold-hi);
	outline-offset: 3px;
	border-radius: 8px;
}

@media (hover:hover) and (pointer:fine) {
	.cine-hero__cta:hover { opacity: .96; transform: translateY(-1px); }
	.cine-hero__wa:hover { color: #fff; }
}

@media (min-width: 900px) {
	.cine-hero__content { min-height: 40rem; max-width: 44rem; }
}

@media (prefers-reduced-motion: reduce) {
	.cine-hero__bg .cine-hero__bg-img { animation: none; }
	.cine-hero__cta,
	.cine-hero__wa { transition: none; }
}
/* ---------- end 70.0.5 Direction B ---------- */

/* ============================================================
   71.0.0 — «Engineered Gold» (owner brief 2026-10-01)
   Five restrained moves on the V70 base:
   1) banded metallic CTA + 7s sheen sweep
   2) compact trust strip (real claims only)
   3) .kt-keyline engraved utility + tabular phone numerals
   4) tilt-shift radial vignette on the hero scrim
   5) engraved key-anatomy divider (see template-parts/divider-engraved.php)
   Mobile master: 390px. Gold ≤ ~10% of viewport. No Persian tracking.
   ============================================================ */

/* ---- 1) engineered gold CTA: 5-stop banded gradient + sheen ---- */
.cine-hero__cta {
	background: linear-gradient(135deg,
		var(--kt-gold-deep) 0%,
		var(--kt-gold) 30%,
		var(--kt-gold-hi) 50%,
		var(--kt-gold) 70%,
		var(--kt-gold-deep) 100%);
	background-size: 220% 220%;
	background-position: 0% 50%;
}
@media (prefers-reduced-motion: no-preference) {
	.cine-hero__cta { animation: cine-cta-sheen 7s ease-in-out infinite; }
}
/* sweep occupies ~0–38% of the timeline, the rest is a calm hold */
@keyframes cine-cta-sheen {
	0%   { background-position: 0% 50%; }
	38%  { background-position: 100% 50%; }
	100% { background-position: 100% 50%; }
}
/* Latin digits only — tabular numerals keep the phone number steady */
.cine-hero__cta-num { font-variant-numeric: tabular-nums; }

/* ---- 2) trust strip: small chips, never a card grid ---- */
.cine-hero__trust {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.cine-hero__trust li {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 12px;
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.9;
	color: rgba(255,255,255,.78);
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 999px;
	background: rgba(0,0,0,.28);
	text-shadow: 0 1px 6px rgba(0,0,0,.5);
	-webkit-tap-highlight-color: transparent;
}

/* ---- 71.3.17: Tehran night-skyline band at the hero bottom (owner order).
         Top edge fades into the hero background via mask; object-position keeps
         both towers visible on narrow screens. ---- */
.cine-hero__skyline {
	margin: 26px 0 0;
	line-height: 0;
}
.cine-hero__skyline-img {
	display: block;
	width: 100%;
	height: clamp(190px, 48vw, 360px);
	object-fit: cover;
	object-position: center 58%;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
}
/* ---- 3) engraved keyline utility: gold hairline over a dark cut ---- */
.kt-keyline {
	border-top: 1px solid rgba(217,169,63,.55);
	box-shadow: inset 0 1px 0 rgba(245,214,123,.28), 0 1px 0 rgba(0,0,0,.55);
}

/* ---- 4) tilt-shift scrim: radial vignette focuses the CTA zone ---- */
.cine-hero__scrim::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 18%,
		transparent 52%,
		rgba(7,8,12,.6) 100%);
}

/* ---- 5) engraved divider: key anatomy as technical line art ---- */
.kt-divider-engraved {
	display: flex;
	justify-content: center;
	padding: 10px 16px;
	opacity: .85;
}
.kt-divider-engraved svg {
	width: min(240px, 62vw);
	height: auto;
	display: block;
}
.kt-divider-engraved line,
.kt-divider-engraved circle {
	stroke: var(--kt-gold);
	stroke-width: 1;
	fill: none;
	opacity: .55;
	stroke-linecap: round;
}
.kt-divider-engraved .tick { opacity: .3; }
.kt-divider-engraved .fig rect {
	fill: none;
	stroke: var(--kt-gold);
	stroke-width: 1;
	opacity: .5;
}
.kt-divider-engraved .fig text {
	font-size: 8px;
	fill: var(--kt-gold);
	opacity: .75;
	letter-spacing: .06em; /* Latin "fig. 1" only */
}

/* ---- reduced motion: sheen off, reveals stay instant via JS fallback ---- */
@media (prefers-reduced-motion: reduce) {
	.cine-hero__cta { animation: none; }
}
/* ---------- end 71.0.0 Engineered Gold ---------- */

/* 71.3.13 (5-AI panel): the 18s ambient kenburns zoom is a deliberate
   cinematic choice, but it must not run for reduced-motion users. */
@media (prefers-reduced-motion: reduce){
	.cine-hero__bg .cine-hero__bg-img{animation:none;transform:scale(1)}
}
