/* About-only: story rows, vision/mission cards, places strip, team circles, closing art */

.vm-about-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-large);
    object-fit: cover;
}

.vm-about-photo--team {
    aspect-ratio: 2077 / 860;
}

/* Story: text beside a photo, alternating sides */
.vm-about-story {
    padding-top: clamp(30px, 5vw, 70px);
}

.vm-about-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(28px, 5vw, 80px);
    row-gap: 24px;
}

.vm-about-row + .vm-about-row {
    margin-top: clamp(48px, 7vw, 100px);
}

.vm-about-row .vm-about-photo {
    aspect-ratio: 503 / 269;
}

.vm-about-row--flip .vm-about-photo {
    order: -1;
}

.vm-about-row strong {
    font-weight: 700;
}

.vm-about-commit {
    max-width: 60ch;
    margin: clamp(56px, 8vw, 110px) auto 0;
    text-align: center;
}

/* Mission: headline, vision/mission cards, places strip */
.vm-about-mission__h {
    max-width: 26ch;
    margin-top: 0;
}

.vm-vm-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    max-width: 1080px;
    margin: clamp(36px, 5vw, 64px) auto 0;
}

.vm-vm-card {
    border: 2px solid var(--olive);
    border-radius: var(--radius-large);
    padding: clamp(28px, 4vw, 56px);
    color: var(--ink);
}

.vm-vm-card--fill {
    background-color: var(--olive);
    color: var(--white);
}

.vm-vm-card__title {
    color: inherit;
}

.vm-vm-card__text {
    margin: 18px 0 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    color: inherit;
}

.vm-about-places {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(40px, 6vw, 80px);
}

.vm-about-place {
    position: relative;
    margin: 0;
}

.vm-about-place .vm-about-photo {
    aspect-ratio: 437 / 357;
}

.vm-about-place figcaption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 600;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

/* Team: illustrated portraits in coloured circles */
.vm-team-member {
    align-items: center;
    text-align: center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.vm-team-member:hover {
    transform: translateY(-6px);
}

.vm-team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.vm-team-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.vm-team-photo--orange { background-color: #ff8c02; }
.vm-team-photo--turquoise { background-color: var(--turquoise); }
.vm-team-photo--green { background-color: var(--green); }
.vm-team-photo--olive { background-color: #8a903a; }

.vm-team-role {
    margin-top: -10px;
}

/* Closing line with the Tuburan border art along the bottom */
.vm-about-closing {
    position: relative;
    padding-bottom: 26vw;
}

.vm-about-closing .vm-container {
    position: relative;
    z-index: 1;
}

.vm-about-closing__art {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

@media (max-width: 991px) {
    .vm-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vm-team-grid.vm-team-row1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vm-about-row {
        grid-template-columns: 1fr;
    }

    .vm-about-row--flip .vm-about-photo {
        order: 0;
    }

    .vm-vm-cards,
    .vm-about-places {
        grid-template-columns: 1fr;
    }

    .vm-team-grid,
    .vm-team-grid.vm-team-row1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    /* odd one out in the first row sits centred */
    .vm-team-grid.vm-team-row1 .vm-team-member:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 8px);
    }

    .vm-team-name {
        font-size: 18px;
    }

    .vm-team-role {
        font-size: 14px;
    }
}
