/* ===================================================================
   Rivulet IQ — company pages (about, foundation, trust-center, contact, careers)
   Only what inner.css does not already have. No boxes, no sticky, no pinning.
   =================================================================== */

/* ------------------------------------------------------------------ PEOPLE: initials where no portrait exists */
.co-ini {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: var(--f40);
    font-weight: 300;
    letter-spacing: -.03em;
    color: var(--light-grey);
}
.pg-people .pg-person__img:has(.co-ini) { background: var(--white-10); }

/* founders: two portraits, large */
.co-founders { --cols: 2; }
.co-founders .pg-person__n { font-size: var(--f30); letter-spacing: var(--ls-h3); }
.co-founders .pg-person__r { font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--orange); }

/* ------------------------------------------------------------------ TEAM: one hairline row per department, portraits dense on the right */
.co-count {
    font-size: var(--f40); font-weight: 300; line-height: var(--lhTight); letter-spacing: var(--ls-h3);
    & strong { font-weight: 800; color: var(--orange); }
}
.co-team { border-top: 1px solid var(--white-20); }
.co-dept {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: var(--sp60);
    padding-block: var(--sp45);
    border-bottom: 1px solid var(--white-20);

    & .co-dept__head { display: flex; flex-direction: column; gap: var(--sp12); }
    & .co-dept__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp12); font-size: var(--f30); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h3); }
    & .co-dept__c { font-family: var(--font-mono); font-size: var(--f15); font-weight: 400; letter-spacing: 0; color: var(--orange); }
    & .co-dept__d { max-width: 30ch; font-size: var(--f15); color: var(--white-75); }
    & .pg-people { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp30) var(--sp15); }
    & .pg-person { gap: var(--sp8); }
    & .pg-person__n { font-size: var(--f15); }
    & .pg-person__r { font-size: var(--f12); line-height: 1.35; }

    @media (max-width: 991.98px) {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp25);
        & .pg-people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    @media (max-width: 767.98px) {
        padding-block: 9vw;
        & .pg-people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6vw 3vw; }
        & .pg-person__n { font-size: var(--f12); }
        & .pg-person__r { font-size: var(--f12); }
    }
}

/* ------------------------------------------------------------------ RULES (foundation): six written rules, each with what it means on your build */
.co-rules {
    list-style: none; padding: 0; border-top: 1px solid var(--white-20);
    & > li { display: grid; gap: var(--sp10); padding-block: var(--sp25); border-bottom: 1px solid var(--white-20); }
    & h3 { font-size: var(--f25); font-weight: 700; line-height: var(--lhTight); letter-spacing: var(--ls-h3); text-wrap: balance; }
    & p { font-size: var(--f15); line-height: var(--lhLead); color: var(--white-75); }
}

/* ------------------------------------------------------------------ OPEN ROLES (careers): the facts of each role inside its card */
.co-job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: var(--f15); }
.co-job dt { margin-top: var(--sp10); font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--light-grey); opacity: .8; }
.co-job dt:first-child { margin-top: 0; }
.co-job dd { color: var(--white-75); }
.vc--feature .co-job { font-size: var(--f18); }

/* ------------------------------------------------------------------ CONTACT hero: title + facts on the left, the form on the right */
.co-contact-hero.pg-hero { min-height: 0; }
.co-contact-hero .pg-hero__title { max-width: 10ch; font-size: var(--f-h1-inner); }
.co-contact-hero .pg-split { align-items: start; margin-top: var(--sp20); }
.co-contact-hero .pg-hero__lead { max-width: 40ch; color: var(--white-75); }
.co-contact-hero .pg-ledger { width: 100%; margin-top: var(--sp20); }
.co-contact-hero .pg-ledger > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.co-contact-hero .pg-form { padding-top: var(--sp10); }
@media (max-width: 991.98px) { .co-contact-hero .pg-hero__title { font-size: var(--f-h1-inner); } }
@media (max-width: 767.98px) { .co-contact-hero .pg-hero__title { font-size: var(--f-h1-inner); } }

/* ------------------------------------------------------------------ ledger with a long value (trust-center facts) */
.co-ledger-lg > div { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); padding-block: var(--sp30); }
.co-ledger-lg dd { font-size: var(--f18); line-height: var(--lhLead); color: var(--white-75); }
.co-ledger-lg dd a { color: var(--white); }

/* points that hold one sentence each (trust-center: what the AI may not do) */
.co-points-s p { font-size: var(--f18); line-height: var(--lhLead); color: var(--white); }

/* ------------------------------------------------------------------ workaround: .pg-flow steps start at .35 opacity and only the
   timeline preset lights them; with JS off or reduced motion that never runs, so show them in full. */
html:not(.pg-motion) .pg-flow .pg-flow__body { opacity: 1; }
html:not(.pg-motion) .pg-flow .tl__num { color: var(--orange); }

/* workaround: .pg-note is display:flex, so inline links inside it become separate flex items — the text sits in one <span>. */
.pg-note > span { display: block; }

/* contact form: forms.js puts an aria-live <div> before the submit button; empty it takes no slot, filled it takes a full line */
.pg-form__go > div[aria-live] { flex: 1 0 100%; }
.pg-form__go > div[aria-live]:empty { display: none; }

/* a long label on the closing button (contact) wraps on phones instead of running off the edge */
@media (max-width: 767.98px) {
    .outro__cta { width: auto; max-width: 100%; height: auto; white-space: normal; }
    .outro__cta .btn__label { white-space: normal; text-align: left; }
}

/* ===================================================================
   Visual layer v2 (2026-12-02)
   =================================================================== */

/* a screen beside a heading (about own-ai, foundation rules) aligns to the top of the heading */
.co-own, .co-sec { align-items: start; }

/* about: co-founders large, in colour, opening upward (data-pg="mask"), an orange rule growing under each on hover */
.co-lead .co-founders { gap: var(--sp40); }
.co-founders .pg-person__img { position: relative; }
.co-founders .pg-person__img img { filter: none; transform: none; }
.co-founders .pg-person:hover .pg-person__img img { transform: scale(1.04); }
.co-founders .pg-person__img::after { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--orange); transform: scaleX(.18); transform-origin: 0 50%; transition: transform var(--ease-expo); content: ""; }
.co-founders .pg-person:hover .pg-person__img::after { transform: scaleX(1); }
.co-founders .pg-person__n { margin-top: var(--sp10); font-size: var(--f40); font-weight: 700; letter-spacing: var(--ls-h1); }
@media (max-width: 767.98px) { .co-founders .pg-person__n { font-size: var(--f25); } }

/* about: each department row comes alive on hover — portraits turn to colour, the name and hairline turn orange */
.co-dept { position: relative; transition: border-color .5s ease; }
.co-dept::before { position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--ease-expo); content: ""; }
.co-dept .co-dept__t { transition: color .4s ease; }
.co-dept .pg-person__img img { transition: filter .6s ease, transform var(--ease-expo); }
@media (hover: hover) {
    .co-dept:hover::before { transform: scaleX(1); }
    .co-dept:hover .co-dept__t { color: var(--orange); }
    .co-dept:hover .pg-person__img img { filter: none; }
}

/* careers: the art under the lead in the aside */
.co-rules-art { width: 100%; max-width: 420px; margin-top: var(--sp30); }
@media (max-width: 767.98px) { .co-rules-art { display: none; } }

/* contact: the art panel under the facts */
.co-contact-art { width: 100%; margin-top: var(--sp30); }

/* phones: in the screen demos, the status label drops under the row text instead of squeezing it */
@media (max-width: 767.98px) {
    .vx-screen .ui-rows > li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
    .vx-screen .ui-rows > li .ui-s { grid-column: 1; }
}
@media (max-width: 767.98px) { .co-contact-art { display: none; } }   /* phones: keep the form close to the top */

/* contact (RIQ-final copy, 2026-12-02): direct contact label + address in the hero ledger */
.co-contact-hero .co-contact-direct { margin-top: var(--sp30); }
.co-contact-hero .pg-ledger address { font-style: normal; }

/* ------------------------------------------------------------------ HOW WE WORK: the "Service:" line under each stage on the rail (2026-12-02) */
.pg-flow .co-svc { margin-top: var(--sp8); padding-top: var(--sp12); border-top: 1px solid var(--white-10); font-size: var(--f15); }
