/* ============================================================
   about.css — about.html in the new identity
   Loaded after home.css, whose hm- primitives it reuses (hm-hero,
   hm-hero-title/-subtitle, hm-section, hm-eyebrow, hm-title, hm-text).
   Classes here are ab- and about-only. Every colour, size and space
   comes from variables.css; the page is light (data-theme="light").
   ============================================================ */

/* ---- Section spacing, matched to the home page: --space-12 on the main content sections
   (as "How it's different" / "What we build"); Mission & Vision sits close to the illustration. ---- */
.ab-mission {
    padding-bottom: 0;
}

.ab-story,
.ab-team {
    padding: var(--space-12) 0;
}

/* ---- Centred reading column (Mission & Vision, section headers) ---- */
.ab-narrow {
    max-width: var(--about-narrow-width);
    margin: 0 auto;
    text-align: center;
}

.ab-narrow .hm-title {
    text-align: center;
}

.ab-narrow .hm-text + .hm-text {
    margin-top: var(--space-4);
}

/* ---- Illustration: full container width, its own proportions (width + height attributes) ---- */
.ab-illustration {
    padding: var(--space-6) 0 var(--space-12);
    background: var(--surface);
}

.ab-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

/* Phones: edge to edge, no side margins. !important only because style.css forces
   .container { padding: 7% !important } below 576px. */
@media (max-width: 767px) {
    .ab-illustration .container {
        max-width: none;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ---- Our story: icon + chapter label + paragraphs ---- */
.ab-chapters {
    list-style: none;
    max-width: var(--about-narrow-width);
    margin: var(--space-8) auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.ab-chapter {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    align-items: start;
}

.ab-chapter-icon {
    color: var(--accent);
}

.ab-chapter-label {
    color: var(--accent);
    margin: 0 0 var(--space-2);
    padding-top: var(--space-1);
}

.ab-chapter-text {
    font-family: var(--font-sans);
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
    color: var(--ink-muted);
    margin: 0;
}

.ab-chapter-text + .ab-chapter-text {
    margin-top: var(--space-3);
}

.ab-chapter-text--today {
    color: var(--ink);
    font-weight: var(--weight-semibold);
}

/* the «PlusReal» link inside about.history.text2 */
.ab-chapter-text a,
.ab-chapter-text a:visited {
    color: var(--accent);
    text-decoration: underline;
}

/* ---- The team: one row per person ---- */
.ab-members {
    list-style: none;
    max-width: var(--about-team-width);
    margin: var(--space-8) auto 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.ab-member {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--border);
}

.ab-member-photo {
    flex: none;
    width: var(--about-member-photo-size);
    height: var(--about-member-photo-size);
    object-fit: cover;
    border-radius: var(--radius-md);
}

.ab-member-body {
    flex: 1;
    min-width: 0;
}

.ab-member-quote {
    font-family: var(--font-sans);
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
    font-style: italic;
    color: var(--ink);
}

/* The <br>s in the quotes shaped the old narrow hover cards; in a row they read as one line. */
.ab-member-quote br {
    display: none;
}

/* Jorge's quote is binary; monospaced (Noto Sans Mono), same weight as the other quotes. */
.ab-member-quote--code {
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: var(--weight-regular);
}

.ab-member-meta {
    margin-top: var(--space-1);
    font-family: var(--font-sans);
    font-size: var(--text-body-sm-size);
    line-height: var(--text-body-sm-line);
    color: var(--ink-muted);
}

.ab-member-name {
    font-weight: var(--weight-bold);
    color: var(--accent);
}

.ab-member-name::after {
    content: " \00b7";
    font-weight: var(--weight-regular);
    color: var(--ink-muted);
}

.ab-member-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-3);
}

.ab-member-social a,
.ab-member-social a:visited {
    display: flex;
    color: var(--ink-muted);
    font-size: var(--about-member-social-size);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

/* Font Awesome only for the social brand logos; other icons (the website link) are Material Symbols. */
.ab-member-social .material-symbols-outlined {
    font-size: var(--about-member-social-size);
    font-weight: var(--weight-bold);  /* heavier stroke next to the solid LinkedIn logo (needs wght 400..700 in the font URL) */
    line-height: 1;
}

@media (hover: hover) {
    .ab-member-social a:hover {
        color: var(--accent);
    }
}

@media (max-width: 575px) {
    .ab-member {
        flex-wrap: wrap;
    }

    /* right-aligned so LinkedIn, last in every list, lands in the same column on every row */
    .ab-member-social {
        width: 100%;
        justify-content: flex-end;
    }
}

/* style.css forces every <p> to 18px / 28px !important below 768px; keep this one on the type scale. */
@media (max-width: 767px) {
    p.ab-chapter-text {
        font-size: var(--text-body-size) !important;
        line-height: var(--text-body-line) !important;
    }
}
