/* ІЗОЛЬОВАНІ СТИЛІ БЛОКУ 9 (FOUNDERS / ТІ, ХТО ПОЧАВ ЦЕЙ ШЛЯХ) */

#founders.founders-section {
    padding: var(--section-space-y) 0;
    background-color: var(--section-bg-unified);
    border-top: 1px solid rgba(179, 135, 40, 0.1);
}

#founders .founders-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ЕФЕКТ ЗОЛОТОГО ПЕРЕЛИВУ ДЛЯ ЗАГОЛОВКА */
#founders .founders-title {
    font-family: var(--font-family-display);
    font-size: var(--type-display-lg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: var(--tracking-title);
    margin-bottom: 15px;
    background: linear-gradient(90deg, #b38728 0%, #fcf6ba 50%, #b38728 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShimmer 4s infinite linear;
    display: inline-block;
}

#founders .founders-title::after {
    content: ''; 
    display: block; 
    width: 100px; height: 4px;
    background: var(--color-gold); 
    margin: 15px auto 0;
}

#founders .founders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* КАРТКА З ЕФЕКТОМ АУРИ */
#founders .founder-card {
    cursor: pointer;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    z-index: 1;
}

#founders .founder-card::before {
    content: none;
}

#founders .founder-card:focus-visible {
    outline: 2px solid rgba(252, 246, 186, 0.9);
    outline-offset: 4px;
    border-radius: 16px;
}

#founders .founder-photo-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(179, 135, 40, 0.3);
    margin-bottom: 15px;
    background: #1a1d16;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#founders .founder-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ФІКС ГОЛОВИ: object-position та transform-origin зверху */
    object-position: top center; 
    transform-origin: top center; 
    filter: grayscale(0.3);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

/* ЕФЕКТ ПРИ НАВЕДЕННІ */
#founders .founder-card:hover {
    transform: translateY(-15px); /* Піднімаємо всю картку */
    z-index: 10;
}

#founders .founder-card:hover .founder-photo-wrap {
    transform: scale(1.05); /* Легке збільшення рамки */
    border-color: #fcf6ba;
    box-shadow: 0 20px 50px rgba(179, 135, 40, 0.4); /* ЗОЛОТА АУРА */
}

#founders .founder-card:hover img {
    filter: grayscale(0);
    transform: scale(1.1); /* Збільшення фото ВІД ТОЧКИ ГОЛОВИ */
}


#founders .founder-name {
    font-family: var(--font-family-display);
    font-size: var(--type-body-lg);
    font-weight: 800;
    color: #f4f1ea;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

#founders .founder-card:hover .founder-name {
    color: #fcf6ba;
}

#founders .founder-role {
    font-family: var(--font-family-text);
    font-size: var(--type-body-sm);
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

@keyframes goldShimmer {
    to { background-position: 200% center; }
}

/* Адаптація */
@media (max-width: 1100px) {
    #founders .founders-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    #founders .founders-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    #founders .founders-grid { 
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    #founders .founder-photo-wrap { aspect-ratio: 1/1; }
}

@media (prefers-reduced-motion: reduce) {
    #founders .founder-card,
    #founders .founder-card::before,
    #founders .founder-photo-wrap,
    #founders .founder-photo-wrap img,
    #founders .founder-name {
        transition: none;
    }

    #founders .founder-card:hover,
    #founders .founder-card:hover .founder-photo-wrap,
    #founders .founder-card:hover img {
        transform: none;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    #founders.founders-section {
        padding-top: var(--section-space-y-compact);
        padding-bottom: calc(var(--section-space-y-compact) - 14px);
    }
}

@media (min-width: 1440px) {
    #founders.founders-section {
        padding-top: calc(var(--section-space-y) + 6px);
        padding-bottom: calc(var(--section-space-y) - 14px);
    }
}

@media (min-width: 1280px) and (max-width: 1439px) and (max-height: 820px) {
    #founders.founders-section {
        padding-top: 50px;
        padding-bottom: 46px;
    }

    #founders .founders-header {
        margin-bottom: 40px;
    }
}