/* ==========================================================================
   Home "درباره ما" (v1.1) — minimal, wide. Only on the home route.
   ========================================================================== */

.rd-about {
  position: relative;
  box-sizing: border-box;
  /* the home container has 14px side padding; pull out to nearly edge-to-edge */
  margin: 40px -6px 10px;
  padding: 34px 24px 30px;
  border-radius: 26px;
  direction: rtl;
  font-family: RoshdinoYekan, Tahoma, sans-serif;
  color: #1c1f26;
  background: #fff;
  border: 1px solid rgba(28, 31, 38, .07);
}
html.dark .rd-about {
  color: #eceef2;
  background: #161920;
  border-color: rgba(255, 255, 255, .07);
}

.rd-about-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.rd-about-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f97316;
}
.rd-about-title {
  margin: 0 0 26px;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.6;
  font-weight: 900;
  letter-spacing: -.2px;
}
.rd-about-title em {
  font-style: normal;
  color: #f97316;
}

.rd-about-sprout { flex: 0 0 auto; width: 40px; height: 40px; }
.rd-about-sprout path { fill: none; stroke: #f97316; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rd-about-sprout .leaf { fill: rgba(249, 115, 22, .14); }
.rd-about-sprout .stem { stroke-dasharray: 40; stroke-dashoffset: 40; }
.rd-about-sprout .soil { stroke-dasharray: 40; stroke-dashoffset: 40; }
.rd-about-sprout .leaf-a, .rd-about-sprout .leaf-b { transform-box: fill-box; transform-origin: 0 100%; transform: scale(0); }

.rd-about-timeline { position: relative; padding-inline-start: 22px; }
.rd-about-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: 4px;
  width: 1px;
  background: rgba(249, 115, 22, .35);
  transform: scaleY(0);
  transform-origin: top;
}
.rd-about-dot {
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f97316;
  transform: scale(0);
}

.rd-about-p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2.05;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.rd-about-p:last-child { margin-bottom: 0; }
.rd-about-p.lead { font-weight: 800; color: #f97316; }
html.dark .rd-about-p { color: #c9cdd6; }
html.dark .rd-about-p.lead { color: #fb923c; }

.rd-about-p .year { font-weight: 800; color: #f97316; }

.rd-about-pull {
  margin: 24px 0;
  padding: 0 0 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 2;
  border: 0;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .6s ease .05s, transform .7s cubic-bezier(.22, 1, .36, 1) .05s;
}

.rd-about-closing {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 31, 38, .08);
  font-size: 14.5px;
  line-height: 2.1;
  color: #5b6170;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .7s ease .1s, transform .8s cubic-bezier(.22, 1, .36, 1) .1s;
}
html.dark .rd-about-closing { border-top-color: rgba(255, 255, 255, .08); color: #9ba1ae; }

/* ---- reveal (added once by the script) ----------------------------------- */
.rd-about.is-in .rd-about-timeline::before { transition: transform 1.1s cubic-bezier(.22, 1, .36, 1); transform: scaleY(1); }
.rd-about.is-in .rd-about-dot { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .15s; transform: scale(1); }
.rd-about.is-in .rd-about-p,
.rd-about.is-in .rd-about-pull,
.rd-about.is-in .rd-about-closing { opacity: 1; transform: none; }
.rd-about.is-in .rd-about-p:nth-child(1) { transition-delay: .1s; }
.rd-about.is-in .rd-about-p:nth-child(2) { transition-delay: .18s; }
.rd-about.is-in .rd-about-p:nth-child(3) { transition-delay: .26s; }
.rd-about.is-in .rd-about-p:nth-child(4) { transition-delay: .34s; }
.rd-about.is-in .rd-about-p:nth-child(5) { transition-delay: .42s; }
.rd-about.is-in .rd-about-p:nth-child(6) { transition-delay: .5s; }
.rd-about.is-in .rd-about-p:nth-child(7) { transition-delay: .58s; }

.rd-about.is-in .rd-about-sprout .stem { transition: stroke-dashoffset 1s ease .2s; stroke-dashoffset: 0; }
.rd-about.is-in .rd-about-sprout .soil { transition: stroke-dashoffset .7s ease; stroke-dashoffset: 0; }
.rd-about.is-in .rd-about-sprout .leaf-a { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .9s; transform: scale(1); }
.rd-about.is-in .rd-about-sprout .leaf-b { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) 1.05s; transform: scale(1); }

/* no JS / reduced motion: show everything at once */
.rd-about.no-motion .rd-about-p,
.rd-about.no-motion .rd-about-pull,
.rd-about.no-motion .rd-about-closing { opacity: 1; transform: none; transition: none; }
.rd-about.no-motion .rd-about-timeline::before,
.rd-about.no-motion .rd-about-dot { transform: none; transition: none; }
.rd-about.no-motion .rd-about-sprout .stem,
.rd-about.no-motion .rd-about-sprout .soil { stroke-dashoffset: 0; transition: none; }
.rd-about.no-motion .rd-about-sprout .leaf-a,
.rd-about.no-motion .rd-about-sprout .leaf-b { transform: scale(1); transition: none; }
