/* =========================================================================
   فیدار گستر رایبد — سیستم طراحی سایت (نسخه ۲)
   ساختار:
   ۱. فونت و توکن‌ها   ۲. پایه   ۳. چیدمان و تایپوگرافی   ۴. دکمه‌ها
   ۵. هدر و منو       ۶. بنرها  ۷. بخش‌های صفحه اصلی      ۸. بخش‌های واحدها
   ۹. تماس            ۱۰. فوتر  ۱۱. انیمیشن‌ها             ۱۲. واکنش‌گرایی
   ========================================================================= */

/* ---------- ۱. فونت (میزبانی محلی؛ ارقام فارسی) ---------- */
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
/* عربی و انگلیسی: همان فونت با ارقام لاتین */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --font: "Vazirmatn FD", Tahoma, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* خنثی‌ها */
  --ink: #1A1220;
  --ink-2: #463D4D;
  --muted: #776E7E;
  --line: #EAE4EE;
  --line-2: #DCD3E2;
  --bg: #FFFFFF;
  --bg-soft: #F7F4F9;
  --night: #120A17;
  --night-2: #1C1024;

  /* برند */
  --purple: #5B2A6A;
  --purple-bright: #9B5FB0;
  --gold: #D9B27C;
  --gold-deep: #A9793C;

  /* واحدها */
  --industrial: #0B4C8C;   --industrial-bright: #5AA2F0;
  --commercial: #A81E2A;   --commercial-bright: #F06470;
  --construction: #C98A12; --construction-bright: #F5BE4A;

  /* اکسنت صفحه (پیش‌فرض: هویت مادر) */
  --accent: var(--purple);
  --accent-ink: #5B2A6A;
  --accent-bright: var(--gold);
  --accent-tint: #F3ECF5;
  --accent-rgb: 91, 42, 106;
  --hero-bg: #120A17;
  --hero-bg-2: #2A1433;
  --fx-rgb: 130, 70, 160;

  /* شکل و سایه */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 2px 8px rgba(26, 18, 32, .05), 0 1px 2px rgba(26, 18, 32, .04);
  --shadow-md: 0 12px 32px -8px rgba(26, 18, 32, .12), 0 2px 6px rgba(26, 18, 32, .04);
  --shadow-lg: 0 32px 64px -16px rgba(26, 18, 32, .22);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body[data-theme="industrial"] {
  --fx-rgb: var(--accent-rgb);
  --accent: var(--industrial); --accent-ink: #0B4C8C; --accent-bright: var(--industrial-bright);
  --accent-tint: #EAF2FB; --accent-rgb: 11, 76, 140;
  --hero-bg: #04142A; --hero-bg-2: #0A3563;
}
body[data-theme="commercial"] {
  --fx-rgb: var(--accent-rgb);
  --accent: var(--commercial); --accent-ink: #A81E2A; --accent-bright: var(--commercial-bright);
  --accent-tint: #FCEDEE; --accent-rgb: 168, 30, 42;
  --hero-bg: #1C0508; --hero-bg-2: #5A1019;
}
body[data-theme="construction"] {
  --fx-rgb: var(--accent-rgb);
  --accent: var(--construction); --accent-ink: #8A5A06; --accent-bright: var(--construction-bright);
  --accent-tint: #FBF3E2; --accent-rgb: 201, 138, 18;
  --hero-bg: #17120A; --hero-bg-2: #45310C;
}

/* ---------- ۲. پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
html[lang="ar"], html[lang="en"] { --font: "Vazirmatn", Tahoma, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.015em; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(var(--accent-rgb), .18); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: fixed; top: 12px; right: 12px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- ۳. چیدمان و تایپوگرافی ---------- */
/* بخش برجسته‌شده عنوان‌ها (**متن** در پنل) */
em { font-style: normal; }
h2 em, h3 em { color: var(--accent-ink); background: linear-gradient(transparent 62%, rgba(var(--accent-rgb), .14) 62%); padding-inline: 2px; border-radius: 2px; }
.section--dark h2 em, .cta h2 em, .svc-stage h3 em { color: var(--accent-bright); background: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: var(--section-y); }
.section--soft { background: rgba(245, 241, 248, .66); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tight-top { padding-bottom: clamp(24px, 3vw, 40px); }
.section--dark { background: var(--night); color: #fff; overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(to left, var(--accent), rgba(var(--accent-rgb), .15));
}
.eyebrow--light { color: var(--accent-bright); }
.eyebrow--light::before { background: linear-gradient(to left, var(--accent-bright), transparent); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.section--dark .section-head p { color: rgba(255, 255, 255, .62); }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center h2 { max-width: 760px; }
.section-head--center p { margin-top: 16px; max-width: 640px; }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head--split p { justify-self: end; }

/* ---------- ۴. دکمه‌ها ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding-inline: 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(-4px); }
.btn:active { transform: scale(.98); }
.btn--sm { --btn-h: 42px; padding-inline: 20px; font-size: .88rem; }
.btn--lg { --btn-h: 56px; padding-inline: 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent-ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), .6); }
.btn--primary:hover { background: var(--ink); box-shadow: 0 12px 24px -10px rgba(26, 18, 32, .5); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-bright); color: var(--night); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- ۵. هدر و منو ---------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(to left, var(--industrial-bright), var(--commercial-bright), var(--construction-bright));
  transform: scaleX(var(--p, 0)); transform-origin: right;
}

.site-header {
  --h-fg: #fff; --h-muted: rgba(255, 255, 255, .72); --h-hover: rgba(255, 255, 255, .1);
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  color: var(--h-fg);
  transition: background-color .35s, height .35s var(--ease), box-shadow .35s, color .35s;
}
.site-header.is-scrolled {
  --h-fg: var(--ink); --h-muted: var(--ink-2); --h-hover: var(--bg-soft);
  --header-h: 70px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -12px rgba(26, 18, 32, .12);
}
body.menu-open .site-header { --h-fg: #fff; --h-muted: rgba(255, 255, 255, .7); background: transparent; box-shadow: none; backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(58, 26, 69, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: .64rem; letter-spacing: .18em; opacity: .6; font-weight: 600; direction: ltr; text-align: start; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--h-muted);
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--h-fg); background: var(--h-hover); }
.nav-link.is-active { color: var(--h-fg); }
.nav-link.is-active::after {
  content: ""; position: absolute; bottom: 2px; right: 50%; transform: translateX(50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--accent-bright);
}
.is-scrolled .nav-link.is-active::after { background: var(--accent); }

.nav-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--gold); }
.nav-link--industrial .nav-dot, .mobile-nav--industrial .nav-dot, .footer-dv--industrial .nav-dot, .contact-dv--industrial .nav-dot, .topic--industrial .nav-dot { background: var(--industrial-bright); }
.nav-link--commercial .nav-dot, .mobile-nav--commercial .nav-dot, .footer-dv--commercial .nav-dot, .contact-dv--commercial .nav-dot, .topic--commercial .nav-dot { background: var(--commercial-bright); }
.nav-link--construction .nav-dot, .mobile-nav--construction .nav-dot, .footer-dv--construction .nav-dot, .contact-dv--construction .nav-dot, .topic--construction .nav-dot { background: var(--construction-bright); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--h-fg); }
.header-phone .ic { width: 16px; height: 16px; color: var(--accent-bright); }
.is-scrolled .header-phone .ic { color: var(--accent); }
.site-header:not(.is-scrolled) .header-cta { background: #fff; color: var(--ink); box-shadow: none; }
.site-header:not(.is-scrolled) .header-cta:hover { background: var(--accent-bright); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.is-scrolled .menu-toggle { border-color: var(--line-2); background: #fff; }
body.menu-open .menu-toggle { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--h-fg); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(3) { width: 14px; margin-inline-start: 6px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { width: 20px; margin: 0; transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(120% 60% at 100% 0%, #2A1433 0%, var(--night) 60%);
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-size: 1.35rem; font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s, transform .4s var(--ease), color .2s;
}
.mobile-nav a span { display: inline-flex; align-items: center; gap: 12px; }
.mobile-nav a .ic { width: 20px; opacity: .4; }
.mobile-nav a.is-active { color: var(--accent-bright); }
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: .2s; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.mobile-mail { color: rgba(255, 255, 255, .6); font-size: .9rem; }
body.menu-open { overflow: hidden; }

/* انتخاب زبان */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-inline: 12px 10px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: var(--h-fg); font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  transition: background-color .2s, border-color .2s;
}
.lang-btn .ic { width: 18px; height: 18px; }
.lang-btn .lang-caret { width: 14px; height: 14px; opacity: .6; transition: transform .25s; }
.lang-btn:hover { background: var(--h-hover); }
.is-scrolled .lang-btn { border-color: var(--line-2); background: #fff; }
body.menu-open .lang-btn { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.lang-code { font-family: var(--mono); }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 130; min-width: 190px;
  padding: 6px; border-radius: 16px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-weight: 700; font-size: .95rem; transition: background-color .15s; }
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.is-current { background: var(--accent-tint); color: var(--accent-ink); }
.lang-menu b { font-family: var(--mono); font-size: .72rem; min-width: 28px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--bg-soft); color: var(--muted); }
.lang-menu .ic { width: 16px; height: 16px; margin-inline-start: auto; }
.lang-menu a[dir="ltr"] { flex-direction: row; }

/* صفحه ۴۰۴ */
.hero--404 { min-height: 70svh; display: flex; align-items: center; padding-bottom: clamp(60px, 8vw, 100px); }
.nf-code { display: block; font-size: clamp(5rem, 16vw, 11rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35); margin-bottom: 10px; }

/* پیام‌ها */
.toasts { position: fixed; top: calc(var(--header-h) + 16px); inset-inline: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 16px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  max-width: 520px; width: 100%;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: toastIn .5s var(--ease) both;
}
.toast p { flex: 1; font-size: .92rem; font-weight: 500; line-height: 1.7; }
.toast-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.toast--success .toast-icon { background: #E6F6EC; color: #1C8A48; }
.toast--error .toast-icon { background: #FCEBEC; color: #B3261E; }
.toast-close { background: none; border: 0; padding: 6px; color: var(--muted); display: grid; }
.toast.is-hiding { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }

.to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 80;
  width: 48px; height: 48px; border-radius: 16px; border: 0;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-ink); }

/* ---------- ۶. بنرها ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, var(--hero-bg-2) 0%, transparent 60%),
    var(--hero-bg);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(28px, 4vw, 48px);
}
.hero--home { min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: space-between; }
.hero--division { min-height: min(94svh, 900px); display: flex; flex-direction: column; justify-content: space-between; }
.hero--page { padding-bottom: clamp(120px, 14vw, 170px); }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(10, 5, 14, .9) 0%, rgba(10, 5, 14, .62) 50%, rgba(10, 5, 14, .35) 100%),
    linear-gradient(to top, rgba(10, 5, 14, .85) 0%, transparent 45%);
}
.hero--division .hero-media::after {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), .55) 0%, rgba(8, 5, 10, .55) 60%, rgba(8, 5, 10, .4) 100%),
    linear-gradient(to top, rgba(8, 5, 10, .9) 0%, transparent 50%),
    linear-gradient(to left, rgba(8, 5, 10, .55), rgba(8, 5, 10, .2));
}

.hero-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(1) { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; top: -25%; right: -12%; background: radial-gradient(circle, rgba(155, 95, 176, .45), transparent 65%); }
.hero-aurora span:nth-child(2) { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; bottom: -35%; left: -10%; background: radial-gradient(circle, rgba(27, 95, 176, .35), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.hero-aurora span:nth-child(3) { width: 34vw; height: 34vw; max-width: 480px; max-height: 480px; top: 30%; left: 28%; background: radial-gradient(circle, rgba(201, 138, 18, .16), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.hero-aurora--mono span:nth-child(1) { background: radial-gradient(circle, rgba(var(--accent-rgb), .55), transparent 65%); }
.hero-aurora--mono span:nth-child(2) { background: radial-gradient(circle, rgba(var(--accent-rgb), .3), transparent 65%); }
.has-media .hero-aurora { opacity: .5; }
@keyframes drift { to { transform: translate3d(-6%, 8%, 0) scale(1.1); } }

.hero-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.has-media .hero-lines { display: none; }

.hero-pattern { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-pattern--industrial {
  background-image:
    linear-gradient(rgba(120, 180, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .12) 1px, transparent 1px),
    linear-gradient(rgba(120, 180, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(to left, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 85%);
}
.hero-pattern--commercial {
  background-image: radial-gradient(rgba(255, 170, 175, .28) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 80% at 15% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 80% at 15% 40%, #000 10%, transparent 70%);
}
.hero-pattern--construction {
  background-image:
    repeating-linear-gradient(135deg, rgba(245, 190, 74, .09) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(45deg, rgba(245, 190, 74, .05) 0 1px, transparent 1px 38px);
  mask-image: linear-gradient(to left, transparent 5%, #000 55%);
  -webkit-mask-image: linear-gradient(to left, transparent 5%, #000 55%);
}
.has-media .hero-pattern { opacity: .45; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .88);
  margin-bottom: 26px;
}
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 0 14px var(--accent-bright); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-bright) 0%, #fff 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--home h1 em { background-image: linear-gradient(100deg, #F5BE4A 0%, #E0414F 55%, #5AA2F0 110%); }
.hero-lead { margin-top: 22px; max-width: 600px; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 2; color: rgba(255, 255, 255, .74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

.hero--home .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero--home h1 { font-size: clamp(2rem, 3.9vw, 3.4rem); }
.hero-prism { position: relative; width: 100%; max-width: 620px; justify-self: end; margin-inline-start: auto; margin-block: -30px; }
.hero-prism svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.hero-prism-glow { position: absolute; inset: 10% 5% 10% 20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(155, 95, 176, .35), transparent); filter: blur(10px); pointer-events: none; }
.hp-prism { transform-box: fill-box; transform-origin: center; }
.prism-figure.is-visible .hp-prism { animation: prismBreath 6s ease-in-out 2.4s infinite; }
@keyframes prismBreath { 50% { filter: drop-shadow(0 0 18px rgba(243, 231, 212, .35)); } }

.hero-stats {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stat { padding: 26px 24px 6px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.hero-stat + .hero-stat::before { content: ""; position: absolute; right: 0; top: 30px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, .1); }
.hero-stat:first-child { padding-right: 0; }
.stat-num { display: inline-flex; align-items: baseline; direction: ltr; justify-content: flex-end; font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stat .stat-num { justify-content: flex-end; align-self: flex-start; }
.stat-suffix { color: var(--accent-bright); font-size: .7em; margin-inline-start: 2px; }
.stat-label { font-size: .88rem; color: rgba(255, 255, 255, .6); }

.hero-division-inner { position: relative; }
.hero--division h1 { max-width: 820px; }
.hero--division .hero-lead { max-width: 640px; }
.hero-watermark {
  position: absolute; left: -1vw; bottom: 16%; z-index: -1; pointer-events: none;
  font-family: var(--font); font-weight: 900; font-size: clamp(5rem, 15vw, 14rem); line-height: 1;
  direction: ltr; letter-spacing: -.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
}

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, .85); }
.breadcrumb .ic { width: 14px; height: 14px; opacity: .5; }

.hero-page-inner { max-width: 820px; }

/* نوار توانمندی‌ها */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .72); padding-block: 22px; direction: ltr; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; }
html[dir="rtl"] .marquee-group { direction: rtl; }
.marquee-group span { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.marquee-group i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-deep); opacity: .6; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ۷. صفحه اصلی ---------- */
/* کارت‌های واحدها */
.dv-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.dv-card {
  --c1: #0F5AA3; --c2: #0A3D73; --c3: #061F3D; --cb: var(--industrial-bright);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 330px; padding: clamp(26px, 3vw, 38px);
  border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(155deg, var(--c1) 0%, var(--c2) 45%, var(--c3) 100%);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dv-card--commercial { --c1: #BE2A37; --c2: #7C1520; --c3: #36080D; --cb: var(--commercial-bright); }
.dv-card--construction { --c1: #D39A25; --c2: #94650F; --c3: #3A2705; --cb: var(--construction-bright); }
.dv-card--featured { grid-row: span 2; min-height: 640px; }
.dv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dv-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.dv-card:hover .dv-card-img { transform: scale(1.06); }
.dv-card.has-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--c3) 5%, color-mix(in srgb, var(--c2) 70%, transparent) 50%, color-mix(in srgb, var(--c3) 30%, transparent) 100%);
}
.dv-card-pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 20px 20px;
  mask-image: radial-gradient(60% 60% at 0% 0%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 0% 0%, #000, transparent);
}
.dv-card::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  top: -160px; left: -120px; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--cb) 40%, transparent), transparent 70%);
  opacity: .6; transition: opacity .5s, transform .8s var(--ease);
}
.dv-card:hover::after { opacity: 1; transform: scale(1.15); }
.dv-card-top { display: flex; align-items: center; justify-content: space-between; }
.dv-card-num { font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .6); font-family: var(--mono); }
.dv-card-badge { font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.dv-card-icon {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}
.dv-card-icon .ic { width: 28px; height: 28px; }
.dv-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.dv-card--featured h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.dv-card p { color: rgba(255, 255, 255, .78); max-width: 460px; }
.dv-card-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-weight: 700; font-size: .95rem; }
.dv-card-arrow {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--c2);
  transition: transform .4s var(--ease), background-color .3s;
}
.dv-card-arrow .ic { width: 18px; }
.dv-card:hover .dv-card-arrow { transform: translateX(-6px); background: var(--cb); color: #fff; }

/* منشور نور (بنر اصلی) */
.pb { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .3, 1); }
.pb-out { transition-delay: .9s; transition-duration: 1.6s; }
.prism-figure.is-visible .pb { stroke-dashoffset: 0; }
.pb-pulse { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; transition: opacity .6s 2.4s; animation: pulseMove 3.6s linear infinite; }
.prism-figure.is-visible .pb-pulse { opacity: .9; }
@keyframes pulseMove { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pb-node { transform-box: fill-box; transform-origin: center; stroke-width: 6; stroke-opacity: .25; }
.pb-node--ind { fill: #5AA2F0; stroke: #5AA2F0; }
.pb-node--com { fill: #F06470; stroke: #F06470; }
.pb-node--con { fill: #F5BE4A; stroke: #F5BE4A; }
.prism-figure.is-visible .pb-node { animation: nodePulse 2.4s ease-in-out 2.4s infinite; }
@keyframes nodePulse { 50% { stroke-width: 14; stroke-opacity: .12; } }
.prism-label { fill: rgba(255, 255, 255, .92); font-family: var(--font); font-size: 26px; font-weight: 800; direction: ltr; opacity: 0; transition: opacity .6s 2.4s, fill .25s; }
.pb-link:hover .prism-label { fill: #fff; }
.prism-figure.is-visible .prism-label { opacity: 1; }
.pb-link { cursor: pointer; }
.pb-link:hover .pb-out { stroke-width: 14; }

/* بخش‌های جمع‌وجور */
.section--compact { padding-block: clamp(56px, 7vw, 96px); }
.section-head--sm { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--sm h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* آیکون با انیمیشن ترسیم خط */
.js .ic-draw > * { stroke-dasharray: 120; stroke-dashoffset: 120; }
.js .is-visible .ic-draw > *, .js .is-visible.ic-draw > *, .js .svc-panel.is-active .ic-draw > * { animation: icDraw 1.8s var(--ease) var(--d, 0s) forwards; }
@keyframes icDraw { to { stroke-dashoffset: 0; } }

/* زنجیره ارزش — بدون کادر */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px) minmax(0, 1fr) minmax(60px, 140px) minmax(0, 1fr); align-items: start; }
.flow-step { --c: var(--commercial); --cb: var(--commercial-bright); display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-step--industrial { --c: var(--industrial); --cb: var(--industrial-bright); }
.flow-step--construction { --c: #B27A0C; --cb: var(--construction-bright); }
.flow-icon { display: grid; place-items: center; width: 84px; height: 84px; color: var(--c); margin-bottom: 10px; }
.flow-icon .ic { width: 64px; height: 64px; stroke-width: 1.25; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--cb) 45%, transparent)); transition: transform .5s var(--ease); }
.flow-step.is-visible .flow-icon .ic { animation: floatY 5s ease-in-out 2s infinite; }
.flow-icon:hover .ic { transform: scale(1.08) rotate(-4deg); }
@keyframes floatY { 50% { transform: translateY(-7px); } }
.flow-role { font-size: 1.35rem; font-weight: 900; line-height: 1.3; }
.flow-dv { font-size: .82rem; font-weight: 700; color: var(--c); margin: 2px 0 8px; }
.flow-dv:hover { text-decoration: underline; }
.flow-step p { font-size: .9rem; color: var(--muted); max-width: 260px; line-height: 1.85; }
.flow-link { position: relative; height: 84px; display: flex; align-items: center; }
.flow-line { position: absolute; inset-inline: 0; top: 50%; height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--commercial-bright), var(--industrial-bright)); opacity: .7; transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease) var(--d, 0s); }
.flow-link--2 .flow-line { background: linear-gradient(to left, var(--industrial-bright), var(--construction-bright)); }
.flow-link.is-visible .flow-line { transform: scaleX(1); }
.flow-spark { position: absolute; top: 50%; right: 0; width: 26px; height: 4px; margin-top: -2px; border-radius: 4px; background: linear-gradient(to left, transparent, var(--commercial-bright)); box-shadow: 0 0 12px var(--commercial-bright); opacity: 0; }
.flow-link--2 .flow-spark { background: linear-gradient(to left, transparent, var(--industrial-bright)); box-shadow: 0 0 12px var(--industrial-bright); }
.flow-link.is-visible .flow-spark { animation: spark 2.6s cubic-bezier(.5, 0, .5, 1) 1s infinite; }
@keyframes spark { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 26px); opacity: 0; } }
.flow-arrow { position: absolute; left: -6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--line-2); }

/* کارت جمع‌وجور سه‌بخشی (درباره ما / معرفی واحد) */
.brief {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) minmax(240px, 300px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
}
.brief::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; z-index: 2; background: linear-gradient(to left, var(--industrial-bright), var(--commercial-bright), var(--construction-bright)); }
.brief-media { position: relative; margin: 0; min-height: 300px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), .55), transparent 60%), radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px) 0 0 / 20px 20px, linear-gradient(160deg, var(--hero-bg-2), var(--hero-bg)); }
.brief-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.brief:hover .brief-media img { transform: scale(1.04); }
.brief-placeholder { position: absolute; inset: 0 0 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.brief-placeholder .brief-logo { width: 96px; height: 96px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .4)); }
.brief-placeholder > span { font-weight: 800; color: rgba(255, 255, 255, .85); }
.brief-ph-icon { width: 72px !important; height: 72px !important; stroke-width: 1.1; color: var(--accent-bright); }
.brief-ph-en { font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; color: transparent !important; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); text-transform: uppercase; direction: ltr; }
.brief-badge {
  position: absolute; inset-inline: 14px; bottom: 14px; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
}
.brief-badge strong { display: inline-flex; direction: ltr; font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--accent-ink); }
.brief-badge > span { font-size: .8rem; font-weight: 600; line-height: 1.6; color: var(--ink-2); }
.brief-body { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.brief-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-bottom: 12px; }
.brief-body p { color: var(--ink-2); font-size: .97rem; line-height: 2; }
.brief-body p + p { margin-top: 10px; }
.brief-side { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(170deg, var(--accent-tint), #fff 75%); border-inline-start: 1px solid var(--line); }
.brief-points { display: grid; gap: 12px; }
.brief-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .92rem; line-height: 1.75; }
.brief-check { width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-ink); color: #fff; }
.brief-check .ic { width: 13px; height: 13px; stroke-width: 3; }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.brief-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.brief-phone .ic { width: 16px; height: 16px; color: var(--accent-ink); }
.brief-phone:hover { color: var(--accent-ink); }

/* چرا ما — ماتریس */
.why { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.why-head { position: sticky; top: 100px; }
.why-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.why-head p { color: var(--muted); font-size: .95rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.why-item { position: relative; padding: 26px 24px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background-color .35s; }
.why-item::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.why-item:hover { background: var(--bg-soft); }
.why-item:hover::before { transform: scaleX(1); }
.why-ic { width: 34px !important; height: 34px !important; stroke-width: 1.4; color: var(--accent-ink); margin-bottom: 14px; }
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: .88rem; color: var(--muted); line-height: 1.85; }

/* فراخوان */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--hero-bg-2) 0%, transparent 60%),
    var(--hero-bg);
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .7); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-beams span { position: absolute; left: -10%; width: 60%; height: 3px; border-radius: 3px; filter: blur(1px); opacity: .7; transform-origin: left center; }
.cta-beams span:nth-child(1) { top: 30%; background: linear-gradient(to left, transparent, var(--industrial-bright)); transform: rotate(-8deg); box-shadow: 0 0 20px var(--industrial-bright); }
.cta-beams span:nth-child(2) { top: 55%; background: linear-gradient(to left, transparent, var(--commercial-bright)); box-shadow: 0 0 20px var(--commercial-bright); }
.cta-beams span:nth-child(3) { top: 80%; background: linear-gradient(to left, transparent, var(--construction-bright)); transform: rotate(8deg); box-shadow: 0 0 20px var(--construction-bright); }

/* ---------- ۸. صفحات واحدها ---------- */
/* خدمات — مرورگر تعاملی */
.svc { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.svc-head { display: flex; flex-direction: column; justify-content: center; }
.svc-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.svc-head p { color: var(--muted); font-size: .93rem; }
.svc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 800; font-size: .92rem; color: var(--accent-ink); }
.svc-cta .ic { width: 18px; transition: transform .3s var(--ease); }
.svc-cta:hover .ic { transform: translateX(-4px); }
.svc-list { display: flex; flex-direction: column; justify-content: center; counter-reset: svc; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list li:first-child { border-top: 1px solid var(--line); }
.svc-tab {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 15px 12px; border: 0; background: none; text-align: start;
  font-size: .97rem; font-weight: 700; color: var(--ink-2); transition: color .25s, background-color .25s;
}
.svc-tab::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--accent); transform: translateY(-50%); transition: height .35s var(--ease); }
.svc-tab:hover { color: var(--ink); background: rgba(var(--accent-rgb), .04); }
.svc-tab.is-active { color: var(--ink); }
.svc-tab.is-active::before { height: 60%; }
.svc-num { font-family: var(--mono); font-size: .75rem; color: var(--muted); min-width: 20px; }
.svc-tab-ic { width: 20px !important; height: 20px !important; color: var(--accent-ink); opacity: .55; transition: opacity .25s; }
.svc-tab.is-active .svc-tab-ic { opacity: 1; }
.svc-tab-title { flex: 1; }
.svc-tab-arrow { width: 18px !important; height: 18px !important; color: var(--accent-ink); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); }
.svc-tab.is-active .svc-tab-arrow { opacity: 1; transform: none; }
.svc-tab-text { display: none; }
.svc-stage {
  position: relative; isolation: isolate; overflow: hidden; min-height: 340px;
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(80% 80% at 100% 0%, var(--hero-bg-2), transparent 70%), var(--hero-bg);
  box-shadow: var(--shadow-lg);
}
.svc-stage-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent); }
.svc-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3vw, 40px); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s, transform .55s var(--ease), visibility .45s; }
.svc-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.svc-panel-count { position: absolute; top: 26px; inset-inline-end: 28px; font-family: var(--mono); font-size: .8rem; color: rgba(255, 255, 255, .5); letter-spacing: .1em; }
.svc-panel-ic { position: absolute; top: 26px; inset-inline-start: 28px; width: 92px !important; height: 92px !important; stroke-width: 1 !important; color: var(--accent-bright); filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), .8)); }
.svc-panel h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 8px; }
.svc-panel p { color: rgba(255, 255, 255, .72); font-size: .97rem; line-height: 2; max-width: 440px; }
.svc-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.svc-progress i { display: block; height: 100%; width: 100%; background: var(--accent-bright); transform: scaleX(0); transform-origin: right; }
.svc.is-playing .svc-progress i { animation: svcProgress var(--svc-time, 5s) linear forwards; }
@keyframes svcProgress { to { transform: scaleX(1); } }

/* شاخص‌های فنی — صنعتی */
.specs-section { background: linear-gradient(180deg, #04142A, #071F3F); }
.blueprint-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 162, 240, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 162, 240, .1) 1px, transparent 1px),
    linear-gradient(rgba(90, 162, 240, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 162, 240, .04) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 90%);
}
.specs-section .container { position: relative; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec {
  position: relative; padding: 28px 26px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(4, 20, 42, .6); border: 1px solid rgba(90, 162, 240, .22); border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: border-color .3s, background-color .3s;
}
.spec:hover { border-color: rgba(90, 162, 240, .6); background: rgba(11, 76, 140, .25); }
.spec-code { font-family: var(--mono); font-size: .78rem; color: var(--industrial-bright); letter-spacing: .12em; text-align: start; }
.spec strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; margin-top: 14px; }
.spec-label { font-size: .9rem; color: rgba(255, 255, 255, .6); }
.spec-corner { position: absolute; width: 12px; height: 12px; border-color: var(--industrial-bright); border-style: solid; }
.spec-corner--a { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.spec-corner--b { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* شبکه تجاری — بازرگانی */
.network-section { background: radial-gradient(70% 70% at 20% 50%, #4A0E15 0%, #1C0508 70%); }
.network { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.network-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.network-text p { color: rgba(255, 255, 255, .66); font-size: 1.05rem; }
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 32px; }
.partner-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-weight: 600; }
.partner-code { font-family: var(--mono); font-size: .75rem; font-weight: 700; width: 36px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(240, 100, 112, .15); color: var(--commercial-bright); }
.network-visual svg { width: 100%; max-width: 520px; margin-inline: auto; display: block; overflow: visible; }
.nw-ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-dasharray: 3 6; }
.nw-ring--inner { stroke: rgba(255, 255, 255, .06); }
.nw-route { fill: none; stroke: rgba(240, 100, 112, .4); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.network-visual.is-visible .nw-route { stroke-dashoffset: 0; }
.nw-pulse { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; animation: pulseMove 3.6s linear infinite; transition: opacity .5s 1.8s; }
.network-visual.is-visible .nw-pulse { opacity: .8; }
.nw-node { opacity: 0; transition: opacity .5s calc(.8s + var(--i) * .08s); }
.network-visual.is-visible .nw-node { opacity: 1; }
.nw-node-bg { fill: #2A0A10; stroke: var(--commercial-bright); stroke-width: 1.5; }
.nw-code { fill: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.nw-hub-halo { fill: rgba(240, 100, 112, .15); transform-box: fill-box; transform-origin: center; animation: hubPulse 3s ease-in-out infinite; }
.nw-hub-text { fill: #fff; font-family: var(--font); font-size: 15px; font-weight: 800; }
@keyframes hubPulse { 50% { transform: scale(1.35); opacity: .4; } }

/* رشد — ساختمانی */
.growth-section { background: linear-gradient(160deg, #221808, #110D06); }
.arch-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(245, 190, 74, .06) 0 1px, transparent 1px 44px);
  mask-image: linear-gradient(to right, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 70%);
}
.growth { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.growth-text h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 18px; }
.growth-text p { color: rgba(255, 255, 255, .66); }
.growth-total { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.growth-total strong { font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--construction-bright); }
.growth-total span { color: rgba(255, 255, 255, .7); font-weight: 600; }
.growth-chart { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 22px); height: 340px; padding: 24px 24px 0; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.growth-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; }
.growth-bar {
  width: 100%; max-width: 64px; height: var(--h); border-radius: 12px 12px 4px 4px;
  background: linear-gradient(to top, rgba(201, 138, 18, .25), rgba(245, 190, 74, .75));
  border: 1px solid rgba(245, 190, 74, .4); border-bottom: 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.1s var(--ease) calc(.2s + var(--i) * .12s);
}
.growth-col.is-peak .growth-bar { background: linear-gradient(to top, #C98A12, #FFD57A); box-shadow: 0 0 40px rgba(245, 190, 74, .45); }
.growth-chart.is-visible .growth-bar { transform: scaleY(1); }
.growth-val { font-weight: 800; font-size: 1.15rem; opacity: 0; transition: opacity .5s calc(.9s + var(--i) * .12s); }
.growth-chart.is-visible .growth-val { opacity: 1; }
.growth-col.is-peak .growth-val { color: var(--construction-bright); }
.growth-year { font-size: .82rem; color: rgba(255, 255, 255, .5); padding: 10px 0 14px; border-top: 1px solid rgba(255, 255, 255, .1); width: 100%; text-align: center; }

/* فرآیند */
.process { --cols: 4; position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 28px; }
.process::before {
  content: ""; position: absolute; top: 31px; right: calc(50% / var(--cols)); left: calc(50% / var(--cols)); height: 2px;
  background: linear-gradient(to left, var(--accent), rgba(var(--accent-rgb), .15));
}
.process-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.process-num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 900; color: var(--accent-ink);
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 8px #fff, 0 10px 24px -6px rgba(var(--accent-rgb), .45);
  transition: background-color .3s, color .3s;
}
.process-step:hover .process-num { background: var(--accent-ink); color: #fff; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: .92rem; max-width: 230px; margin-inline: auto; }

/* گالری نمونه‌کارها */
.gx { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r-md); background: #E9E4EE; box-shadow: var(--shadow-sm); }
.gx img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gx::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(12, 6, 16, .7) 0%, rgba(12, 6, 16, .12) 40%, transparent 60%); transition: opacity .4s; }
.gx:not(:has(.gx-title))::after { opacity: .35; }
.gx:hover img { transform: scale(1.06); }
.gx-title { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 1; display: flex; }
.gx-title span {
  max-width: 100%; padding: 7px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
  font-size: .86rem; font-weight: 700; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-inline-start: 3px solid var(--accent);
  transition: transform .35s var(--ease);
}
.gx:hover .gx-title span { transform: translateY(-3px); }
.gx--lg .gx-title { inset-inline: 18px; bottom: 18px; }
.gx--lg .gx-title span { font-size: 1rem; padding: 9px 16px; }
.gx-zoom { position: absolute; top: 12px; left: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: .35s var(--ease); }
.gx-zoom .ic { width: 18px; height: 18px; }
.gx:hover .gx-zoom, .gx:focus-visible .gx-zoom { opacity: 1; transform: none; }

.gallery-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.gallery-bento .gx--lg { grid-column: span 2; grid-row: span 2; }
.gallery-bento--1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 440px; }
.gallery-bento--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 360px; }
.gallery-bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 320px; }
.gallery-bento--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 300px; }
.gallery-bento--3 .gx--lg, .gallery-bento--4 .gx--lg { grid-column: auto; grid-row: auto; }
.gallery-more { display: flex; justify-content: center; margin-top: 30px; }
.gallery-more-count { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .82rem; }
.gallery-empty { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gx-ph { aspect-ratio: 1; border-radius: var(--r-md); display: grid; place-items: center; color: rgba(var(--accent-rgb), .45); border: 1px solid var(--line); background: radial-gradient(circle, rgba(var(--accent-rgb), .08), transparent 70%), repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .05) 0 1px, transparent 1px 16px), rgba(255, 255, 255, .8); }
.gx-ph .ic { width: 38px; height: 38px; stroke-width: 1.3; }
.gallery-empty-text { grid-column: 1 / -1; text-align: center; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* نمونه‌کارهای صفحه اصلی (برگه‌ای) */
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; margin-bottom: 28px; }
.showcase-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 8px; }
.showcase-head p { color: var(--muted); max-width: 560px; }
.sc-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sc-tab { --c: var(--industrial); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px 12px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: background-color .3s, color .3s; }
.sc-tab--commercial { --c: var(--commercial); } .sc-tab--construction { --c: #B27A0C; }
.sc-tab .ic { width: 18px; height: 18px; color: var(--c); transition: color .3s; }
.sc-tab b { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: .72rem; background: var(--bg-soft); color: var(--muted); }
.sc-tab:hover { background: var(--bg-soft); }
.sc-tab.is-active { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.sc-tab.is-active .ic { color: #fff; }
.sc-tab.is-active b { background: rgba(255, 255, 255, .22); color: #fff; }
.js .sc-panel:not(.is-active) { display: none; }
.sc-panel + .sc-panel { margin-top: 40px; }
.js .sc-panel + .sc-panel { margin-top: 0; }
.sc-panel.is-active .sc-grid { animation: scIn .6s var(--ease); }
@keyframes scIn { from { opacity: 0; transform: translateY(10px); } }
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 14px; }
.sc-panel--industrial .gx-title span { border-color: var(--industrial); }
.sc-panel--commercial .gx-title span { border-color: var(--commercial); }
.sc-panel--construction .gx-title span { border-color: var(--construction); }
.sc-more { --c: var(--industrial); display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 22px auto 0; padding: 10px 14px 10px 20px; border-radius: 999px; font-weight: 800; color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent); background: rgba(255, 255, 255, .8); transition: .3s; }
.sc-more--commercial { --c: var(--commercial); } .sc-more--construction { --c: #9A6508; }
.sc-more b { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); font-size: .78rem; }
.sc-more .ic { width: 18px; transition: transform .3s var(--ease); }
.sc-more:hover { background: var(--c); color: #fff; border-color: var(--c); }
.sc-more:hover b { background: rgba(255, 255, 255, .22); }
.sc-more:hover .ic { transform: translateX(-4px); }

/* صفحه همه نمونه‌کارها */
.hero--gallery { padding-bottom: clamp(48px, 6vw, 76px); }
.gallery-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.gallery-meta-count { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: rgba(255, 255, 255, .85); }
.gallery-meta-count .ic { width: 18px; color: var(--accent-bright); }
.gallery-meta-back { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.gallery-meta-back .ic { width: 16px; }
.gallery-meta-back:hover { color: #fff; }
.gallery-full { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-full .gx { aspect-ratio: 4 / 3; }
.js .gallery-full .gx.is-hidden { display: none; }
.gallery-others { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.gallery-other { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); transition: .25s; }
.gallery-other .ic { width: 18px; }
.gallery-other--industrial .ic { color: var(--industrial); } .gallery-other--commercial .ic { color: var(--commercial); } .gallery-other--construction .ic { color: #B27A0C; }
.gallery-other:hover { border-color: var(--ink-2); color: var(--ink); }

/* پنجره جزئیات نمونه‌کار: تصویر کوچک‌تر + ستون عنوان و توضیحات */
.lightbox {
  --lb-accent: var(--purple); --lb-bright: var(--gold);
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center;
  background: rgba(12, 6, 16, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 32px 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox[data-unit="industrial"] { --lb-accent: var(--industrial); --lb-bright: var(--industrial-bright); }
.lightbox[data-unit="commercial"] { --lb-accent: var(--commercial); --lb-bright: var(--commercial-bright); }
.lightbox[data-unit="construction"] { --lb-accent: #A87208; --lb-bright: var(--construction-bright); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-dialog {
  position: relative; width: min(980px, 100%); max-height: min(640px, calc(100vh - 64px));
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6);
  transform: translateY(18px) scale(.97); transition: transform .45s var(--ease);
}
.lightbox.is-open .lb-dialog { transform: none; }
.lb-media {
  position: relative; display: grid; place-items: center; padding: 22px; min-height: 0;
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--bg-soft) 60%, #EEE8F2 100%);
}
.lb-media::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 1px; background: var(--line); }
.lb-img { display: block; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.lb-img img {
  display: block; max-width: 100%; max-height: min(520px, calc(100vh - 160px)); width: auto; height: auto;
  object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  transition: opacity .3s, transform .45s var(--ease);
}
.lightbox.is-loading .lb-img img { opacity: .25; transform: scale(.98); }
.lb-count {
  position: absolute; bottom: 14px; inset-inline-start: 14px; font-size: .74rem; font-weight: 700;
  color: var(--ink-2); padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.lb-info { display: flex; flex-direction: column; gap: 14px; padding: 40px 36px 26px; overflow-y: auto; min-height: 0; }
.lb-unit { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .78rem; font-weight: 800; color: var(--lb-accent); padding: 5px 12px 5px 14px; border-radius: 99px; background: color-mix(in srgb, var(--lb-accent) 9%, #fff); }
.lb-unit i { width: 8px; height: 8px; border-radius: 50%; background: var(--lb-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lb-accent) 18%, transparent); }
.lb-unit-name:empty { display: none; }
.lb-caption { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 900; line-height: 1.55; color: var(--ink); }
.lb-caption::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--lb-accent), var(--lb-bright)); }
html[dir="rtl"] .lb-caption::after { background: linear-gradient(-90deg, var(--lb-accent), var(--lb-bright)); }
.lb-desc { color: var(--ink-2); font-size: .97rem; line-height: 2.05; }
.lb-desc p { margin: 0 0 .8em; }
.lb-desc p:last-child { margin-bottom: 0; }
.lightbox:not(.has-desc) .lb-desc { display: none; }
.lb-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-cta { background: var(--lb-accent); color: #fff; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--lb-accent) 80%, transparent); }
.lb-cta:hover { background: var(--ink); }
.lb-navs { display: flex; gap: 8px; }
.lb-nav, .lb-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.lb-nav .ic, .lb-close .ic { width: 20px; height: 20px; }
.lb-nav:hover { background: var(--lb-accent); border-color: var(--lb-accent); color: #fff; }
.lb-close { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; background: rgba(255, 255, 255, .92); }
.lb-close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.lightbox.is-single .lb-navs, .lightbox.is-single .lb-count { display: none; }

/* سایر واحدها */
.siblings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sibling {
  --c: var(--industrial); --cb: var(--industrial-bright);
  display: flex; align-items: center; gap: 22px; padding: 26px 28px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.sibling--commercial { --c: var(--commercial); --cb: var(--commercial-bright); }
.sibling--construction { --c: #B27A0C; --cb: var(--construction-bright); }
.sibling:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.sibling-icon { width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--cb), var(--c)); box-shadow: 0 12px 24px -10px var(--c); }
.sibling-icon .ic { width: 28px; height: 28px; }
.sibling-text { flex: 1; display: flex; flex-direction: column; line-height: 1.7; min-width: 0; }
.sibling-text small { font-size: .75rem; font-weight: 700; color: var(--c); }
.sibling-text strong { font-size: 1.2rem; }
.sibling-text span { font-size: .9rem; color: var(--muted); }
.sibling-arrow { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--ink-2); transition: .35s var(--ease); }
.sibling:hover .sibling-arrow { background: var(--c); border-color: var(--c); color: #fff; transform: translateX(-4px); }

/* ---------- ۹. تماس ---------- */
.contact-section { padding-top: 0; }
.contact { position: relative; z-index: 2; margin-top: clamp(-120px, -10vw, -80px); display: grid; grid-template-columns: .85fr 1.3fr; gap: 24px; align-items: start; }
.contact-info {
  padding: clamp(28px, 3.5vw, 44px); border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(90% 60% at 100% 0%, #3A1A45, transparent 70%), var(--night-2);
  box-shadow: var(--shadow-lg);
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-info > p { color: rgba(255, 255, 255, .6); font-size: .95rem; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-cards li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.contact-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: rgba(217, 178, 124, .14); color: var(--gold); }
.contact-cards small { display: block; font-size: .76rem; color: rgba(255, 255, 255, .5); }
.contact-cards a, .contact-cards strong { font-weight: 700; font-size: .95rem; }
.contact-cards a:hover { color: var(--gold); }
.contact-divisions { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 4px; }
.contact-divisions small { color: rgba(255, 255, 255, .5); font-size: .8rem; margin-bottom: 6px; }
.contact-dv { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 600; transition: color .2s; }
.contact-dv .ic { width: 16px; margin-inline-start: auto; opacity: .4; transition: transform .3s var(--ease), opacity .3s; }
.contact-dv:hover .ic { opacity: 1; transform: translateX(-4px); }

.contact-form-wrap { padding: clamp(28px, 3.5vw, 48px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-head { margin-bottom: 26px; }
.form-head h2 { font-size: 1.5rem; }
.form-head p { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.topic-picker { border: 0; padding: 0; margin: 0 0 22px; }
.topic-picker legend { font-size: .88rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: .88rem; font-weight: 600; cursor: pointer; transition: .2s; }
.topic span:hover { border-color: var(--ink-2); }
.topic input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; }
.field label b { color: var(--commercial); font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: #FCFBFD;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input[dir="ltr"] { text-align: left; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.9; }
.field input:hover, .field textarea:hover { border-color: #C9BFD1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.field.has-error input, .field.has-error textarea { border-color: #D14343; background: #FFF8F8; }
.field-error { font-size: .8rem; color: #C53030; font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-note { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.form-note .ic { width: 18px; color: #1C8A48; }

/* ---------- ۱۰. فوتر ---------- */
.site-footer { position: relative; background: #0D0711; color: rgba(255, 255, 255, .62); padding-top: clamp(64px, 8vw, 96px); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 700px; height: 400px; top: -200px; right: -200px; background: radial-gradient(closest-side, rgba(155, 95, 176, .16), transparent); pointer-events: none; }
.footer-spectrum { position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(to left, var(--industrial-bright), var(--commercial-bright), var(--construction-bright)); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.brand--light { color: #fff; }
.footer-brand p { margin-top: 20px; font-size: .92rem; line-height: 2; max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); transition: .25s; }
.footer-social a:hover { background: var(--gold); color: var(--night); border-color: var(--gold); transform: translateY(-2px); }
.footer-social .ic { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-dv { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; line-height: 1.8; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; color: rgba(255, 255, 255, .42); }
.footer-admin:hover { color: #fff; }

/* ---------- انیمیشن‌های تخصصی بنر واحدها ---------- */
.hero-division-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-art { position: relative; width: 100%; max-width: 560px; justify-self: end; margin-block: -40px -20px; }
.art { width: 100%; height: auto; overflow: visible; color: var(--accent-bright); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-thin, .art-thin * { stroke: rgba(255, 255, 255, .22); stroke-width: 1; fill: none; }
.art-line { stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.art-dim path { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.art-dim text { fill: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; direction: ltr; }

/* صنعتی */
.gear path:first-child { fill: color-mix(in srgb, currentColor 16%, transparent); stroke: currentColor; stroke-width: 2; }
.gear circle { stroke: currentColor; stroke-width: 1.6; fill: none; opacity: .7; }
.gear .gear-hub { fill: currentColor; opacity: 1; }
.gear-spoke { stroke: currentColor; stroke-width: 6; opacity: .35; }
.gear--b { color: #fff; }
.gear--b path:first-child { fill: rgba(255, 255, 255, .08); }
.gear--c { color: #F5BE4A; }
.belt { stroke: rgba(255, 255, 255, .5); stroke-width: 2; fill: rgba(255, 255, 255, .04); }
.roller { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.roller-mark { stroke: currentColor; stroke-width: 2; }
.crate { animation: crate 10s linear infinite; }
.crate rect { fill: color-mix(in srgb, currentColor 30%, transparent); stroke: currentColor; stroke-width: 1.8; }
.crate path { stroke: currentColor; stroke-width: 1; opacity: .6; }
@keyframes crate { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(-460px); opacity: 0; } }
.laser-head { fill: rgba(255, 255, 255, .15); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.laser-beam { stroke: #FF8A5B; stroke-width: 3; filter: drop-shadow(0 0 6px #FF8A5B); animation: laser 2.5s ease-in-out infinite; }
.sparks path { stroke: #FFC98A; stroke-width: 2; animation: sparks 2.5s ease-out infinite; transform-box: fill-box; }
@keyframes laser { 0%, 55%, 100% { opacity: 0; } 62%, 88% { opacity: 1; } }
@keyframes sparks { 0%, 60% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; } 90% { opacity: 0; transform: scale(1.4); } 100% { opacity: 0; } }

/* بازرگانی */
.orbit { stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; stroke-dasharray: 4 7; }
.carrier { fill: currentColor; stroke: none; filter: drop-shadow(0 0 6px currentColor); }
.carrier path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.carrier--2 { fill: #fff; }
.globe-edge { stroke: color-mix(in srgb, currentColor 70%, transparent); stroke-width: 1.6; }
.globe-grid ellipse { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.globe-grid .equator { stroke: rgba(255, 255, 255, .32); }
.meridian { transform-box: fill-box; transform-origin: center; animation: meridian 12s ease-in-out infinite; }
@keyframes meridian { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.route { stroke: color-mix(in srgb, currentColor 40%, transparent); stroke-width: 1.4; }
.route-flow { stroke: #fff; stroke-width: 1.8; stroke-dasharray: 6 14; animation: routeFlow 1.6s linear infinite; opacity: .5; }
@keyframes routeFlow { to { stroke-dashoffset: -40; } }
.route-dot { fill: #fff; filter: drop-shadow(0 0 5px currentColor); }
.pt { fill: currentColor; }
.pt-pulse, .hub-pulse { stroke: currentColor; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ptPulse 2.4s ease-out infinite; }
.hub { fill: #fff; stroke: currentColor; stroke-width: 3; }
.hub-pulse { stroke: #fff; }
@keyframes ptPulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }
.pt-code { fill: rgba(255, 255, 255, .75); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; direction: ltr; }

/* ساختمانی */
.ground { stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.crane path { stroke: rgba(255, 255, 255, .78); stroke-width: 2; }
.crane .lattice { stroke-width: 1; opacity: .55; }
.crane .tie { stroke-width: 1; opacity: .45; }
.weight { fill: rgba(255, 255, 255, .25); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.cab { fill: color-mix(in srgb, currentColor 40%, transparent); stroke: currentColor; stroke-width: 1.5; }
.beacon { fill: #FF5A5A; filter: drop-shadow(0 0 6px #FF5A5A); animation: beacon 1.6s steps(1) infinite; }
@keyframes beacon { 50% { opacity: .15; } }
.trolley { animation: trolley 12s ease-in-out infinite; }
@keyframes trolley { 0%, 12% { transform: translateX(340px); } 45%, 60% { transform: translateX(468px); } 92%, 100% { transform: translateX(340px); } }
.trolley-body { fill: currentColor; }
.cable { stroke: rgba(255, 255, 255, .6) !important; stroke-width: 1 !important; }
.cable-main { transform-box: fill-box; transform-origin: top; animation: cable 6s ease-in-out infinite; }
.load { animation: load 6s ease-in-out infinite; }
@keyframes cable { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes load { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-57px); } }
.beam { fill: color-mix(in srgb, currentColor 55%, transparent); stroke: currentColor; stroke-width: 1.5; }
.beam-web { stroke: rgba(0, 0, 0, .35) !important; stroke-width: 1 !important; }
.slab { stroke: rgba(255, 255, 255, .6); stroke-width: 1.6; fill: rgba(255, 255, 255, .04); }
.col { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.win { fill: currentColor; stroke: none; opacity: .12; animation: winGlow 5s ease-in-out var(--wd, 0s) infinite alternate; }
@keyframes winGlow { 0%, 40% { opacity: .1; } 100% { opacity: .75; } }

/* نشان‌های کوچک انتهای پرتوهای منشور */
.emb-bg { fill: rgba(20, 10, 26, .82); }
.emb-ring { fill: none; stroke-width: 1.6; opacity: .75; }
.emb-pulse { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.prism-figure.is-visible .emb-pulse { animation: embPulse 2.8s ease-out 2.6s infinite; }
@keyframes embPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.45); opacity: 0; } }
.pb-emb { opacity: 0; transition: opacity .8s 2.2s; }
.prism-figure.is-visible .pb-emb { opacity: 1; }
.pb-link:hover .emb-ring { opacity: 1; stroke-width: 2.4; }
.emb-gear path { fill: color-mix(in srgb, currentColor 22%, transparent); stroke: currentColor; stroke-width: 1.4; }
.emb-gear circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.emb-gear--2 { color: #fff; }
.emb-globe { fill: color-mix(in srgb, currentColor 18%, transparent); stroke: currentColor; stroke-width: 1.4; }
.emb-grid ellipse { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: .9; }
.emb-orbit { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1; stroke-dasharray: 2 3; }
.emb-dot { fill: #fff; filter: drop-shadow(0 0 3px currentColor); }
.emb-crane, .emb-tie { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; }
.emb-tie { stroke-width: .8; opacity: .6; }
.emb-trolley { animation: embTrolley 4s ease-in-out infinite; }
@keyframes embTrolley { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(16px); } }
.emb-cable { stroke: rgba(255, 255, 255, .6); stroke-width: .8; }
.emb-beam { fill: currentColor; }
.emb-floor { fill: color-mix(in srgb, currentColor 35%, transparent); stroke: currentColor; stroke-width: 1; opacity: 0; animation: embFloor 6s ease-out infinite; }
.emb-floor-1 { animation-delay: .6s; } .emb-floor-2 { animation-delay: 1.2s; }
@keyframes embFloor { 0% { opacity: 0; transform: translateY(-5px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.emb-ground { stroke: rgba(255, 255, 255, .5); stroke-width: 1; fill: none; }

/* ---------- جلوه‌های پس‌زمینه (خطوط نوری و هاله‌ها) ---------- */
.site-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(var(--fx-rgb), .10), transparent 62%); animation: fxDrift 30s ease-in-out infinite alternate; will-change: transform; }
.fx-glow--1 { top: -24vmax; right: -18vmax; }
.fx-glow--2 { top: 38%; left: -26vmax; background: radial-gradient(circle, rgba(var(--fx-rgb), .08), transparent 62%); animation-duration: 36s; animation-delay: -12s; }
.fx-glow--3 { bottom: -30vmax; right: 18%; background: radial-gradient(circle, rgba(217, 178, 124, .07), transparent 62%); animation-duration: 42s; animation-delay: -22s; }
@keyframes fxDrift { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.12); } }

.fx-line { position: absolute; left: -30%; width: 160%; height: 1px; transform: rotate(var(--r, -6deg)); background: linear-gradient(90deg, transparent 0%, rgba(var(--fx-rgb), .09) 25%, rgba(var(--fx-rgb), .15) 50%, rgba(var(--fx-rgb), .09) 75%, transparent 100%); }
.fx-line::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 260px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--fx-rgb), .6), rgba(255, 214, 160, .85), transparent);
  box-shadow: 0 0 14px rgba(var(--fx-rgb), .45);
  transform: translateX(-280px); animation: fxGlint var(--t, 16s) linear var(--dl, 0s) infinite; will-change: transform;
}
@keyframes fxGlint { to { transform: translateX(165vw); } }
.fx-line--1 { top: 16%; --r: -7deg; --t: 17s; --dl: -3s; }
.fx-line--2 { top: 44%; --r: 5deg; --t: 22s; --dl: -12s; }
.fx-line--3 { top: 69%; --r: -3deg; --t: 19s; --dl: -7s; }
.fx-line--4 { top: 91%; --r: 9deg; --t: 26s; --dl: -18s; }

/* خطوط نوری محلی در بخش‌های تیره */
.fx-local { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; --fx-rgb: 255, 255, 255; }
.fx-local .fx-line { background: linear-gradient(90deg, transparent, rgba(var(--fx-rgb), .06), rgba(var(--fx-rgb), .1), rgba(var(--fx-rgb), .06), transparent); }
.fx-local .fx-line::after { background: linear-gradient(90deg, transparent, var(--accent-bright), #fff, transparent); box-shadow: 0 0 16px var(--accent-bright); opacity: .75; }
.section--dark > .container, .site-footer > .container { position: relative; z-index: 1; }

/* هاله بنفش ملایم ثابت روی برخی بخش‌ها */
.glow-a, .glow-b { position: relative; isolation: isolate; overflow-x: clip; }
.glow-a::before, .glow-b::before { content: ""; position: absolute; z-index: -1; width: min(760px, 90vw); height: min(760px, 90vw); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(155, 95, 176, .13), transparent); }
.glow-a::before { top: -180px; left: -240px; }
.glow-b::before { bottom: -220px; right: -260px; }

/* ---------- چیدمان چپ‌به‌راست (انگلیسی) ---------- */
html[dir="ltr"] .ic-dir { scale: -1 1; }
html[dir="ltr"] .skip-link { right: auto; left: 12px; }
html[dir="ltr"] .eyebrow::before { background: linear-gradient(to right, var(--accent), rgba(var(--accent-rgb), .15)); }
html[dir="ltr"] .eyebrow--light::before { background: linear-gradient(to right, var(--accent-bright), transparent); }
html[dir="ltr"] .scroll-progress span { transform-origin: left; }
html[dir="ltr"] .to-top { left: auto; right: 24px; }
html[dir="ltr"] .hero-media::after { background: linear-gradient(to right, rgba(10, 5, 14, .9) 0%, rgba(10, 5, 14, .62) 50%, rgba(10, 5, 14, .35) 100%), linear-gradient(to top, rgba(10, 5, 14, .85) 0%, transparent 45%); }
html[dir="ltr"] .hero--division .hero-media::after { background: linear-gradient(to right, rgba(var(--accent-rgb), .55) 0%, rgba(8, 5, 10, .55) 60%, rgba(8, 5, 10, .4) 100%), linear-gradient(to top, rgba(8, 5, 10, .9) 0%, transparent 50%), linear-gradient(to right, rgba(8, 5, 10, .55), rgba(8, 5, 10, .2)); }
html[dir="ltr"] .hero-pattern--industrial { mask-image: linear-gradient(to right, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to right, #000 10%, transparent 85%); }
html[dir="ltr"] .hero-pattern--construction { mask-image: linear-gradient(to right, transparent 5%, #000 55%); -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 55%); }
html[dir="ltr"] .hero-stat + .hero-stat::before { right: auto; left: 0; }
html[dir="ltr"] .hero-stat:first-child { padding-right: 24px; padding-left: 0; }
html[dir="ltr"] .hero-watermark { left: auto; right: -1vw; }
html[dir="ltr"] .hero-lines { mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 20%, transparent 75%); }
/* منشور: نور از سمت متن (چپ) وارد می‌شود؛ نوشته‌ها دوباره برگردانده می‌شوند */
html[dir="ltr"] .hero-prism svg { transform: scaleX(-1); }
html[dir="ltr"] .hero-prism .prism-label { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
html[dir="ltr"] .hero-prism-glow { inset: 10% 20% 10% 5%; }
html[lang="en"] .prism-label { font-size: 22px; }
@media (max-width: 720px) { html[lang="en"] .hero-prism { padding-inline: 22px; } }
html[dir="ltr"] .btn:hover .ic:last-child, html[dir="ltr"] .svc-cta:hover .ic, html[dir="ltr"] .sc-more:hover .ic,
html[dir="ltr"] .sibling:hover .sibling-arrow, html[dir="ltr"] .contact-dv:hover .ic { transform: translateX(4px); }
html[dir="ltr"] .dv-card:hover .dv-card-arrow { transform: translateX(6px); }
html[dir="ltr"] .svc-tab-arrow { transform: translateX(-8px); }
html[dir="ltr"] .svc-tab.is-active .svc-tab-arrow { transform: none; }
html[dir="ltr"] .svc-progress i { transform-origin: left; }
html[dir="ltr"] .flow-line { background: linear-gradient(to right, var(--commercial-bright), var(--industrial-bright)); transform-origin: left; }
html[dir="ltr"] .flow-link--2 .flow-line { background: linear-gradient(to right, var(--industrial-bright), var(--construction-bright)); }
html[dir="ltr"] .flow-spark { right: auto; left: 0; background: linear-gradient(to right, transparent, var(--commercial-bright)); animation-name: sparkLtr; }
html[dir="ltr"] .flow-link--2 .flow-spark { background: linear-gradient(to right, transparent, var(--industrial-bright)); }
@keyframes sparkLtr { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
html[dir="ltr"] .flow-arrow { left: auto; right: -6px; }
html[dir="ltr"] .gx-zoom { left: auto; right: 12px; }
html[dir="ltr"] .service::before, html[dir="ltr"] .why-item::before { transform-origin: left; }
html[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
@media (max-width: 1024px) {
  html[dir="ltr"] .hero-stat:nth-child(3)::before { display: none; }
  html[dir="ltr"] .hero-stat:nth-child(3) { padding-left: 0; }
}
@media (max-width: 720px) {
  html[dir="ltr"] .to-top { right: 16px; }
  html[dir="ltr"] .process::before { right: auto; left: 31px; }
  html[dir="ltr"] .hero-stat { padding: 20px 14px 4px; }
  html[dir="ltr"] .hero-stat:nth-child(odd) { padding-left: 0; }
}

/* ---------- ۱۱. انیمیشن‌های ورود ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero [data-reveal] { transform: translateY(18px); }

/* ---------- ۱۲. واکنش‌گرایی ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav-link { padding-inline: 11px; }
}
@media (max-width: 1120px) {
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { margin-inline-start: auto; }

  .hero-layout, .hero--home .hero-layout, .hero-division-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 460px; margin: 8px auto -10px; }
  .hero-prism { justify-self: center; max-width: 520px; margin: 8px auto 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3)::before { display: none; }
  .hero-stat:nth-child(3) { padding-right: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }

  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split p { justify-self: start; }

  .dv-grid { grid-template-columns: 1fr 1fr; }
  .dv-card--featured { grid-column: 1 / -1; grid-row: auto; min-height: 480px; }

  .network, .growth { grid-template-columns: 1fr; }
  .gallery-bento { grid-auto-rows: 170px; }
  .sc-grid { grid-auto-rows: 200px; }
  .brief { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); }
  .brief-side { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .brief-actions { padding-top: 0; border-top: 0; }
  .why { grid-template-columns: 1fr; }
  .why-head { position: static; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-head { grid-column: 1 / -1; }
  .specs { grid-template-columns: repeat(2, 1fr); }

  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before { display: none; }

  .cta { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero--home, .hero--division { min-height: auto; }
  .hero h1 br { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stat { padding: 20px 14px 4px; }
  .stat-label { font-size: .8rem; }
  .hero-watermark { display: none; }

  .dv-grid { grid-template-columns: 1fr; }
  .dv-card, .dv-card--featured { min-height: 400px; }
  .hero-prism { max-width: 400px; margin-top: 0; }
  .hero-art { max-width: 340px; }

  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .flow-link { width: 2px; height: 44px; margin: 8px 0; }
  .flow-line { inset: 0; height: auto; width: 2px; top: 0; background: linear-gradient(to bottom, var(--commercial-bright), var(--industrial-bright)); transform: scaleY(0); transform-origin: top; }
  .flow-link--2 .flow-line { background: linear-gradient(to bottom, var(--industrial-bright), var(--construction-bright)); }
  .flow-link.is-visible .flow-line { transform: scaleY(1); }
  .flow-spark, .flow-arrow { display: none; }
  .flow-icon { width: 70px; height: 70px; }
  .flow-icon .ic { width: 54px; height: 54px; }

  .brief { grid-template-columns: 1fr; }
  .brief-media { min-height: 0; aspect-ratio: 16 / 10; }
  .brief-side { flex-direction: column; align-items: stretch; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { padding: 20px 16px; }

  .svc { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .svc-tab-text { display: block; max-height: 0; overflow: hidden; padding: 0 44px 0 12px; font-size: .9rem; color: var(--muted); line-height: 1.9; transition: max-height .4s var(--ease), padding .4s; }
  .svc-tab.is-active + .svc-tab-text { max-height: 220px; padding-bottom: 14px; }
  .specs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spec { padding: 20px 16px; }

  .process { grid-template-columns: 1fr !important; row-gap: 28px; }
  .process::before { display: block; top: 32px; bottom: 32px; right: 31px; left: auto; width: 2px; height: auto; background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), .15)); }
  .process-step { flex-direction: row; align-items: flex-start; text-align: start; gap: 20px; }
  .process-num { flex-shrink: 0; }
  .process-step p { margin: 0; max-width: none; }
  .process-step h3 { margin-top: 12px; }

  .gallery-bento, .gallery-bento--3, .gallery-bento--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .gallery-bento--1, .gallery-bento--2 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .gallery-bento .gx--lg { grid-column: 1 / -1; grid-row: span 2; }
  .gallery-empty { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .gx-title { inset-inline: 8px; bottom: 8px; }
  .gx-title span { font-size: .76rem; padding: 5px 10px; border-radius: 9px; }
  .gx-zoom { display: none; }
  .sc-tabs { width: 100%; }
  .sc-tab { flex: 1; justify-content: center; padding-inline: 8px; }
  .sc-tab b { display: none; }
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 10px; }
  .gallery-full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-others > span { width: 100%; text-align: center; }

  .siblings { grid-template-columns: 1fr; }
  .sibling { padding: 20px; gap: 16px; }
  .sibling-icon { width: 54px; height: 54px; border-radius: 16px; }
  .sibling-text span { display: none; }

  .growth-chart { height: 280px; padding: 16px 12px 0; }
  .partner-list { grid-template-columns: 1fr 1fr; }

  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .to-top { bottom: 16px; left: 16px; width: 44px; height: 44px; }
}

@media (max-width: 400px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: .98rem; }
  .specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ic-draw > * { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .fx-line::after { display: none; }
}

/* لوگوی بارگذاری‌شده از پنل: ارتفاع ثابت، عرض متناسب با تصویر */
.logo-mark.logo-img { width: auto; max-width: 150px; object-fit: contain; }
.brief-placeholder .brief-logo.logo-img { max-width: 240px; }

/* پنجره جزئیات در موبایل و تبلت: تصویر بالا، متن زیر آن */
@media (max-width: 760px) {
  .lightbox { padding: 12px; align-items: end; }
  .lb-dialog { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 24px); border-radius: var(--r-lg); }
  .lb-media { padding: 16px 16px 14px; }
  .lb-media::after { inset-block: auto 0; inset-inline: 0; width: auto; height: 1px; }
  .lb-img img { max-height: 36vh; }
  .lb-info { padding: 20px 20px 18px; gap: 12px; }
  .lb-desc { font-size: .93rem; line-height: 1.95; }
  .lb-foot { position: sticky; bottom: -18px; margin-bottom: -18px; padding-bottom: 18px; background: #fff; }
  .lb-cta { flex: 1; padding-inline: 14px; }
}
