/*
 * About page (rm/founding, rm/carousel, rm/team-grid; rm/about-intro is in services.css).
 * Values from staging post-538.css and getComputedStyle at 1440 and 390; the carousel and
 * the team cards from rm-elementor-theme assets/css/carousel.css and team.css.
 */

/* One lavender panel (193fcb0) holds the founding copy and the carousel; the two blocks
   each draw half of it. */
.rm-founding,
.rm-leiden {
    width: 100%;
    max-width: var(--rm-container);
    margin: 0 auto;
    padding: 0 var(--rm-gutter);
}

.rm-founding {
    padding-top: 10px;
}

.rm-leiden {
    padding-bottom: 10px;
}

.rm-founding__panel,
.rm-leiden__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--rm-lavender);
}

.rm-founding__panel {
    padding: 100px 20px 0;
    border-radius: 40px 40px 0 0;
}

.rm-leiden__panel {
    padding: 0 20px 100px;
    border-radius: 0 0 40px 40px;
}

.rm-founding__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    gap: 18px;
    width: 938px;
    max-width: 100%;
    padding: 10px 10px 108px;
}

.rm-founding__title {
    width: 100%;
    margin: 0;
    color: var(--rm-black);
    font-family: var(--rm-font);
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
}

.rm-founding__text,
.rm-leiden__text {
    color: var(--rm-black);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.rm-founding__text {
    width: 100%;
}

.rm-founding__text p {
    margin: 1em 0;
}

.rm-leiden__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 96%;
    padding: 10px;
}

.rm-leiden__text {
    align-self: center;
    width: 81.042%;
    margin-top: 80px;
}

.rm-leiden__text p {
    margin: 1em 0 0;
}

@media (max-width: 1024px) {
    .rm-founding__title {
        font-size: 28.95px;
    }

    .rm-founding__text,
    .rm-leiden__text {
        font-size: 17.28px;
    }
}

@media (max-width: 767px) {
    .rm-leiden__inner {
        width: 100%;
    }

    .rm-founding__title {
        font-size: 25.76px;
    }

    .rm-founding__text,
    .rm-leiden__text {
        font-size: 17.52px;
    }
}

/* Carousel (rm-carousel widget bdcddc0) */
.rm-carousel {
    position: relative;
    width: 100%;
}

.rm-carousel__viewport {
    overflow: hidden;
}

.rm-carousel__track {
    display: flex;
    gap: 24px;
    padding-bottom: 8px;
    overflow-x: auto;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.rm-carousel__track::-webkit-scrollbar {
    display: none;
}

.rm-carousel__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.rm-carousel__slide {
    position: relative;
    display: flex;
    flex: 0 0 65%;
    flex-direction: column;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.rm-carousel__image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 480px;
    border-radius: 40px;
    object-fit: cover;
    -webkit-user-drag: none;
}

.rm-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.rm-carousel__controls {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.rm-carousel__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 1px 6px;
    border: none;
    border-radius: 50%;
    background: var(--rm-black);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    color: var(--rm-white);
    font: 400 13.3333px Arial, sans-serif;
    cursor: pointer;
}

.rm-carousel__btn[aria-disabled="true"] {
    cursor: default;
    opacity: .5;
}

@media (min-width: 769px) {
    /* staging's first slide has an empty caption (margin-top 12px); the others stretch to it */
    .rm-carousel__slide:first-child {
        padding-bottom: 12px;
    }

    .rm-carousel__footer {
        position: absolute;
        right: 24px;
        bottom: -8px;
        z-index: 5;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .rm-carousel__slide {
        flex: 0 0 100%;
    }
}

/* Team (fb39c31, heading a3abf1d, widget rm-team c38958a, spacer 3ddd406) */
.rm-team {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: var(--rm-container);
    margin: 0 auto;
    padding: 10px var(--rm-gutter) 130px;
}

.rm-team__title {
    align-self: center;
    width: 82%;
    margin: 80px 0;
    color: var(--rm-black);
    font-family: var(--rm-font-helvetica);
    font-size: var(--rm-type-h60);
    font-weight: 400;
    line-height: 1.05;
}

.rm-team-grid {
    --rm-team-accent: var(--rm-blurple);
    --rm-team-ease: cubic-bezier(.23, 1, .32, 1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.rm-team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 40px;
}

.rm-team-card__image {
    width: 100%;
    height: 432px;
    overflow: hidden;
}

.rm-team-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rm-grey-medium);
    object-fit: cover;
    backface-visibility: hidden;
    transform: scale(1);
    transition: transform 1600ms var(--rm-team-ease);
    will-change: transform;
}

.rm-team-card:hover .rm-team-card__image img {
    transform: scale(1.05);
}

.rm-team-card__footer {
    padding: 36px;
    border: 1px solid rgba(41, 41, 41, .1);
    background: var(--rm-black);
    transition: background 1600ms var(--rm-team-ease), box-shadow 320ms var(--rm-team-ease);
}

.rm-team-card:hover .rm-team-card__footer {
    border-color: transparent;
    background: var(--rm-team-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.rm-team-card__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-team-card__name {
    margin: 0;
    color: var(--rm-white);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.05;
}

.rm-team-card__role {
    margin: 0;
    color: var(--rm-white);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
}

/* staging's spacer section 28091a0 (120px) after Get started */
.rm-main:has(.rm-team)::after {
    content: "";
    display: block;
    height: 120px;
}

@media (max-width: 1024px) {
    .rm-team__title {
        width: 782px;
        max-width: 100%;
    }

    .rm-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rm-team-grid {
        grid-template-columns: 1fr;
    }

    .rm-team-card {
        flex-direction: row;
        align-items: stretch;
        border-radius: 20px;
        box-shadow: none;
    }

    .rm-team-card__footer {
        width: 100%;
        padding: 16px;
        border-left: none;
        border-radius: 0;
    }

    .rm-team-card__image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .rm-team-card__text {
        gap: 4px;
    }

    .rm-team-card__name {
        font-size: 20px;
    }

    .rm-team-card__role {
        font-size: 16px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rm-team-card,
    .rm-team-card__footer,
    .rm-team-card__image img {
        transition: none;
    }

    .rm-team-card:hover {
        transform: none;
    }
}
