
.tab{
    border:1px solid var(--border);
    background:#fff;
    padding:.7rem 1.1rem;
    font-size:.75rem;
    font-weight:600;
    text-transform:uppercase;
    transition:.25s;
}

.tab:hover{
    border-color:var(--brand);
}

.tab.is-active{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff;
}

.pillar-content{
    border-left:3px solid var(--brand);
    padding-left:1.5rem;
    margin: 50px 40px 0 0;
}

.pillar-body h3{
    margin-bottom:1rem;
}

#pillarTabs .tab {
    line-height: 1em;
    letter-spacing: .15em;
    border-radius: 8px;
}

.pyramid-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.pyramid-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4px;
}

.year {
    font-size: 14px;
    font-weight: 800;
    color: #333;
}

.dash {
    width: 100px;
    border-top: 2px dotted #2b2b2b;
    margin-top: 6px;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #2b2b2b;
}

/* ==========================
   RESPONSIVE PYRAMID
   ========================== */

.pyramid {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 693;
    margin: 0 auto;
}

/* Top triangle */
.top {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 49.93%;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: #2f2f31;
}

.top-content {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f5f2ea;
}

.sails {
    position: relative;
    width: 14%;
    min-width: 70px;
    max-width: 110px;
    height: 70px;
}

.sail {
    position: absolute;
    bottom: 0;
    width: 34px;
    height: 62px;
    border-top-left-radius: 40px 60px;
    border-top-right-radius: 6px;
}

.sail.white {
    left: 12px;
    background: #f5f2ea;
    z-index: 3;
}

.sail.red {
    left: 40px;
    background: #c8102e;
    z-index: 2;
    height: 66px;
}

.sail.green {
    left: 66px;
    background: #1f8a4c;
    z-index: 1;
    height: 60px;
}

.emblem {
    position: absolute;
    top: 22px;
    left: 20px;
    width: 14px;
    height: 18px;
    background: #c8102e;
    z-index: 4;
    clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
}

.ar {
    font-size: clamp(14px, 2vw, 22px);
    margin-top: 4px;
}

.en {
    font-size:  14px;
    letter-spacing: 3px;
    font-variant: small-caps;
}

/* ==========================
   MIDDLE TRIANGLES
   ========================== */

.middle {
    position: absolute;
    top: 50.5%;
    left: 12.5%;
    width: 75%;
    height: 25%;
}

.triangle {
    position: absolute;
    width: 33.333%;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.up {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.down {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.triangle:nth-child(1) {
    left: 0%;
}

.triangle:nth-child(2) {
    left: 16.666%;
}

.triangle:nth-child(3) {
    left: 33.333%;
}

.triangle:nth-child(4) {
    left: 50%;
}

.triangle:nth-child(5) {
    left: 66.666%;
}

.red-c {
    background: #d81f3f;
}

.gray-c {
    background: #6f7275;
}

.navy-c {
    background: #17384f;
}

.crimson-c {
    background: #a41e34;
}

.green-c {
    background: #2fa373;
}

.mid-up {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f5f2ea;
}

.mid-down {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    color: #f5f2ea;
}

.pyramid .icon {
    font-size: clamp(16px, 2vw, 26px);
    margin-bottom: 4px;
    filter: grayscale(1) brightness(2);
}

.mid-down .icon {
    margin: 4px 0 0;
}

.pyramid .label {
    font-size: 12px;
    line-height: 1em;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}
.pyramid .icon img{height: 25px;}

/* ==========================
   BASE
   ========================== */

.base {
    position: absolute;
    top: 76%;
    left: 0;
    width: 100%;
    height: 24.5%;
    clip-path: polygon(12.5% 0, 87.5% 0, 100% 100%, 0 100%);
    background: #2f2f31;
    color: #f5f2ea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.base-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap;
}

.people {
    filter: grayscale(1) brightness(2);
}

.base-sub {
    font-size: 12px;
    color: #e2dfd8;
    max-width: 90%;
    text-align: center;
    line-height: 1.3;
}
/* ==========================
   INTERACTION
   ========================== */

.triangle:hover {
    transform: translateY(-4px);
}

.triangle.active {
    filter: brightness(1.15);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.25);
}

.triangle {
    z-index: 1;
    pointer-events: auto;
}

.triangle:hover,
.triangle.active {
    z-index: 10;
}
.pillar-body {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}
/* ==========================
   MOBILE
   ========================== */

@media (max-width: 991px) {
    .pyramid-wrap {
        max-width: 600px;
    }
}

@media (max-width: 767px) {

    .pyramid-wrap {
        max-width: 100%;
    }

    .base-main {
        gap: 8px;
    }

    .dash {
        width: 100px;
    }
}

@media (max-width: 575px) {

    .middle {
        height: 24.5%;
    }

    .label {
        font-size: 9px;
    }

    .base-sub {
        display: none;
    }
    .pyramid .label {
        display: none;
    }

    .mid-up {
        bottom: 10px;
    }

    .mid-down {
        top: 10px;
    }

    .people {
        display: none;
    }
}