/* --- FOUNDER PAGE STYLES --- */
:root {
    --bg-founder: #FDFBFA;
    --text-primary: #060507;
    --text-muted: #5D5257;
    --accent: #C4687E; /* From the voices page / health & women context */
    --accent-light: #F4E8EA;
    --corner: 14px; /* Default for wavy border */
}

body.dark-mode {
    --bg-founder: #0F1115;
    --text-primary: #F0F0F0;
    --text-muted: #AAB2C0;
    --accent-light: #2A1F23;
}

body, html {
    background-color: var(--bg-founder);
    color: var(--text-primary);
}

.founder-hero {
    max-width: 1240px;
    margin: 60px auto 100px;
    padding: 0 40px;
}

.founder-hero-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

/* Separate stacked founders (Founder + Co-Founder) */
.founder-hero-container + .founder-hero-container {
    margin-top: 96px;
    padding-top: 96px;
    border-top: 1px solid var(--accent-light);
}

/* --- IMAGE WAVY FRAME --- */
.founder-image-col {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    margin-bottom: 60px;
    /* Adding subtle animation */
    animation: fadeUp 0.8s ease-out forwards;
}

.wavy-frame {
    border: var(--corner) solid transparent;
    border-image-source: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" fill="%23C4687E"><path d="M0 1c0-.552285.447715-1 1-1 .5 0 .875.25 1.25.5S3 1 3.5 1 4.375.75 4.75.5 5.5 0 6 0c.55228 0 1 .447715 1 1 0 .5-.25.875-.5 1.25S6 3 6 3.5s.25.875.5 1.25S7 5.5 7 6c0 .5333-.41747.9691-.94344.99843-.46617-.0215-.82387-.25997-1.18156-.49843-.375-.25-.75-.5-1.25-.5s-.875.25-1.25.5-.75.5-1.25.5H1c-.533303 0-.9691-.41747-.998427-.94344C.023075 5.59039.261537 5.23269.5 4.875c.25-.375.5-.75.5-1.25S.75 2.75.5 2.375s-.5-.75-.5-1.25V1Z" /></svg>');
    border-image-slice: 1 fill;
    border-image-repeat: round;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding: 0;
    transition: transform 0.4s ease;
}

body.dark-mode .wavy-frame {
    /* Different color svg for dark mode, or keep accent */
    border-image-source: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" fill="%23E8A0B0"><path d="M0 1c0-.552285.447715-1 1-1 .5 0 .875.25 1.25.5S3 1 3.5 1 4.375.75 4.75.5 5.5 0 6 0c.55228 0 1 .447715 1 1 0 .5-.25.875-.5 1.25S6 3 6 3.5s.25.875.5 1.25S7 5.5 7 6c0 .5333-.41747.9691-.94344.99843-.46617-.0215-.82387-.25997-1.18156-.49843-.375-.25-.75-.5-1.25-.5s-.875.25-1.25.5-.75.5-1.25.5H1c-.533303 0-.9691-.41747-.998427-.94344C.023075 5.59039.261537 5.23269.5 4.875c.25-.375.5-.75.5-1.25S.75 2.75.5 2.375s-.5-.75-.5-1.25V1Z" /></svg>');
}

.wavy-frame::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 32px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
}

.wavy-frame img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(8%) contrast(1.05); /* slightly moody/professional */
    border-radius: 30px; /* matches border waves */
}

/* --- TEXT CONTENT --- */
.founder-content-col {
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.founder-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

h1.founder-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.founder-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin: 0 0 32px;
    text-transform: uppercase;
}

.founder-intro {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    font-style: italic;
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin-bottom: 40px;
    position: relative;
    opacity: 0.9;
}

.founder-bio {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

.founder-bio p {
    margin-bottom: 24px;
}

.founder-bio p.highlight-para {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- TAGS --- */
.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ftag {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #C4687E;
    padding: 8px 16px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    transition: transform 0.2s;
}

.ftag:hover {
    transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .founder-hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    h1.founder-title {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .founder-hero {
        margin: 40px auto;
        padding: 0 24px;
    }
    .founder-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .founder-image-col {
        position: relative;
        top: 0;
    }
    .founder-intro {
        text-align: left;
        font-size: 20px;
        padding-left: 16px;
    }
    .founder-bio {
        text-align: left;
    }
    .founder-tags {
        justify-content: center;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
