/* Project page: views/project-detail/index.php and _pd-*.php; behaviour in assets/js/project-detail.js.
   Shares .pj-* (buttons, cards, section heads) with projects-page.css and the description engine with
   service-detail.css. --tint is the project's brand colour "r,g,b". */

.pd-dots {
    display: flex;
    gap: 6px;
}
.pd-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #FF6159;
}
.pd-dots i:nth-child(2) { background: #FFBD2E; }
.pd-dots i:nth-child(3) { background: #28C941; }

/* ---------- hero ---------- */
.pd-hero-wrap {
    margin-top: 40px;
}
.pd-layer {
    display: block;
    height: 20px;
    margin: 0 59px;
    border-radius: 30px 30px 0 0;
    background: #3A3466;
}
.pd-layer-2 {
    margin: 0 30px;
    background: #2B2652;
}
.pd-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    padding: 40px 44px;
    border-radius: 32px;
    color: #fff;
    background:
        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);
}
.pd-hero-aura {
    position: absolute;
    top: -10%;
    left: -5%;
    z-index: -1;
    width: 60%;
    height: 120%;
    background-position: center;
    background-size: cover;
    filter: blur(90px) saturate(1.8);
    opacity: .5;
}
[dir="ltr"] .pd-hero-aura {
    right: -5%;
    left: auto;
}
.pd-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .45);
}
.pd-crumbs a {
    color: rgba(255, 255, 255, .7);
}
.pd-crumbs a:hover {
    color: #fff;
}
.pd-crumbs [aria-current] {
    color: #FF9A6B;
}
.pd-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}
.pd-logo {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border: 4px solid #fff;
    border-radius: 22px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0 40px -6px rgba(var(--tint), .9);
}
.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 12.5px;
}
.pd-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(var(--tint));
    box-shadow: 0 0 0 4px rgba(var(--tint), .25);
}
.pd-title {
    margin-top: 8px;
    font-size: 36px;
    line-height: 1.45;
}
.pd-desc {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 2.1;
    color: rgba(255, 255, 255, .68);
}
.pd-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 0;
}
.pd-facts div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
}
.pd-facts dt {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}
.pd-facts dd {
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pd-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}
.pd-pad {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--tint), .75), rgba(var(--tint), .15) 55%, transparent 72%);
    transform: translateX(-50%);
}
.pd-pad span {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(var(--tint), .7);
    border-radius: 50%;
    animation: pdPad 2.6s ease-out infinite;
}
@keyframes pdPad {
    from { transform: scale(.6); opacity: 1; }
    to { transform: scale(1.25); opacity: 0; }
}
.pd-browser {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: #15113A;
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .8), 0 0 70px -20px rgba(var(--tint), .8);
}
.pd-browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
    padding: 0 12px;
    direction: ltr;
    background: #1A1545;
}
.pd-browser-bar em {
    flex: 1;
    overflow: hidden;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-family: Montserrat-Regular, sans-serif;
    font-size: 11.5px;
    font-style: normal;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
}
.pd-browser-screen {
    height: 340px;
    overflow: hidden;
    background: #F1F4F7;
}
.pd-browser-screen img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    animation: pdScroll 26s ease-in-out infinite alternate;
}
@keyframes pdScroll {
    0%, 8% { transform: translateY(0); }
    92%, 100% { transform: translateY(calc(-100% + 340px)); }
}
.pd-browser.is-phone {
    width: 230px;
    border: 8px solid #15113A;
    border-radius: 34px;
}
.pd-browser.is-phone .pd-browser-bar {
    display: none;
}
.pd-browser.is-phone .pd-browser-screen {
    height: 440px;
    border-radius: 26px;
}
.pd-phone {
    position: absolute;
    bottom: 10px;
    inset-inline-end: -6px;
    z-index: 2;
    width: 140px;
    height: 280px;
    overflow: hidden;
    border: 6px solid #15113A;
    border-radius: 26px;
    background: #F1F4F7;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8);
    transform: rotate(-5deg);
}
.pd-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ---------- gallery ---------- */
.pd-gal-wrap {
    margin-top: 56px;
    scroll-margin-top: 20px;
}
.pd-gal {
    padding: 30px 32px 34px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 24px 50px -36px rgba(17, 14, 45, .5);
}
.pd-gal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}
.pd-gal-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 18px;
    background: #F1F4F7;
    scrollbar-width: none;
}
.pd-gal-tab {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 13.5px;
    color: rgba(17, 14, 45, .65);
    transition: background-color .25s, color .25s;
}
.pd-gal-tab b {
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}
.pd-gal-tab.is-active {
    color: #fff;
    background: #110E2D;
}
.pd-gal-tab.is-active b {
    color: #fff;
    background: #EE5D38;
}
.pd-group {
    margin-top: 28px;
}
.pd-group[hidden] {
    display: none;
}
.pd-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #110E2D;
}
.pd-group-title b {
    padding: 0 9px;
    border-radius: 999px;
    background: #FDEEEA;
    font-size: 12px;
    line-height: 22px;
    color: #EE5D38;
}
.pd-group-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(150deg, #241E58, #110E2D);
}
.pd-row[data-pd-scroll] {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    margin: 0 -32px;
    padding: 14px 32px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.pd-shot {
    position: relative;
    display: block;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: inherit;
    cursor: zoom-in;
    scroll-snap-align: start;
}
.pd-shot-img {
    display: block;
    overflow: hidden;
    background: #F1F4F7;
}
.pd-shot-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.pd-shot:hover .pd-shot-img img {
    transform: scale(1.05);
}
.pd-shot-n {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(17, 14, 45, .78);
    font-size: 12px;
    color: #fff;
}
.pd-shot-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: #EE5D38;
    box-shadow: 0 12px 24px -8px rgba(238, 93, 56, .8);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
    transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.pd-shot:hover .pd-shot-zoom,
.pd-shot:focus-visible .pd-shot-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
/* desktop pages: browser frames */
.pd-shot--desktop {
    width: 400px;
    overflow: hidden;
    border-radius: 18px;
    background: #15113A;
    box-shadow: 0 22px 40px -28px rgba(var(--tint), .9);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.pd-shot--desktop:hover {
    box-shadow: 0 30px 50px -26px rgba(var(--tint), 1);
    transform: translateY(-6px);
}
.pd-shot-bar {
    display: flex;
    gap: 5px;
    height: 26px;
    padding: 9px 10px 0;
    direction: ltr;
    background: #1A1545;
}
.pd-shot-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF6159;
}
.pd-shot-bar i:nth-child(2) { background: #FFBD2E; }
.pd-shot-bar i:nth-child(3) { background: #28C941; }
.pd-shot--desktop .pd-shot-img {
    aspect-ratio: 16 / 10;
}
.pd-shot--desktop .pd-shot-n {
    top: 36px;
}
/* mobile screens: a fan of phones */
.pd-group--mobile .pd-row {
    gap: 0;
    padding-top: 26px;
    padding-bottom: 34px;
}
.pd-shot--mobile {
    width: 190px;
    margin-inline-end: -28px;
    overflow: hidden;
    border: 7px solid #15113A;
    border-radius: 30px;
    background: #15113A;
    box-shadow: 0 26px 40px -22px rgba(17, 14, 45, .6);
    transform: rotate(calc((var(--k) - 1) * 2deg)) translateY(calc(var(--k) * 4px));
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), margin .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.pd-group--mobile .pd-row:hover .pd-shot--mobile {
    margin-inline-end: 14px;
    transform: none;
}
.pd-group--mobile .pd-row .pd-shot--mobile:hover {
    z-index: 3;
    box-shadow: 0 34px 50px -20px rgba(var(--tint), .9);
    transform: translateY(-12px) scale(1.04);
}
.pd-shot--mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: 64px;
    height: 14px;
    border-radius: 0 0 10px 10px;
    background: #15113A;
    transform: translateX(-50%);
}
.pd-shot--mobile .pd-shot-img {
    aspect-ratio: 9 / 19;
    border-radius: 22px;
}
.pd-shot--mobile .pd-shot-n {
    top: 22px;
}
/* sections: bento grid */
.pd-group--section .pd-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
}
.pd-shot--section {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 34px -26px rgba(17, 14, 45, .6);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.pd-shot--section:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.pd-shot--section .pd-shot-img {
    height: 100%;
}
.pd-shot--section .pd-shot-img img {
    object-position: center;
}
.pd-shot--section:hover {
    box-shadow: 0 26px 44px -24px rgba(var(--tint), .9);
    transform: translateY(-5px);
}

/* the viewer */
.pd-vw {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pd-vw[hidden] {
    display: none;
}
.pd-vw-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 5, 18, .9);
    animation: pdFade .3s ease;
}
@keyframes pdFade {
    from { opacity: 0; }
}
.pd-vw-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(1200px, 100%);
    max-height: calc(100vh - 40px);
    animation: pdIn .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pdIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
}
.pd-vw-top {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.pd-vw-count {
    font-family: Montserrat-Bold, IranSansFaNum-Bold, sans-serif;
    font-size: 14px;
    letter-spacing: .1em;
    color: #FF9A6B;
}
.pd-vw-kind {
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
}
.pd-vw-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-inline-start: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transition: background-color .25s, transform .25s;
}
.pd-vw-x:hover {
    background: #EE5D38;
    transform: rotate(90deg);
}
.pd-vw-stage {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 0;
}
.pd-vw-arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transition: background-color .25s, border-color .25s;
}
.pd-vw-arrow:hover {
    border-color: #EE5D38;
    background: #EE5D38;
}
.pd-vw-device {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: #15113A;
    box-shadow: 0 0 80px -20px rgba(var(--tint), .8);
    transition: opacity .25s;
}
.pd-vw-device.is-swapping {
    opacity: .35;
}
.pd-vw-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    padding: 0 12px;
    direction: ltr;
    background: #1A1545;
}
.pd-vw-bar em {
    flex: 1;
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-family: Montserrat-Regular, sans-serif;
    font-size: 11.5px;
    font-style: normal;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
    text-align: center;
    text-overflow: ellipsis;
}
.pd-vw-screen {
    position: relative;
    height: min(70vh, 680px);
    overflow-y: auto;
    background: #F1F4F7;
    overscroll-behavior: contain;
}
.pd-vw-screen img {
    display: block;
    width: 100%;
    height: auto;
}
.pd-vw-device.is-mobile {
    flex: 0 0 auto;
    width: min(100%, 360px);
    border: 10px solid #15113A;
    border-radius: 40px;
}
.pd-vw-device.is-mobile .pd-vw-bar,
.pd-vw-device.is-section .pd-vw-bar {
    display: none;
}
.pd-vw-device.is-mobile .pd-vw-screen {
    border-radius: 30px;
}
.pd-vw-device.is-section .pd-vw-screen {
    display: flex;
    align-items: center;
    background: #0E0B26;
}
.pd-vw-loading {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 3px solid rgba(238, 93, 56, .2);
    border-top-color: #EE5D38;
    border-radius: 50%;
    animation: pdSpin .8s linear infinite;
}
.pd-vw-loading[hidden] {
    display: none;
}
@keyframes pdSpin {
    to { transform: rotate(1turn); }
}
.pd-vw-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
}
.pd-vw-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 46px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #1A1545;
    opacity: .55;
    transition: opacity .25s, border-color .25s;
}
.pd-vw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.pd-vw-thumb:hover,
.pd-vw-thumb.is-active {
    border-color: #EE5D38;
    opacity: 1;
}
html.pd-vw-open {
    overflow: hidden;
}

/* ---------- description side card ---------- */
.pd-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}
.pd-card-brand img {
    width: 42px;
    height: 42px;
    border: 3px solid #fff;
    border-radius: 13px;
    background: #fff;
}
.pd-card-facts {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
}
.pd-card-facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    font-size: 12.5px;
}
.pd-card-facts dt {
    color: rgba(255, 255, 255, .5);
}
.pd-card-facts dd {
    margin: 0;
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sd-layout .pd-card-facts a {
    color: #FF9A6B;
}

/* ---------- keep reading ---------- */
.pd-read-wrap {
    margin-top: 60px;
}
.pd-read {
    position: relative;
    overflow: hidden;
    padding: 34px 36px 38px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(560px 340px at 85% 0%, rgba(155, 123, 255, .24), transparent 70%),
        radial-gradient(520px 340px at 10% 100%, rgba(var(--tint), .28), transparent 70%),
        linear-gradient(160deg, #0B0920, #16123A 60%, #1F1950);
    box-shadow: 0 34px 70px -40px rgba(17, 14, 45, .9);
}
.pd-read-head {
    position: relative;
    max-width: 760px;
}
.pd-read-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(238, 93, 56, .18);
    font-size: 12.5px;
    font-weight: 700;
    color: #FF9A6B;
}
.pd-read-title {
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.7;
}
.pd-read-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 26px;
    margin-top: 26px;
}
.pd-read-preview {
    position: sticky;
    top: 20px;
    align-self: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 26px;
    background: rgba(255, 255, 255, .05);
}
.pd-read-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(150deg, #2A2360, #15113A);
}
.pd-read-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: pdKen 14s ease-in-out infinite alternate;
    transition: opacity .35s;
}
.pd-read-cover img.is-swap {
    opacity: 0;
}
@keyframes pdKen {
    to { transform: scale(1.08) translateY(-2%); }
}
.pd-read-kind {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #EE5D38;
    font-size: 12px;
    font-weight: 700;
}
.pd-read-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
}
.pd-read-ptitle {
    font-size: 19px;
    line-height: 1.7;
}
.pd-read-intro {
    font-size: 13.5px;
    line-height: 2;
    color: rgba(255, 255, 255, .68);
}
.pd-read-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}
.pd-read-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pd-read-meta [hidden] {
    display: none;
}
.pd-read-body .pj-btn {
    align-self: flex-start;
    margin-top: 8px;
}
.pd-read-list {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pd-read-list::before {
    content: '';
    position: absolute;
    top: 26px;
    bottom: 26px;
    inset-inline-start: 23px;
    width: 2px;
    background: linear-gradient(rgba(255, 154, 107, .7), rgba(155, 123, 255, .4));
    opacity: .5;
}
.pd-read-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px 9px 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    transition: background-color .3s, border-color .3s, transform .3s;
}
[dir="rtl"] .pd-read-item {
    padding: 9px 9px 9px 12px;
}
.pd-read-item:hover,
.pd-read-item.is-active {
    color: #fff;
    border-color: rgba(238, 93, 56, .55);
    background: rgba(238, 93, 56, .14);
}
.pd-read-item.is-active {
    transform: translateX(-6px);
}
[dir="ltr"] .pd-read-item.is-active {
    transform: translateX(6px);
}
.pd-read-n {
    position: relative;
    z-index: 1;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #241E58;
    box-shadow: 0 0 0 4px #16123A;
    font-size: 12px;
    transition: background-color .3s;
}
.pd-read-item.is-active .pd-read-n {
    background: #EE5D38;
}
.pd-read-thumb {
    flex-shrink: 0;
    width: 74px;
    height: 50px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(150deg, #2A2360, #15113A);
}
.pd-read-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-read-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.pd-read-ititle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.75;
}
.pd-read-imeta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .5);
}
.pd-read-go {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: background-color .3s;
}
.pd-read-item:hover .pd-read-go,
.pd-read-item.is-active .pd-read-go {
    background: #EE5D38;
}

/* ---------- steps ---------- */
.pd-steps-wrap {
    margin-top: 60px;
}
.pd-steps {
    padding: 30px 30px 36px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 24px 50px -36px rgba(17, 14, 45, .5);
}
.pd-steps-track {
    position: relative;
    margin-top: 10px;
}
.pd-steps-line {
    position: absolute;
    top: 30px;
    right: calc(100% / var(--n) / 2);
    left: calc(100% / var(--n) / 2);
    height: 3px;
    border-radius: 3px;
    background: #E8EDF3;
}
.pd-steps-line span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #EE5D38, #FF9A6B);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform calc(var(--n) * .45s) linear .2s;
}
[dir="ltr"] .pd-steps-line span {
    transform-origin: left;
}
.pd-steps.is-on .pd-steps-line span {
    transform: scaleX(1);
}
.pd-steps-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pd-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.pd-step-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 3px solid #E8EDF3;
    border-radius: 50%;
    color: rgba(17, 14, 45, .4);
    background: #fff;
    transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
    transition-delay: calc(var(--i) * .45s + .2s);
}
.pd-steps.is-on .pd-step-node {
    border-color: #EE5D38;
    color: #fff;
    background: linear-gradient(150deg, #FF7A50, #EE5D38);
    box-shadow: 0 0 0 6px rgba(238, 93, 56, .14), 0 14px 24px -10px rgba(238, 93, 56, .7);
}
.pd-step-n {
    font-size: 12px;
    color: #EE5D38;
}
.pd-step-t {
    font-size: 13px;
    line-height: 1.8;
    color: #110E2D;
}

/* ---------- next project and related ---------- */
.pd-next-wrap {
    margin-top: 60px;
}
.pd-next {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    overflow: hidden;
    padding: 34px 40px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 18px 18px,
        linear-gradient(150deg, #0E0B26, #1C1747 55%, #241E58);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.pd-next:hover {
    color: #fff;
    transform: translateY(-4px);
}
.pd-next-aura {
    position: absolute;
    top: -20%;
    right: -10%;
    z-index: -1;
    width: 70%;
    height: 140%;
    background-position: center;
    background-size: cover;
    filter: blur(90px) saturate(1.8);
    opacity: .45;
    transition: opacity .5s;
}
.pd-next:hover .pd-next-aura {
    opacity: .75;
}
.pd-next-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-next-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #FF9A6B;
}
.pd-next-title {
    font-size: 30px;
    line-height: 1.5;
}
.pd-next-sub {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
}
.pd-next-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: #15113A;
    box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(var(--tint), .8);
    transform: rotate(-2deg);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.pd-next:hover .pd-next-frame {
    transform: rotate(0) scale(1.02);
}
.pd-next-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}
.pd-rel-head {
    margin-top: 44px;
}
.pd-rel-grid .pj-card-media {
    cursor: pointer;
}

/* ---------- tablet & phone ---------- */
@media (max-width: 1023px) {
    .pd-hero,
    .pd-next {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 22px;
    }
    .pd-visual {
        order: -1;
    }
    .pd-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pd-read-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .pd-steps-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 24px;
    }
    .pd-steps-line {
        display: none;
    }
    .pd-steps .pd-step-node {
        transition-delay: calc(var(--i) * .25s);
    }
    .pd-group--section .pd-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 639px) {
    .pd-hero-wrap {
        margin-top: 20px;
    }
    .pd-layer {
        height: 14px;
        margin: 0 30px;
    }
    .pd-layer-2 {
        margin: 0 15px;
    }
    .pd-hero,
    .pd-next,
    .pd-read,
    .pd-gal,
    .pd-steps {
        padding: 22px 16px;
        border-radius: 24px;
    }
    .pd-title {
        font-size: 25px;
    }
    .pd-logo {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }
    .pd-browser-screen {
        height: 220px;
    }
    @keyframes pdScroll {
        0%, 8% { transform: translateY(0); }
        92%, 100% { transform: translateY(calc(-100% + 220px)); }
    }
    .pd-phone {
        width: 96px;
        height: 190px;
        border-width: 4px;
        border-radius: 18px;
    }
    .pd-row[data-pd-scroll] {
        margin: 0 -16px;
        padding: 12px 16px 20px;
    }
    .pd-shot--desktop {
        width: 280px;
    }
    .pd-shot--mobile {
        width: 150px;
    }
    .pd-group--section .pd-row {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 180px;
    }
    .pd-shot--section:first-child {
        grid-column: auto;
        grid-row: span 1;
    }
    .pd-vw {
        padding: 8px;
    }
    .pd-vw-arrow {
        display: none;
    }
    .pd-vw-screen {
        height: 66vh;
    }
    .pd-read-title,
    .pd-next-title {
        font-size: 20px;
    }
    .pd-steps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    .pd-pad span,
    .pd-browser-screen img,
    .pd-read-cover img {
        animation: none;
    }
}
