
/* ========== About intro (بدون تصویر پس‌زمینه) ========== */

.home-about {
    position: relative;
    isolation: isolate;
    margin: 56px 0 8px;
    color: #fff;
}

.home-about__glow {
    position: absolute;
    z-index: -1;
    top: -80px;
    right: -60px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--page-blue);
    opacity: .38;
    filter: blur(100px);
    pointer-events: none;
}

.home-about__panel {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 48px;
    padding: 46px 48px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 45%, rgba(0, 0, 0, .18) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

/* خط نارنجی نازک بالای پنل */
.home-about__panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(253, 182, 20, .75), transparent);
}

/* ---- brand side ---- */

.home-about__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 260px;
    padding: 36px 22px;
    border-radius: 12px;
    background: rgba(18, 21, 31, .45);
    border: 1px solid rgba(253, 182, 20, .16);
}

/* هاله نرم پشت لوگو */
.home-about__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 160px;
    margin: -80px 0 0 -130px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(253, 182, 20, .16), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

/* گوشه‌های تزئینی قاب لوگو */
.home-about__brand::before,
.home-about__brand::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(253, 182, 20, .45);
    pointer-events: none;
}

.home-about__brand::before {
    top: 12px;
    right: 12px;
    border-left: 0;
    border-bottom: 0;
    border-radius: 0 6px 0 0;
}

.home-about__brand::after {
    bottom: 12px;
    left: 12px;
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 6px;
}

.home-about__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .55));
}

.home-about__since {
    position: relative;
    z-index: 1;
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .32);
    background: rgba(253, 182, 20, .08);
    color: var(--page-orange);
    font-size: 12.5px;
    font-weight: 700;
}

/* ---- content side ---- */

.home-about__eyebrow {
    display: inline-block;
    color: var(--page-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.home-about__title {
    margin: 10px 0 0;
    font-size: clamp(23px, 2.6vw, 31px);
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
}

.home-about__rule {
    display: block;
    width: 62px;
    height: 3px;
    margin: 14px 0 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--page-orange), rgba(253, 182, 20, 0));
}

.home-about__text {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    line-height: 2.15;
    text-align: justify;
}

.home-about__text:last-of-type {
    margin-bottom: 26px;
}

.home-about__facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
}

.home-about__facts li {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
    transition: border-color .35s ease, background .35s ease, transform .35s ease;
}

.home-about__facts li:hover {
    border-color: rgba(253, 182, 20, .35);
    background: rgba(253, 182, 20, .06);
    transform: translateY(-3px);
}

.home-about__fact-num {
    display: block;
    margin-bottom: 4px;
    color: var(--page-orange);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.6;
}

.home-about__fact-label {
    display: block;
    color: rgba(255, 255, 255, .58);
    font-size: 12.5px;
    line-height: 1.8;
}

.home-about__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .55);
    background: rgba(253, 182, 20, .08);
    color: var(--page-orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: color .35s ease, border-color .35s ease, transform .4s cubic-bezier(.22, .7, .2, 1), box-shadow .45s ease;
}

.home-about__btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(90deg, #e5a000, var(--page-orange) 55%, #ffd970);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s cubic-bezier(.22, .7, .2, 1);
}

.home-about__btn:hover,
.home-about__btn:focus-visible {
    color: #1a1305;
    border-color: var(--page-orange);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -18px rgba(253, 182, 20, .65);
    text-decoration: none;
}

.home-about__btn:hover::before,
.home-about__btn:focus-visible::before {
    transform: scaleX(1);
}

.home-about__btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.home-about__btn:hover .home-about__btn-arrow {
    transform: translateX(-6px);
}

@media (max-width: 991.98px) {
    .home-about {
        margin: 40px 0 4px;
    }
    .home-about__panel {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 34px 24px;
        text-align: center;
    }
    .home-about__brand {
        max-width: 320px;
        margin: 0 auto;
    }
    .home-about__rule {
        margin-inline: auto;
    }
    .home-about__text {
        text-align: justify;
    }
}

@media (max-width: 575.98px) {
    .home-about__panel {
        padding: 28px 18px;
        border-radius: 12px;
    }
    .home-about__facts {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .home-about__facts li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 12px 16px;
    }
    .home-about__fact-num {
        margin-bottom: 0;
        font-size: 1rem;
    }
    .home-about__btn {
        width: 100%;
        justify-content: center;
    }
    .home-about__ring {
        width: 200px;
        height: 130px;
        margin: -65px 0 0 -100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-about__btn,
    .home-about__btn::before,
    .home-about__btn-arrow,
    .home-about__facts li {
        transition: none !important;
    }
}

.home-services {
    --hs-orange: #fdb614;
    --hs-dark: #222222;
    --hs-dark-2: #2a2a2a;
    --hs-blue: #1e2958;
    --hs-muted: rgba(255, 255, 255, .7);
    position: relative;
    z-index: 5;
    margin-top: -72px;
    padding-bottom: 28px;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.home-service {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 280px;
    padding: 48px 36px 40px;
    text-align: center;
    border-radius: 8px;
    background: var(--hs-dark);
    border: 1px solid rgba(253, 182, 20, .2);
    box-shadow: 0 18px 40px -24px rgba(30, 41, 88, .4);
    transform: translateY(28px);
    opacity: 0;
    transition:
        transform .65s cubic-bezier(.22, .7, .2, 1),
        opacity .65s cubic-bezier(.22, .7, .2, 1),
        border-color .3s ease,
        box-shadow .35s ease;
}

.home-service.is-in {
    opacity: 1;
    transform: translateY(0);
}

.home-service::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--hs-orange);
    opacity: .85;
}

.home-service__index {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 1;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(253, 182, 20, .28);
    letter-spacing: 0;
    pointer-events: none;
    transition: color .3s ease;
}

.home-service__icon {
    width: 84px;
    height: 84px;
    margin: 8px auto 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hs-orange);
    border: 2px solid #1a1a1a;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45);
    transition: transform .35s ease, box-shadow .35s ease;
}

.home-service__icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.home-service__title {
    margin: 0 0 14px;
    color: var(--hs-orange) !important;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-service__text {
    margin: 0;
    color: var(--hs-muted);
    font-size: 14.5px;
    line-height: 2;
}

.home-service__line {
    display: block;
    width: 36px;
    height: 2px;
    margin: 22px auto 0;
    background: var(--hs-orange);
    opacity: .7;
    transition: width .35s ease, opacity .3s ease;
}

.home-service.is-in:hover {
    transform: translateY(-6px);
    border-color: rgba(253, 182, 20, .45);
    box-shadow: 0 24px 48px -28px rgba(30, 41, 88, .5);
}

.home-service.is-in:hover .home-service__icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5);
}

.home-service.is-in:hover .home-service__index {
    color: rgba(253, 182, 20, .5);
}

.home-service.is-in:hover .home-service__line {
    width: 52px;
    opacity: 1;
}

/* ========== Process timeline (click driven) ========== */

.home-process {
    --hp-orange: #fdb614;
    --hp-dark: #1a1f2e;
    --hp-panel: #222222;
    --hp-blue: #1e2958;
    --hp-muted: rgba(255, 255, 255, .72);
    --hp-border: rgba(253, 182, 20, .22);
    position: relative;
    overflow: hidden;
    margin: 40px 0 20px;
    color: #fff;
    /* روی کانواس تیره مشترک صفحه می‌نشیند؛ بدون لایه اضافه تا مرزی بین سکشن‌ها دیده نشود */
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(30, 41, 88, .34), transparent 62%);
}

.home-process__parallax {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-process__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
}

.home-process__orb--1 {
    width: 420px;
    height: 420px;
    background: var(--hp-blue);
    top: -120px;
    left: -80px;
    opacity: .3;
}

.home-process__orb--2 {
    width: 360px;
    height: 360px;
    background: var(--hp-blue);
    bottom: -100px;
    right: -60px;
    opacity: .35;
}

.home-process__grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, #000 20%, transparent 75%);
}

.home-process__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 56px;
}

.home-process__head {
    text-align: center;
    margin-bottom: 28px;
}

.home-process__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-orange);
    letter-spacing: .4px;
    margin-bottom: 10px;
}

.home-process__title {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
}

.home-process__subtitle {
    margin: 0;
    color: var(--hp-muted);
    font-size: 15.5px;
}

.home-process__body {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}

.home-process__rail {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.home-process__spine {
    position: absolute;
    top: 28px;
    bottom: 28px;
    width: 2px;
    right: 50%;
    margin-right: -1px;
}

.home-process__spine-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
    border-radius: 2px;
}

.home-process__spine-fill {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--hp-orange), #e5a000);
    border-radius: 2px;
    transition: height .5s cubic-bezier(.22, .7, .2, 1);
}

.home-process__dots {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.home-process__dots li {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #161a24;
    border: 2px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .5);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.home-process__dots li:hover {
    border-color: rgba(253, 182, 20, .65);
    color: #fff;
    transform: scale(1.06);
}

.home-process__dots li.is-done {
    border-color: rgba(253, 182, 20, .7);
    color: #1a1305;
    background: rgba(253, 182, 20, .85);
}

.home-process__dots li.is-active {
    border-color: var(--hp-orange);
    color: #1a1305;
    background: var(--hp-orange);
    box-shadow: 0 0 0 5px rgba(253, 182, 20, .16);
    transform: scale(1.08);
}

.home-process__stage-wrap {
    position: relative;
    background: rgba(34, 34, 34, .72);
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    padding: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 28px 60px -36px rgba(0, 0, 0, .55);
}

.home-process__stage-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--hp-orange);
    border-radius: 10px 10px 0 0;
}

.home-process__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.home-process__stage {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    padding: 14px 18px;
    opacity: .55;
    transform: scale(.985);
    cursor: pointer;
    transition:
        opacity .4s ease,
        transform .4s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        padding .35s ease;
}

.home-process__stage:hover {
    opacity: .82;
    border-color: rgba(253, 182, 20, .28);
    background: rgba(255, 255, 255, .05);
}

.home-process__stage.is-done {
    opacity: .72;
    border-color: rgba(253, 182, 20, .18);
}

.home-process__stage.is-active {
    opacity: 1;
    transform: scale(1);
    background: rgba(253, 182, 20, .08);
    border-color: rgba(253, 182, 20, .45);
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .55);
    padding: 20px 22px 18px;
    cursor: default;
}

.home-process__stage.is-active:hover {
    opacity: 1;
    background: rgba(253, 182, 20, .08);
}

.home-process__stage-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-process__stage-num {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.home-process__stage.is-active .home-process__stage-num,
.home-process__stage.is-done .home-process__stage-num {
    background: var(--hp-orange);
    color: #1a1305;
    border-color: var(--hp-orange);
}

.home-process__step-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(253, 182, 20, .75);
    margin-bottom: 2px;
}

.home-process__stage.is-active .home-process__step-label {
    color: var(--hp-orange);
}

.home-process__stage h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .78);
    line-height: 1.45;
    transition: color .3s ease, font-size .3s ease;
}

.home-process__stage.is-active h3 {
    color: #fff;
    font-size: 1.28rem;
}

.home-process__stage-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s ease, margin .35s ease, opacity .35s ease;
    opacity: 0;
    margin: 0;
}

.home-process__stage.is-active .home-process__stage-body {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
    margin-right: 60px;
}

.home-process__stage-body > p {
    overflow: hidden;
    margin: 0;
    max-width: 52ch;
    color: var(--hp-muted);
    font-size: 14.5px;
    line-height: 2;
}

.home-process__footer {
    max-width: 920px;
    margin: 28px auto 0;
}

.home-process__bar {
    height: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
    overflow: hidden;
}

.home-process__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--hp-orange), #ffe08a);
    transition: width .5s cubic-bezier(.22, .7, .2, 1);
}

.home-process__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: 13.5px;
}

.home-process__hint-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-orange);
    flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(253, 182, 20, .5);
    animation: hp-hint-pulse 2.4s ease-out infinite;
}

@keyframes hp-hint-pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .5); }
    70% { box-shadow: 0 0 0 10px rgba(253, 182, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 182, 20, 0); }
}

/* ---- process: responsive (same layout on mobile) ---- */

@media (max-width: 767.98px) {
    .home-process__inner {
        padding-top: 40px;
        padding-bottom: 44px;
    }
    .home-process__head {
        margin-bottom: 22px;
    }
    .home-process__body {
        grid-template-columns: 46px 1fr;
        gap: 14px;
    }
    .home-process__dots li {
        width: 30px;
        height: 30px;
        font-size: 12.5px;
    }
    .home-process__spine {
        top: 22px;
        bottom: 22px;
    }
    .home-process__stage-wrap {
        padding: 12px;
    }
    .home-process__stage {
        padding: 12px 14px;
    }
    .home-process__stage.is-active {
        padding: 16px 16px 14px;
    }
    .home-process__stage-head {
        gap: 12px;
    }
    .home-process__stage-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .home-process__stage h3 {
        font-size: .98rem;
    }
    .home-process__stage.is-active h3 {
        font-size: 1.1rem;
    }
    .home-process__stage.is-active .home-process__stage-body {
        margin-right: 0;
    }
    .home-process__stage-body > p {
        font-size: 13.5px;
        line-height: 1.95;
    }
    .home-process__hint {
        font-size: 12.5px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-process__stage,
    .home-process__stage-body,
    .home-process__stage-num,
    .home-process__dots li,
    .home-process__spine-fill,
    .home-process__bar-fill {
        transition: none !important;
    }
    .home-process__hint-icon {
        animation: none !important;
    }
}

@media (max-width: 991.98px) {
    .home-services {
        margin-top: -48px;
        padding: 0 8px 20px;
    }
    .home-services__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        gap: 32px;
    }
    .home-service { min-height: 0; }
    .home-service__index { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-service,
    .home-service__icon,
    .home-service__line {
        transition: none !important;
    }
    .home-service {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== Featured works / selected projects ========== */

.home-works {
    --hw-orange: #fdb614;
    --hw-orange-soft: #ffd970;
    --hw-dark: #171b26;
    --hw-card: #1e2330;
    --hw-blue: #1e2958;
    --hw-muted: rgba(255, 255, 255, .66);
    --hw-line: rgba(255, 255, 255, .09);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 48px 0 0;
    padding: 82px 0 88px;
    color: #fff;
    /* روی کانواس تیره مشترک صفحه می‌نشیند؛ بدون لایه اضافه تا مرزی بین سکشن‌ها دیده نشود */
    background: radial-gradient(ellipse 90% 70% at 80% 0%, rgba(30, 41, 88, .34), transparent 62%);
}

.home-works__mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 10%, transparent 78%);
}

.home-works__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.home-works__glow--1 {
    width: 460px;
    height: 460px;
    top: -180px;
    right: -120px;
    background: var(--hw-blue);
    opacity: .32;
}

.home-works__glow--2 {
    width: 400px;
    height: 400px;
    bottom: -160px;
    left: -110px;
    background: var(--hw-blue);
    opacity: .42;
}

.home-works__inner {
    position: relative;
    z-index: 1;
}

/* ---- head ---- */

.home-works__head {
    text-align: center;
    margin-bottom: 46px;
}

.home-works__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .28);
    background: rgba(253, 182, 20, .07);
    color: var(--hw-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
}

.home-works__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hw-orange);
    box-shadow: 0 0 0 0 rgba(253, 182, 20, .55);
    animation: hw-pulse 2.4s ease-out infinite;
}

@keyframes hw-pulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 182, 20, .5); }
    70% { box-shadow: 0 0 0 9px rgba(253, 182, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 182, 20, 0); }
}

.home-works__title {
    margin: 16px 0 12px;
    font-size: clamp(27px, 3.3vw, 40px);
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
}

.home-works__subtitle {
    margin: 0 auto;
    max-width: 560px;
    color: var(--hw-muted);
    font-size: 15.5px;
    line-height: 2;
}

.home-works__rule {
    display: block;
    width: 72px;
    height: 3px;
    margin: 22px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--hw-orange), transparent);
}

/* ---- grid ---- */

.home-works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* ---- card ---- */

.home-work {
    position: relative;
    min-width: 0;
}

.home-work__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--hw-card) 0%, #191d28 100%);
    border: 1px solid var(--hw-line);
    box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .8);
    text-decoration: none;
    color: inherit;
    transition:
        transform .5s cubic-bezier(.22, .7, .2, 1),
        border-color .4s ease,
        box-shadow .5s ease;
}

.home-work__link:hover,
.home-work__link:focus-visible {
    transform: translateY(-10px);
    border-color: rgba(253, 182, 20, .42);
    box-shadow: 0 38px 64px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(253, 182, 20, .12);
    text-decoration: none;
    color: inherit;
}

.home-work__link:focus-visible {
    outline: 2px solid var(--hw-orange);
    outline-offset: 3px;
}

/* corner accent line */
.home-work__frame {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--hw-orange));
    transition: width .55s cubic-bezier(.22, .7, .2, 1);
}

.home-work__link:hover .home-work__frame,
.home-work__link:focus-visible .home-work__frame {
    width: 100%;
}

/* ---- media ---- */

/* نسبت ثابت 4:3 برای همه تصاویر (padding hack تا در مرورگرهای قدیمی هم یکسان باشد) */
.home-work__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 75%;
    background: #12151d;
}

.home-work__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    filter: saturate(.88) contrast(1.02);
    transition: transform .9s cubic-bezier(.22, .7, .2, 1), filter .6s ease;
}

.home-work__link:hover .home-work__img,
.home-work__link:focus-visible .home-work__img {
    transform: scale(1.11);
    filter: saturate(1.06) contrast(1.05);
}

.home-work__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 19, 28, .1) 0%, rgba(16, 19, 28, .18) 45%, rgba(16, 19, 28, .88) 100%);
    transition: opacity .5s ease;
}

.home-work__link:hover .home-work__veil {
    opacity: .82;
}

.home-work__shine {
    position: absolute;
    top: -60%;
    right: -140%;
    width: 55%;
    height: 220%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
    pointer-events: none;
}

.home-work__link:hover .home-work__shine {
    animation: hw-shine 1.1s cubic-bezier(.3, .1, .3, 1) forwards;
}

@keyframes hw-shine {
    from { right: -140%; }
    to { right: 140%; }
}

.home-work__status {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
    backdrop-filter: blur(6px);
    border: 1px solid transparent;
}

.home-work__status.is-processing {
    background: rgba(253, 182, 20, .16);
    border-color: rgba(253, 182, 20, .5);
    color: var(--hw-orange-soft);
}

.home-work__status.is-done {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .26);
    color: #fff;
}

.home-work__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.home-work__status.is-processing .home-work__status-dot {
    animation: hw-blink 1.6s ease-in-out infinite;
}

@keyframes hw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

/* ---- body ---- */

.home-work__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px 20px 18px;
}

.home-work__cat {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(253, 182, 20, .8);
}

.home-work__name {
    margin: 0 0 10px;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
    transition: color .35s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-work__link:hover .home-work__name {
    color: var(--hw-orange);
}

.home-work__text {
    margin: 0 0 16px;
    color: var(--hw-muted);
    font-size: 14px;
    line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-work__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hw-line);
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    transition: color .35s ease, border-color .35s ease;
}

.home-work__link:hover .home-work__more {
    color: var(--hw-orange);
    border-color: rgba(253, 182, 20, .3);
}

.home-work__arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.home-work__link:hover .home-work__arrow {
    transform: translateX(-6px);
}

/* ---- cta ---- */

.home-works__cta {
    margin-top: 52px;
    text-align: center;
}

.home-works__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 38px;
    border-radius: 999px;
    border: 1px solid rgba(253, 182, 20, .55);
    background: rgba(253, 182, 20, .08);
    color: var(--hw-orange);
    font-size: 15.5px;
    font-weight: 800;
    text-decoration: none;
    transition:
        color .35s ease,
        border-color .35s ease,
        transform .4s cubic-bezier(.22, .7, .2, 1),
        box-shadow .45s ease;
}

.home-works__btn-sweep {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #e5a000, var(--hw-orange) 55%, var(--hw-orange-soft));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .5s cubic-bezier(.22, .7, .2, 1);
}

.home-works__btn:hover,
.home-works__btn:focus-visible {
    color: #1a1305;
    border-color: var(--hw-orange);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -18px rgba(253, 182, 20, .65);
    text-decoration: none;
}

.home-works__btn:hover .home-works__btn-sweep,
.home-works__btn:focus-visible .home-works__btn-sweep {
    transform: scaleX(1);
}

.home-works__btn-arrow {
    width: 19px;
    height: 19px;
    transition: transform .4s cubic-bezier(.22, .7, .2, 1);
}

.home-works__btn:hover .home-works__btn-arrow {
    transform: translateX(-7px);
}

.home-works__cta-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .42);
    font-size: 13px;
}

/* ---- reveal ---- */

[data-hw-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity .75s cubic-bezier(.22, .7, .2, 1) var(--hw-delay, 0ms),
        transform .75s cubic-bezier(.22, .7, .2, 1) var(--hw-delay, 0ms);
    will-change: opacity, transform;
}

[data-hw-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---- responsive ---- */

@media (max-width: 1199.98px) {
    .home-works__grid {
        gap: 22px;
    }
}

@media (max-width: 991.98px) {
    .home-works {
        margin-top: 32px;
        padding: 58px 0 62px;
    }
    .home-works__head {
        margin-bottom: 34px;
    }
    .home-works__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .home-works__cta {
        margin-top: 38px;
    }
}

@media (max-width: 575.98px) {
    .home-works {
        padding: 48px 0 54px;
    }
    .home-works__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 420px;
        margin: 0 auto;
    }
    .home-works__title {
        font-size: 25px;
    }
    .home-works__subtitle {
        font-size: 14.5px;
    }
    .home-works__btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-hw-reveal],
    .home-work__link,
    .home-work__img,
    .home-work__arrow,
    .home-works__btn,
    .home-works__btn-arrow,
    .home-works__btn-sweep {
        transition: none !important;
    }
    [data-hw-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    .home-work__link:hover {
        transform: none;
    }
    .home-works__eyebrow-dot,
    .home-work__status-dot,
    .home-work__shine {
        animation: none !important;
    }
}
