/* About (app/pages/about.php). Banner, statement band, flips and section heads come from wisdigix.css;
   this file holds the agency intro and its spec sheet, the principles run and the starting points. */

/* 1. Agency intro: heading on the left, the text (with the catalogue's real counts in a sentence) on the right
   ----------------------------------------------------------------------- */
.about-agency__grid {
    display: grid;
    gap: var(--s-6) var(--gap);
}
.about-agency__head .wg-title { max-width: 14em; }
.about-agency__head .wg-lead { margin: 0; }
.about-agency__text { max-width: 36rem; }
.about-agency__text p { margin-bottom: 1.5rem; }
.about-agency__text strong { font-weight: 620; }
@media (min-width: 992px) {
    .about-agency__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        row-gap: var(--s-7);
        align-items: end;
    }
    .about-agency__head { grid-column: 1 / span 6; grid-row: 1; }
    .about-agency__text { grid-column: 8 / -1; grid-row: 1; align-self: end; }
}

/* 2. Principles: two rows beside a photo, alternating sides, and three ledger rows
   ----------------------------------------------------------------------- */
.about-principles__list { display: grid; }
.about-principle { position: relative; }
.about-principle__name {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -.022em;
}
.about-principle__claim {
    margin: 0 0 .625rem;
    color: var(--fg-strong);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.008em;
}
.about-principle__body p:not(.about-principle__claim) { margin: 0 0 1.5rem; max-width: 36rem; }

/* In practice: each line hangs off a small right-angle connector, the coordination view's line language */
.about-practice {
    display: grid;
    gap: .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-practice li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--fg);
    font-size: var(--fs-small);
    line-height: 1.5;
}
.about-practice li::before {
    content: "";
    position: absolute;
    top: .2em;
    left: .125rem;
    width: .625rem;
    height: .55em;
    border-bottom: 1px solid var(--rule-strong);
    border-left: 1px solid var(--rule-strong);
}

/* Rows beside a photo */
.about-principle--photo {
    display: grid;
    gap: var(--s-6) var(--gap);
    align-items: center;
    padding-block: clamp(2.5rem, 1.4rem + 3.6vw, 5rem);
}
.about-principle--photo:first-child { padding-top: 0; }
.about-principle__img {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--c-coal);
}
.about-principle__img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
#principle-next .about-principle__img img { object-position: 30% 50%; }
@media (min-width: 992px) {
    .about-principle--photo { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .about-principle--photo .about-principle__text { grid-column: 1 / span 6; grid-row: 1; }
    .about-principle--photo .about-principle__img { grid-column: 8 / -1; grid-row: 1; }
    .about-principle--flip .about-principle__text { grid-column: 7 / -1; }
    .about-principle--flip .about-principle__img { grid-column: 1 / span 5; }
    .about-principle__img img { aspect-ratio: 5 / 6; }
}

/* Ledger rows: name, statement, practice across one line of the grid */
.about-principle--ledger {
    padding-block: clamp(2rem, 1.5rem + 1.6vw, 3rem);
    border-top: 1px solid var(--rule);
}
.about-principle--ledger:last-child { border-bottom: 1px solid var(--rule); }
.about-principle--photo + .about-principle--ledger { margin-top: var(--s-4); }
@media (min-width: 992px) {
    .about-principle--ledger .about-principle__text {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--gap);
        align-items: start;
    }
    .about-principle--ledger .about-principle__name { grid-column: 1 / span 3; margin: 0; }
    .about-principle--ledger .about-principle__body { grid-column: 4 / span 5; }
    .about-principle--ledger .about-principle__body p:last-child { margin-bottom: 0; }
    .about-principle--ledger .about-practice { grid-column: 9 / -1; padding-top: .35rem; }
}

/* 3. The six stages on the dark band
   ----------------------------------------------------------------------- */
.about-cover__actions { margin-top: var(--s-8); }

/* 4. Starting points: two columns of short entries over hairlines
   ----------------------------------------------------------------------- */
.about-who {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-who__item {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding-block: 1.75rem 2.25rem;
    border-top: 1px solid var(--rule);
}
.about-who__name {
    margin: 0;
    font-size: var(--fs-h3);
    font-weight: 620;
    line-height: 1.25;
    letter-spacing: -.014em;
}
.about-who__text { max-width: 34rem; margin: 0; }
.about-who__links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .5rem 1.75rem;
    margin: .25rem 0 0;
    padding: 0;
    list-style: none;
}
/* From 1200px the heading holds the left third while the entries run beside it */
@media (min-width: 1200px) {
    .about-who-section .wg-container {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--gap);
        align-items: start;
    }
    .about-who-section .wg-section-head {
        position: sticky;
        top: calc(72px + var(--s-6));
        grid-column: 1 / span 4;
        margin-bottom: 0;
    }
    .about-who-section .about-who { grid-column: 6 / -1; }
}
@media (min-width: 768px) {
    .about-who {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(2rem, .5rem + 4vw, 4.5rem);
    }
    /* Entries in one row share their tracks, so the goal links line up across the row */
    @supports (grid-template-rows: subgrid) {
        .about-who__item { grid-row: span 3; grid-template-rows: subgrid; row-gap: .75rem; }
    }
}

/* Same ground, one hairline: .wg-dark bands share the obsidian of the plain sections beside them on the dark
   site, so the seam on either side is a 1px rule (the coal and graphite grounds carry their own edge) */
.wg-section:not(.wg-section--stone):not(.wg-ice):not(.wg-dark) + .wg-dark,
.wg-dark + .wg-section:not(.wg-section--stone):not(.wg-ice):not(.wg-dark) { border-top: 1px solid var(--rule); }
