/* ================================================================
   Contact page (/collab)

   The homepage's hero split, in /about's language. The lockup on the
   left: the headline in about's two weights, the invitation, the one
   button. The three cases on the right, each with its figure, split
   from the lockup by one spine and from each other by hairlines.
   Flat and square: no boxes, no shadows. The plate sits behind the
   whole page.

   One screen on desktop. On the phone it stacks, the spine turns on
   its side as about's does, and the page scrolls.
   ================================================================ */

/* ── Sizes and spacing ───────────────────────────────────────────
   Every size and every space on this page is set here, once. Each
   value is copied from the page named beside it. The lockup's own
   gap is sitewide's .hero-wrap; the headline's size is sitewide's
   .product. */
.collab {
    --co-gutter: 5vw; /* about --ab-gutter: left/right page edge */
    --co-col-gap: 4rem; /* about --ab-col-gap: either side of the spine */
    --co-rule-gap: clamp(0.75rem, 4dvh, 4rem); /* about --ab-rule-gap: either side of a hairline */
    --co-sub-gap: 0.4rem; /* about --ab-sub-gap: a case's lead to its question */
    --co-fig-gap: 1rem; /* about .ab-side column-gap: figure to text */
    --co-fig-w: 4rem; /* about .ab-fig / index .pillar-figure width */
    --co-fs-lead: clamp(1.2rem, 0.182vw + 1.164rem, 1.6rem); /* index .descriptor */
    --co-fs-body: clamp(1rem, 0.091vw + 0.982rem, 1.2rem); /* about --ab-fs-body */
    --co-cases-pad: 1.5rem; /* the cases' blurred panel: top and bottom */
}

@media (max-width: 769px) {
    .collab {
        --co-gutter: 1.25rem; /* about phone */
        --co-col-gap: 2.5rem; /* about phone: above/below the turned spine */
        --co-rule-gap: 2.5rem; /* about phone */
    }
}

:where(.collab) :where(p, h1, h2, ul) {
    margin: 0;
}

/* ── The page ── */
.collab {
    position: relative;
    z-index: 2;
}

.collab .page--collab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    padding: var(--page-top) var(--co-gutter) calc(var(--footer-height) + 1.5rem);
    /* the plate under the homepage's black scrim, so the cases read over
       the lit beams on the right */
    background:
        linear-gradient(rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.3)),
        #000 url("/img/arch_bg_2.webp") center / cover no-repeat;
}

/* ── The split ──
   Two equal halves, as about's spreads are: the lockup, then the
   cases. The spine is the cases' left border, a column gap clear of
   the lockup and a column gap clear of the figures. */
.co-split {
    display: flex;
    align-items: center;
    gap: var(--co-col-gap);
}

/* ── The lockup ──
   sitewide's .hero-wrap (the column and its gap), turned left the way
   the homepage turns its own, and entering the way the homepage's
   does: down, `backwards` so it rests untransformed. */
.co-lockup {
    flex: 1 1 0;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
    animation: descend 0.6s ease 0.05s backwards;
}

/* sitewide's .product for the face and size; the homepage's
   overrides for the leading and the left edge. The two lines enter
   on their own, as about's title does, so the h1 itself is shown. */
.co-title {
    max-width: 100%;
    line-height: 1.2;
    text-align: left;
    align-self: flex-start;
    opacity: 1;
    animation: none;
}

.co-title span {
    display: block;
}

.co-title-a {
    animation: rise 0.7s ease 0.15s backwards;
}

/* Same face, opposite weight: the turn in the sentence (about). */
.co-title-b {
    color: var(--soft);
    font-weight: 200;
    animation: rise 0.7s ease 0.3s backwards;
}

/* the homepage's .descriptor */
.co-invitation {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--co-fs-lead);
    font-weight: 300;
    line-height: 1.5;
    color: var(--ice);
    text-align: left;
}

/* ── The cases ──
   Each is about's .ab-side: the figure on the left, centred across
   both rows, then the lead over its question. They arrive after the
   lockup, as the homepage's cards do. */
.co-cases {
    flex: 1 1 0;
    min-width: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--co-rule-gap);
    padding: var(--co-cases-pad) 0 var(--co-cases-pad) var(--co-col-gap);
    border-left: 1px solid var(--slate);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: rise 0.6s ease 0.45s backwards;
}

.co-case {
    display: grid;
    grid-template-columns: var(--co-fig-w) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--co-fig-gap);
    row-gap: var(--co-sub-gap);
}

.co-case + .co-case {
    padding-top: var(--co-rule-gap);
    border-top: 1px solid var(--slate);
}

.co-fig {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}

.co-fig svg {
    display: block;
    width: 100%;
}

/* about's .ab-side-sub */
.co-case-head {
    grid-column: 2;
    font-family: "Oxanium", sans-serif;
    font-weight: 200;
    font-size: var(--co-fs-body);
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* about's .ab-body */
.co-case-text {
    grid-column: 2;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    font-size: var(--co-fs-body);
    line-height: 1.6;
    color: var(--ice);
}

/* ── Phone: one column ──
   The lockup, then the cases. The spine turns on its side and becomes
   the rule between them, as about's does. */
@media (max-width: 769px) {
    .collab .page--collab {
        justify-content: flex-start;
        padding: calc(var(--nav-bar-mob) + 1.5rem) var(--co-gutter) 2rem;
    }

    .co-split {
        flex-direction: column;
        align-items: stretch;
    }

    .co-cases {
        padding: var(--co-col-gap) 0 0;
        border-left: 0;
        border-top: 1px solid var(--slate);
    }
}

@media (prefers-reduced-motion: reduce) {
    .co-lockup,
    .co-title span,
    .co-cases {
        animation: none;
    }
}
