/* About us and Our team. */

.tb-about-rule {
    align-self: center;
    width: 48px;
    height: 2px;
    margin-top: 20px;
    border-radius: 2px;
    background: var(--tb-teal-ui);
}

.tb-info-intro > .tb-about-quote {
    color: var(--tb-ink);
    font-size: 23.4px;
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.4;
    text-wrap: balance;
}

.tb-about-quote strong {
    color: var(--tb-teal-ink);
    font-weight: 600;
}

.tb-about-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tb-about-benefits {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 16px;
    padding-bottom: 104px;
}

.tb-about-benefit-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-about-benefit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: #F7F9F9;
    border: 1px solid var(--tb-page);
    border-radius: 8px;
}

.tb-about-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--tb-teal-tint-border);
    border-radius: 50%;
    color: var(--tb-teal-ink);
}

.tb-about-benefit strong {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tb-about-benefit span:last-child {
    color: var(--tb-ink-muted);
    font-size: 14.5px;
    line-height: 1.65;
    text-wrap: pretty;
}

.tb-about-band {
    background: #F5F6F6;
    border-top: 1px solid var(--tb-page);
    border-bottom: 1px solid var(--tb-page);
}

.tb-about-band-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    padding: 96px 40px;
}

.tb-about-band-inner .tb-about-head {
    align-self: stretch;
}

.tb-about-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The dashed line joining the steps, on the widest layout only. */
.tb-about-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 10%;
    right: 10%;
    border-top: 1.5px dashed #BFE3DE;
}

.tb-about-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.tb-about-step-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: 50%;
    box-shadow: 0 0 0 8px #F5F6F6;
    color: var(--tb-teal-ink);
}

.tb-about-step-icon span {
    position: absolute;
    top: -2px;
    left: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--tb-ink);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tb-about-step-text {
    max-width: 200px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-wrap: balance;
}

.tb-about-ways {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 112px;
    padding-bottom: 120px;
}

.tb-about-way-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tb-about-way {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    gap: 10px;
    max-width: 373px;
    min-width: 0;
    padding: 26px 26px 22px;
    background: #fff;
    border: 1px solid var(--tb-page);
    border-radius: 8px;
    color: var(--tb-ink);
    text-decoration: none;
    transition: border-color 300ms ease-out, transform 300ms ease-out;
}

.tb-about-way:hover {
    border-color: var(--tb-teal-ui);
    color: var(--tb-ink);
    transform: translateY(-2px);
}

.tb-about-way strong {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tb-about-way span {
    flex: 1;
    color: var(--tb-ink-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.tb-about-way em {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--tb-teal-ink);
    font-size: 12.5px;
    font-style: normal;
    font-weight: 600;
}

.tb-about-team-section {
    display: flex;
    flex-direction: column;
    gap: 56px;
    padding-bottom: 120px;
}

.tb-about-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 32px;
}

.tb-about-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.tb-about-photo {
    position: relative;
    width: 78%;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--tb-page);
    border-radius: 8px;
    cursor: pointer;
}

.tb-about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease-out;
}

.tb-about-bio {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
    overflow-y: auto;
    background: rgba(31, 31, 31, 0.86);
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease-out;
}

/* Back-office HTML, so its tags are made to fit here. Auto margins centre it when it fits and let it scroll when it doesn't. */
.tb-about-bio,
.tb-about-bio * {
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.6;
}

.tb-about-bio > :first-child {
    margin-top: auto;
}

.tb-about-bio > :last-child {
    margin-bottom: auto;
}

.tb-about-photo:hover .tb-about-bio,
.tb-about-photo:focus .tb-about-bio {
    opacity: 1;
    pointer-events: auto;
}

.tb-about-photo:hover img,
.tb-about-photo:focus img {
    transform: scale(1.04);
}

.tb-about-photo:focus-visible {
    outline: 2px solid var(--tb-teal-ui);
    outline-offset: 2px;
}

/* No zoom or fade for people who have turned motion off: the bio still shows, straight away. */
@media (prefers-reduced-motion: reduce) {
    .tb-about-photo img,
    .tb-about-bio {
        transition: none;
    }

    .tb-about-photo:hover img,
    .tb-about-photo:focus img {
        transform: none;
    }
}

.tb-about-person h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-transform: none;
}

.tb-about-role {
    color: var(--tb-teal-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--tb-eyebrow-tracking);
    line-height: 1.5;
    text-transform: uppercase;
}

.tb-about-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 8px;
    border: 1px solid var(--tb-line);
    border-radius: 50%;
    color: var(--tb-ink-muted);
    transition: border-color 300ms ease-out, color 300ms ease-out;
}

.tb-about-linkedin:hover {
    border-color: var(--tb-teal-ui);
    color: var(--tb-teal-ink);
}

@media (max-width: 1099.98px) {
    .tb-about-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tb-about-steps::before {
        display: none;
    }

    .tb-about-benefit-cards,
    .tb-about-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 759.98px) {
    .tb-about .tb-info-intro > .tb-about-quote {
        font-size: 18px;
    }

    .tb-about-band-inner {
        padding: 64px 16px;
    }

    .tb-about-benefits {
        padding-top: 8px;
        padding-bottom: 64px;
    }

    .tb-about-benefit-cards {
        gap: 12px;
    }

    .tb-about-benefit-cards,
    .tb-about-steps,
    .tb-about-team {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-about-ways {
        padding-top: 72px;
        padding-bottom: 80px;
    }

    .tb-about-way {
        max-width: none;
    }

    .tb-about-team-section {
        gap: 36px;
        padding-bottom: 80px;
    }
}
