/* About pages: scoped styles keep the shared header and other pages unchanged. */
.about-page main,
.about-page main *,
.about-page .landing-footer,
.about-page .landing-footer * {
    box-sizing: border-box;
}

.about-page main {
    background: #f8faff;
    color: #334155;
}

.about-page .work-area {
    width: 100%;
    max-width: 1240px;
    padding: 184px 40px 96px;
    background: transparent;
}

.about-page #about-us {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 24px 72px;
    padding: 0 0 88px;
    background: transparent;
}

.about-page #about-us h1 {
    grid-row: span 2;
    margin: 0;
    color: #0f172a;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-align: left;
}

.about-page #about-us h1::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: 24px;
    border-radius: 2px;
    background: var(--brand-blue, #007bff);
}

.about-page #about-us p {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
}

.about-page #about-us-team {
    max-width: 960px;
    margin: 0 auto;
}

.about-page #about-us-team h2 {
    margin: 0 0 32px;
    color: #0f172a;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.2;
    text-align: left;
}

.about-page .team-container-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    height: auto;
    margin: 0;
    padding: 0;
}

.about-page .team-card-link {
    height: auto;
    color: inherit;
    border-top: 1px solid #dce4ef;
}

.about-page .team-card {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: 1fr auto 1fr;
    grid-template-areas: "photo name" "photo bio" "photo social";
    column-gap: 48px;
    justify-items: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 32px 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
}

.about-page .card-profile {
    display: contents;
}

.about-page .team-card-img {
    grid-area: photo;
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    background: linear-gradient(145deg, #eaf2fd, #f1f5fa);
    object-fit: contain;
}

.about-page .team-card-title {
    grid-area: name;
    align-self: end;
    max-width: none;
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(26px, 2.5vw, 32px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.2;
    text-align: left;
}

.about-page .team-card-content {
    grid-area: bio;
    max-width: 540px;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #475569;
    text-align: left;
}

.about-page .team-card-content p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

.about-page .card-logo {
    grid-area: social;
    align-self: start;
    justify-self: start;
    max-width: none;
    margin: 20px 0 0;
}

.about-page .logo-linkedin {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0;
}

.about-page .team-card-link:hover .team-card-title {
    color: #0067cc;
}

.about-page .team-card-link:focus-visible,
.about-page .landing-footer a:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 6px;
    border-radius: 4px;
}

/* Reuse the home footer; its typography normally comes from .landing-body. */
.about-page .landing-footer {
    padding: 60px 40px 20px;
    font-size: 16px;
    line-height: 1.6;
}

.about-page .landing-footer .social-links img {
    width: 36px;
    height: 36px;
}

@media (min-width: 1024px) {
    .about-page .team-card-link:nth-child(even) .team-card {
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas: "name photo" "bio photo" "social photo";
    }
}

@media (max-width: 1023px) {
    .about-page .work-area {
        padding: 160px 32px 72px;
    }

    .about-page #about-us {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-bottom: 64px;
    }

    .about-page #about-us h1 {
        grid-row: auto;
        margin-bottom: 8px;
    }

    .about-page .team-card {
        grid-template-columns: 240px minmax(0, 1fr);
        column-gap: 32px;
    }
}

@media (max-width: 767px) {
    .about-page .work-area {
        padding: 144px 24px 48px;
    }

    .about-page #about-us {
        padding-bottom: 48px;
    }

    .about-page #about-us p {
        font-size: 17px;
        line-height: 1.75;
    }

    .about-page #about-us-team h2 {
        margin-bottom: 24px;
    }

    .about-page .team-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "photo" "name" "bio" "social";
        padding: 28px 0 32px;
    }

    .about-page .team-card-img {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .about-page .team-card-title {
        margin-bottom: 16px;
    }

    .about-page .team-card-content {
        max-width: none;
    }

    .about-page .landing-footer {
        padding: 48px 4px 20px;
    }
}
