:root {
  --accent:#cf551c;
  --peach:#ffb075;
  --dark-deep:#08100e;
  --header-height:82px; --page:1180px;
  --hero-image:url("images/staff-welfare-aerial.webp");
}
.history-page { font-family:Vazirmatn,Tahoma,sans-serif; }
.history-page .top .nav { justify-content:space-between; }
.history-page .site-nav { flex:0 1 auto; }
.history-page .hero { padding:0; background-position:center 48%; }
.history-page .hero .wrap { align-self:end; margin-inline:auto; }
.history-page .hero-content { max-width:min(100%,1100px); }
.history-page .hero .lead { max-width:650px; }
.history-page .history-stats { padding:34px 0; }
.history-page .stats { margin:0 auto; }
.history-page .stat {
  padding:15px 10px;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(241,240,235,.94));
  box-shadow:0 10px 26px rgba(13,22,19,.06);
}
.history-page .stat strong { font-size:clamp(18px,3vw,31px); }
.history-page .history-process { padding:76px 0 92px; scroll-margin-top:var(--header-height); }
.history-process .wrap { position:relative; }
.history-process .section-title { margin-bottom:30px; }
.history-process .kicker { color:var(--peach); }
.history-process .section-title h2 { color:#fff; }
.history-process .timeline { gap:20px; }
.history-process .route {
  top:calc(var(--header-height) + 14px);
  background:linear-gradient(150deg,#17221f,#0c1512);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 16px 40px rgba(0,0,0,.2);
  color:#e6eeea;
  border-radius:18px;
}
.history-process .route-items::before { background:rgba(245,138,59,.36); }
.history-process .stop { color:#dce5e0; }
.history-process .stop:hover,.history-process .stop[aria-current="step"] {
  color:#ffd2b0;
  background:rgba(207,85,28,.17);
}
.history-process .number { color:var(--peach); }
.history-process .marker {
  background:#15201c;
  border:1px solid rgba(245,138,59,.62);
  color:var(--peach);
}
.history-process .marker::before {
  content:"";
  width:7px;
  height:7px;
  background:currentColor;
  border-radius:50%;
}
.history-process .chapter.stage {
  scroll-margin-top:calc(var(--header-height) + 17px);
  padding:clamp(18px,3vw,33px);
  min-height:0;
  cursor:default;
  z-index:auto;
  backdrop-filter:none;
  border-color:rgba(255,255,255,.14);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  box-shadow:0 16px 34px rgba(0,0,0,.15);
}
.history-process .chapter.stage::after { content:none; }
.history-process .chapter.stage:hover { transform:none; border-color:rgba(245,138,59,.30); }
.history-process .chapter .eyebrow {
  margin:0;
  color:var(--peach);
  font-size:13px;
  line-height:1.6;
}
.history-process .chapter .eyebrow::before { content:none; }
.history-chapter-number {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(245,138,59,.40);
  border-radius:13px;
  background:#121d1a;
  color:#ffac70;
  box-shadow:0 0 0 5px rgba(9,17,15,.52);
}
.history-process .chapter h2 {
  margin:10px 0 12px;
  color:#fff;
  font-size:clamp(22px,2.4vw,34px);
}
.history-process .chapter-copy p:not(.eyebrow) { color:#d0dad5; }
.history-process .chapter .next { color:#ffb783; }
.history-process .photos figure,.history-process .welfare-views figure {
  background:#fffdf8;
  border-color:#f5e5d6;
  border-radius:13px;
  box-shadow:0 16px 30px rgba(0,0,0,.24);
}
.history-process .journey-gallery.is-reached > figure {
  border-color:#ffad68;
  box-shadow:0 0 0 2px rgba(245,138,59,.34),0 16px 30px rgba(0,0,0,.24);
}
.history-process .welfare-zoom {
  padding:clamp(12px,2vw,20px);
  border-color:rgba(245,138,59,.28);
  background:linear-gradient(145deg,#17221f,#0c1512);
  color:#f5f3ee;
}
.history-process .welfare-arrow { background:#202c27; color:#ffb075; }
.history-process a:focus-visible,.history-page .menu-toggle:focus-visible {
  outline:2px solid #ffb075;
}
.history-page .footer { margin:0; border:0; }
.history-page .footer .wrap { align-items:center; }
@media (max-width:890px) {
  .history-process .route { top:var(--header-height); }
  .history-process .chapter.stage { scroll-margin-top:calc(var(--header-height) + 88px); }
  .history-process .timeline { gap:12px; }
}
@media (max-width:850px) {
  :root { --header-height:72px; }
}
@media (max-width:700px) {
  .history-process .chapter.stage { padding-inline-end:40px; }
  .history-process .history-chapter-number { width:34px; height:34px; }
}
@media (max-width:540px) {
  .history-page .top .brand-copy { display:block; }
  .history-page .top .brand-copy strong { font-size:12px; }
  .history-page .top .brand-copy small { display:none; }
  .history-page .top .nav { gap:8px; }
  .history-page .hero { min-height:540px; background-position:46% center; }
  .history-page .hero h1 { font-size:clamp(33px,8.6vw,42px); }
  .history-page .history-process { padding:52px 0 62px; }
  .history-process .section-title { margin-bottom:21px; }
  .history-page .history-stats { padding:20px 0; }
  .history-page .stat { padding:11px 6px; border-radius:12px; }
}


.history-process { overflow:clip; }
.history-process .chapter.stage { padding-inline-end:49px; }
.history-process .chapter-copy { grid-column:1/-1; min-width:0; }
.history-process .chapter-copy > p:not(.eyebrow) { max-width:72ch; }
.history-process .chapter-copy > .photos {
  width:min(100%,740px);
  margin:0 auto 25px;
}
.history-process .chapter-copy > .photos:not(.pair) { width:min(100%,610px); }
.history-process .chapter-copy > .history-family-photo { width:min(100%,660px); }
.history-process .chapter-copy > .photos.pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.history-process .chapter-copy > p + .photos { margin-top:22px; }
.history-trail-step {
  fill:#ffad6e;
  filter:drop-shadow(0 0 4px rgba(245,138,59,.48));
}
.history-trail-tread {
  fill:none;
  stroke:#422617;
  stroke-width:1.15;
  stroke-linecap:round;
}
.history-trail-print {
  fill:#e18c56;
  animation:history-print-fade 11s linear forwards;
}
.history-trail-logo image { filter:invert(1); mix-blend-mode:screen; }
@keyframes history-print-fade {
  0% { opacity:.67; }
  33% { opacity:.41; }
  70% { opacity:.14; }
  100% { opacity:0; }
}
.history-process .journey-gallery.is-visible { transition:opacity 1.22s cubic-bezier(.2,.65,.35,1); }
.history-process .journey-gallery.is-visible > figure { animation-duration:1.28s; }
.history-process .journey-gallery.is-visible > figure:nth-of-type(2) { animation-delay:125ms; }
.history-process .journey-gallery.is-visible > figure:nth-of-type(3) { animation-delay:245ms; }
@media (max-width:700px) {
  .history-process .chapter.stage { padding-inline-end:38px; }
}
@media (max-width:540px) {
  .history-process .chapter-copy > .photos.pair {
    grid-template-columns:minmax(0,1fr);
    gap:13px;
  }
}
@media (prefers-reduced-motion:reduce), print {
  .history-process .journey-gallery.is-visible { transition:none; }
  .history-trail-print { animation:none; opacity:0; }
}

@media (min-width:851px) {
  .history-page .top .nav {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  }
  .history-page .top .brand { justify-self:start; }
  .history-page .top .site-nav { grid-column:2; justify-self:center; }
}

@media (min-width:851px) {
  .history-page .top .nav-actions { grid-column:3; justify-self:end; }
}
@media (min-width:851px) and (max-width:1060px) {
  .history-page .top .brand-copy { display:none; }
}
@media (max-width:620px) {
  .history-page .top .brand-copy { display:none; }
}

