/* ===========================================================
   Maryam Zare Coaching — Design Tokens & Base
   =========================================================== */

:root {
  /* رنگ‌ها */
  --bg: #FFFFFF;
  --bg-warm: #FBF8F2;
  --ink: #211D17;
  --ink-soft: #5C5346;
  --gold: #B7893D;
  --gold-deep: #7A5C22;
  --gold-pale: #F1E4C6;
  --border: #E9E2D2;
  --hero-scrim: #1A1410;
  --white: #FFFFFF;

  /* تایپوگرافی */
  --font-fa: 'Vazirmatn', 'Tahoma', sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;

  /* اندازه‌ها */
  --container-w: 1180px;
  --container-narrow-w: 760px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 84px;

  /* سایه و انتقال */
  --shadow-soft: 0 20px 50px -25px rgba(33, 29, 23, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(33, 29, 23, 0.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* فونت‌ها به‌صورت محلی سرو می‌شوند (self-hosted) — بدون درخواست خارجی به Google Fonts */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/vazirmatn-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+2113;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-500.woff') format('woff');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-fa);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0; /* بدون letter-spacing روی متن فارسی */
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p + p { margin-top: 1em; }

.container { max-width: var(--container-w); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow-w); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.bg-warm { background: var(--bg-warm); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.reveal { margin-inline: auto; text-align: center; }

.eyebrow {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.eyebrow-light { color: var(--gold-pale); }

/* جداکننده تزئینی طلایی — الهام‌گرفته از عکس‌های خودِ مریم */
.flourish { color: var(--gold); width: 220px; margin-block: 6px 22px; }
.flourish svg { width: 100%; height: 20px; display: block; }
.flourish.center { margin-inline: auto; }
.flourish-light { color: rgba(241, 228, 198, 0.85); }

/* عنصر امضا: خط طلایی که فقط در هیرو، هنگام لود، «کشیده می‌شود» */
.flourish-animate line {
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: drawFlourishLine 1s var(--ease) forwards;
  animation-delay: .5s;
}
.flourish-animate path {
  opacity: 0; transform-origin: 50% 50%; transform: scale(.2);
  animation: popFlourishMark .5s var(--ease) forwards;
  animation-delay: 1.3s;
}
@keyframes drawFlourishLine { to { stroke-dashoffset: 0; } }
@keyframes popFlourishMark { to { opacity: 1; transform: scale(1); } }

/* Skip link */
.skip-link {
  position: absolute; right: 16px; top: -60px;
  background: var(--gold-deep); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-sm); z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* اندازه پایه همه آیکون‌های SVG (کلاس‌های اختصاصی‌تر پایین‌تر آن را بازنویسی می‌کنند) */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; }

/* ===========================================================
   دکمه‌ها
   =========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  min-height: 44px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-gold {
  position: relative; overflow: hidden;
  background: var(--gold-deep); color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-gold:hover { background: #654B1B; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { left: 130%; }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ===========================================================
   هدر
   =========================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-top: 14px;
}
/* نوار نازک پیشرفت اسکرول — از سمت راست (جهت خواندن فارسی) پر می‌شود */
.scroll-progress {
  position: absolute; top: 0; right: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 0 0 0 3px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(183,137,61,.18);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  box-shadow: 0 10px 30px -18px rgba(33,29,23,.25);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled .header-inner {
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px -16px rgba(33,29,23,.3);
}

.brand { display: flex; align-items: center; }
.brand-mark { height: 60px; width: auto; flex: none; }
.brand-mark img { height: 100%; width: auto; object-fit: contain; display: block; }

.nav ul { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); transition: color .2s; padding: 6px 2px; }
.nav a:hover { color: var(--gold-deep); }
.nav a.is-active { color: var(--gold-deep); }
.nav a.is-active::after {
  content: ''; position: absolute; right: 2px; left: 2px; bottom: -3px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.mobile-nav a.is-active { background: var(--gold-pale); color: var(--gold-deep); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 50%;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset-inline: 16px; top: 82px; z-index: 99;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.mobile-nav a:hover { background: var(--gold-pale); }
.mobile-nav .btn { margin-top: 6px; justify-content: center; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--hero-scrim);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  animation: heroKenBurns 20s var(--ease) forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.4) 64%, rgba(0,0,0,.1) 78%),
              linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 30%);
}
/* نماد امضا — انیمیشن اسکرول‌محور فریم‌به‌فریم، سمت چپ صفحه (فیزیکی، مستقل از RTL)
   ماسک نرم فقط اطراف خود لوگو را نمایان می‌کند تا هیچ لبه یا قاب مستطیلی از canvas دیده نشود
   و پس‌زمینه‌ی واقعی هیرو (نه یک رنگ جایگزین) از همه‌طرف نمایان بماند */
.hero-signature {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 22%;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 40% at 50% 94%, #000 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 62% 40% at 50% 94%, #000 0%, #000 30%, transparent 75%);
}
.hero-signature .signature-canvas { width: 100%; height: 100%; display: block; }
.hero-signature .signature-spin { display: none; width: 100%; height: 100%; object-fit: contain; }
.hero-content {
  position: relative; z-index: 3;
  max-width: 560px;
  margin-left: 6%;
  margin-right: auto;
  padding-block: calc(var(--header-h) + 26px) 34px;
  color: #fff;
}
.hero .eyebrow { font-size: 0.85rem; margin-bottom: 6px; }
.hero .flourish { margin-block: 4px 12px; }
.hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { padding: 12px 24px; font-size: 0.95rem; }

/* نشانگر اسکرول — کاربر را به سمت پایین (و دیدن چرخش لوگو) هدایت می‌کند */
.scroll-cue {
  position: absolute; bottom: 32px; left: 23%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
  transition: opacity .4s var(--ease), visibility .4s, border-color .2s;
}
.scroll-cue .icon { width: 18px; height: 18px; }
.scroll-cue:hover { border-color: rgba(255,255,255,.8); }
.scroll-cue.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================================================
   About
   =========================================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-content p { color: var(--ink-soft); }
.about-content .lead { color: var(--ink); font-weight: 700; margin-top: 1.6em; }

/* ===========================================================
   لیست‌های چک‌مارک
   =========================================================== */
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list li span { min-width: 0; }
.icon-check {
  flex: none; width: 22px; height: 22px; padding: 4px;
  color: var(--gold-deep); background: var(--gold-pale); border-radius: 50%;
  margin-top: 2px;
}
.check-list-gold .icon-check { background: var(--gold-deep); color: #fff; }

/* ===========================================================
   Services
   =========================================================== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: .12s; }
.services-grid .service-card:nth-child(3) { transition-delay: .24s; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon {
  width: 52px; height: 52px; padding: 13px; color: var(--gold-deep);
  background: var(--gold-pale); border-radius: 50%; margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); }

/* ===========================================================
   Who / Why
   =========================================================== */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.who-grid h2 { margin-bottom: 8px; }
.why-card {
  background: var(--gold-pale); border-radius: var(--radius);
  padding: 36px 30px;
}
.why-card h3 { margin-bottom: 6px; }

/* ===========================================================
   Quote
   =========================================================== */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.quote-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.quote-mark { width: 52px; height: 40px; color: var(--gold); margin-bottom: 20px; }
.quote-text {
  font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.45; color: var(--ink);
}
.quote-by { margin-top: 20px; color: var(--gold-deep); font-weight: 700; }

/* ===========================================================
   FAQ
   =========================================================== */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; text-align: right; font-weight: 700; font-size: 1.05rem;
  min-height: 44px;
}
.accordion-trigger .icon-chevron { color: var(--gold-deep); transition: transform .3s var(--ease); flex: none; }
.accordion-trigger[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.accordion-panel { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.accordion-panel p { padding: 0 4px 22px; color: var(--ink-soft); }

/* ===========================================================
   CTA Banner
   =========================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--hero-scrim), #3B2E1A);
  color: #fff; text-align: center; padding-block: 72px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--gold-pale); margin: 12px 0 30px; font-size: 1.1rem; }

/* ===========================================================
   Booking
   =========================================================== */
.booking-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.session-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 32px; }
.session-meta li {
  background: var(--white); border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
}
.booking-info .lead { font-weight: 700; margin-top: 2em; margin-bottom: 4px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip-list li {
  background: var(--gold-pale); color: var(--gold-deep);
  padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
}

.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.process-steps li { display: flex; align-items: flex-start; gap: 16px; position: relative; padding-bottom: 30px; }
.process-steps li > span:last-child { min-width: 0; }
.process-steps li:last-child { padding-bottom: 0; }
.process-steps li::before {
  content: ''; position: absolute; top: 34px; bottom: 4px; right: 17px;
  width: 1.5px; background: var(--gold);
}
.process-steps li:last-child::before { display: none; }
.step-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-deep); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

.booking-widget-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-card);
}
.booking-widget-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; text-align: center; }

/* اسکلت shimmer — تا لود کامل ویجت Calendly، به‌جای فضای خالی نمایش داده می‌شود */
.calendly-wrap { position: relative; min-height: 680px; }
.calendly-shimmer {
  position: absolute; inset: 0; z-index: 1;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
  opacity: 1; transition: opacity .4s var(--ease);
}
.calendly-shimmer.is-hidden { opacity: 0; pointer-events: none; }
.shimmer-block {
  border-radius: 8px; height: 20px;
  background: linear-gradient(90deg, var(--border) 25%, var(--gold-pale) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmerMove 1.6s ease-in-out infinite;
}
.shimmer-block-title { height: 26px; width: 55%; margin-bottom: 6px; }
.shimmer-block-row { height: 64px; }
.shimmer-block-row.short { width: 70%; height: 20px; }
@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* نوار شناور «رزرو جلسه» — فقط موبایل، بعد از عبور از هیرو و پیش از رسیدن به بخش رزرو ظاهر می‌شود */
.mobile-cta {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: 12px 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -18px rgba(33,29,23,.3);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .mobile-cta { display: block; }
}

/* ===========================================================
   فوتر
   =========================================================== */
.site-footer { background: var(--hero-scrim); color: rgba(255,255,255,.75); padding-block: 56px 28px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-footer .brand-mark { height: 150px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 2px; font-weight: 500; opacity: .85; }
.footer-nav a:hover { color: var(--gold); opacity: 1; }
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color .25s, border-color .25s;
}
.social-links a:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.social-links .icon { width: 18px; height: 18px; }
.copyright { text-align: center; font-size: 0.85rem; margin-top: 22px; opacity: .6; }

/* ===========================================================
   Scroll reveal
   =========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-content.reveal { transition-delay: .15s; }

/* ===========================================================
   ریسپانسیو
   =========================================================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .who-grid { grid-template-columns: 1.1fr 0.9fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .booking-grid { grid-template-columns: 1.1fr 0.9fr; }
  .quote-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
}

@media (max-width: 640px) {
  /* در موبایل به‌جای بارگذاری ۹۶ فریم انیمیشن روی canvas (وابسته به اسکرول)، یک WebP متحرک سبک
     یک‌بار پخش می‌شود (بدون loop) و روی فریم آخر می‌ایستد — سمت چپ صفحه، هم‌راستا با نسخه‌ی دسکتاپ */
  .hero-signature {
    left: 14px; right: auto; top: auto; bottom: 60px;
    width: 240px; height: 136px;
    -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 46%, #000 0%, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse 62% 68% at 50% 46%, #000 0%, #000 35%, transparent 78%);
  }
  .hero-signature .signature-canvas { display: none; }
  .hero-signature .signature-spin { display: block; }
  .scroll-cue { left: 50%; transform: translateX(-50%); }
  .hero-media img { object-position: 70% 14%; }
  .hero-scrim {
    background: linear-gradient(0deg, rgba(26,20,16,.9) 0%, rgba(26,20,16,.58) 42%, rgba(26,20,16,.4) 100%),
                linear-gradient(90deg, #1A1410 0%, rgba(26,20,16,.85) 40%, rgba(26,20,16,.3) 65%, rgba(26,20,16,0) 82%);
  }
  .hero-content { max-width: 100%; margin-left: 0; padding-inline: 4px; }
  .header-inner { padding-inline: 14px; }
  .brand-mark { height: 48px; }
}

/* ===========================================================
   کرسر سفارشی — فقط روی دستگاه‌های با ماوس دقیق فعال می‌شود
   (لمسی و prefers-reduced-motion دست‌نخورده با کرسر پیش‌فرض می‌مانند)
   =========================================================== */
html.has-custom-cursor, html.has-custom-cursor * {
  cursor: none;
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--gold-deep);
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.cursor-ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: cursorBreathe 3.4s ease-in-out infinite;
  transition: opacity .25s var(--ease), transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.cursor-dot.is-visible, .cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-hover {
  animation: none;
  transform: scale(1.7);
  background: rgba(183,137,61,.14);
  border-color: var(--gold-deep);
}
.cursor-dot.is-hover { transform: scale(0); }
.cursor-ring.is-active { animation: none; transform: scale(.75); }
.cursor-dot.is-active { transform: scale(.5); }
@keyframes cursorBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (min-width: 1024px) {
  :root { --header-h: 96px; }
}
