/* Service detail page: views/service-detail/_hero.php, _article.php; behaviour in assets/js/service-detail.js */

/* the body's overflow-x: hidden would stop the side column from sticking */
body:has([data-sd]) {
    overflow-x: clip;
}

.sd-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ================= hero ================= */
.sd-hero-wrap {
    margin-top: 44px;
}
.sd-layer {
    display: block;
    height: 20px;
    margin: 0 59px;
    border-radius: 30px 30px 0 0;
    background: #3A3466;
}
.sd-layer-2 {
    margin: 0 30px;
    background: #2B2652;
}
.sd-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 28px;
    padding: 40px 44px 36px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(460px circle at 22% 42%, rgba(238, 93, 56, .2), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(150deg, #0E0B26, #1C1747 55%, #241E58);
    box-shadow: 0 34px 70px -34px rgba(17, 14, 45, .8);
}
[dir="ltr"] .sd-hero {
    background:
        radial-gradient(460px circle at 78% 42%, rgba(238, 93, 56, .2), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(210deg, #0E0B26, #1C1747 55%, #241E58);
}
.sd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
}
.sd-crumbs a {
    color: rgba(255, 255, 255, .7);
    transition: color .2s;
}
.sd-crumbs a:hover {
    color: #fff;
}
.sd-crumbs [aria-current] {
    color: #FF9A6B;
}
.sd-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
    line-height: 1.8;
}
.sd-tag-dot {
    position: relative;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #47DC94;
}
.sd-tag-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(71, 220, 148, .5);
    border-radius: 50%;
    animation: sdPing 2s ease-out infinite;
}
@keyframes sdPing {
    from { transform: scale(.5); opacity: 1; }
    to { transform: scale(1.5); opacity: 0; }
}
.sd-title {
    margin-top: 14px;
    font-size: 44px;
    line-height: 1.4;
}
.sd-title-a {
    color: rgba(255, 255, 255, .55);
}
.sd-title-b {
    color: #fff;
}
.sd-desc {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(255, 255, 255, .66);
    text-align: justify;
}
.sd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.sd-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
    line-height: 1.7;
}
.sd-chips svg {
    color: #EE5D38;
}
.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 24px;
    border-radius: 15px;
    font-size: 14.5px;
    font-weight: 700;
    transition: transform .25s, background-color .25s, box-shadow .25s;
}
.sd-btn-main {
    color: #fff;
    background: #EE5D38;
    box-shadow: 0 14px 30px -12px rgba(238, 93, 56, .75);
}
.sd-btn-main:hover {
    color: #fff;
    background: #FF6A43;
    transform: translateY(-2px);
}
.sd-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}
.sd-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.sd-stats {
    display: flex;
    flex-wrap: wrap;
    row-gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.sd-stat {
    display: flex;
    flex-direction: column;
    padding: 0 22px;
    border-inline-start: 1px solid rgba(255, 255, 255, .1);
}
.sd-stat:first-child {
    padding-inline-start: 0;
    border: 0;
}
.sd-stat[hidden] {
    display: none;
}
.sd-stat strong {
    font-size: 26px;
    line-height: 1.3;
    color: #fff;
}
.sd-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

.sd-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.sd-halo,
.sd-orbit {
    position: absolute;
    top: 46%;
    left: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.sd-halo {
    width: min(86%, 380px);
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 70%);
}
.sd-orbit {
    width: min(98%, 430px);
    border: 1.5px dashed rgba(255, 255, 255, .16);
    animation: sdSpin 40s linear infinite;
}
.sd-orbit-2 {
    width: min(74%, 330px);
    border-color: rgba(238, 93, 56, .35);
    animation-duration: 28s;
    animation-direction: reverse;
}
@keyframes sdSpin {
    to { transform: translate(-50%, -50%) rotate(1turn); }
}
.sd-art {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 88%;
    max-height: 280px;
    filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .35));
    animation: sdFloat 6s ease-in-out infinite;
}
@keyframes sdFloat {
    50% { transform: translateY(-10px); }
}
.sd-pad {
    position: absolute;
    bottom: 5%;
    left: 50%;
    z-index: 1;
    width: 70%;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(238, 93, 56, .7), rgba(238, 93, 56, .15) 55%, transparent 72%);
    transform: translateX(-50%);
}
.sd-pad span {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 154, 107, .7);
    border-radius: 50%;
    animation: sdPad 2.4s ease-out infinite;
}
@keyframes sdPad {
    from { transform: scale(.6); opacity: 1; }
    to { transform: scale(1.25); opacity: 0; }
}
.sd-badge {
    position: absolute;
    top: 6%;
    inset-inline-start: 4%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55);
    animation: sdFloat 5s ease-in-out infinite reverse;
}
.sd-badge svg {
    width: 40px;
    height: 40px;
}
.sd-faces {
    display: inline-flex;
    align-items: center;
}
.sd-faces img {
    width: 40px;
    height: 40px;
    border: 3px solid #1C1747;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}
.sd-faces img + img {
    margin-inline-start: -12px;
}
.sd-visual .sd-faces {
    position: absolute;
    top: 8%;
    inset-inline-end: 2%;
    z-index: 3;
    padding: 6px;
    border-radius: 999px;
    background: rgba(28, 23, 71, .75);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}

/* properties */
.sd-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.sd-prop {
    position: relative;
    padding: 22px;
    border: 1px solid #EEF1F5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px -22px rgba(17, 14, 45, .35);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sd-prop:hover {
    border-color: rgba(238, 93, 56, .35);
    box-shadow: 0 22px 40px -22px rgba(238, 93, 56, .45);
    transform: translateY(-4px);
}
.sd-prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #110E2D;
    box-shadow: 0 12px 22px -10px rgba(17, 14, 45, .7);
}
.sd-prop-icon svg {
    max-width: 26px;
    max-height: 26px;
}
.sd-prop-title {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.6;
    color: #110E2D;
}
.sd-prop-text {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 2;
    color: rgba(17, 14, 45, .6);
}

/* ================= reading progress ================= */
.sd-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 60;
    height: 3px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.sd-progress.is-on {
    opacity: 1;
}
.sd-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #EE5D38, #FF9A6B);
    transform: scaleX(0);
    transform-origin: left;
}
[dir="rtl"] .sd-progress span {
    background: linear-gradient(270deg, #EE5D38, #FF9A6B);
    transform-origin: right;
}

/* ================= article frame ================= */
.sd-frame {
    padding: 30px 30px 40px;
}
.sd-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 44px;
}
[dir="ltr"] .sd-layout,
[dir="ltr"] .sd-strip {
    font-family: Montserrat-Regular, sans-serif;
}
.sd-aside {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: none;
}
.sd-aside::-webkit-scrollbar {
    display: none;
}

/* table of contents */
.sd-toc {
    padding: 14px;
    border: 1px solid #E8EDF3;
    border-radius: 22px;
    background: #F6F8FB;
}
.sd-toc[hidden] {
    display: none;
}
.sd-toc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: start;
    cursor: default;
}
.sd-toc-ring {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
.sd-toc-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
[dir="rtl"] .sd-toc-ring svg {
    transform: rotate(-90deg) scaleY(-1);
}
.sd-toc-ring circle {
    fill: none;
    stroke: #E1E6EE;
    stroke-width: 3.4;
}
.sd-toc-ring .sd-toc-ring-fill {
    stroke: #EE5D38;
    stroke-linecap: round;
    stroke-dasharray: 94.25;
    stroke-dashoffset: 94.25;
}
.sd-toc-titles {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.sd-toc-title {
    font-size: 15px;
    color: #110E2D;
}
.sd-toc-meta {
    font-size: 12px;
    color: rgba(17, 14, 45, .5);
}
.sd-toc-caret {
    display: none;
    flex-shrink: 0;
    color: #110E2D;
    transition: transform .3s;
}
.sd-toc-list {
    display: grid;
    gap: 2px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.sd-layout a.sd-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: transparent;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(17, 14, 45, .6);
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.sd-layout a.sd-toc-link:hover {
    color: #110E2D;
    background: rgba(255, 255, 255, .7);
}
.sd-toc-n {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1px solid #E1E6EE;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    color: rgba(17, 14, 45, .55);
    transition: background-color .25s, color .25s, border-color .25s;
}
.sd-toc-t {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sd-layout a.sd-toc-link.is-done .sd-toc-n {
    border-color: rgba(238, 93, 56, .3);
    color: #EE5D38;
}
.sd-layout a.sd-toc-link.is-active {
    color: #110E2D;
    background: #fff;
    box-shadow: 0 10px 24px -16px rgba(17, 14, 45, .45);
}
.sd-layout a.sd-toc-link.is-active .sd-toc-n {
    border-color: #EE5D38;
    color: #fff;
    background: #EE5D38;
}

/* service card */
.sd-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(160deg, #0E0B26, #1C1747 60%, #241E58);
}
.sd-card-label {
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #FF9A6B;
}
.sd-card-label:not(:first-child) {
    margin-top: 18px;
}
.sd-card-chips {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.editor-section .sd-card ul,
.editor-section .sd-card ol {
    font-weight: 400;
    color: inherit;
}
.editor-section .sd-card ul::before,
.editor-section .sd-card li::before {
    content: none;
}
.editor-section .sd-card-chips li {
    padding: 0;
    color: #fff;
    font-weight: 400;
}
.sd-card-chips li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.8;
}
.sd-card-chips svg {
    flex-shrink: 0;
    color: #EE5D38;
}
.sd-card-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sd-card-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.7;
}
.sd-card-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    bottom: -6px;
    inset-inline-start: 12px;
    width: 1.5px;
    background: rgba(255, 255, 255, .14);
}
.sd-card-step-n {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    font-size: 11.5px;
    transition: background-color .4s, border-color .4s;
    transition-delay: calc(var(--k) * .25s);
}
.sd-card:hover .sd-card-step-n,
.sd-card-steps li:first-child .sd-card-step-n {
    border-color: #EE5D38;
    background: #EE5D38;
}
.sd-layout a.sd-card-works {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    font-size: 12.5px;
    color: #fff;
    transition: background-color .25s;
}
.sd-layout a.sd-card-works:hover {
    background: rgba(255, 255, 255, .13);
}
.sd-card-works strong {
    font-size: 15px;
}
.sd-faces-sm img {
    width: 30px;
    height: 30px;
    border-width: 2px;
}
.sd-faces-sm img + img {
    margin-inline-start: -9px;
}
.sd-card-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.sd-card-cta p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, .72);
}
.sd-layout .sd-card-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 13px;
    background: #EE5D38;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    transition: background-color .25s, transform .25s;
}
.sd-layout .sd-card-cta a:hover {
    background: #FF6A43;
    transform: translateY(-2px);
}

/* ================= description ================= */
.sd-body {
    min-width: 0;
    font-size: 15.5px;
    line-height: 2.15;
    color: rgba(17, 14, 45, .78);
}
.sd-body p {
    margin: 0 0 14px;
}
[dir="rtl"] .sd-body p {
    text-align: justify;
}
[dir="rtl"] .sd-body .sd-item p,
[dir="rtl"] .sd-body .sd-list p,
[dir="rtl"] .sd-body .sd-qa-inner p {
    text-align: start;
}
.sd-body a {
    color: #EE5D38;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.sd-body strong,
.sd-body b {
    font-weight: 700;
    color: #110E2D;
}
.sd-body p strong {
    background: linear-gradient(transparent 64%, rgba(238, 93, 56, .15) 0);
}
.sd-body img {
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 20px;
}
.sd-body h2,
.sd-body h3,
.sd-body h4,
.sd-body h5,
.sd-body h6,
.sd-body .sd-ph {
    color: #110E2D;
    line-height: 1.7;
}
[dir="rtl"] .sd-body h2,
[dir="rtl"] .sd-body h3 {
    font-family: IranSansFaNum-Black, sans-serif;
}
[dir="rtl"] .sd-body h4,
[dir="rtl"] .sd-body h5,
[dir="rtl"] .sd-body h6,
[dir="rtl"] .sd-body .sd-ph {
    font-family: IranSansFaNum-Bold, sans-serif;
}
[dir="ltr"] .sd-body h2,
[dir="ltr"] .sd-body h3,
[dir="ltr"] .sd-body h4,
[dir="ltr"] .sd-body h5,
[dir="ltr"] .sd-body h6,
[dir="ltr"] .sd-body .sd-ph {
    font-family: Montserrat-Bold, sans-serif;
}
.sd-body h2 { font-size: 24px; margin: 26px 0 12px; }
.sd-body h3 { font-size: 20px; margin: 22px 0 10px; }
.sd-body h4 { font-size: 18px; margin: 20px 0 8px; }
.sd-body h5,
.sd-body h6,
.sd-body .sd-ph { font-size: 16.5px; margin: 18px 0 6px; }
[dir] .sd-body .sd-long {
    margin: 0 0 14px;
    font-size: 16.5px;
    font-family: inherit;
    line-height: 2.1;
    color: rgba(17, 14, 45, .78);
}

/* sections */
.sd-sec {
    position: relative;
    padding-top: 30px;
    scroll-margin-top: 30px;
}
.sd-sec:first-child {
    padding-top: 0;
}
.sd-sec + .sd-sec {
    margin-top: 16px;
}
.sd-body .sd-h {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 16px;
    font-size: 27px;
    line-height: 1.6;
}
.sd-body .sd-h::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 76px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #EE5D38, rgba(238, 93, 56, .15));
}
[dir="rtl"] .sd-body .sd-h::after {
    background: linear-gradient(270deg, #EE5D38, rgba(238, 93, 56, .15));
}
.sd-h-n {
    position: absolute;
    top: 6px;
    inset-inline-end: 0;
    font-family: IranSansFaNum-Black, Montserrat-Bold, sans-serif;
    font-size: 88px;
    line-height: 1;
    color: rgba(17, 14, 45, .045);
    pointer-events: none;
    user-select: none;
}
.sd-sec:first-child .sd-h-n {
    top: -24px;
}
.sd-h-n.is-own {
    display: none;
}
.sd-body .sd-lead {
    position: relative;
    margin-bottom: 22px;
    padding: 4px 0;
    padding-inline-start: 20px;
    border-inline-start: 3px solid #EE5D38;
    font-size: 18px;
    line-height: 2.1;
    color: #110E2D;
}
.sd-body .sd-sub {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.sd-body .sd-sub::before {
    content: '';
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #EE5D38;
    transform: rotate(45deg) translateY(-3px);
}
.sd-body .sd-label {
    display: inline-flex;
    margin: 10px 0 6px;
    padding: 3px 14px;
    border-radius: 999px;
    background: #FDEEEA;
    font-size: 13px;
    line-height: 1.9;
    color: #EE5D38;
}
.sd-body .sd-label strong {
    color: inherit;
    background: none;
}

/* ---- lists (reset the editor's own list look first) ---- */
.editor-section .sd-body ul.sd-list,
.editor-section .sd-body ol.sd-list {
    position: relative;
    margin: 6px 0 20px;
    padding: 0;
    list-style: none;
    font-weight: 400;
    color: inherit;
}
.editor-section .sd-body .sd-list::before {
    content: none;
}
.editor-section .sd-body .sd-list > li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 400;
    color: inherit;
}
.editor-section .sd-body .sd-list > li::before {
    content: none;
}
.sd-body .sd-list li p {
    margin: 0;
}
.sd-body .sd-list li p + p {
    margin-top: 6px;
}

/* check list */
.editor-section .sd-body .sd-list--check > li {
    padding-inline-start: 36px;
}
.editor-section .sd-body .sd-list--check > li + li {
    margin-top: 10px;
}
.editor-section .sd-body .sd-list--check > li::before {
    content: '';
    position: absolute;
    top: 7px;
    inset-inline-start: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #FDEEEA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EE5D38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* nested list */
.editor-section .sd-body .sd-list--sub {
    margin: 8px 0 4px;
}
.editor-section .sd-body .sd-list--sub > li {
    padding-inline-start: 20px;
    font-size: .95em;
}
.editor-section .sd-body .sd-list--sub > li + li {
    margin-top: 4px;
}
.editor-section .sd-body .sd-list--sub > li::before {
    content: '';
    position: absolute;
    top: .95em;
    inset-inline-start: 4px;
    width: 7px;
    height: 7px;
    border: 2px solid #EE5D38;
    border-radius: 50%;
}

/* items that start with a bold lead: cards */
.editor-section .sd-body .sd-list--leads {
    display: grid;
    gap: 12px;
}
.editor-section .sd-body .sd-list--grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}
.editor-section .sd-body .sd-list--leads > li {
    padding: 18px 20px;
    padding-inline-start: 74px;
    border: 1px solid #E8EDF3;
    border-radius: 20px;
    background: #F8FAFC;
    font-size: 14.5px;
    line-height: 2.05;
    transition: transform .3s, border-color .3s, box-shadow .3s, background-color .3s;
}
.editor-section .sd-body .sd-list--leads > li:hover {
    border-color: rgba(238, 93, 56, .3);
    background: #fff;
    box-shadow: 0 18px 34px -24px rgba(17, 14, 45, .4);
    transform: translateY(-3px);
}
.sd-li-icon {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #EE5D38;
    background: #fff;
    box-shadow: 0 10px 20px -12px rgba(17, 14, 45, .35);
    transition: color .3s, background-color .3s;
}
.sd-list--leads > li:hover .sd-li-icon {
    color: #fff;
    background: #EE5D38;
}
.sd-body .sd-lead-t {
    display: block;
    margin-bottom: 2px;
    font-size: 15.5px;
    line-height: 1.8;
    color: #110E2D;
    background: none !important;
}

/* steps list: timeline */
.editor-section .sd-body .sd-list--steps > li {
    min-height: 46px;
    padding-bottom: 18px;
    padding-inline-start: 62px;
    padding-top: 7px;
    color: #110E2D;
}
.editor-section .sd-body .sd-list--steps > li::before {
    content: '';
    position: absolute;
    top: 46px;
    bottom: 0;
    inset-inline-start: 21px;
    width: 2px;
    background: linear-gradient(#EE5D38, #E8EDF3);
}
.editor-section .sd-body .sd-list--steps > li:last-child::before {
    content: none;
}
.sd-step-n {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(150deg, #1C1747, #110E2D);
    box-shadow: 0 0 0 6px rgba(238, 93, 56, .1);
    font-family: IranSansFaNum-Black, Montserrat-Bold, sans-serif;
    font-size: 14px;
    color: #fff;
}

/* ---- runs of sub-headings ---- */
.sd-group {
    margin: 20px 0 30px;
}
.sd-group--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.sd-group--wide {
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1280px) {
    .sd-group--three:not(.sd-group--wide) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.sd-group--cards > .sd-item {
    position: relative;
    overflow: hidden;
    padding: 22px 24px 18px;
    border: 1px solid #E8EDF3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 34px -28px rgba(17, 14, 45, .5);
    transition: transform .35s, border-color .35s, box-shadow .35s, opacity .6s;
}
.sd-group--cards > .sd-item::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #EE5D38, #FF9A6B 40%, transparent);
    opacity: .0;
    transition: opacity .35s;
}
[dir="rtl"] .sd-group--cards > .sd-item::before {
    background: linear-gradient(270deg, #EE5D38, #FF9A6B 40%, transparent);
}
.sd-group--cards > .sd-item:hover {
    border-color: rgba(238, 93, 56, .3);
    box-shadow: 0 26px 44px -28px rgba(238, 93, 56, .5);
    transform: translateY(-4px);
}
.sd-group--cards > .sd-item:hover::before {
    opacity: 1;
}
.sd-item-mark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sd-item-n {
    font-family: IranSansFaNum-Black, Montserrat-Bold, sans-serif;
    font-size: 36px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.3px rgba(238, 93, 56, .7);
}
.sd-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #FF9A6B;
    background: linear-gradient(150deg, #241E58, #110E2D);
    box-shadow: 0 12px 22px -12px rgba(17, 14, 45, .8);
    transition: transform .35s;
}
.sd-item:hover .sd-item-icon {
    transform: rotate(-8deg) scale(1.06);
}
.sd-body .sd-item-title {
    margin: 0 0 8px;
    font-size: 17.5px;
    line-height: 1.75;
}
.sd-item-body {
    font-size: 14.5px;
    line-height: 2.05;
    color: rgba(17, 14, 45, .7);
}
.sd-item-body > :last-child {
    margin-bottom: 0;
}
.sd-group--wide > .sd-item {
    padding-inline-start: 100px;
}
.sd-group--wide .sd-item-mark {
    position: absolute;
    top: 22px;
    inset-inline-start: 24px;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

/* timeline */
.sd-group--steps > .sd-item {
    position: relative;
    padding-bottom: 26px;
    padding-inline-start: 78px;
}
.sd-group--steps > .sd-item::before {
    content: '';
    position: absolute;
    top: 56px;
    bottom: 4px;
    inset-inline-start: 26px;
    width: 2px;
    border-radius: 2px;
    background: #E8EDF3;
}
.sd-group--steps > .sd-item::after {
    content: '';
    position: absolute;
    top: 56px;
    bottom: 4px;
    inset-inline-start: 26px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(#EE5D38, #FF9A6B);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s ease .3s;
}
.sd-group--steps > .sd-item.is-in::after,
.sd-group--steps:not(.sd-ready *) > .sd-item::after {
    transform: scaleY(1);
}
.sd-group--steps > .sd-item:last-child::before,
.sd-group--steps > .sd-item:last-child::after {
    content: none;
}
.sd-group--steps .sd-item-mark {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    margin: 0;
}
.sd-group--steps .sd-item-n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(150deg, #241E58, #110E2D);
    box-shadow: 0 0 0 7px rgba(238, 93, 56, .12), 0 14px 24px -12px rgba(17, 14, 45, .8);
    font-size: 17px;
    color: #fff;
    -webkit-text-stroke: 0;
    transition: background .4s;
}
.sd-group--steps .sd-item.is-in .sd-item-n {
    background: linear-gradient(150deg, #FF7A50, #EE5D38);
}
.sd-group--steps .sd-item-title {
    padding-top: 10px;
}
.sd-group--steps .sd-item-body:not(:empty) {
    padding: 14px 18px;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    background: #F8FAFC;
}

/* questions: accordion */
.sd-group--faq {
    display: grid;
    gap: 10px;
}
.sd-qa {
    border: 1px solid #E8EDF3;
    border-radius: 20px;
    background: #fff;
    transition: border-color .3s, box-shadow .3s;
}
.sd-qa.is-open {
    border-color: rgba(238, 93, 56, .3);
    box-shadow: 0 20px 40px -30px rgba(238, 93, 56, .55);
}
.sd-body .sd-qa-head {
    margin: 0;
    font-size: 17px;
}
.sd-qa-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    font: inherit;
    line-height: 1.75;
    text-align: start;
    color: inherit;
}
.sd-qa-btn::before {
    content: '?';
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #FDEEEA;
    font-size: 17px;
    color: #EE5D38;
}
[dir="rtl"] .sd-qa-btn::before {
    content: '؟';
}
.sd-qa-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-inline-start: auto;
    border-radius: 50%;
    color: #110E2D;
    background: #F1F4F7;
    transition: transform .35s, background-color .35s, color .35s;
}
.sd-qa.is-open > .sd-qa-head .sd-qa-icon {
    color: #fff;
    background: #EE5D38;
    transform: rotate(45deg);
}
.sd-qa-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s ease;
}
.sd-qa.is-open > .sd-qa-body {
    grid-template-rows: 1fr;
}
.sd-qa-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
    padding-inline-start: 68px;
}
.sd-qa-inner::after {
    content: '';
    display: block;
    height: 10px;
}
.sd-sec.sd-qa {
    margin-top: 30px;
    padding: 22px 24px 8px;
    border-radius: 26px;
}
.sd-sec.sd-qa > .sd-qa-head {
    margin: 0 0 14px;
    font-size: 24px;
}
.sd-sec.sd-qa .sd-qa-btn {
    padding: 0;
}
.sd-sec.sd-qa > .sd-qa-body > .sd-qa-inner {
    padding: 0;
}
.sd-sec.sd-qa .sd-h-n {
    display: none;
}

/* tables and quotes */
.sd-table {
    overflow-x: auto;
    margin: 18px 0 24px;
    border: 1px solid #E8EDF3;
    border-radius: 20px;
}
.sd-table table {
    min-width: 560px;
    margin: 0;
}
.sd-table thead,
.sd-table tr:first-child th {
    background: #F6F8FB;
}
.sd-body .sd-quote {
    position: relative;
    margin: 22px 0;
    padding: 24px 28px;
    padding-inline-start: 70px;
    border-radius: 22px;
    color: rgba(255, 255, 255, .82);
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 16px 16px,
        linear-gradient(150deg, #0E0B26, #1C1747 60%, #241E58);
}
.sd-body .sd-quote::before {
    content: '\201D';
    position: absolute;
    top: 8px;
    inset-inline-start: 22px;
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: #EE5D38;
}
.sd-body .sd-quote p:last-child {
    margin-bottom: 0;
}
.sd-body .sd-quote strong {
    color: #fff;
    background: none;
}

/* ---- the projects strip ---- */
.sd-strip {
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 24px;
    background: #F1F4F7;
}
.sd-strip.is-inline {
    margin: 30px 0 4px;
}
.sd-strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.sd-strip-title {
    margin: 0 !important;
    font-size: 18px;
    color: #110E2D;
}
.sd-strip-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #EE5D38;
    text-decoration: none !important;
}
.sd-strip-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.sd-strip .sd-work {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    width: 128px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: #110E2D !important;
    text-decoration: none !important;
    scroll-snap-align: start;
}
.sd-strip .sd-work img {
    width: 128px;
    height: 164px;
    margin: 0;
    border: 3px solid #fff;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 14px 26px -16px rgba(17, 14, 45, .5);
    transition: transform .35s;
}
.sd-strip .sd-work img.is-logo {
    padding: 22px;
    object-fit: contain;
    background: #fff;
}
.sd-strip .sd-work:hover img {
    transform: translateY(-5px) rotate(-1.5deg);
}
.sd-strip .sd-work span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---- entrance (only once the script is running) ---- */
.sd-ready .sd-item,
.sd-ready .sd-list--leads > li,
.sd-ready .sd-list--steps > li {
    transition-property: opacity, transform, border-color, box-shadow, background-color;
    transition-duration: .6s, .6s, .35s, .35s, .35s;
    transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s;
}
.sd-ready .sd-item:not(.is-in),
.sd-ready .sd-list--leads > li:not(.is-in),
.sd-ready .sd-list--steps > li:not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
}
.sd-ready .sd-h-n {
    transition: opacity .8s, transform .8s;
}
.sd-ready .sd-h-n:not(.is-in) {
    opacity: 0;
    transform: translateY(14px);
}

/* ================= tablet & phone ================= */
@media (max-width: 1023px) {
    .sd-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 26px;
    }
    .sd-visual {
        order: -1;
        min-height: 280px;
    }
    .sd-art {
        max-height: 220px;
    }
    .sd-title {
        font-size: 34px;
    }
    .sd-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .sd-aside {
        display: contents;
    }
    .sd-toc {
        position: sticky;
        top: 10px;
        z-index: 5;
        order: -1;
        box-shadow: 0 14px 30px -24px rgba(17, 14, 45, .5);
    }
    .sd-toc-head {
        cursor: pointer;
    }
    .sd-toc-caret {
        display: block;
    }
    .sd-toc.is-open .sd-toc-caret {
        transform: rotate(180deg);
    }
    .sd-toc-list {
        display: none;
        max-height: 55vh;
        overflow-y: auto;
    }
    .sd-toc.is-open .sd-toc-list {
        display: grid;
    }
    .sd-card {
        order: 2;
        margin-top: 10px;
    }
    .sd-sec {
        scroll-margin-top: 96px;
    }
}
@media (max-width: 639px) {
    .sd-hero-wrap {
        margin-top: 20px;
    }
    .sd-layer {
        margin: 0 30px;
        height: 14px;
    }
    .sd-layer-2 {
        margin: 0 15px;
    }
    .sd-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }
    .sd-visual {
        min-height: 230px;
    }
    .sd-art {
        max-height: 180px;
    }
    .sd-badge {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }
    .sd-badge svg {
        width: 30px;
        height: 30px;
    }
    .sd-title {
        font-size: 27px;
    }
    .sd-desc,
    [dir="rtl"] .sd-body p {
        text-align: start;
    }
    .sd-btn {
        flex: 1 1 auto;
    }
    .sd-stat {
        padding: 0 12px;
    }
    .sd-stat strong {
        font-size: 20px;
    }
    .sd-frame {
        padding: 18px 14px 26px;
        border-radius: 22px;
    }
    .sd-body {
        font-size: 15px;
    }
    .sd-body .sd-h {
        font-size: 21px;
    }
    .sd-h-n {
        font-size: 58px;
    }
    .sd-body .sd-lead {
        font-size: 16px;
    }
    .editor-section .sd-body .sd-list--leads > li {
        padding: 16px;
        padding-inline-start: 64px;
    }
    .sd-li-icon {
        top: 16px;
        inset-inline-start: 14px;
        width: 36px;
        height: 36px;
    }
    .sd-group--cards > .sd-item {
        padding: 18px;
    }
    .sd-group--wide > .sd-item {
        padding-inline-start: 18px;
    }
    .sd-group--wide .sd-item-mark {
        position: static;
        flex-direction: row;
        margin-bottom: 12px;
    }
    .sd-group--steps > .sd-item {
        padding-inline-start: 62px;
    }
    .sd-group--steps > .sd-item::before,
    .sd-group--steps > .sd-item::after {
        inset-inline-start: 21px;
        top: 48px;
    }
    .sd-group--steps .sd-item-n {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    .sd-qa-btn {
        padding: 14px;
    }
    .sd-qa-inner {
        padding: 0 14px;
    }
    .sd-sec.sd-qa {
        padding: 18px 16px 6px;
    }
    .sd-sec.sd-qa > .sd-qa-head {
        font-size: 19px;
    }
    .sd-body .sd-quote {
        padding: 20px;
        padding-inline-start: 56px;
    }
    .sd-strip {
        padding: 16px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sd-orbit,
    .sd-art,
    .sd-badge,
    .sd-pad span,
    .sd-tag-dot::after {
        animation: none;
    }
    .sd-ready .sd-item:not(.is-in),
    .sd-ready .sd-list--leads > li:not(.is-in),
    .sd-ready .sd-list--steps > li:not(.is-in),
    .sd-ready .sd-h-n:not(.is-in) {
        opacity: 1;
        transform: none;
    }
}

/* lead cards inside a card: icon on top so the text gets the full width */
.editor-section .sd-body .sd-item .sd-list--grid > li {
    padding: 66px 16px 14px;
    background: #F8FAFC;
}
.sd-item .sd-list--grid .sd-li-icon {
    top: 14px;
    inset-inline-start: 16px;
    width: 38px;
    height: 38px;
}
.sd-body p.sd-ph strong,
.sd-body .sd-item-title strong,
.sd-body .sd-lead-t strong {
    background: none;
}
