/* ============================================================
   About page — Story with framed image, numbered value
   cards in horizontal layout, team grid with portraits
   ============================================================ */

/* --- Story layout --- */

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    color: var(--color-text_muted);
    line-height: 1.8;
    white-space: pre-line;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 8px;
    right: -8px;
    bottom: -8px;
    width: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.about-image img {
    width: 100%;
    border-radius: 3px;
    object-fit: cover;
    max-height: 420px;
}

@media (min-width: 768px) {
    .about-layout {
        grid-template-columns: 3fr 2fr;
        gap: 4rem;
        align-items: center;
    }
}

/* --- Values with index numbers --- */

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.value-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: var(--color-background);
    border-radius: 3px;
    align-items: start;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.value-index {
    font-family: var(--font-heading), Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.3;
    min-width: 2.5rem;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.value-card p {
    color: var(--color-text_muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Team --- */

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.team-card {
    text-align: center;
}

.team-photo {
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 3px;
    position: relative;
}

.team-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
}

.team-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s;
}

.team-card:hover .team-photo img {
    transform: scale(1.02);
}

.team-info {
    text-align: left;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-role {
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-body), system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.team-specialization {
    color: var(--color-text_muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.team-description {
    color: var(--color-text_muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-photo img {
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card:hover .team-photo img {
        transform: none;
    }
}
