/* ==========================================================================
   About page (company/about.html)
   Built on site.css; only what is unique to this page lives here.
   (The previous design's stylesheet, about.css, is kept but unused.)
   ========================================================================== */

.about .about-heading {
    max-width: 24ch;
    margin-bottom: var(--spacing-10);
}

.about .about-lead {
    margin-bottom: var(--spacing-12);
}

.about-col-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(var(--ink), 0.45);
    margin-bottom: var(--spacing-4);
}

/* ---- Hero: headline and subline on exactly two lines on laptop and up ----- */

@media (min-width: 1024px) {
    .about-title {
        max-width: none;
        font-size: 2.75rem;
    }

    .about-hero-lead {
        max-width: none;
    }
}

@media (max-width: 1023px) {
    .about-break {
        display: none;
    }
}

/* ---- Our story ------------------------------------------------------------ */

.about-story-lead {
    color: rgb(var(--ink));
    margin-bottom: var(--spacing-6);
}

.about .split-grid .body-text {
    margin-bottom: var(--spacing-4);
}

/* Story beside "What we build", with the last two paragraphs running full
   width underneath so there's no empty space below the short side column.
   On narrow screens the whole story reads first, then "What we build". */
.about-story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-areas:
        "main aside"
        "more more";
    column-gap: var(--spacing-16);
    align-items: start;
}

.about-story-main  { grid-area: main; }
.about-story-aside { grid-area: aside; }
.about-story-more  { grid-area: more; }

.about-story-grid .body-text {
    margin-bottom: var(--spacing-4);
}

.about-story-more .body-text {
    max-width: none;
}

@media (max-width: 900px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "more"
            "aside";
    }

    .about-story-aside {
        margin-top: var(--spacing-12);
    }
}

/* The story's last paragraph is where it lands - full ink */
.about-story-close {
    color: rgb(var(--ink));
}

.about-build-list {
    display: flex;
    flex-direction: column;
}

.about-build-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-4);
    padding: var(--spacing-5) 0;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.about-build-row:last-child {
    border-bottom: 1px solid var(--border-color);
}

.about-build-name {
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(var(--ink), 0.75);
    transition: color var(--transition-fast);
}

.about-build-row:hover .about-build-name {
    color: rgb(var(--ink));
}

.about-build-tag {
    font-size: var(--font-size-sm);
    color: rgba(var(--ink), 0.4);
    white-space: nowrap;
}

/* ---- What we believe: large numbered statements --------------------------- */

.about-beliefs {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: about-belief;
}

.about-beliefs li {
    counter-increment: about-belief;
    display: grid;
    grid-template-columns: 4rem 1fr;
    align-items: baseline;
    padding: var(--spacing-4) 0;
    border-top: 1px solid var(--border-color);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: rgba(var(--ink), 0.85);
}

.about-beliefs li:last-child {
    border-bottom: 1px solid var(--border-color);
}

.about-beliefs li::before {
    content: counter(about-belief, decimal-leading-zero);
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: 0;
    color: rgba(var(--ink), 0.4);
    font-variant-numeric: tabular-nums;
}

/* Belief headline sits in the row's large type; the explanation sits below it */
.about-belief-title {
    margin: 0 0 var(--spacing-1);
    font: inherit;
    color: inherit;
}

/* Full row width, so each explanation fits on one line on laptops */
.about-belief-text {
    margin: 0;
    max-width: none;
}

@media (min-width: 1024px) {
    /* Narrower number column and 15px text give the longest line room */
    .about-beliefs li {
        grid-template-columns: 3rem 1fr;
    }

    .about-belief-text {
        font-size: 0.9375rem;
    }
}

/* ---- Mission, vision and values ------------------------------------------- */

.about-mission {
    margin-bottom: var(--spacing-16);
}

.about-values strong {
    font-weight: 500;
    color: rgb(var(--ink));
}

/* ---- Legal notice: small print above the footer -------------------------- */

.about-legal .section-label {
    margin-bottom: var(--spacing-4);
}

.about-legal .body-text {
    font-size: var(--font-size-sm);
    color: rgba(var(--ink), 0.5);
    max-width: none;
    margin-bottom: var(--spacing-2);
}

@media (min-width: 601px) {
    /* Small print doesn't need the full section spacing */
    .about-legal.page-section {
        padding: var(--spacing-12) 0;
    }
}

/* ---- Leadership: name/role on the left, bio on the right ------------------ */

.about-person {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-8);
    padding: var(--spacing-10) 0;
    border-top: 1px solid var(--border-color);
}

.about-person:last-child {
    border-bottom: 1px solid var(--border-color);
}

.about-person-head .item-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-1);
}

.about-person-role {
    font-size: var(--font-size-sm);
    color: rgba(var(--ink), 0.5);
    margin: 0;
}

.about-person-bio .body-text {
    margin-bottom: var(--spacing-4);
}

.about-person-bio .body-text:last-child {
    margin-bottom: 0;
}

/* ---- Expertise: two-column ruled list -------------------------------------- */

.about-cols {
    columns: 2;
    column-gap: var(--spacing-12);
}

.about-cols li {
    break-inside: avoid;
}

.about-cols li:nth-child(4) {
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 760px) {
    .about-person {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
        padding: var(--spacing-8) 0;
    }

    .about-cols {
        columns: 1;
    }

    .about-cols li:nth-child(4) {
        border-bottom: 0;
    }

    .about-beliefs li {
        grid-template-columns: 2.75rem 1fr;
        padding: var(--spacing-4) 0;
    }
}
