/* Capabilities post content — scoped to project slides area */

.project-slides .cap-phases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
    margin: 48px 0;
    clear: both;
}

.project-slides .cap-phase {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.project-slides .cap-phase img {
    width: 42%;
    max-width: 180px;
    height: auto;
    flex-shrink: 0;
}

.project-slides .cap-phase-text h6 {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #222;
}

.project-slides .cap-phase-text p {
    font-size: 13px;
    line-height: 1.65;
    color: #666;
    margin: 0;
}

/* ── Shared wheel base ── */

.project-slides .cap-wheel {
    position: relative;
    max-width: 750px;
    margin: 48px auto;
    clear: both;
}

.project-slides .cap-wheel-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 1px dashed #c8c8c8;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.project-slides .cap-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 11px;
    line-height: 1.55;
}

.project-slides .cap-wheel--4 .cap-wheel-center {
    font-size: 34px;
    padding: 0;
}

.project-slides .cap-wheel-node {
    position: absolute;
    z-index: 3;
}

.project-slides .cap-wheel-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f7941e;
    color: #fff;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(247, 148, 30, 0.25);
}

.project-slides .cap-wheel-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    background: white;
}

.project-slides .cap-wheel-label strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    background: white;
}

.project-slides .cap-wheel-label span {
    display: block;
}

.project-slides .cap-wheel-label--left {
    right: calc(100% + 14px);
    text-align: right;
}

.project-slides .cap-wheel-label--right {
    left: calc(100% + 14px);
    text-align: left;
}

/* ── 6-node media wheel ── */

.project-slides .cap-wheel--6 {
    height: 420px;
}

.project-slides .cap-wheel--6 .cap-wheel-node--tl {
    left: calc(50% - 75px - 26px);
    top: calc(50% - 130px - 26px);
}

.project-slides .cap-wheel--6 .cap-wheel-node--tr {
    left: calc(50% + 75px - 26px);
    top: calc(50% - 130px - 26px);
}

.project-slides .cap-wheel--6 .cap-wheel-node--r {
    left: calc(50% + 150px - 26px);
    top: calc(50% - 26px);
}

.project-slides .cap-wheel--6 .cap-wheel-node--br {
    left: calc(50% + 75px - 26px);
    top: calc(50% + 130px - 26px);
}

.project-slides .cap-wheel--6 .cap-wheel-node--bl {
    left: calc(50% - 75px - 26px);
    top: calc(50% + 130px - 26px);
}

.project-slides .cap-wheel--6 .cap-wheel-node--l {
    left: calc(50% - 150px - 26px);
    top: calc(50% - 26px);
}

/* ── 4-node tracking wheel with corner labels ── */

.project-slides .cap-wheel--4 {
    height: 500px;
}

.project-slides .cap-wheel--4 .cap-wheel-node--top {
    left: calc(50% - 26px);
    top: calc(50% - 150px - 26px);
}

.project-slides .cap-wheel--4 .cap-wheel-node--right {
    left: calc(50% + 150px - 26px);
    top: calc(50% - 26px);
}

.project-slides .cap-wheel--4 .cap-wheel-node--bottom {
    left: calc(50% - 26px);
    top: calc(50% + 150px - 26px);
}

.project-slides .cap-wheel--4 .cap-wheel-node--left {
    left: calc(50% - 150px - 26px);
    top: calc(50% - 26px);
}

.project-slides .cap-wheel-corner {
    position: absolute;
    width: 190px;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    z-index: 1;
}

.project-slides .cap-wheel-corner strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.project-slides .cap-wheel-corner span {
    display: block;
}

.project-slides .cap-wheel-corner--tl {
    top: 8px;
    left: 0;
    text-align: left;
}

.project-slides .cap-wheel-corner--tr {
    top: 8px;
    right: 0;
    text-align: right;
}

.project-slides .cap-wheel-corner--bl {
    bottom: 8px;
    left: 0;
    text-align: left;
}

.project-slides .cap-wheel-corner--br {
    bottom: 8px;
    right: 0;
    text-align: right;
}

.project-slides .cap-wheel-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.project-slides .cap-wheel-lines line,
.project-slides .cap-wheel-lines polyline {
    fill: none;
    stroke: #ccc;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    stroke-linejoin: miter;
}

.project-slides .cap-wheel-lines circle {
    fill: #ccc;
}

/* ── Responsive: readable list fallback ── */

@media (max-width: 700px) {
    .project-slides .cap-wheel {
        height: auto !important;
        padding: 0 0 16px;
    }

    .project-slides .cap-wheel-ring,
    .project-slides .cap-wheel-center,
    .project-slides .cap-wheel-lines {
        display: none;
    }

    .project-slides .cap-wheel-node {
        position: static;
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 18px;
    }

    .project-slides .cap-wheel-label,
    .project-slides .cap-wheel-corner {
        position: static;
        width: auto;
        transform: none;
        text-align: left !important;
        margin-bottom: 18px;
    }

    .project-slides .cap-wheel--4 .cap-wheel-corner {
        display: block;
    }

    .project-slides .cap-phases-grid {
        grid-template-columns: 1fr;
    }

    .project-slides .cap-phase img {
        width: 120px;
    }
}