.roles-page {
    background:
        radial-gradient(circle at 75% 17%, rgba(125, 11, 32, .16), transparent 27%),
        linear-gradient(180deg, #060407 0, #030305 38%, #070609 100%);
}

.roles-page main {
    overflow: hidden;
}

.roles-hero {
    position: relative;
    min-height: 650px;
    padding-top: 190px;
    padding-bottom: 78px;
}

.roles-hero__copy {
    width: 100%;
}

.roles-hero__copy h1 {
    margin: 20px 0 0;
    color: transparent;
    background: linear-gradient(105deg, #fff 0, #eee4e7 55%, #9d1029 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font: 650 clamp(48px, 7vw, 88px)/.9 var(--display);
    letter-spacing: -.06em;
    text-transform: uppercase;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .48));
}

.roles-pulse {
    width: 100vw;
    height: 110px;
    margin: 44px 0 0 calc(50% - 50vw);
    overflow: hidden;
}

.roles-pulse svg {
    display: block;
    width: 100%;
    height: 100%;
}

.roles-pulse path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.roles-pulse__base {
    stroke: rgba(125, 11, 32, .52);
    stroke-width: 1;
}

.roles-pulse__signal {
    stroke: var(--red-hot);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 150 1050;
    stroke-dashoffset: 1200;
    filter: drop-shadow(0 0 8px rgba(241, 42, 77, .78));
    animation: roles-pulse-run 3.2s linear infinite;
}

.wraith-card {
    position: relative;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    min-height: 430px;
    padding: 44px;
    overflow: hidden;
    border: 1px solid rgba(241, 42, 77, .28);
    background:
        linear-gradient(120deg, rgba(125, 11, 32, .18), transparent 47%),
        rgba(9, 6, 10, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 38px 100px rgba(0, 0, 0, .38);
}

.wraith-card::before {
    position: absolute;
    inset: 0 15% auto;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
    box-shadow: 0 0 22px rgba(241, 42, 77, .65);
}

.wraith-card::after {
    position: absolute;
    right: -70px;
    bottom: -120px;
    width: 310px;
    aspect-ratio: 1;
    border: 1px solid rgba(241, 42, 77, .12);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 80px rgba(125, 11, 32, .14), inset 0 0 80px rgba(125, 11, 32, .09);
}

.wraith-card__orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 170px;
    aspect-ratio: 1;
    border: 1px solid rgba(241, 42, 77, .22);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(125, 11, 32, .16), inset 0 0 38px rgba(125, 11, 32, .1);
}

.wraith-card__orbit::before,
.wraith-card__orbit::after {
    position: absolute;
    border-radius: inherit;
    content: "";
}

.wraith-card__orbit::before {
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, .13);
    animation: role-orbit 24s linear infinite;
}

.wraith-card__orbit::after {
    inset: 47px;
    background: radial-gradient(circle, rgba(241, 42, 77, .2), rgba(125, 11, 32, .06) 55%, transparent 70%);
}

.wraith-card__orbit i {
    position: absolute;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-hot);
    box-shadow: 0 0 18px var(--red-hot);
}

.wraith-card__orbit b {
    position: relative;
    z-index: 1;
    color: #fff;
    font: 700 42px/1 var(--display);
    text-shadow: 0 0 28px rgba(241, 42, 77, .58);
}

.wraith-card__copy {
    position: relative;
    z-index: 1;
}

.role-code {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8d8287;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.role-code span {
    color: var(--red-hot);
    font: 600 13px var(--display);
}

.wraith-card h2 {
    margin: 18px 0 0;
    color: #fff;
    font: 700 clamp(44px, 5vw, 72px)/.9 var(--display);
    letter-spacing: -.06em;
    text-shadow: 0 0 30px rgba(213, 29, 61, .26);
}

.wraith-card p {
    max-width: 39ch;
    margin: 22px 0 0;
    color: #b8adb1;
    font-size: 13px;
    line-height: 1.7;
}

.protected-mark {
    display: inline-flex;
    margin-top: 26px;
    padding: 9px 12px;
    color: #ffdbe2;
    border: 1px solid rgba(241, 42, 77, .32);
    background: rgba(125, 11, 32, .18);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.role-system {
    padding: 34px 0 140px;
}

.role-system__head {
    display: block;
    margin-bottom: 56px;
}

.role-system__head h2 {
    max-width: 760px;
    margin: 18px 0 0;
    font: 650 clamp(42px, 6vw, 76px)/.94 var(--display);
    letter-spacing: -.055em;
    text-transform: uppercase;
}

.role-system__head h2 em {
    color: var(--red-hot);
    display: inline-block;
    font-style: normal;
    white-space: nowrap;
    text-shadow: 0 0 24px rgba(213, 29, 61, .34);
}

.role-system__head > p {
    margin: 0 0 5px;
    color: #9d9296;
    font-size: 14px;
    line-height: 1.7;
}

.role-ladder {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.role-ladder::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 74px;
    width: 1px;
    content: "";
    background: linear-gradient(var(--red-hot), rgba(255, 255, 255, .08));
}

.role-tier {
    --tier-color: #8c8387;
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(260px, 1fr) minmax(180px, .65fr) minmax(210px, .7fr);
    align-items: center;
    gap: 24px;
    min-height: 164px;
    padding: 18px 28px 18px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    transition: padding .28s ease, background .28s ease;
}

.role-tier::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--tier-color) 13%, transparent) 48%, transparent 66%);
    opacity: 0;
    transform: translateX(-75%);
}

.role-tier::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: var(--tier-color);
    opacity: 0;
    box-shadow: 0 0 18px var(--tier-color);
    transition: opacity .28s ease;
}

.role-tier:hover {
    padding-left: 18px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tier-color) 10%, transparent), transparent 68%);
}

.role-tier:hover::after {
    opacity: 1;
}

.role-tier:hover::before {
    opacity: 1;
    animation: role-tier-pulse .9s cubic-bezier(.2, .75, .2, 1);
}

.role-tier--reaper { --tier-color: #f12a4d; }
.role-tier--shade { --tier-color: #c82a49; }
.role-tier--dusk { --tier-color: #9e4558; }
.role-tier--void { --tier-color: #6e676b; }

.role-tier__index {
    position: relative;
    z-index: 1;
    color: color-mix(in srgb, var(--tier-color) 75%, #fff);
    font: 600 14px var(--display);
    text-align: center;
}

.role-tier__identity small {
    color: #756d70;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.role-tier__identity h3 {
    margin: 10px 0 0;
    color: var(--tier-color);
    font: 700 clamp(38px, 5vw, 68px)/.82 var(--display);
    letter-spacing: -.055em;
    text-shadow: 0 0 25px color-mix(in srgb, var(--tier-color) 22%, transparent);
}

.role-tier__signal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.role-tier__signal i {
    height: 3px;
    background: rgba(255, 255, 255, .07);
}

.role-tier--reaper .role-tier__signal i:nth-child(-n+4),
.role-tier--shade .role-tier__signal i:nth-child(-n+3),
.role-tier--dusk .role-tier__signal i:nth-child(-n+2),
.role-tier--void .role-tier__signal i:nth-child(1) {
    background: var(--tier-color);
    box-shadow: 0 0 10px color-mix(in srgb, var(--tier-color) 45%, transparent);
}

.role-tier__range {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
}

.role-tier__range strong {
    color: #f2eaed;
    font: 650 clamp(22px, 2.2vw, 30px)/1 var(--display);
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.role-tier__range span {
    color: var(--tier-color);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.roles-note {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 18px;
    max-width: 720px;
    margin: 46px 0 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(241, 42, 77, .2);
}

.roles-note > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--red-hot);
    border: 1px solid rgba(241, 42, 77, .25);
    font: 700 16px var(--display);
}

.roles-note p {
    margin: 0;
    color: #92888c;
    font-size: 12px;
    line-height: 1.65;
}

.roles-note strong {
    color: #eadfe3;
}

@keyframes role-orbit {
    to { transform: rotate(360deg); }
}

@keyframes roles-pulse-run {
    to { stroke-dashoffset: 0; }
}

@keyframes role-tier-pulse {
    from { transform: translateX(-75%); }
    to { transform: translateX(75%); }
}

@media (max-width: 980px) {
    .roles-hero {
        padding-top: 170px;
        padding-bottom: 100px;
    }

    .wraith-card {
        grid-template-columns: 190px 1fr;
    }

    .role-tier {
        grid-template-columns: 90px minmax(210px, 1fr) minmax(150px, .55fr);
    }

    .role-tier__signal {
        display: none;
    }

    .role-ladder::before {
        left: 59px;
    }
}

@media (max-width: 700px) {
    .roles-hero {
        min-height: 560px;
        padding-top: 132px;
        padding-bottom: 78px;
    }

    .roles-pulse {
        height: 82px;
        margin-top: 36px;
    }

    .wraith-card {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 30px 24px;
    }

    .wraith-card__orbit {
        width: 116px;
    }

    .wraith-card h2 {
        font-size: 48px;
    }

    .role-system {
        padding-bottom: 92px;
    }

    .role-system__head {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .role-tier {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 15px;
        min-height: 138px;
        padding-right: 0;
    }

    .role-tier:hover {
        padding-left: 8px;
    }

    .role-ladder::before {
        left: 26px;
    }

    .role-tier__identity h3 {
        font-size: clamp(34px, 12vw, 54px);
    }

    .role-tier__range {
        grid-column: 2;
        align-items: flex-start;
        margin-top: -20px;
        text-align: left;
    }

    .role-tier__range strong {
        font-size: 19px;
    }

    .roles-note {
        margin-top: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wraith-card__orbit::before {
        animation: none;
    }

    .roles-pulse__signal,
    .role-tier:hover::before {
        animation: none;
    }
}
