/* =========================================================================
   فراتار | IranTopWeb — استایل صفحه اول
   ۱. فونت    ۲. توکن‌ها    ۳. پایه    ۴. اجزای مشترک
   ۵. هدر     ۶. بخش‌ها     ۷. فوتر     ۸. واکنش‌گرایی و حرکت
   ========================================================================= */

/* ۱. فونت ---------------------------------------------------------------- */
@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ۲. توکن‌های طراحی ------------------------------------------------------- */
:root {
  /* رنگ‌ها، برگرفته از خود لوگو */
  --c-navy-900: #06162f; /* رنگ تیره مرجع برند */
  --c-navy-800: #0a2145;
  --c-navy-700: #123566;
  --c-blue-600: #0f5fa8;
  --c-blue-500: #1a7ec4;
  --c-cyan-500: #00b3d8; /* فیروزه‌ای نمونه‌برداری‌شده از لوگو */
  --c-cyan-400: #3dc8e6;
  --c-cyan-700: #06788f; /* نسخه تیره‌تر فیروزه‌ای، برای متن روی زمینه روشن */
  --c-cyan-050: #e6f7fc;

  --c-bg: #fbfaf9;
  --c-bg-alt: #f4f2ed;
  --c-surface: #ffffff;
  --c-line: #e3e0d9;
  --c-line-soft: #eeece7;
  --c-text: #0b1a33;
  --c-muted: #54607a;

  /* تایپوگرافی */
  --font-base: 'Estedad', 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --fs-hero: clamp(2rem, 1.15rem + 3.7vw, 3.9rem);
  --fs-h2: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --lh-tight: 1.45;
  --lh-body: 2.05;

  /* فاصله و شکل */
  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section-y: clamp(3.25rem, 6vw, 6rem);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ۳. پایه ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* هنگام پرش به لنگرها، عنوان بخش زیر هدر چسبان پنهان نشود */
:target,
section[id] {
  scroll-margin-top: 5.5rem;
}

/* قفل اسکرول زمینه هنگام باز بودن منوی موبایل */
html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--c-cyan-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--c-navy-900);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* متن لاتین درون متن فارسی */
.ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ۴. اجزای مشترک --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.35rem 1.1rem;
  font-size: var(--fs-sm);
}

.btn--primary {
  background: var(--c-navy-900);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-navy-700);
}

.btn--ghost {
  border-color: var(--c-line);
  color: var(--c-navy-900);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--c-navy-900);
  background: var(--c-surface);
}

.btn--accent {
  background: var(--c-cyan-500);
  color: var(--c-navy-900);
}

.btn--accent:hover {
  background: var(--c-cyan-400);
}

.arrow {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.22s var(--ease);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-blue-600);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.link-arrow:hover .arrow {
  transform: translateX(-4px);
}

.link-arrow--strong {
  color: var(--c-navy-900);
  font-size: var(--fs-body);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.6;
}

.section-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan-500);
  flex: none;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  max-width: 22ch;
}

.section-head {
  margin-bottom: clamp(1.9rem, 3.4vw, 2.9rem);
}

.section-lead {
  margin-top: 0.85rem;
  max-width: 46ch;
  color: var(--c-muted);
  font-size: var(--fs-lead);
  line-height: 1.9;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.section-note {
  max-width: 34ch;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

/* ۵. هدر ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 4.5rem;
}

.brand {
  flex: none;
  display: block;
}

.brand__logo {
  width: auto;
  height: clamp(1.65rem, 1.35rem + 0.9vw, 2.15rem);
}

.nav {
  flex: 1 1 auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-cyan-500);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.25s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-current::after {
  transform: scaleX(1);
}

.site-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-navy-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ۶. بخش‌ها -------------------------------------------------------------- */

/* بخش آغازین */
.hero {
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2.75rem, 5vw, 4.5rem);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.9;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.38;
  max-width: 17ch;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 52ch;
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

.hero__lead strong {
  color: var(--c-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 33rem);
}

.weave {
  width: 100%;
  height: auto;
}

.weave__pulse {
  stroke-dasharray: 26 1200;
  stroke-dashoffset: 0;
  opacity: 0.9;
  animation: weave-travel 16s linear infinite;
}

.weave__halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: weave-halo 4.5s var(--ease) infinite;
}

@keyframes weave-halo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.45;
  }
}

@keyframes weave-travel {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1226;
  }
}

/* نوار اعتبار */
.trust {
  border-block: 1px solid var(--c-line);
  background: var(--c-surface);
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.15rem;
}

@media (min-width: 48em) {
  .trust__list {
    justify-content: space-between;
  }
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy-800);
  line-height: 1.9;
}

.trust__mark {
  width: 18px;
  height: 2px;
  flex: none;
  background: var(--c-cyan-500);
}

/* رویکرد */
.approach {
  padding-block: var(--section-y);
}

.approach__inner {
  display: grid;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.approach__statement {
  font-size: clamp(1.25rem, 0.95rem + 1.35vw, 2rem);
  font-weight: 700;
  line-height: 1.75;
  max-width: 26ch;
  text-wrap: balance;
}

.approach__para {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--c-muted);
}

/* حوزه‌های فعالیت */
.capabilities {
  padding-block: var(--section-y);
  border-top: 1px solid var(--c-line-soft);
}

.cap-list {
  border-top: 1px solid var(--c-line);
}

.cap + .cap {
  border-top: 1px solid var(--c-line-soft);
}

.cap-list + .cap-more {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.cap {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
}

.cap__num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-cyan-700);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.cap__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.6;
}

.cap__text {
  margin-top: 0.2rem;
  max-width: 62ch;
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

/* تجربه‌های منتخب */
.experiences {
  padding-block: var(--section-y);
  background: var(--c-bg-alt);
  border-block: 1px solid var(--c-line);
}

.exp-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.exp {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.exp__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.exp__num {
  color: var(--c-cyan-700);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
}

.exp__category {
  padding: 0.05rem 0.65rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.85;
  white-space: nowrap;
}

.exp__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
}

.exp__intro {
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1.85;
}

.exp__role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-line-soft);
  font-size: var(--fs-xs);
  line-height: 1.9;
}

.exp__role-label {
  color: var(--c-muted);
  font-weight: 600;
}

.exp__role-value {
  color: var(--c-navy-800);
  font-weight: 700;
}

.exp__story {
  margin-top: 0.6rem;
}

/* برندها */
.brands {
  padding-block: var(--section-y);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--c-line);
  border-inline-start: 1px solid var(--c-line);
}

.brand-item {
  border-bottom: 1px solid var(--c-line);
  border-inline-end: 1px solid var(--c-line);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.brand-item__link {
  display: block;
}

.brand-item__link:hover .brand-item__name {
  color: var(--c-blue-600);
}

.brand-item__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.8;
  transition: color 0.2s var(--ease);
}

.brand-item__note {
  display: block;
  margin-top: 0.15rem;
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* مشتریان */
.clients {
  padding-block: var(--section-y);
  border-top: 1px solid var(--c-line-soft);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.client-item img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.75;
}

/* دعوت پایانی */
.cta {
  padding-block: var(--section-y);
}

.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border-radius: var(--r-lg);
  background: var(--c-navy-900);
  color: #fff;
}

.cta__threads {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 60%;
  opacity: 0.85;
  pointer-events: none;
}

.cta__threads svg {
  width: 100%;
  height: 100%;
}

.cta__title,
.cta__body,
.cta .btn {
  position: relative;
}

.cta__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  max-width: 24ch;
  text-wrap: balance;
}

.cta__body {
  margin-top: 1.1rem;
  max-width: 52ch;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lead);
}

.cta .btn {
  margin-top: 1.6rem;
}

.cta .btn:focus-visible {
  outline-color: #fff;
}

/* ۷. فوتر ---------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(2rem, 3.5vw, 2.75rem) 1.25rem;
  background: var(--c-navy-900);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.footer__logo {
  width: auto;
  height: 1.75rem;
}

.footer__name {
  margin-top: 0.85rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.9;
}

.footer__tagline {
  margin-top: 0.15rem;
  color: var(--c-cyan-400);
  font-weight: 600;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.footer__links a,
.footer__contact a {
  display: inline-block;
  padding-block: 0.2rem;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--c-cyan-400);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__legal {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-xs);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer :focus-visible {
  outline-color: #fff;
}

/* ۸. واکنش‌گرایی --------------------------------------------------------- */
@media (min-width: 48em) {
  .exp-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 62em) {
  .hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .approach__inner {
    grid-template-columns: minmax(9rem, 14rem) 1fr;
  }
}

/* گزینه «شروع گفتگو» فقط داخل منوی موبایل دیده می‌شود */
.nav__cta {
  display: none;
}

.nav__cta .btn {
  width: 100%;
}

/* منوی موبایل */
@media (max-width: 61.99em) {
  .nav__cta {
    display: block;
    margin-top: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 18px 30px -24px rgba(6, 22, 47, 0.45);
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding-block: 0.8rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .nav__list li:last-child .nav__link {
    border-bottom: 0;
  }

  .hero__art {
    width: min(100%, 26rem);
  }

  .nav__link::after {
    display: none;
  }
}

@media (max-width: 26em) {
  .site-header__cta {
    display: none;
  }
}

@media (max-width: 34em) {
  .cap {
    grid-template-columns: 2.5rem 1fr;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* حرکت محدود */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .weave__pulse {
    display: none;
  }
}

/* ورود نرم عناصر؛ فقط وقتی جاوااسکریپت فعال است */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ۹. صفحات داخلی --------------------------------------------------------- */
.breadcrumb {
  padding-top: 1rem;
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li + li::before {
  content: '/';
  margin-inline-end: 0.35rem;
  color: var(--c-line);
}

.breadcrumb a:hover { color: var(--c-blue-600); }

.page-hero {
  padding-block: clamp(2.25rem, 4.5vw, 4.5rem);
  border-bottom: 1px solid var(--c-line-soft);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.page-hero__title {
  max-width: 18ch;
  color: var(--c-navy-900);
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.55rem);
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 59ch;
  margin-top: 1.25rem;
  color: var(--c-muted);
  font-size: var(--fs-lead);
  line-height: 2;
}

.page-art { width: min(100%, 35rem); justify-self: center; }
.page-art svg { width: 100%; height: auto; }
.page-art__grid path { stroke: var(--c-navy-700); stroke-width: 1; opacity: 0.07; }
.page-art__paths path { stroke: var(--c-navy-700); stroke-width: 1.5; opacity: 0.24; stroke-linecap: round; }
.page-art__paths path.is-active { stroke: var(--c-cyan-500); stroke-width: 2.5; opacity: 0.9; stroke-dasharray: 20 900; animation: route-pulse 15s linear infinite; }
.page-art__nodes circle { fill: var(--c-bg); stroke: var(--c-navy-700); stroke-width: 2; }
.page-art__nodes circle.is-active { fill: var(--c-cyan-500); stroke: var(--c-bg); stroke-width: 5; }

@keyframes route-pulse { to { stroke-dashoffset: -920; } }

.content-section { padding-block: var(--section-y); }
.content-section--tint { background: var(--c-bg-alt); border-block: 1px solid var(--c-line); }
.content-section--line { border-block: 1px solid var(--c-line-soft); }
.content-section--navy { background: var(--c-navy-900); color: #fff; }
.content-section--navy .section-label { color: rgba(255,255,255,.62); }
.content-section--navy .section-title { color: #fff; }
.content-section--navy .section-copy { color: rgba(255,255,255,.76); }

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.prose { max-width: 66ch; }
.prose p, .section-copy { color: var(--c-muted); line-height: 2.15; }
.prose p + p { margin-top: 1.15rem; }
.pull-note {
  max-width: 22rem;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-inline-start: 3px solid var(--c-cyan-500);
  color: var(--c-navy-800);
  font-weight: 700;
}

.timeline { position: relative; margin-top: clamp(2rem, 4vw, 3.5rem); }
.timeline::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 1.35rem; width: 1px; background: var(--c-line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1rem 1.8rem; }
.timeline__num { z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-bg-alt); color: var(--c-cyan-700); font-weight: 700; }
.timeline h3 { font-size: var(--fs-h3); }
.timeline p { max-width: 62ch; margin-top: .35rem; color: var(--c-muted); }

.name-story { display: grid; grid-template-columns: minmax(14rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.name-story__word { color: var(--c-navy-900); font-size: clamp(4rem, 10vw, 8.5rem); font-weight: 850; line-height: 1; opacity: .08; }
.name-story .section-copy { max-width: 64ch; margin-top: 1.1rem; }

.value-list { margin-top: 2.5rem; border-top: 1px solid var(--c-line); }
.value-row { display: grid; grid-template-columns: 4rem minmax(12rem, .65fr) minmax(0, 1.35fr); gap: 1.25rem 2rem; align-items: baseline; padding-block: 1.5rem; border-bottom: 1px solid var(--c-line); }
.value-row > span { color: var(--c-cyan-700); font-size: 1.35rem; font-weight: 700; }
.value-row h3 { font-size: var(--fs-h3); }
.value-row p { max-width: 57ch; margin-top: .25rem; color: var(--c-muted); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; border-block: 1px solid rgba(255,255,255,.16); }
.process-step { padding: 1.4rem; border-inline-end: 1px solid rgba(255,255,255,.16); }
.process-step:first-child { border-inline-start: 1px solid rgba(255,255,255,.16); }
.process-step > span { color: var(--c-cyan-400); font-size: var(--fs-sm); font-weight: 700; }
.process-step h3 { margin-top: 1.75rem; color: #fff; }
.process-step p { margin-top: .55rem; color: rgba(255,255,255,.68); font-size: var(--fs-sm); }

.cta--inner { border-top: 1px solid var(--c-line-soft); }
.cta--inner .cta__threads path { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; }
.cta--inner .cta__threads path.is-active { stroke: var(--c-cyan-500); stroke-width: 2; opacity: .6; }

/* حوزه‌ها */
.capabilities-detail { padding-top: 0; }
.capability-detail { display: grid; grid-template-columns: 8rem minmax(0, 1fr) minmax(14rem, .42fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--c-line); }
.capability-detail__rail > span { color: var(--c-cyan-700); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }
.capability-detail__rail p { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.capability-detail__main h2 { max-width: 22ch; font-size: var(--fs-h2); }
.capability-detail__lead { max-width: 66ch; margin-top: 1rem; color: var(--c-muted); line-height: 2; }
.capability-detail__main h3 { margin-top: 2rem; font-size: 1rem; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem 1.5rem; margin-top: 1rem; }
.check-list li { position: relative; padding-inline-start: 1.25rem; color: var(--c-navy-800); font-size: var(--fs-sm); }
.check-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8rem; width: .55rem; height: 2px; background: var(--c-cyan-500); }
.capability-detail__note { align-self: end; padding: 1.1rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-muted); font-size: var(--fs-sm); }
.collab-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; border-top: 1px solid var(--c-line); }
.collab-list li { padding: 1.35rem 0; border-bottom: 1px solid var(--c-line); }
.collab-list li:nth-child(odd) { padding-inline-end: 2rem; }
.collab-list li:nth-child(even) { padding-inline-start: 2rem; border-inline-start: 1px solid var(--c-line); }
.collab-list h3 { font-size: var(--fs-h3); }
.collab-list p { margin-top: .3rem; color: var(--c-muted); font-size: var(--fs-sm); }

/* تجربه‌ها */
.role-guide { border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.role-guide ul { display: grid; grid-template-columns: repeat(3,1fr); }
.role-guide li { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem; border-inline-end: 1px solid var(--c-line); }
.role-guide li:first-child { border-inline-start: 1px solid var(--c-line); }
.role-guide strong { color: var(--c-navy-800); }
.role-guide span { color: var(--c-muted); font-size: var(--fs-xs); }
.experience-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.experience-card { display: flex; flex-direction: column; min-height: 24rem; padding: 1.6rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.experience-card__meta { display: flex; justify-content: space-between; color: var(--c-muted); font-size: var(--fs-xs); }
.experience-card__meta span:first-child { color: var(--c-cyan-700); font-weight: 700; }
.experience-card h2 { margin-top: 2.4rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.experience-card > p { margin-top: .65rem; color: var(--c-muted); }
.experience-card dl { margin-top: auto; padding-block: 1.2rem; border-top: 1px solid var(--c-line-soft); font-size: var(--fs-sm); }
.experience-card dt { color: var(--c-muted); }
.experience-card dd { color: var(--c-navy-800); font-weight: 700; }

.case-head { padding-block: clamp(2.5rem, 5vw, 5rem); border-bottom: 1px solid var(--c-line); }
.case-head__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 4rem; align-items: center; }
.case-head__category { color: var(--c-cyan-700); font-size: var(--fs-sm); font-weight: 700; }
.case-head h1 { max-width: 19ch; margin-top: .75rem; font-size: clamp(2rem, 1.4rem + 2.7vw, 3.7rem); font-weight: 800; }
.case-head__intro { max-width: 54ch; margin-top: 1rem; color: var(--c-muted); font-size: var(--fs-lead); }
.case-head__role { display: flex; gap: .7rem; margin-top: 1.5rem; font-size: var(--fs-sm); }
.case-head__role dt { color: var(--c-muted); }
.case-head__role dd { color: var(--c-navy-800); font-weight: 700; }
.journey-art { margin-block: 2rem 1rem; }
.journey-art svg { width: 100%; }
.journey-art path { fill: none; stroke: var(--c-line); stroke-width: 2; }
.journey-art .journey-art__pulse { stroke: var(--c-cyan-500); stroke-dasharray: 22 900; animation: route-pulse 15s linear infinite; }
.journey-art circle { fill: var(--c-bg); stroke: var(--c-navy-700); stroke-width: 2; }
.journey-art circle.is-active { fill: var(--c-cyan-500); stroke: var(--c-bg); stroke-width: 5; }
.journey-art__labels { display: flex; justify-content: space-between; margin-top: -1rem; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; }
.case-body { max-width: 980px; padding-block: 2rem var(--section-y); }
.case-section { display: grid; grid-template-columns: 3.5rem minmax(0,1fr); gap: 1rem 2rem; padding-block: 2rem; border-bottom: 1px solid var(--c-line); }
.case-section > span { color: var(--c-cyan-700); font-size: 1.25rem; font-weight: 700; }
.case-section h2 { font-size: var(--fs-h3); }
.case-section p { max-width: 67ch; margin-top: .65rem; color: var(--c-muted); line-height: 2.1; }
.scope-note { margin-block: 2.5rem; padding: 1.25rem 1.4rem; border-inline-start: 3px solid var(--c-cyan-500); background: var(--c-cyan-050); }
.scope-note p { margin-top: .3rem; color: var(--c-muted); font-size: var(--fs-sm); }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.pager__item { display: flex; flex-direction: column; padding: .8rem; border-radius: var(--r-sm); }
.pager__item:last-child { text-align: end; }
.pager__item:hover { background: var(--c-bg-alt); }
.pager__item span { color: var(--c-muted); font-size: var(--fs-xs); }
.pager__item strong { font-size: var(--fs-sm); }
.pager__back { display: inline-flex; align-items: center; gap: .35rem; color: var(--c-blue-600); font-size: var(--fs-sm); font-weight: 700; }

/* برندها */
.brand-catalog { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--c-line); border-inline-start: 1px solid var(--c-line); }
.brand-card { min-height: 17rem; padding: 1.6rem; border-inline-end: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.brand-card > a { display: block; height: 100%; }
.brand-card__num { float: inline-end; color: var(--c-cyan-700); font-weight: 700; }
.brand-card__field { display: block; color: var(--c-muted); font-size: var(--fs-xs); }
.brand-card strong { display: block; margin-top: 2.8rem; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.brand-card p { max-width: 38ch; margin-top: .5rem; color: var(--c-muted); }
.brand-card .link-arrow { margin-top: 1.5rem; }

/* روایت‌ها */
.stories-list { padding-top: 1rem; }
.story-row { display: grid; grid-template-columns: 3rem 8rem minmax(0,1fr) 2.5rem; gap: 1rem 1.5rem; align-items: start; padding-block: 2rem; border-bottom: 1px solid var(--c-line); }
.story-row__num { color: var(--c-cyan-700); font-weight: 700; }
.story-row__category { color: var(--c-muted); font-size: var(--fs-sm); }
.story-row h2 { font-size: var(--fs-h3); }
.story-row h2 a:hover { color: var(--c-blue-600); }
.story-row div > p { max-width: 60ch; margin-top: .45rem; color: var(--c-muted); }
.story-row__arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--c-line); border-radius: 50%; color: var(--c-blue-600); }

.article-head { max-width: 980px; padding-block: clamp(3rem, 7vw, 6rem); text-align: center; }
.article-head > p:first-child { color: var(--c-cyan-700); font-size: var(--fs-sm); font-weight: 700; }
.article-head h1 { max-width: 18ch; margin: .8rem auto 0; font-size: clamp(2rem, 1.3rem + 3vw, 4rem); font-weight: 800; }
.article-head__line { width: 1px; height: 4rem; margin: 1.5rem auto; background: linear-gradient(var(--c-cyan-500), var(--c-line)); }
.article-head__summary { max-width: 55ch; margin-inline: auto; color: var(--c-muted); font-size: var(--fs-lead); }
.article-layout { display: grid; grid-template-columns: 17rem minmax(0, 680px); justify-content: center; gap: clamp(2rem, 7vw, 6rem); align-items: start; padding-bottom: var(--section-y); }
.article-layout > aside { position: sticky; top: 7rem; }
.article-prose { font-size: 1.08rem; line-height: 2.25; }
.article-prose p + p { margin-top: 1.3rem; }
.article-prose blockquote { margin: 2.4rem 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--c-cyan-500); background: var(--c-bg-alt); color: var(--c-navy-800); font-size: 1.25rem; font-weight: 700; line-height: 2; }

/* تماس */
.contact-prompts { border-block: 1px solid var(--c-line); background: var(--c-surface); }
.contact-prompts ol { display: grid; grid-template-columns: repeat(3,1fr); }
.contact-prompts li { display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; padding: 1.2rem; border-inline-end: 1px solid var(--c-line); font-size: var(--fs-sm); font-weight: 600; }
.contact-prompts li:first-child { border-inline-start: 1px solid var(--c-line); }
.contact-prompts span { color: var(--c-cyan-700); }
.contact-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.contact-layout .page-art { margin-top: 2rem; }
.brief-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--c-navy-800); font-size: var(--fs-sm); font-weight: 700; }
.field label span { color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .65rem .8rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 1rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-cyan-700); outline: 2px solid color-mix(in srgb, var(--c-cyan-500) 25%, transparent); }
.field [aria-invalid='true'] { border-color: #a12a2a; }
.field__error { min-height: 1.3rem; color: #a12a2a; font-size: var(--fs-xs); }
.brief-form__privacy { color: var(--c-muted); font-size: var(--fs-sm); }
.brief-form__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.brief-form__status { min-height: 1.5rem; color: var(--c-blue-600); font-size: var(--fs-sm); font-weight: 700; }
.faq-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 4rem; }
.faq-list { border-top: 1px solid var(--c-line); }
.faq-list details { border-bottom: 1px solid var(--c-line); }
.faq-list summary { padding-block: 1.2rem; color: var(--c-navy-800); font-weight: 700; cursor: pointer; }
.faq-list details p { max-width: 60ch; padding-bottom: 1.2rem; color: var(--c-muted); }

/* ۴۰۴ */
.error-page { padding-block: clamp(4rem, 9vw, 8rem); }
.error-page__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.error-page__code { color: var(--c-cyan-700); font-size: var(--fs-sm); font-weight: 800; }
.error-page h1 { margin-top: .5rem; font-size: var(--fs-hero); }
.error-page div > p:not(.error-page__code) { max-width: 54ch; margin-top: 1rem; color: var(--c-muted); }

/* ۱۰. واکنش‌گرایی صفحات داخلی ------------------------------------------- */
@media (max-width: 61.99em) {
  .page-hero__inner, .case-head__inner, .contact-layout { grid-template-columns: 1fr; }
  .page-hero .page-art, .case-head .page-art { width: min(100%, 28rem); justify-self: start; }
  .editorial-grid, .name-story, .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(3) { border-inline-start: 1px solid rgba(255,255,255,.16); }
  .capability-detail { grid-template-columns: 6rem minmax(0,1fr); }
  .capability-detail__note { grid-column: 2; }
  .experience-index { grid-template-columns: 1fr; }
  .experience-card { min-height: 19rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout > aside { display: none; }
}

@media (max-width: 47.99em) {
  .page-hero { padding-block: 2rem 2.5rem; }
  .page-hero__inner { gap: 1rem; }
  .page-hero .page-art { width: min(100%, 20rem); }
  .value-row { grid-template-columns: 3rem 1fr; }
  .process-grid, .collab-list, .role-guide ul, .brand-catalog, .contact-prompts ol { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(3) { border-inline-start: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .collab-list li:nth-child(odd), .collab-list li:nth-child(even) { padding-inline: 0; border-inline-start: 0; }
  .role-guide li, .role-guide li:first-child, .contact-prompts li, .contact-prompts li:first-child { border-inline: 0; border-bottom: 1px solid var(--c-line); }
  .capability-detail { grid-template-columns: 1fr; gap: 1rem; }
  .capability-detail__rail { display: flex; align-items: baseline; gap: 1rem; }
  .capability-detail__note { grid-column: 1; }
  .check-list { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 2.5rem 1fr 2.5rem; }
  .story-row__category { grid-column: 2; grid-row: 1; }
  .story-row > div { grid-column: 2 / -1; }
  .story-row__arrow { grid-column: 1; grid-row: 2; }
  .journey-art { overflow: hidden; }
  .journey-art svg { width: 150%; margin-inline-start: -25%; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__back { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .brief-form { grid-template-columns: 1fr; }
  .field, .field--wide { grid-column: 1; }
  .brief-form__actions .btn { width: 100%; }
  .error-page__inner { grid-template-columns: 1fr; gap: 1rem; }
  .error-page .page-art { width: min(100%, 22rem); }
}

@media (max-width: 26em) {
  .page-hero__title, .case-head h1, .article-head h1 { font-size: 1.85rem; }
  .page-art { display: none; }
  .case-section { grid-template-columns: 2.4rem 1fr; gap: .75rem; }
  .brand-card { min-height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-art__paths path.is-active, .journey-art .journey-art__pulse { animation: none; stroke-dasharray: none; }
}
