/* RHÉA cinematic hero v2 – بعد از style.css لود شود */
html, body { overflow-x: clip !important; }

.rh-hero {
  --rh-h: 100vh;
  --rh-runway: 3.4;
  --rh-man-h: min(72lvh, 62vw);
  --rh-s0: .13;                        /* اندازه اولیه لوگو (کاملاً پشت مانکن) */
  --rh-ink: #fdfbf7;                   /* رنگ لوگو و متن‌ها */
  --rh-accent: #e8d3a4;
  --rh-logo-font: 'Cormorant Garamond', 'Playfair Display', 'Noto Naskh Arabic', serif;
  position: relative; direction: ltr; isolation: isolate;
  height: calc(var(--rh-h) * var(--rh-runway));
  background: transparent;           /* پایین هیرو در پس‌زمینه‌ی سایت حل می‌شود */
}
@supports (height: 100lvh) { .rh-hero { --rh-h: 100lvh; } }

.rh-hero__stage {
  --mx: 0; --my: 0;
  position: sticky; top: 0; height: var(--rh-h); overflow: hidden; contain: layout paint;
  background: #0b0b0b;
  perspective: 1700px; perspective-origin: 50% 58%;   /* عمق سه‌بعدی واقعی */
}
/* ذوب‌شدن پایین هیرو در صفحه (به‌جای لبه‌ی تیز) */
.rh-hero--melt .rh-hero__stage {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 var(--rh-m, 100%), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 var(--rh-m, 100%), transparent 100%);
}
.rh-hero__stage > * { position: absolute; }

/* پس‌زمینه: لایه شارپ + لایه بلور (rack focus) */
.rh-hero__bg { inset: -2%; transform-origin: 50% 60%; will-change: transform; }
.rh-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rh-hero__bgimg { animation: rhPush 3.2s cubic-bezier(.16,.84,.3,1) both; }
.rh-hero__bgblur { opacity: 0; filter: blur(9px) saturate(1.15); transform: scale(1.06); will-change: opacity; }
@keyframes rhPush { from { transform: scale(1.14); } to { transform: scale(1); } }

.rh-hero__vignette {
  inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, rgba(0,0,0,0) 28%, rgba(0,0,0,.62) 100%), rgba(0,0,0,.3);
}

/* ذرات معلق */
.rh-hero__dust { inset: 0; pointer-events: none; will-change: transform; }
.rh-hero__dust i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff3d2, #e2bd72 60%, transparent 72%);
  animation: rhDust var(--t) ease-in-out var(--d) infinite;
  will-change: transform, opacity;
}
.rh-hero--off .rh-hero__dust i { animation-play-state: paused; }
@keyframes rhDust {
  0%   { opacity: 0;   transform: translate3d(0, 24px, 0); }
  45%  { opacity: .9; }
  100% { opacity: 0;   transform: translate3d(14px, -120px, 0); }
}

/* لوگو: ظرف با ارتفاع صفر روی خط وسط سینه‌ی مانکن */
.rh-hero__logo {
  left: 0; right: 0; top: 50%; height: 0; margin: 0;
  display: flex; justify-content: center; align-items: center;
  transform: scale(var(--rh-s0)); transform-origin: 50% 50%;
  will-change: transform, opacity; pointer-events: none;
}
.rh-hero__logo--front { opacity: 0; }
.rh-hero__letters {
  display: flex; gap: .2em; padding-left: .2em;
  font-family: var(--rh-logo-font); font-weight: 400; line-height: 1;
  font-size: clamp(60px, 13vw, 210px);
  filter: drop-shadow(0 0 26px rgba(255,214,150,.32)) drop-shadow(0 10px 30px rgba(0,0,0,.55));
}
.rh-hero__letters span {
  display: block; will-change: transform;
  color: var(--rh-ink);
}
/* جلوی همه: براق‌شدن با نوار نور که روی حروف می‌گذرد */
.rh-hero__logo--front .rh-hero__letters span {
  background: linear-gradient(105deg, var(--rh-ink) 0 40%, #ffffff 50%, var(--rh-ink) 60% 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.rh-hero__logoimg { width: min(46vw, 520px); height: auto; display: block; }

/* خط نور آنامورفیک */
.rh-hero__flare {
  left: 50%; top: 50%; width: min(86vw, 1300px); height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,238,205,.95) 50%, transparent);
  box-shadow: 0 0 24px 6px rgba(255,214,150,.45);
  will-change: transform, opacity;
}

/* مانکن‌ها: ظرف با عرض صفر در مرکز؛ عکس مطلق و وسط‌چین (بدون وابستگی به flex) */
.rh-hero__man {
  left: 50%; width: 0; height: var(--rh-man-h);
  bottom: calc((100lvh - 100svh) * .5);
  transform-origin: 0 100%; will-change: transform, opacity; pointer-events: none;
}
@supports not (height: 100svh) { .rh-hero__man { bottom: 0; } }
.rh-hero__man img {
  position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  transform: translate3d(-50%, 0, 0);
  animation: rhRise 1.5s cubic-bezier(.16,.84,.3,1) both;
}
.rh-hero__man--center img { animation-delay: .35s; }
.rh-hero__man--left img, .rh-hero__man--right img { animation-delay: .6s; }
.rh-hero__man--left  { transform: translate3d(-4vw, 0, 0) scale(.94); }
.rh-hero__man--right { transform: translate3d( 4vw, 0, 0) scale(.94); }
@keyframes rhRise {
  from { opacity: 0; transform: translate3d(-50%, 50px, 0); }
  to   { opacity: 1; transform: translate3d(-50%, 0, 0); }
}

/* عمق، نور، محو پایین */
.rh-hero__dim  { inset: 0; background: #050505; opacity: 0; pointer-events: none; will-change: opacity; }
.rh-hero__glow {
  left: 50%; top: 50%; width: min(90vw, 1100px); height: 46vh; opacity: 0; pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(ellipse at center, rgba(255,214,150,.34), rgba(255,214,150,0) 68%);
  will-change: opacity;
}
.rh-hero__fade { display: none;
  left: 0; right: 0; bottom: 0; height: 45%; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(253,251,247,0), rgba(253,251,247,.95));
  will-change: opacity;
}

/* لترباکس سینمایی: نوارها موقع ورود باز می‌شوند */
.rh-hero__bar { left: 0; right: 0; height: 13%; background: #000; pointer-events: none; z-index: 20; animation: rhBar 1.7s cubic-bezier(.7,0,.2,1) .25s both; }
.rh-hero__bar--t { top: 0; transform-origin: 50% 0; }
.rh-hero__bar--b { bottom: 0; transform-origin: 50% 100%; }
@keyframes rhBar { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* متن و دکمه */
.rh-hero__copy {
  left: 0; right: 0; top: 9%; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 20px; text-align: center; direction: rtl;
}
.rh-hero__title { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2.3rem); font-weight: 800; color: var(--rh-accent); text-shadow: 0 2px 18px rgba(0,0,0,.6); line-height: 1.5; }
.rh-hero__sub   { margin: 0 0 6px; font-size: clamp(.9rem, 1.2vw, 1.1rem); color: var(--rh-ink); text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.rh-hero__copy .rhea-hero-cta__btn { text-decoration: none; }
.rh-js .rh-hero:not(.rh-hero--static) .rh-hero__copy > * { visibility: hidden; opacity: 0; }

.rh-hero__hint { left: 50%; bottom: calc(26px + (100lvh - 100svh)); width: 22px; height: 38px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 12px; pointer-events: none; z-index: 10; }
.rh-hero__hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: rhHint 1.8s ease-in-out infinite; }
@keyframes rhHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* موبایل */
@media (max-width: 767px) {
  .rh-hero { --rh-runway: 3; --rh-man-h: min(60lvh, 135vw); --rh-s0: .22; }
  .rh-hero__letters { font-size: clamp(54px, 19vw, 120px); }
  .rh-hero__copy { top: 8%; gap: 8px; }
  .rh-hero__glow { height: 30vh; }
  .rh-hero__bgblur { filter: blur(6px) saturate(1.1); }
}

/* حالت ثابت (کاهش حرکت / نبودن GSAP) */
.rh-hero--static { height: var(--rh-h); }
.rh-hero--static .rh-hero__logo { transform: scale(1); }
.rh-hero--static .rh-hero__logo--back { opacity: 0; }
.rh-hero--static .rh-hero__logo--front { opacity: 1; }
.rh-hero--static .rh-hero__logo--front .rh-hero__letters span { background-position: 0 0; }
.rh-hero--static .rh-hero__man--left  { transform: translate3d(-16vw, 0, 0) scale(.82); opacity: .7; }
.rh-hero--static .rh-hero__man--right { transform: translate3d( 16vw, 0, 0) scale(.82); opacity: .7; }
.rh-hero--static .rh-hero__man--center { transform: scale(.86); }
.rh-hero--static .rh-hero__dim { opacity: .3; }
.rh-hero--static .rh-hero__glow { opacity: 1; }
.rh-hero--static .rh-hero__hint { display: none; }
@media (prefers-reduced-motion: reduce) { .rh-hero *, .rh-hero *::before { animation: none !important; } }

/* ───── v3: پارالکس موس (روی هر لایه با پراپرتی translate مستقل از GSAP) ───── */
.rh-hero__bg      { translate: calc(var(--mx) * -12px) calc(var(--my) * -8px); }
.rh-hero__dust    { translate: calc(var(--mx) * 30px)  calc(var(--my) * 18px); }
.rh-hero__logo    { translate: calc(var(--mx) * 14px)  calc(var(--my) * 9px); }
.rh-hero__man--left, .rh-hero__man--right { translate: calc(var(--mx) * 10px) calc(var(--my) * 6px); }
.rh-hero__man--center { translate: calc(var(--mx) * 20px) calc(var(--my) * 11px); }
.rh-hero__copy    { translate: calc(var(--mx) * 8px)   calc(var(--my) * 5px); }

/* پرتوهای نور از پنجره‌ها */
.rh-hero__rays { inset: 0; overflow: hidden; pointer-events: none; }
.rh-hero__rays i {
  position: absolute; top: -10%; height: 125%; width: 13vw; left: var(--l);
  background: linear-gradient(to bottom, rgba(255,226,170,.26), rgba(255,226,170,0) 82%);
  transform: skewX(-16deg); filter: blur(14px); opacity: 0;
  animation: rhRay 8s ease-in-out var(--dl) infinite alternate; will-change: opacity;
}
.rh-hero__rays i:nth-child(1) { --l: 34%; --dl: 0s; }
.rh-hero__rays i:nth-child(2) { --l: 50%; --dl: -3s; width: 9vw; }
.rh-hero__rays i:nth-child(3) { --l: 66%; --dl: -5s; }
@keyframes rhRay { from { opacity: .12; } to { opacity: .85; } }
.rh-hero--off .rh-hero__rays i, .rh-hero--off .rh-hero__grain { animation-play-state: paused; }

/* نور دنبال‌کننده‌ی موس */
.rh-hero__light {
  left: 50%; top: 50%; width: 90vmax; height: 90vmax; margin: -45vmax 0 0 -45vmax; pointer-events: none;
  background: radial-gradient(circle, rgba(255,225,170,.17), rgba(255,225,170,0) 55%);
  translate: calc(var(--mx) * 16vw) calc(var(--my) * 12vh); will-change: translate;
}

/* پاس نور روی مانکن‌ها */
.rh-hero__sweep {
  top: -20%; bottom: -20%; left: -45%; width: 40%; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,240,215,0), rgba(255,240,215,.24) 50%, rgba(255,240,215,0));
  will-change: transform, opacity;
}

/* گرین فیلم */
.rh-hero__grain {
  inset: -30%; pointer-events: none; opacity: .06; z-index: 15;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: rhGrain .9s steps(6) infinite; will-change: transform;
}
@keyframes rhGrain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}
.rh-hero--static .rh-hero__stage { -webkit-mask-image: none; mask-image: none; }

/* ───── v4 ───── */
.rh-hero { --rh-logo: #e6dfd1; }
/* لوگو: رنگ ساده‌ی #4e0000 با هاله‌ی روشن تا روی صحنه‌ی تاریک خوانا بماند */
.rh-hero .rh-hero__letters { filter: drop-shadow(0 0 22px rgba(255, 238, 210,.6)) drop-shadow(0 0 6px rgba(225, 238, 210,.35)); }
.rh-hero .rh-hero__logo .rh-hero__letters span {
  background: none; -webkit-text-fill-color: currentColor; color: var(--rh-logo);
}
.rh-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .rh-hero .rh-hero__letters { gap: .46em; padding-left: .46em; font-size: clamp(46px, 16vw, 100px); }
}

/* ---------- جمله‌ی هیرو: طلایی شامپاینی با برق آرام، بین دو تزئین مویی ---------- */
.rh-hero__copy { gap: 12px; }
.rh-hero__title {
  font-family: 'Noto Naskh Arabic', serif; font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 700; line-height: 1.6; letter-spacing: 0;
  color: transparent; text-shadow: none;
  background: linear-gradient(100deg, #b98f4a 0%, #f3e3bd 22%, #fffaf0 34%, #e8d3a4 46%, #c5a059 62%, #f3e3bd 80%, #b98f4a 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(232, 211, 164, 0.18));
  animation: rhTitleShine 7s ease-in-out infinite;
  text-wrap: balance;
}
@media (max-width: 767px) { .rh-hero__title { max-width: 22ch; font-size: clamp(1.45rem, 6.6vw, 1.9rem); line-height: 1.75; } }
@keyframes rhTitleShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.rh-hero__orn { display: flex; align-items: center; gap: 10px; width: min(240px, 60vw); }
.rh-hero__orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 211, 164, 0.85)); }
.rh-hero__orn i:last-child { background: linear-gradient(270deg, transparent, rgba(232, 211, 164, 0.85)); }
.rh-hero__orn b { width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #fff3d2, #c5a059); box-shadow: 0 0 10px rgba(232, 211, 164, 0.8); }
.rh-hero__orn--b { width: min(150px, 40vw); }
.rh-hero__orn--b b { width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) { .rh-hero__title { animation: none; background-position: 50% 0; } }
