/* ===================================
   Founder Quote Section
   =================================== */

.founder-section {
    position: relative;
    padding: 0;
    width: 100%;
    /* Let GSAP handle height via pinning */
    background: var(--color-bg-primary);
    /* Ensure opaque background */
    z-index: 10;
    /* Keep above subsequent sections */
    border-top: 1px solid var(--color-border);
}

.founder-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--container-padding);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    /* Prevent any layout shifts */
}

/* Removed internal scroll containers */

/* Founder Card */
.founder-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    /* Changed from margin-bottom to margin-top */
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 0px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.founder-avatar:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px var(--color-primary);
    border-color: var(--color-primary);
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    font-size: 2rem;
}

.founder-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.founder-title {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Quote */
.founder-quote-wrapper {
    position: relative;
    text-align: center;
}

.founder-quote {
    position: relative;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.founder-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 6rem;
    font-family: serif;
    color: rgba(65, 209, 236, 0.2);
    line-height: 1;
}

.quote-text {
    /* Optimization: Use background-position sliding instead of gradient regneration */
    background: linear-gradient(to right,
            var(--color-text-primary) 50%,
            var(--color-text-muted) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    /* Start at right (muted) */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    will-change: background-position;
}

/* Removed @property block as it's no longer needed for this technique */

/* Fallback removed as this method is supported broadly wherever background-clip:text is supported */

/* Responsive */
@media (max-width: 768px) {
    .founder-section {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
    }

    .founder-container {
        height: 100vh;
        padding: var(--space-xl) var(--container-padding);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .founder-quote {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        /* Slightly larger clamp minimum */
        line-height: 1.5;
    }

    .founder-card {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: left;
        margin-top: var(--space-xl);
        gap: var(--space-lg);
    }

    .founder-avatar {
        width: 60px;
        height: 60px;
    }

    .founder-name {
        font-size: 1.1rem;
        /* ~16.5px - increased from 1rem */
    }

    .founder-title {
        font-size: 0.7rem;
        /* ~10.5px - increased from 0.5rem (base style) */
    }

    .founder-quote::before {
        display: none;
    }
}