/* About / Story page. Font + shell tokens come from /shared/css/tokens.css and
   /shared/css/global-shell.css; this file must not redefine --gs-* or the sitewide font.
   Structure mirrors the About landing page: standard hero, 1240px shell, shared final CTA.
   Chapters (S03-S06) are zig-zag two-column sections: copy + outcome card / compact visual. */
:root{--st-blue:var(--brand,#206BEE);--st-blue-d:#1747b8;--st-teal:#5b9bff;--st-ink:#0b223f;--st-text:#45536b;--st-muted:#5f7183;--st-line:#d5dce5;--st-shell:1240px;--st-gutter:36px}
.story-page, .story-page *{box-sizing:border-box}
html{scroll-behavior:smooth}
.story-page{font-family:var(--gs-font-fa);direction:rtl;background:#fff;color:var(--st-ink);overflow:clip}
.st-shell{width:min(calc(100% - (2 * var(--st-gutter))),var(--st-shell));margin-inline:auto}
/* S01 — Hero (same type scale and height as the About landing hero) */
.st-hero{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:stretch;min-height:min(43.8303vw,631.16px);background:linear-gradient(90deg,#dde2e8 0%,#eceff3 55%,#f5f7f9 100%);color:#0b2038}
.st-hero::before{content:"";position:absolute;inset:0;z-index:-2;background:url("../img/hero/story-hero.webp") -6% center/auto 100% no-repeat;filter:blur(30px);opacity:.85;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 9%,#000 45%,transparent 90%);mask-image:linear-gradient(90deg,transparent 0%,#000 9%,#000 45%,transparent 90%)}
.st-hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-items:center;padding:30px 0 48px}
.st-hero__copy{direction:rtl;text-align:right;max-width:580px}
.st-breadcrumb{grid-column:1/-1;display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0;color:#5c6f8c;font-size:13px}
.st-breadcrumb a{color:inherit;text-decoration:none}
.st-breadcrumb a:hover{color:var(--st-blue)}
.st-hero__badge{display:inline-flex;margin-bottom:11px;color:var(--st-blue);font-size:14px;font-weight:750}
.st-hero h1{margin:0;color:#0b2038;font-size:min(2.9vw,42px);font-weight:850;line-height:1.3;letter-spacing:-.018em}
.st-hero__intro{margin:min(1.4vw,20px) 0 0;max-width:34em;color:#45536b;font-size:min(1.32vw,19px);line-height:1.6;font-weight:700}
.st-hero__media{position:absolute;z-index:-1;top:0;bottom:0;left:-6%;width:min(76%,1100px);margin:0;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 9%,#000 48%,transparent 88%),linear-gradient(180deg,transparent 0%,#000 14%,#000 86%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0%,#000 9%,#000 48%,transparent 88%),linear-gradient(180deg,transparent 0%,#000 14%,#000 86%,transparent 100%);mask-composite:intersect}
.st-hero__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:left center}
/* Section template */
.st-section{position:relative;isolation:isolate;overflow:hidden;padding:80px 0 72px;scroll-margin-top:60px}
.st-head{max-width:760px;margin-inline:auto;text-align:center}
.st-head--start{max-width:none;margin:0;text-align:right}
.st-chip{display:inline-flex;align-items:center;gap:10px;margin:0 0 14px;padding:6px 16px 6px 14px;border-radius:999px;background:#e9edf2;border:1px solid #cfd7e1;color:var(--st-text);font-size:13.5px;font-weight:700}
.st-chip b{color:var(--st-blue);font-weight:800}
.st-chip span::before{content:"";display:inline-block;width:4px;height:4px;margin-inline-end:10px;border-radius:50%;background:#9db6d3;vertical-align:middle}
.st-head h2{margin:0;color:var(--st-ink);font-size:clamp(25px,2.35vw,35px);line-height:1.35;font-weight:850;letter-spacing:-.02em;text-wrap:balance}
.st-lead{margin:14px auto 0;color:var(--st-text);font-size:15px;line-height:1.85;font-weight:700}
.st-head--start .st-lead{margin-inline:0}
/* Section colors: industrial steel + graphite, brand blue as the only accent */
.st-s02{margin-top:96px;background:#0e1b2b;color:#fff}
.st-s02::before, .st-s08::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;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:48px 48px;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 28%,#000 72%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 28%,#000 72%,transparent 100%)}
.st-s02 .st-head h2, .st-s08 .st-head h2{color:#fff}
.st-s02 .st-lead, .st-s08 .st-lead{color:#b9c8da}
.st-s03{background:#f3f5f8}
.st-s04{background:#fff}
.st-s05{background:#e9edf2}
.st-s06{background:#fff}
.st-s07{background:#f3f5f8}
.st-s08{background:#0e1b2b;color:#fff}
/* Chapter layout (S03-S06): copy + outcome | compact visual, alternating sides */
.st-chapter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:center}
.st-chapter--flip{direction:ltr}
.st-chapter--flip>*{direction:rtl}
.st-chapter__visual{min-width:0}
/* Outcome card ("آنچه این مرحله ساخت") */
.st-result{display:flex;align-items:center;gap:14px;margin-top:26px;padding:16px 20px;border-radius:10px;background:#fff;border:1px solid var(--st-line);border-inline-start:4px solid var(--st-blue);box-shadow:0 1px 2px rgba(15,32,52,.06),0 6px 16px rgba(15,32,52,.06)}
.st-result__icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:10px;background:#e3e9f0;color:var(--st-blue)}
.st-result__icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.st-result__label{margin:0;color:var(--st-blue);font-size:12.5px;font-weight:800}
.st-result h3{margin:3px 0 0;color:var(--st-ink);font-size:16.5px;font-weight:850;line-height:1.5}
/* Icons */
.st-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:10px;background:#e3e9f0;color:var(--st-blue)}
.st-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.st-icon--lg{width:54px;height:54px;border-radius:12px}
.st-icon--lg svg{width:26px;height:26px}
/* Cards (revealed wrapper .st-r + hoverable inner) */
.st-r{min-width:0}
.st-r>*{height:100%}
.st-card, .st-product, .st-tile, .st-evitem{position:relative;background:#fff;border:1px solid var(--st-line);border-radius:10px;box-shadow:0 1px 2px rgba(15,32,52,.06),0 6px 16px rgba(15,32,52,.06);overflow:hidden;transition:box-shadow .2s ease,transform .2s ease}
.st-card::before, .st-product::before, .st-tile::before, .st-evitem::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--st-blue)}
.st-card:hover, .st-product:hover, .st-tile:hover, .st-evitem:hover{box-shadow:0 2px 4px rgba(15,32,52,.08),0 14px 28px rgba(15,32,52,.13);transform:translateY(-3px)}
.st-evitem:hover .st-icon svg, .st-tile:hover .st-icon svg, .st-process__step:hover .st-icon svg{transform:scale(1.15)}
/* S02 — journey timeline (dark) */
.st-journey{position:relative;list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.st-journey::before, .st-journey__line{content:"";position:absolute;top:11px;left:7.1429%;right:7.1429%;height:3px;border-radius:2px;background:rgba(255,255,255,.16)}
.st-journey__line{background:linear-gradient(270deg,#3b82ff,#8fb8ff);transform-origin:right}
.st-journey__item{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.st-journey__dot{display:block;width:26px;height:26px;margin-bottom:12px;border-radius:50%;background:#0e1b2b;border:3px solid #5d7fa8;transition:border-color .4s ease,transform .2s ease,background-color .2s ease,box-shadow .2s ease}
.st-journey__item--edge .st-journey__dot{background:#3b82ff;border-color:#bcd6ff;box-shadow:0 0 0 6px rgba(59,130,255,.25)}
.st-journey__step{color:#fff;font-size:18px;font-weight:800;transition:color .2s ease}
.st-journey__link{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 10px 22px;color:inherit;text-align:center;text-decoration:none;border-radius:12px;transition:transform .3s cubic-bezier(.3,1.4,.5,1)}
/* Hover card sits behind the node so it also hides the connector line there */
.st-journey__link::before{content:"";position:absolute;z-index:-1;inset:-14px 4px 0;border:1px solid transparent;border-radius:16px;background:linear-gradient(180deg,#1c3558,#12233a);opacity:0;transform:scale(.96);transition:opacity .3s ease,transform .3s ease,border-color .3s ease}
.st-journey__link:hover, .st-journey__link:focus-visible{transform:translateY(-4px)}
.st-journey__link:hover::before, .st-journey__link:focus-visible::before{opacity:1;transform:none;border-color:rgba(143,184,255,.35)}
.st-journey__link:focus-visible{outline:2px solid #8fb8ff;outline-offset:2px}
.st-journey__link:hover .st-journey__dot, .st-journey__link:focus-visible .st-journey__dot{transform:scale(1.15);background:#5b9bff;box-shadow:0 0 0 7px rgba(91,155,255,.22)}
.st-journey__link:hover .st-journey__step{color:#8fb8ff}
.st-journey__link .st-journey__q{transition:color .2s ease}
.st-journey__link:hover .st-journey__q{color:#fff}
.st-journey__item--edge .st-journey__step{color:#8fb8ff;font-size:24px;font-weight:850;line-height:1.2}
.st-journey__name{color:#8fb8ff;font-size:14px;font-weight:750}
.st-evlist{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.st-evitem{display:grid;justify-items:center;align-content:start;gap:10px;padding:18px 12px 14px;text-align:center}
.st-evitem p{margin:0;color:var(--st-ink);font-size:13px;font-weight:780;line-height:1.6}
/* S04 — three stages */
.st-flow{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr);align-items:center}
.st-flow__arrow{display:grid;place-items:center;width:28px;height:28px;margin-inline:auto;border-radius:50%;background:#fff;color:var(--st-blue);box-shadow:0 3px 10px rgba(16,64,120,.14)}
.st-flow__arrow svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1)}
.st-card{text-align:center}
.st-card h3{margin:12px 10px 0;color:var(--st-ink);font-size:13.5px;font-weight:820;line-height:1.5}
.st-card p{margin:2px 10px 0;color:var(--st-muted);font-size:11.5px;line-height:1.5;font-weight:460}
.st-card>:last-child{margin-bottom:14px}
/* Illustrated cards (S04/S05) use the same framed-tile look as the product tiles: padded card, rounded media frame. */
.st-s04 .st-card, .st-s05 .st-card{padding:12px 12px 14px}
.st-s04 .st-card h3, .st-s05 .st-card h3{margin:12px 6px 0}
.st-s04 .st-card p{margin:3px 6px 0}
.st-s04 .st-card>:last-child, .st-s05 .st-card>:last-child{margin-bottom:2px}
.st-product{display:grid;justify-items:center;align-content:start;padding:14px 12px 14px;text-align:center}
.st-product h3{margin:10px 0 0;color:var(--st-ink);font-size:15px;font-weight:820;line-height:1.3}
.st-product p{margin:3px 0 0;color:var(--st-muted);font-size:12px;line-height:1.5;font-weight:460}
/* S07 — capability tiles */
.st-tile{display:grid;justify-items:center;align-content:start;padding:26px 14px 22px;text-align:center}
.st-tile h3{margin:14px 0 0;color:var(--st-ink);font-size:16px;font-weight:820;line-height:1.3}
.st-tile p{margin:6px 0 0;color:var(--st-muted);font-size:12.5px;line-height:1.6;font-weight:460}
/* S08 — process timeline (brand blue) */
.st-process{position:relative;list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.st-process::before, .st-process__line{content:"";position:absolute;top:41px;left:10%;right:10%;height:3px;border-radius:2px;background:rgba(255,255,255,.2)}
.st-process__line{background:linear-gradient(270deg,#3b82ff,#8fb8ff);transform-origin:right}
.st-process__step{position:relative;z-index:1;display:grid;justify-items:center;gap:14px}
.st-process__step .st-icon{width:84px;height:84px;border-radius:22px;background:#fff;box-shadow:0 0 0 8px rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.35)}
.st-process__step .st-icon svg{width:40px;height:40px}
.st-process__step b{color:#fff;font-size:17px;font-weight:830}
/* Final CTA (shared gs-final-cta band; secondary action reuses the phone slot) */
.st-final-cta{margin-top:clamp(56px,7.4vw,128px)}
@media(min-width:1041px){
.st-final-cta .gs-final-cta__inner{grid-template-columns:min(8.9vw,128px) minmax(0,1fr) min(14.4vw,207px) min(14.4vw,207px)}
.st-final-cta .gs-final-cta__button{grid-column:4}
.st-final-cta .gs-final-cta__phone{grid-column:3}
}
.st-final-cta .gs-final-cta__phone{justify-self:stretch;height:min(3.75vw,54px);background:#fff;border:1.5px solid var(--gs-brand,#206BEE);border-radius:min(.43vw,6.2px);padding:0 min(1.15vw,16.6px);font-size:min(1.05vw,15.1px)}
.st-final-cta .gs-final-cta__phone:hover{background:#f3f8ff}
@media(max-width:1040px){
.st-final-cta .gs-final-cta__phone{height:auto;min-height:48px;border-radius:7px;padding:0 18px;font-size:15px}
}
@media(min-width:621px) and (max-width:1040px){
.st-final-cta .gs-final-cta__inner{grid-template-columns:58px 1fr 1fr;grid-template-areas:"icon copy copy" ". phone button"}
}
@media(max-width:620px){
.st-final-cta .gs-final-cta__phone{width:100%;min-height:50px}
}
/* Motion: timeline draw + sequential nodes (skipped for reduced motion) */
@media (prefers-reduced-motion:no-preference){
.st-journey__line, .st-process__line{transform:scaleX(0);transition:transform 1.6s cubic-bezier(.4,0,.2,1) .25s}
.is-revealed .st-journey__line, .is-revealed .st-process__line{transform:scaleX(1)}
.st-journey__item, .st-process__step{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease;transition-delay:calc(var(--i) * .22s + .2s)}
.is-revealed .st-journey__item, .is-revealed .st-process__step{opacity:1;transform:none}
.is-revealed .st-journey__item:not(.st-journey__item--edge) .st-journey__dot{border-color:var(--st-teal);transition:border-color .4s ease calc(var(--i) * .22s + .4s),transform .2s ease,background-color .2s ease,box-shadow .2s ease}
}
/* Responsive */
@media(max-width:1040px){
.st-hero{min-height:0;flex-direction:column}
.st-hero::before{display:none}
.st-hero__inner{grid-template-rows:none;padding:20px 0 24px}
.st-hero__copy{margin-inline:auto}
.st-hero__copy{text-align:center}
.st-breadcrumb{justify-content:center;margin-bottom:22px}
.st-hero__intro{margin-inline:auto}
.st-hero h1{font-size:30px}
.st-hero__intro{font-size:16.5px}
.st-hero__media{position:static;width:100%;height:280px;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 22%);mask-image:linear-gradient(180deg,transparent 0%,#000 22%);-webkit-mask-composite:source-over;mask-composite:add}
.st-hero__media img{object-position:center}
.st-chapter, .st-chapter--flip{grid-template-columns:1fr;gap:32px;direction:rtl}
}
@media(max-width:860px){
.st-s02{margin-top:72px}
.st-section{padding:60px 0 52px}
.st-flow{grid-template-columns:1fr;gap:12px}
.st-flow__arrow{transform:rotate(90deg)}
.st-journey{grid-template-columns:1fr;margin-top:36px}
.st-journey::before, .st-journey__line{top:12px;bottom:12px;left:auto;right:10px;width:3px;height:auto}
.st-journey__line{background:linear-gradient(180deg,#3b82ff,#8fb8ff);transform-origin:top}
.st-journey__item{display:block}
.st-journey__link::before{inset:0}
.st-journey__link:hover, .st-journey__link:focus-visible{transform:none}
.st-journey__link{display:grid;grid-template-columns:26px 1fr;column-gap:16px;row-gap:1px;align-items:center;padding:8px 10px;text-align:right}
.st-journey__dot{grid-row:1/3;margin:0}
.st-process{grid-template-columns:1fr;margin-top:36px}
.st-process::before, .st-process__line{top:41px;bottom:41px;left:auto;right:41px;width:3px;height:auto}
.st-process__line{background:linear-gradient(180deg,#3b82ff,#8fb8ff);transform-origin:top}
.st-process__step{grid-template-columns:84px 1fr;justify-items:start;align-items:center;gap:18px;padding:8px 0}
}
@media(prefers-reduced-motion:no-preference) and (max-width:860px){
.st-journey__line, .st-process__line{transform:scaleY(0)}
.is-revealed .st-journey__line, .is-revealed .st-process__line{transform:scaleY(1)}
}
@media(max-width:680px){
.st-shell{width:calc(100% - 36px)}
.st-head h2{font-size:26px}
.st-lead{font-size:14px}
.st-hero h1{font-size:26px;line-height:1.35}
.st-hero__intro{font-size:15px}
.st-evlist{grid-template-columns:1fr}
.st-evitem{grid-template-columns:44px 1fr;justify-items:start;align-items:center;text-align:right;padding:14px}
}
@media(max-width:430px){
.st-section{padding:46px 0 42px}
.st-s02{margin-top:56px}
.st-tile{padding:20px 10px}
.st-chip{flex-direction:column;gap:2px;border-radius:14px}
.st-chip span::before{display:none}
}
