/* About page. Shared components come from style.css. */

.about-hero .page-hero {
    max-width: 980px;
}

.about-hero-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--tile);
}

.about-hero-media img,
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.about-text h3 {
    margin-top: 2rem;
    font-size: 20px;
}

.about-text p {
    margin-top: 1rem;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 62ch;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--tile);
}

.mission-section {
    background: var(--bg-2);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mission-card,
.feature-item {
    padding: clamp(24px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.mission-icon,
.feature-item > i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 17px;
    margin-bottom: 1.5rem;
}

.mission-card h3,
.feature-item h4 {
    font-size: 21px;
}

.mission-card p,
.feature-item p {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 15.5px;
}

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.why-grid .section-header {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

/* Scans are white paper, so the frame is white and the whole page shows (contain) */
.cert-paper {
    display: block;
    aspect-ratio: 1 / 1.414;
    padding: 6px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover .cert-paper {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.cert-paper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.cert-caption small {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}

.team-section {
    padding-top: 0;
}

.team-block {
    max-width: 860px;
    padding-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line);
}

.team-intro {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-stretch: 104%;
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 450;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink-2);
}

@media (max-width: 900px) {
    .about-content-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid .section-header {
        position: static;
    }

    .about-image {
        aspect-ratio: 4 / 3;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-hero-media {
        aspect-ratio: 4 / 3;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
