/* WRAPMODE — کلیپ استودیو ۳:۲ تمام‌صفحه، یک take پیوسته (v14 — نوار پیشرفت، دریفت کپشن) */
:root {
  --bg: #050408;
  --bg2: #0c0913;          /* بنفش خیلی تیره برند */
  --ink: #f5f1e8;          /* کرم روشن */
  --mut: #a49bad;
  --accent: #c9a25e;       /* طلایی عتیقه */
  --hairline: rgba(245, 241, 232, 0.1);
  --font-display: "Cormorant Garamond", "Vazirmatn", serif;
  --font-body: "Vazirmatn", "Inter", system-ui, sans-serif;
  --touch-min: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; display: block; }

.latin { font-family: var(--font-display); font-weight: 500; }
[dir="ltr"] .latin { font-family: var(--font-display); }

.kicker {
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  letter-spacing: 0.35em; text-indent: 0.35em;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

/* ---------- نوار پیشرفت اسکرول ---------- */
.progress {
  position: fixed; top: 0; right: 0; left: 0; z-index: 70;
  height: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 94, 0.25), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}

/* ---------- گرین فیلم ---------- */
.grain {
  position: fixed; inset: -5%; z-index: 90;
  contain: strict;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}
/* هنگام اسکراب، انیمیشن گرین متوقف تا کامپوزیت اضافه نشود */
body.scrubbing .grain { animation-play-state: paused; }

/* ---------- کرسر سفارشی ---------- */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 95;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
}
@media (pointer: coarse) { #cursor { display: none; } }

/* ---------- لودر ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--ink);
}
#loader-bar {
  width: min(220px, 40vw); height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
#loader-fill {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}
#loader-percent {
  font-family: var(--font-display);
  font-size: 0.9rem; color: var(--accent);
  letter-spacing: 0.12em;
  min-height: 1.4em;
  min-width: 3em;          /* جلوگیری از لرزش عرض با تغییر ارقام */
  margin-top: 4px;         /* ریتم عمودی: برند — خط — عدد */
}

/* ---------- هدر: پیل شناور دقیقاً به سبک wrapmode.ir ---------- */
.site-header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 60;
  padding: 12px clamp(12px, 2vw, 24px) 0;
}
.header-pill {
  max-width: 1280px; margin-inline: auto;
  height: 64px;
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.6);   /* amber-400/60 مثل موبایل سایت اصلی */
  background: rgba(5, 4, 8, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.scrolled .header-pill {
  background: rgba(5, 4, 8, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
}
.brand { display: flex; align-items: center; flex-shrink: 0; user-select: none; }
.brand img { height: 40px; width: auto; object-fit: contain; transition: filter 0.3s; }
.head-nav { display: none; align-items: center; gap: 4px; }
.head-nav a {
  position: relative; padding: 8px 12px; border-radius: 12px;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  color: rgba(242, 240, 236, 0.8); text-decoration: none;
  transition: color 0.3s, background 0.3s;
}
.head-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.head-actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(242, 240, 236, 0.8);
  transition: color 0.3s, background 0.3s;
}
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.head-cart { color: #FBBF24; }   /* amber-400 — سبد مثل سایت اصلی */
.head-cart:hover { color: #FCD34D; }
.cart-badge {
  position: absolute; top: 3px; inset-inline-end: 2px;
  min-width: 1.5em; padding: 0.05em 0.4em;
  border-radius: 999px; background: #FBBF24; color: #000;
  font-size: 0.66rem; font-weight: 800; line-height: 1.5;
  text-align: center;
}
.head-cta { display: none; flex-direction: column; gap: 4px; margin-inline-start: 4px; flex-shrink: 0; }
.head-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; min-width: 112px; padding: 0 12px; border-radius: 6px;
  font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap;
  color: #000; background: #FBBF24; text-decoration: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}
.head-cta a:hover { transform: scale(1.02); }
.head-cta a:active { transform: scale(0.98); }
.menu-btn { display: inline-flex; }
@media (min-width: 1024px) {
  .head-nav { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 768px) {
  .header-pill { height: 80px; padding: 0 24px; border-color: rgba(255, 255, 255, 0.1); }
  .brand img { height: 48px; }
  .head-cta { display: flex; }
}
/* کشوی منوی موبایل */
.head-drawer {
  max-width: 1280px; margin: 8px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(5, 4, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.head-drawer[hidden] { display: none; }
.head-drawer nav { display: flex; flex-direction: column; }
.head-drawer nav a {
  padding: 12px 14px; border-radius: 12px;
  color: rgba(242, 240, 236, 0.85); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.head-drawer nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.head-drawer .head-cta { display: flex; flex-direction: row; flex-wrap: wrap; }
.head-drawer .head-cta a { flex: 1; height: 32px; }

/* ---------- هیرو ---------- */
.hero-copy {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 80px);
  pointer-events: none;
}
/* اسکریم نرم پشت متن تا روی صحنه‌ی روشن خوانده شود */
.hero-copy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 66% 50% at 50% 50%, rgba(5, 4, 8, 0.72), transparent 72%);
  pointer-events: none;
}
.hero-copy > * { position: relative; }
.hero-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.3;
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(5, 4, 8, 0.8);
}
[dir="ltr"] .hero-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.hero-sub {
  color: #cfc8da;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 2;
  max-width: 52ch;
  font-weight: 300;
  text-shadow: 0 1px 14px rgba(5, 4, 8, 0.9);
}
.btn {
  min-height: var(--touch-min);
  padding: 10px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.95rem;
  text-decoration: none; cursor: pointer; text-align: center;
  border: 1px solid var(--hairline); color: var(--ink);
  background: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn.primary:hover { opacity: 0.88; }
.btn.ghost { background: rgba(5, 4, 8, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.wide { display: block; width: 100%; }
.btn.added { background: #3d7a52; border-color: #3d7a52; color: #eafff2; }

.scroll-hint {
  position: fixed; bottom: 26px; right: 50%; transform: translateX(50%);
  z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: hint-bob 2.8s ease-in-out infinite;
}
.scroll-hint svg { width: 26px; height: 26px; stroke-width: 2.5; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(50%) translateY(0); }
  50% { transform: translateX(50%) translateY(5px); }
}

/* ---------- بوم ---------- */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg);
  /* لایه‌ی مستقل کامپوزیت تا اسکرول هرگز منتظر ری‌پیینت بوم نماند */
  transform: translateZ(0);
  contain: strict;
  backface-visibility: hidden;
}
/* وینیت سینمایی ملایم روی بوم (پس‌زمینه‌ی استودیو روشن است) */
.canvas-wrap::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.42);
}
#canvas { width: 100%; height: 100%; display: block; }

/* ---------- استیج اسکراب و کپشن‌ها ---------- */
#scrub-stage { position: relative; height: 640vh; z-index: 20; }

.cap {
  position: absolute; right: 0; left: 0;
  transform: translateY(calc(-50% + var(--drift, 0px)));
  text-align: center;
  padding: 0 6vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.85), 0 1px 6px rgba(0, 0, 0, 0.9);
}
.cap.is-in { visibility: visible; opacity: 1; }
/* اسکریم نرم پشت کپشن — حس تایتل‌کارت فیلم روی فریم‌های روشن */
.cap::before {
  content: ""; position: absolute; inset: -36px -4vw;
  z-index: -1;             /* .cap ترنسفورم دارد؛ اسکریم داخل همان لایه می‌ماند */
  background: radial-gradient(ellipse 52% 68% at 50% 50%, rgba(5, 4, 8, 0.5), transparent 72%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.cap.is-in::before { opacity: 1; }
.cap-kicker {
  display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 18px);
  font-size: clamp(1.45rem, 5.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  margin: 0;
}
/* خط‌های مویی طلایی دو طرف نام طرح — قاب تایتل‌کارت */
.cap-kicker::before, .cap-kicker::after {
  content: ""; width: clamp(26px, 5vw, 52px); height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 94, 0.65));
}
.cap-kicker::after { background: linear-gradient(90deg, rgba(201, 162, 94, 0.65), transparent); }

/* ---------- کالکشن ---------- */
.collection {
  position: relative; z-index: 30;
  background: linear-gradient(180deg, rgba(5, 4, 8, 0.55) 0%, rgba(12, 9, 19, 0.78) 100%);
  border-top: 1px solid var(--hairline);
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 48px);
}
/* سربرگ شیشه‌ای مات — بلور بومِ ثابتِ پشت سکشن */
.col-head {
  max-width: 1120px; margin: 0 auto 44px; text-align: center;
  padding: clamp(26px, 4.5vw, 44px) clamp(18px, 4vw, 48px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 8, 14, 0.32);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 44px rgba(0, 0, 0, 0.4);
}
.col-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.4;
  margin-top: 14px;
}
[dir="ltr"] .col-title { font-family: var(--font-display); font-weight: 500; }
.col-sub {
  color: var(--mut); font-size: 0.95rem; line-height: 2;
  max-width: 56ch; margin: 10px auto 0; font-weight: 300;
}

.cards {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: rgba(12, 9, 19, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201, 162, 94, 0.55); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
/* زوم خیلی نرم تصویر در هاور — لمسی، نه پرشی */
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name-en {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.card-name { font-size: 1.05rem; font-weight: 700; }
.card-desc { color: var(--mut); font-size: 0.84rem; line-height: 1.9; font-weight: 300; flex: 1; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; margin-top: 4px;
  border-top: 1px solid var(--hairline);
}
.card-price { display: flex; align-items: baseline; gap: 5px; }
.card-price strong {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; color: var(--accent);
}
.card-price span { color: var(--mut); font-size: 0.75rem; }
.card-add {
  min-height: var(--touch-min);
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.card-add:hover { background: var(--accent); color: var(--bg); box-shadow: 0 6px 18px rgba(201, 162, 94, 0.28); }
.card-add.added { background: #3d7a52; border-color: #3d7a52; color: #eafff2; }

/* آمار */
.stats {
  max-width: 1120px; margin: 56px auto 0;
  display: flex; justify-content: center; gap: clamp(28px, 7vw, 84px);
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  color: var(--accent); font-weight: 500;
  line-height: 1.1;
}
.stat-plus { color: var(--accent); font-size: 1rem; }
.stat-label { color: var(--mut); font-size: 0.8rem; }

/* ---------- فوتر ---------- */
.site-footer {
  position: relative; z-index: 30;
  background: var(--bg2);
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: clamp(64px, 11vh, 110px) clamp(20px, 5vw, 48px) 56px;
}
/* وردمارک بزرگ نیمه‌شفاف — وسط فوتر، مثل واترمارک سینمایی */
.foot-logo {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 10.5vw, 7.2rem);
  letter-spacing: 0.26em; text-indent: 0.26em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.78;
  white-space: nowrap;
  overflow-wrap: normal;
}
.foot-line {
  width: clamp(110px, 18vw, 180px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: clamp(26px, 5vh, 44px) auto;
}
/* امضای ENZO — وسط پایین فوتر */
.foot-meta {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  color: var(--mut); font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.made-by-enzo {
  height: 48px; mix-blend-mode: screen; opacity: 1;
  filter: brightness(1.12) contrast(1.18);
}
/* لوگوهای اجتماعی — گوشهٔ پایینِ راست */
.foot-social {
  position: absolute; right: clamp(20px, 4vw, 44px); bottom: 24px;
  display: flex; gap: 16px;
}
.foot-social a { color: var(--mut); transition: color 0.2s; display: inline-flex; }
.foot-social a:hover { color: var(--accent); }

/* ---------- سبد خرید ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 80; }
.cart-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 4, 8, 0.65);
  opacity: 0; transition: opacity 0.3s;
}
.cart-panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(400px, 92vw);
  background: rgba(12, 9, 19, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--hairline);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.24, 1);
  display: flex; flex-direction: column;
  padding: 24px;
}
.cart-drawer.open .cart-backdrop { opacity: 1; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.cart-head h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  background: none; border: 1px solid var(--hairline); color: var(--mut);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cart-close:hover { color: var(--ink); border-color: var(--accent); }
.cart-items { list-style: none; flex: 1; overflow-y: auto; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 12px;
}
.cart-item-info { display: flex; flex-direction: column; gap: 3px; }
.cart-item-name { font-size: 0.9rem; }
.cart-item-price { color: var(--accent); font-size: 0.8rem; }
.cart-item-remove {
  background: none; border: none; color: var(--mut); cursor: pointer;
  font-size: 0.9rem; padding: 6px;
}
.cart-item-remove:hover { color: #d97b7b; }
.cart-empty { color: var(--mut); text-align: center; padding: 30px 0; font-size: 0.88rem; }
.cart-foot { border-top: 1px solid var(--hairline); padding-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cart-total { display: flex; justify-content: space-between; color: var(--mut); font-size: 0.9rem; }
.cart-total strong { color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- مودال تماس ---------- */
.contact-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 8, 0.75);
  padding: 20px;
}
.contact-panel {
  max-width: 420px; width: 100%; text-align: center;
  background: rgba(12, 9, 19, 0.95);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 26px;
}
.contact-panel h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.contact-panel p { color: var(--mut); line-height: 2; font-size: 0.9rem; margin-bottom: 20px; }
.contact-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- موبایل ---------- */
@media (max-width: 768px) {
  #scrub-stage { height: 560vh; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .cap { bottom: auto; padding: 0 5vw; }
  .cards { grid-template-columns: 1fr; }
  .scroll-hint { bottom: 18px; }
  .made-by-enzo { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint { animation: none; }
  .card, .card-media img, .card-add, .cap::before { transition: none; }
}

/* ---------- fallback: بوم در دسترس نیست (no-webgl) ---------- */
/* اگر canvas/2D context در دسترس نباشد، سایت به‌جای صفحهٔ سیاه به محتوای متنی برمی‌گردد */
html.no-webgl #loader { display: none; }
html.no-webgl .canvas-wrap { display: none; }
html.no-webgl .hero-copy { position: static; padding: 140px 6vw 60px; opacity: 1; pointer-events: auto; }
html.no-webgl #scrub-stage { height: auto; }
html.no-webgl .cap { position: static; visibility: visible; transform: none; padding: 24px 6vw; }
html.no-webgl .cap.is-in { visibility: visible; }

