.xh-faculty {
    --faculty-purple: #604491;
    --faculty-ink: #312842;
    --faculty-muted: #615970;
    margin: 0;
    color: var(--faculty-ink);
    background: #fff;
    font: inherit;
    line-height: 1.65;
}

.xh-faculty,
.xh-faculty *,
.xh-faculty *::before,
.xh-faculty *::after {
    box-sizing: border-box;
}

.xh-faculty :is(h1, h2, h3, p, ol, ul) {
    margin: 0;
}

.xh-faculty :is(ol, ul) {
    padding: 0;
    list-style: none;
}

.xh-faculty__section {
    padding-block: clamp(3.25rem, 6vw, 5.5rem);
    scroll-margin-top: 5.5rem;
}

.xh-faculty__inner {
    width: min(1120px, calc(100% - 3rem));
    margin-inline: auto;
}

.xh-faculty__heading {
    margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
    text-align: center;
}

.xh-faculty .xh-faculty__heading :is(h1, h2) {
    color: var(--faculty-purple);
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
    font-weight: 700;
    line-height: 1.25;
}

.xh-faculty .xh-faculty__heading p {
    margin-top: .6rem;
    color: var(--faculty-muted);
    font-size: .96rem;
}

.xh-faculty__selection {
    background:
        repeating-linear-gradient(139deg, transparent 0 8px, rgb(109 91 150 / 3%) 9px, transparent 11px 16px),
        radial-gradient(ellipse at 88% 8%, #e9e6f7, transparent 56%),
        linear-gradient(115deg, #f7f4fb, #f0f2f8);
}

.xh-faculty__path {
    --path-marker: 3.5rem;
    position: relative;
    display: grid;
    gap: clamp(.9rem, 2vw, 1.35rem);
}

.xh-faculty__path::before {
    position: absolute;
    inset-block: .95rem;
    inset-inline-start: calc(var(--path-marker) / 2);
    width: 1px;
    background: #c5b8d8;
    content: "";
}

.xh-faculty__milestone {
    --stage-accent: #664b97;
    --stage-tint: #eee8f7;
    position: relative;
    display: grid;
    grid-template-columns: var(--path-marker) minmax(0, 1fr);
    align-items: center;
    gap: clamp(.8rem, 3.5vw, 2.8rem);
}

.xh-faculty__milestone:nth-child(2) {
    --stage-accent: #78518a;
    --stage-tint: #f2e8f5;
}

.xh-faculty__milestone:nth-child(3) {
    --stage-accent: #57703a;
    --stage-tint: #e8efdf;
}

.xh-faculty__marker {
    display: grid;
    width: var(--path-marker);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--stage-accent);
    box-shadow: 0 0 0 .27rem #f3eff9;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700;
}

.xh-faculty__milestone-card {
    display: grid;
    grid-template-columns: minmax(8.2rem, .85fr) minmax(0, 3fr);
    align-items: stretch;
    gap: clamp(1rem, 2.8vw, 2.4rem);
    min-height: 8.6rem;
    padding: clamp(1.15rem, 2.6vw, 1.9rem);
    border: 1px solid rgb(255 255 255 / 92%);
    border-radius: 1.45rem;
    background: rgb(255 255 255 / 77%);
    box-shadow: 0 .7rem 1.8rem rgb(71 56 106 / 5%);
}

.xh-faculty .xh-faculty__milestone-card h2 {
    display: flex;
    align-items: center;
    padding-inline-end: .85rem;
    border-inline-end: 1px solid #ece5f4;
    color: var(--stage-accent);
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    font-weight: 700;
    line-height: 1.35;
}

.xh-faculty__milestone-body {
    display: grid;
    align-content: center;
    gap: .8rem;
    min-width: 0;
}

.xh-faculty__milestone-body p {
    color: var(--faculty-muted);
    font-size: .9rem;
}

.xh-faculty__criteria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem clamp(.5rem, 2vw, 1.6rem);
}

.xh-faculty__criteria li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--faculty-ink);
    font-size: .94rem;
    font-weight: 600;
}

.xh-faculty__criteria li::before {
    width: .43rem;
    height: .43rem;
    border: 1px solid var(--stage-accent);
    border-radius: 50%;
    background: var(--stage-tint);
    content: "";
}

.xh-faculty__training {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem .55rem;
    text-align: center;
}

.xh-faculty__training strong {
    display: inline-block;
    padding: .18rem .65rem;
    border-radius: 20rem;
    color: var(--stage-accent);
    background: var(--stage-tint);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.xh-faculty__training span {
    display: block;
    margin-top: .35rem;
    color: var(--faculty-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.xh-faculty__team {
    padding-block: clamp(2.5rem, 4.5vw, 4rem);
    background: #faf8fc;
}

.xh-faculty__team-panel {
    padding: clamp(1.05rem, 3vw, 2.25rem);
    border: 1px solid #e9e0f0;
    border-radius: 1.3rem;
    background: linear-gradient(110deg, #725595, #534ba4) top / 100% .35rem no-repeat, #fff;
    box-shadow: 0 .75rem 2rem rgb(79 58 112 / 5%);
}

.xh-faculty__team .xh-faculty__heading {
    margin-bottom: clamp(.85rem, 2.3vw, 1.5rem);
    text-align: left;
}

.xh-faculty .xh-faculty__team .xh-faculty__heading h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

.xh-faculty__team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(.65rem, 2vw, 1.2rem);
}

.xh-faculty__teacher {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7e0ef;
    border-radius: .85rem;
    color: var(--faculty-ink);
    background: #faf8fc;
    text-decoration: none;
}

.xh-faculty__teacher:hover {
    border-color: #977ab7;
    color: var(--faculty-purple);
}

.xh-faculty__teacher:focus-visible {
    outline: 2px solid var(--faculty-purple);
    outline-offset: 2px;
}

.xh-faculty__teacher img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 30%;
}

.xh-faculty .xh-faculty__teacher h3 {
    display: grid;
    flex: 1;
    place-items: center;
    padding: .8rem .55rem;
    color: inherit;
    font-size: clamp(.93rem, 1.5vw, 1.1rem);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: center;
}

.xh-faculty .xh-faculty__teacher h3:only-child {
    min-height: 7rem;
}

.xh-faculty__team-empty {
    padding-block: .3rem .65rem;
    color: var(--faculty-muted);
    font-size: .95rem;
}

.xh-faculty .xh-faculty__pyramid {
    --pyramid-width: 51%;
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(.8rem, 1.8vw, 1.4rem);
    width: min(850px, 100%);
    margin-inline: auto;
    padding-block: clamp(2.1rem, 4.3vw, 3.8rem) clamp(1.3rem, 3vw, 2.4rem);
}

.xh-faculty__pyramid::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: var(--pyramid-width);
    background: #eae9f3;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
}

.xh-faculty__tier {
    --facet-width: 48%;
    --facet-bg: #bddfe8;
    --facet-ink: #274d62;
    --facet-line: #a6c7d5;
    display: grid;
    grid-template-columns: minmax(9.7rem, 13rem) minmax(0, 1fr) var(--pyramid-width);
    align-items: center;
    min-width: 0;
}

.xh-faculty__tier:nth-child(2) {
    --facet-width: 73%;
    --facet-bg: #aecd90;
    --facet-ink: #334e27;
    --facet-line: #b2c6a1;
}

.xh-faculty__tier:nth-child(3) {
    --facet-width: 100%;
    --facet-bg: #e9c995;
    --facet-ink: #634420;
    --facet-line: #dac099;
}

.xh-faculty__tier-label {
    padding: .55rem clamp(.5rem, 1.9vw, 1rem);
    border: 1px solid var(--facet-line);
    border-radius: .7rem;
    background: #fff;
}

.xh-faculty .xh-faculty__tier-label h3 {
    color: var(--faculty-ink);
    font-size: clamp(.96rem, 2vw, 1.13rem);
    font-weight: 650;
}

.xh-faculty .xh-faculty__tier-label p {
    color: var(--faculty-muted);
    font-size: clamp(.73rem, 1.45vw, .87rem);
    line-height: 1.5;
}

.xh-faculty__tier-line,
.xh-faculty__tier-facet::before {
    height: 1px;
    background: var(--facet-line);
}

.xh-faculty__tier-facet {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
}

.xh-faculty__tier-facet::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: calc((100% - var(--facet-width)) / 2 + 1.8rem);
    transform: translateY(-50%);
    content: "";
}

.xh-faculty__tier-facet span {
    position: relative;
    display: grid;
    width: var(--facet-width);
    min-height: clamp(2.9rem, 5vw, 4rem);
    place-items: center;
    color: var(--facet-ink);
    background: var(--facet-bg);
    clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
    font-size: clamp(.98rem, 2.1vw, 1.28rem);
    font-weight: 700;
    letter-spacing: .13em;
}

.xh-faculty__cycle {
    border-block: 1px solid #ede7f4;
    background: #f8f5fb;
}

.xh-faculty__cycle-steps {
    --cycle-gap: clamp(.5rem, 2vw, 1.4rem);
    --cycle-node: 2.55rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--cycle-gap);
}

.xh-faculty__cycle-steps li {
    position: relative;
    min-width: 0;
    text-align: center;
}

.xh-faculty__cycle-node {
    display: grid;
    width: var(--cycle-node);
    aspect-ratio: 1;
    margin: 0 auto .85rem;
    place-items: center;
    border: 1px solid #cabbdf;
    border-radius: 50%;
    background: #f0e9f8;
}

.xh-faculty__cycle-node::before {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #775ba5;
    content: "";
}

.xh-faculty__cycle-steps li:not(:last-child)::after,
.xh-faculty__cycle-steps li:not(:last-child)::before {
    position: absolute;
    right: calc(-50% - var(--cycle-gap) + var(--cycle-node) / 2 + .38rem);
    content: "";
}

.xh-faculty__cycle-steps li:not(:last-child)::after {
    top: calc(var(--cycle-node) / 2);
    left: calc(50% + var(--cycle-node) / 2 + .38rem);
    border-top: 1px solid #b3a4ca;
}

.xh-faculty__cycle-steps li:not(:last-child)::before {
    top: calc(var(--cycle-node) / 2 - .16rem);
    width: .34rem;
    height: .34rem;
    border: solid #a698be;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
}

.xh-faculty .xh-faculty__cycle-steps h3,
.xh-faculty .xh-faculty__service-steps h3 {
    color: var(--faculty-ink);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
}

.xh-faculty .xh-faculty__cycle-steps p,
.xh-faculty .xh-faculty__service-steps p {
    margin-top: .45rem;
    color: var(--faculty-muted);
    font-size: .9rem;
}

.xh-faculty__service-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.65rem, 2vw, 1.35rem);
}

.xh-faculty__service-steps li {
    min-width: 0;
    padding: clamp(1.2rem, 2.6vw, 1.85rem);
    border: 1px solid #e7deef;
    border-radius: 1.2rem;
    background: #fbf8fd;
}

.xh-faculty__service-step {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: .65rem;
    place-items: center;
    border-radius: .6rem;
    color: #80502c;
    background: #f7ecdd;
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
    .xh-faculty__team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xh-faculty__milestone-card {
        grid-template-columns: minmax(0, 1fr);
        gap: .8rem;
    }

    .xh-faculty .xh-faculty__milestone-card h2 {
        padding: 0 0 .57rem;
        border: 0;
        border-bottom: 1px solid #ece5f4;
    }

    .xh-faculty__training {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }
}

@media (max-width: 620px) {
    .xh-faculty__inner {
        width: calc(100% - 1.75rem);
    }

    .xh-faculty__path {
        --path-marker: 2.35rem;
    }

    .xh-faculty__criteria {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem .8rem;
    }

    .xh-faculty__milestone-card {
        padding: 1rem .92rem;
        border-radius: 1rem;
    }

    .xh-faculty__tier {
        grid-template-columns: clamp(6.15rem, 33%, 9rem) minmax(0, 1fr) var(--pyramid-width);
    }

    .xh-faculty__cycle-steps {
        --cycle-node: 2rem;
        --cycle-gap: 1.15rem;
        grid-template-columns: minmax(0, 1fr);
        max-width: 23rem;
        margin-inline: auto;
    }

    .xh-faculty__cycle-steps li {
        min-height: var(--cycle-node);
        padding-inline-start: calc(var(--cycle-node) + .8rem);
        text-align: left;
    }

    .xh-faculty__cycle-node {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }

    .xh-faculty__cycle-steps li:not(:last-child)::after {
        top: calc(var(--cycle-node) + .16rem);
        right: auto;
        bottom: calc(-1 * var(--cycle-gap) + .36rem);
        left: calc(var(--cycle-node) / 2);
        border: 0;
        border-left: 1px solid #b3a4ca;
    }

    .xh-faculty__cycle-steps li:not(:last-child)::before {
        top: auto;
        right: auto;
        bottom: calc(-1 * var(--cycle-gap) + .36rem);
        left: calc(var(--cycle-node) / 2 - .16rem);
        transform: rotate(135deg);
    }

    .xh-faculty__service-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .xh-faculty__training {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
