/* About Us — snappier AOS overrides (library + lazy-assets defaults are slower) */
#about-page [data-aos][data-aos] {
    transition-duration: 240ms !important;
    transition-timing-function: ease-out !important;
}

#about-page [data-aos][data-aos-delay].aos-animate {
    transition-delay: 0ms !important;
}

#about-page [data-aos="fade-up"] {
    transform: translate3d(0, 16px, 0);
}

#about-page [data-aos="fade-right"] {
    transform: translate3d(-16px, 0, 0);
}

#about-page [data-aos="fade-left"] {
    transform: translate3d(16px, 0, 0);
}

#about-page [data-aos="zoom-in"] {
    transform: scale(0.98);
}

html.reduce-motion #about-page [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

#team-section .team-member-card {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    content-visibility: auto;
    contain-intrinsic-size: 427px 320px;
}

#team-section .team-image-container {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

#team-section .team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team-section .team-member-info {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#team-section .team-member-role {
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

#team-section .team-member-name {
    font-size: 12px;
    line-height: 1.25;
}

#team-section .team-overlay-content .text-sm {
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
    word-spacing: normal;
    hyphens: auto;
}

#team-section .team-overlay-content .w-12.h-12 {
    display: none;
}

#team-section .team-overlay-content .mb-3 {
    margin-bottom: 0;
}

#team-section .team-top-row {
    max-width: 680px;
    margin-inline: auto;
}

#team-section .team-five-row,
#team-section .team-four-row {
    display: grid;
    gap: 2rem;
    justify-items: center;
    justify-content: center;
    margin-inline: auto;
}

#team-section .team-five-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

#team-section .team-four-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    #team-section .team-five-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #team-section .team-four-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #team-section .team-five-row {
        grid-template-columns: repeat(5, minmax(190px, 220px));
    }

    #team-section .team-four-row {
        grid-template-columns: repeat(4, minmax(190px, 220px));
    }
}

#founder-section .founder-copy p {
    line-height: 1.9;
}

#founder-section .founder-highlight {
    color: #002e5b;
    font-weight: 700;
}

#founder-section .founder-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-weight: 700;
    font-size: 0.85em;
    vertical-align: baseline;
}

#team-section .team-image-container {
    position: relative;
}

#team-section .team-member-card {
    cursor: pointer;
}

#team-section .team-member-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(0, 46, 91, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

#team-section .team-member-card.is-expanded .team-member-overlay {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    #team-section .team-member-card:hover .team-member-overlay {
        opacity: 1;
        visibility: visible;
    }
}

#team-section .team-overlay-content {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#stats-section .stats-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#stats-section .stats-item.is-active {
    background-color: rgba(255, 255, 255, 0.1);
}

#stats-section .stats-item i {
    transition: transform 0.2s ease;
}

#stats-section .stats-item.is-active i {
    transform: scale(1.1) rotate(12deg);
}

@media (hover: hover) and (pointer: fine) {
    #stats-section .stats-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #stats-section .stats-item:hover i {
        transform: scale(1.1) rotate(12deg);
    }
}
