/* ── About Page Templates ── */

/* ── Profile Template ── */
.about-profile-content {
    overflow: hidden; /* contain float */
}

.about-profile-photo {
    float: left;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 1.5rem 1rem 0;
    shape-outside: circle();
    border: 3px solid var(--brand-primary, #6366f1);
}

.about-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--brand-text, inherit);
}

.about-profile-tagline {
    font-size: 1.05rem;
    color: var(--brand-text-muted, #6c757d);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ── Story Template ── */
.about-story-hero {
    margin: -1rem -1rem 2rem -1rem;
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
}

.about-story-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-story-headline {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--brand-text, inherit);
}

.about-story-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-story-pullquote {
    border-left: 4px solid var(--brand-primary, #6366f1);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--brand-text, inherit);
    background: var(--brand-card-bg, rgba(99, 102, 241, 0.05));
    border-radius: 0 8px 8px 0;
}

.about-story-body {
    margin-bottom: 2rem;
}

.about-story-milestones-section {
    margin-top: 3rem;
}

.about-story-divider {
    width: 60px;
    height: 3px;
    background: var(--brand-primary, #6366f1);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
}

.about-story-milestones {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-milestone {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--brand-card-bg, #fff);
    border: 1px solid var(--brand-border, #e5e7eb);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-milestone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary, #6366f1), var(--brand-accent, #a855f7));
}

.about-milestone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.about-milestone-label {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-primary, #6366f1);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-milestone-desc {
    font-size: 0.85rem;
    color: var(--brand-text-muted, #6c757d);
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* ── Split Template ── */
.about-split-headline {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--brand-text, inherit);
}

.about-split-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-split-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-split-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-split-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.about-split-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.about-split-text {
    flex: 1;
}

.about-split-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--brand-text, inherit);
}

/* ── Cards Template ── */
.about-cards-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-cards-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--brand-primary, #6366f1);
}

.about-cards-header-text {
    flex: 1;
}

.about-cards-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brand-text, inherit);
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.about-card {
    background: var(--brand-card-bg, #fff);
    border: 1px solid var(--brand-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.about-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.about-card-icon {
    font-size: 1.75rem;
    color: var(--brand-primary, #6366f1);
    margin-bottom: 0.75rem;
}

.about-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brand-text, inherit);
}

.about-card-body {
    font-size: 0.95rem;
    color: var(--brand-text-muted, #6c757d);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .about-profile-photo {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        shape-outside: none;
    }

    .about-profile-content {
        text-align: center;
    }

    .about-profile-content .markdown-body {
        text-align: left;
    }

    .about-story-hero {
        max-height: 250px;
    }

    .about-story-milestones {
        flex-direction: column;
        align-items: center;
    }

    .about-milestone {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .about-split-row,
    .about-split-row:nth-child(even) {
        flex-direction: column;
    }

    .about-split-image {
        flex: none;
        max-width: 100%;
    }

    .about-cards-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-cards-header .markdown-body {
        text-align: left;
    }

    .about-cards-grid {
        grid-template-columns: 1fr;
    }
}
