/* =================================================================== CASE STUDY — PROJECT BRIEF (client, 2026-12-02)
   Replaces the "project facts" ledger (dl.cs-record) on the retailer, health system, telecom, file portal and
   simulator pages. "What we did" is the statement, set large and filled word by word on scroll (homepage
   scrub-words); the other facts sit under it as open columns — hairline dividers, orange-square labels,
   no boxes. Tokens only, so it follows the page's scene. */

.cs-brief { margin-top: var(--sp20); padding-top: var(--sp40); border-top: 1px solid var(--white-20); }
.cs-brief__k {
    display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp20);
    font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--orange);
    &::before { width: 8px; height: 8px; background: var(--orange); content: ""; }
}
.cs-brief__lead {
    max-width: 30ch; margin: 0;
    font-size: var(--f45); font-weight: 600; line-height: 1.12; letter-spacing: -.025em;
    color: var(--white); text-wrap: balance;
}
.cs-brief__facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: var(--sp60) 0 0;
    padding-top: var(--sp30);
    border-top: 1px solid var(--white-10);
    & > div {
        position: relative;
        display: flex; flex-direction: column; gap: 14px;
        padding: calc(var(--cvw) * .4) var(--sp30) calc(var(--cvw) * .4);
        border-left: 1px solid var(--white-10);
    }
    & > div:first-child { padding-left: 0; border-left: 0; }
    & > div::after {            /* orange line that runs down the divider on hover */
        position: absolute; left: -1px; top: 0; width: 2px; height: 0;
        background: var(--orange); content: "";
        transition: height .7s cubic-bezier(.65, 0, .35, 1);
    }
    & > div:first-child::after { display: none; }
    & > div:hover::after, & > .cs-brief__ai::after { height: 100%; }
    & dt {
        display: flex; align-items: center; gap: 10px;
        font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey);
        &::before { flex: 0 0 auto; width: 6px; height: 6px; background: var(--orange); content: ""; }
    }
    & dd { margin: 0; font-size: var(--f18); font-weight: 500; line-height: 1.45; color: var(--white); text-wrap: pretty; }
    & dd a { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .18em; transition: color .3s ease; &:hover { color: var(--orange); } }
    & .cs-brief__ai dt { color: var(--orange); }
}

@media (max-width: 991.98px) {
    .cs-brief__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .cs-brief__facts > div:nth-child(3) { padding-left: 0; border-left: 0; &::after { display: none; } }
}
@media (max-width: 767.98px) {
    .cs-brief__facts { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
    .cs-brief__facts > div:nth-child(n) { padding-left: 16px; border-left: 1px solid var(--white-10); &::after { display: block; } }
}

/* =================================================================== PAGE VISUALS (client, 2026-12-02)
   One per page, drawn from that page's own content. Open layouts only: hairlines, mono labels, orange
   squares — no boxes. Each plays once [data-brief] gets .is-in (case-brief.js). */
[data-brief] { margin-top: var(--sp45); }
.cb-k, .cb-flow small, .cb-rail__tag, .cb-map small, .cb-pipe__n, .cb-sim__k, .cb-sim__label, .cb-sim__note {
    font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey);
}

/* ---- retailer (client, 2026-12-02: calm, from the page's own source table): the nine sources by group,
   numbered 01–09 with how each arrives, joined by one bracket into the database and what the AI does on it */
.cb-src { display: grid; grid-template-columns: minmax(0, 7fr) 48px minmax(0, 4fr); column-gap: var(--sp30); align-items: stretch; }
.cb-src__k { margin: 0 0 var(--sp20); font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey);
    & b { margin-right: 8px; font-family: var(--font-body); font-size: var(--f55); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--orange); vertical-align: -.12em; } }
.cb-src__g {
    display: grid; grid-template-columns: minmax(110px, 22%) minmax(0, 1fr) minmax(140px, 28%); gap: var(--sp25);
    padding: var(--sp25) 0; border-top: 1px solid var(--white-10);
    opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
    &:last-child { border-bottom: 1px solid var(--white-10); }
}
.cb-src__name { margin: 0; font-size: var(--f18); font-weight: 700; color: var(--white); }
.cb-src__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none;
    & li { display: flex; gap: 12px; font-size: var(--f18); line-height: 1.4; color: var(--white); }
    & i { flex: 0 0 4.2ch; font-family: var(--font-mono); font-size: var(--f12); font-style: normal; letter-spacing: 0; color: var(--orange); padding-top: .3em; } }
.cb-src__how { margin: 0; font-size: var(--f16); line-height: 1.45; color: var(--light-grey); }
.cb-src__join {            /* the bracket: the three groups close into one line pointing at the database */
    position: relative; margin-top: var(--sp75);
    &::before { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; border: 1px solid var(--white-20); border-left: 0; content: "";
        transform: scaleY(0); transform-origin: 50% 50%; transition: transform .8s cubic-bezier(.65, 0, .35, 1) .5s; }
    &::after { position: absolute; left: 50%; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--orange); content: "";
        transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease 1.2s; }
}
.cb-src__out { display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .6s ease 1.4s; }
.cb-src__db { margin: 0; font-size: var(--f30); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--white); }
.cb-src__ai { display: flex; align-items: center; gap: 10px; margin: var(--sp30) 0 12px; padding-top: var(--sp25); border-top: 1px solid var(--white-10);
    font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; text-transform: none; color: var(--orange);
    &::before { width: 8px; height: 8px; background: var(--orange); content: ""; } }
.cb-src__does { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none;
    & li { font-size: var(--f18); line-height: 1.4; color: var(--white); } }
.cb-src.is-in {
    & .cb-src__g { opacity: 1; transform: none; }
    & .cb-src__g:nth-of-type(2) { transition-delay: .12s; } & .cb-src__g:nth-of-type(3) { transition-delay: .24s; }
    & .cb-src__join::before { transform: scaleY(1); } & .cb-src__join::after { transform: scaleX(1); }
    & .cb-src__out { opacity: 1; }
}
@media (max-width: 991.98px) {
    .cb-src { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
    .cb-src__join { display: none; }
}
@media (max-width: 767.98px) {
    .cb-src__g { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---- health system: design phase → build → review → live, on a rail that fills */
.cb-rail {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0; padding: 34px 0 0; list-style: none;
    &::before, &::after { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--white-20); content: ""; }
    &::after { height: 2px; top: 6.5px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.8s cubic-bezier(.65, 0, .35, 1); }
}
.cb-rail li {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: var(--sp30);
    opacity: .25; transition: opacity .5s ease;
    &::before { position: absolute; left: 0; top: -34px; width: 14px; height: 14px; background: var(--background); border: 2px solid var(--white-20); content: ""; z-index: 1; transition: background .3s ease, border-color .3s ease; }
}
.cb-rail__tag { color: var(--orange); }
.cb-rail__when { font-size: var(--f35); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--white); }
.cb-rail__what { font-size: var(--f18); line-height: 1.45; color: var(--white); max-width: 26ch; }
.cb-rail.is-in {
    &::after { transform: scaleX(1); }
    & li { opacity: 1; }
    & li::before { background: var(--orange); border-color: var(--orange); }
    & li:nth-child(1), & li:nth-child(1)::before { transition-delay: .1s; }
    & li:nth-child(2), & li:nth-child(2)::before { transition-delay: .6s; }
    & li:nth-child(3), & li:nth-child(3)::before { transition-delay: 1.1s; }
    & li:nth-child(4), & li:nth-child(4)::before { transition-delay: 1.6s; }
    & .cb-rail__now::before { animation: cb-beat 1.8s ease-out 2.2s infinite; }
}
@keyframes cb-beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 55%, transparent); } 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--orange) 0%, transparent); } }

/* ---- telecom: company sign-in → six sections → logged admin area, as a site map */
.cb-map { display: flex; flex-direction: column; align-items: center; }
.cb-map p { display: flex; align-items: center; gap: 14px; margin: 0; font-size: var(--f20); font-weight: 600; color: var(--white);
    & small { display: block; margin-top: 4px; font-weight: 400; text-transform: none; letter-spacing: 0; }
    & svg { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: var(--orange); stroke-width: 1.6; }
}
.cb-map__secs {
    position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%;
    margin: 44px 0; padding: 44px 0 0; list-style: none;
    &::before { position: absolute; left: 50%; top: -44px; width: 1px; height: 44px; background: var(--orange); content: "";
        transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s ease; }
    &::after { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 0; height: 1px; background: var(--white-20); content: "";
        transform: scaleX(0); transition: transform .7s cubic-bezier(.65, 0, .35, 1) .35s; }
}
.cb-map__secs li {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 8px; text-align: center;
    font-size: var(--f18); font-weight: 600; line-height: 1.3; color: var(--white);
    opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
    &::before { position: absolute; left: 50%; top: -44px; width: 1px; height: 32px; background: var(--white-20); content: ""; }
    & + li { border-left: 1px solid var(--white-10); }
}
.cb-map__n { font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; color: var(--orange); }
.cb-map__admin { padding-top: 26px; border-top: 1px dashed var(--white-20); opacity: 0; transition: opacity .5s ease 1.6s; }
.cb-map__gate { opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .5s ease; }
.cb-map.is-in {
    & .cb-map__gate { opacity: 1; transform: none; }
    & .cb-map__secs::before { transform: scaleY(1); transition-delay: .25s; }
    & .cb-map__secs::after { transform: scaleX(1); }
    & li { opacity: 1; transform: none; }
    & li:nth-child(1) { transition-delay: .9s; } & li:nth-child(2) { transition-delay: 1s; } & li:nth-child(3) { transition-delay: 1.1s; }
    & li:nth-child(4) { transition-delay: 1.2s; } & li:nth-child(5) { transition-delay: 1.3s; } & li:nth-child(6) { transition-delay: 1.4s; }
    & .cb-map__admin { opacity: 1; }
}

/* ---- file portal: the four steps on a job rail; a file travels it on repeat */
.cb-pipe { position: relative; }
.cb-pipe__rail { position: relative; height: 2px; margin: 0 0 30px; background: var(--white-20); }
.cb-pipe__fill { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2s cubic-bezier(.65, 0, .35, 1); }
.cb-pipe__job { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--orange); opacity: 0; }
.cb-pipe__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cb-pipe__steps li {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: var(--sp30);
    opacity: .25; transition: opacity .5s ease;
    &::before { position: absolute; left: 0; top: -37px; width: 14px; height: 14px; background: var(--background); border: 2px solid var(--white-20); content: ""; transition: background .3s, border-color .3s; }
}
.cb-pipe__n { color: var(--orange); }
.cb-pipe__t { font-size: var(--f30); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--white); }
.cb-pipe__d { font-size: var(--f16); line-height: 1.5; color: var(--light-grey); max-width: 24ch; }
.cb-pipe.is-in {
    & .cb-pipe__fill { transform: scaleX(1); }
    & li { opacity: 1; }
    & li::before { background: var(--orange); border-color: var(--orange); }
    & li:nth-child(2), & li:nth-child(2)::before { transition-delay: .5s; }
    & li:nth-child(3), & li:nth-child(3)::before { transition-delay: 1s; }
    & li:nth-child(4), & li:nth-child(4)::before { transition-delay: 1.5s; }
    & .cb-pipe__job { animation: cb-job 4.2s cubic-bezier(.65, 0, .35, 1) 2.2s infinite; }
}
@keyframes cb-job {
    0% { left: 0; opacity: 0; background: var(--white); } 8% { opacity: 1; }
    80% { left: calc(100% - 12px); opacity: 1; background: var(--white); }
    88% { background: var(--orange); } 100% { left: calc(100% - 12px); opacity: 0; }
}

/* ---- engine simulator: move a control, see the effect (chart view / instrument view) */
.cb-sim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp60); align-items: center; }
.cb-sim__ctrl { display: flex; flex-direction: column; gap: 18px; }
.cb-sim__k { color: var(--orange); }
.cb-sim__label { margin-bottom: -8px; }
.cb-sim__range {
    width: 100%; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer;
    &::-webkit-slider-runnable-track { height: 2px; background: var(--white-20); }
    &::-moz-range-track { height: 2px; background: var(--white-20); }
    &::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--orange); border: 0; }
    &::-moz-range-thumb { width: 18px; height: 18px; background: var(--orange); border: 0; border-radius: 0; }
    &:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
}
.cb-sim__views { display: flex; gap: 24px; border-bottom: 1px solid var(--white-10);
    & button { padding: 0 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
        font-size: var(--f16); font-weight: 600; color: var(--light-grey); transition: color .3s, border-color .3s; }
    & button[aria-pressed="true"] { color: var(--white); border-bottom-color: var(--orange); }
    & button:hover { color: var(--white); }
}
.cb-sim__note { text-transform: none; letter-spacing: 0; }
.cb-sim__screen { position: relative; aspect-ratio: 400 / 220; }
.cb-sim__screen svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.cb-sim__gauge { opacity: 0; transform: scale(.96); pointer-events: none; }
.cb-sim[data-view="gauge"] { & .cb-sim__gauge { opacity: 1; transform: none; } & .cb-sim__chart { opacity: 0; transform: scale(.98); } }
.cb-sim__axis { fill: none; stroke: var(--white-20); stroke-width: 1; }
.cb-sim__band { fill: var(--white-08, rgba(255, 255, 255, .06)); }
.cb-sim__band--pow { fill: color-mix(in srgb, var(--orange) 12%, transparent); }
.cb-sim__chart text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; fill: var(--light-grey); text-transform: none; }
.cb-sim__curve { fill: none; stroke: var(--white); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1); }
.cb-sim.is-in .cb-sim__curve { stroke-dashoffset: 0; }
.cb-sim__guide { stroke: var(--orange); stroke-width: 1; stroke-dasharray: 3 4; }
.cb-sim__dot { fill: var(--orange); }
.cb-sim__arc { fill: none; stroke: var(--white-20); stroke-width: 2; }
.cb-sim__arc--hot { stroke: var(--orange); stroke-width: 3; }
.cb-sim__ticks line { stroke: var(--white-40, var(--white-20)); stroke-width: 1.4; }
.cb-sim__needle { stroke: var(--orange); stroke-width: 3; transform-box: view-box; transform-origin: 110px 120px; }
.cb-sim__hubdot { fill: var(--white); }
.cb-sim__read { font-family: var(--font-mono); font-size: var(--f15); fill: var(--white); }

@media (max-width: 991.98px) {
    .cb-flow { grid-template-columns: minmax(0, 1fr); }
    .cb-flow__wire { display: none; }
    .cb-flow__hub { flex-direction: row; justify-content: flex-start; padding: 20px 0; border: 0; border-block: 1px solid var(--white-10); margin-block: 16px; }
    .cb-flow li { min-height: 0; padding-block: 10px; }
    .cb-rail, .cb-pipe__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .cb-pipe__rail { display: none; }
    .cb-pipe__steps li::before { display: none; }
    .cb-map__secs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; &::after { left: 0; right: 0; } }
    .cb-map__secs li:nth-child(4) { border-left: 0; }
    .cb-map__secs li::before { display: none; }
    .cb-sim { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .cb-rail, .cb-pipe__steps { grid-template-columns: minmax(0, 1fr); }
    .cb-rail { padding: 0 0 0 30px; &::before, &::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } &::after { width: 2px; transform: scaleY(0); transform-origin: 50% 0; } }
    .cb-rail.is-in::after { transform: scaleY(1); }
    .cb-rail li { padding-bottom: 28px; &::before { left: -30px; top: 2px; } }
    .cb-map__secs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-map__secs li:nth-child(n) { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    [data-brief] *, [data-brief]::before, [data-brief]::after { transition: none !important; animation: none !important; }
}

/* ---- health system (client, 2026-12-03 redesign): two phases on one rail. Each phase opens with a start line
   (a 1px rule from its title down to the rail), then its milestones sit on the rail as square nodes, text under
   each node. Design draws in grey, Build in orange; past "Live" the rail carries on dotted, and the live node
   keeps a slow pulse. Open layout: hairlines and squares only, no boxes. */
.cb-tl { display: grid; grid-template-columns: 2fr 3fr; grid-template-rows: auto auto; }
.cb-tl__phase { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }   /* both rails on one line */
.cb-tl__head {
    display: flex; flex-direction: column; gap: var(--sp10);
    margin: 0; padding: 0 var(--sp30) var(--sp45) var(--sp20);
    border-left: 1px solid var(--white-20);
}
.cb-tl__k {
    display: flex; align-items: center; gap: var(--sp10); margin: 0;
    font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey);
    &::before { width: 10px; height: 10px; background: var(--light-grey); content: ""; }
}
.cb-tl__t { margin: var(--sp4) 0 0; font-size: var(--f45); font-weight: 700; line-height: var(--lhTight); letter-spacing: -.03em; color: var(--white); }
.cb-tl__d { max-width: 34ch; margin: 0; font-size: var(--f16); line-height: var(--lhUi); color: var(--light-grey); }
.cb-tl__phase--build .cb-tl__k { color: var(--orange); &::before { background: var(--orange); } }

/* the rail: a 1px base, and a 2px coloured line that draws across on .is-in */
.cb-tl__ms {
    position: relative;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0; padding: 0; list-style: none;
    &::before, &::after { position: absolute; left: 0; right: 0; top: 0; content: ""; }
    &::before { height: 1px; background: var(--white-20); }
    &::after {
        top: -.5px; height: 2px; background: var(--white-60);
        transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(.65, 0, .35, 1);
    }
}
.cb-tl__phase--build .cb-tl__ms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    &::after { right: 33.333%; background: var(--orange); transition-duration: 1.4s; transition-delay: 1.1s; }
}
.cb-tl__ms li {
    position: relative;
    display: flex; flex-direction: column; gap: var(--sp10);
    padding: var(--sp30) var(--sp30) 0 var(--sp20);
    opacity: 0; transform: translateY(8px);
    transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
    &::before {                                   /* the node on the rail */
        position: absolute; left: -4px; top: -4px; z-index: 1; width: 9px; height: 9px;
        background: var(--light-grey); content: "";
        transition: background-color .3s ease, transform .3s ease;
    }
    & b { font-family: var(--font-mono); font-size: var(--f12); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--light-grey); }
    & span { max-width: 26ch; font-size: var(--f18); line-height: 1.45; color: var(--white-75); transition: color .3s ease; text-wrap: pretty; }
    &:hover::before { background: var(--orange); transform: scale(1.35); }
    &:hover span { color: var(--white); }
}
.cb-tl__phase--build .cb-tl__ms li::before { background: var(--orange); }
.cb-tl__ms .cb-tl__live {
    & b { color: var(--orange); }
    & span { color: var(--white); }
    &::after {                                    /* the rail carries on past live, dotted */
        position: absolute; left: 6px; right: 0; top: -1px;
        border-top: 2px dotted color-mix(in srgb, var(--orange) 60%, transparent); content: "";
    }
}
.cb-tl.is-in {
    & .cb-tl__ms::after { transform: scaleX(1); }
    & .cb-tl__ms li { opacity: 1; transform: none; }
    & .cb-tl__phase:first-child li:nth-child(1) { transition-delay: .1s; }
    & .cb-tl__phase:first-child li:nth-child(2) { transition-delay: .6s; }
    & .cb-tl__phase--build li:nth-child(1) { transition-delay: 1.2s; }
    & .cb-tl__phase--build li:nth-child(2) { transition-delay: 1.8s; }
    & .cb-tl__phase--build li:nth-child(3) { transition-delay: 2.4s; }
    & .cb-tl__live::before { animation: cb-beat 1.6s ease-out 3s infinite; }
}
@media (max-width: 991.98px) {
    /* stacked: the start lines and the rail join into one vertical line down the left */
    .cb-tl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .cb-tl__phase { display: flex; flex-direction: column; grid-row: auto; }
    .cb-tl__head { padding: 0 0 calc(var(--sp20) + var(--sp4)) var(--sp20); }
    .cb-tl__phase--build .cb-tl__head { padding-top: var(--sp20); }
    .cb-tl__ms, .cb-tl__phase--build .cb-tl__ms {
        grid-template-columns: minmax(0, 1fr);
        &::before, &::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
        &::after { left: -.5px; width: 2px; transform: scaleY(0); transform-origin: 50% 0; }
    }
    .cb-tl.is-in .cb-tl__ms::after { transform: scaleY(1); }
    .cb-tl__ms li { padding: 0 0 var(--sp20) var(--sp20); &::before { top: .35em; } }
    .cb-tl__ms .cb-tl__live { padding-bottom: 0; &::after { display: none; } }
}

/* =================================================================== HEALTH — old vs new path to one benefit (client, 2026-12-03 redesign)
   Two columns side by side, each route drawn as a stair: every click steps one level down and in, joined by a
   1px elbow line. The old route goes five levels deep — sub-menus, then Page 1 and Page 2 crossed off on the way
   to Page 3. The new route stops after one step, in orange. Big 3 / 1 head each column. The rule sits under both.
   No boxes. */
.cb-path {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: var(--sp60) 0 0; border-top: 1px solid var(--white-20);
}
.cb-path__col {
    display: flex; flex-direction: column; min-width: 0;
    padding: var(--sp45) var(--sp45) var(--sp45) 0;
}
.cb-path__col--new { padding-left: var(--sp45); padding-right: 0; border-left: 1px solid var(--white-10); }
.cb-path__k {
    display: flex; align-items: center; gap: var(--sp10); margin: 0;
    font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey);
    &::before { width: 10px; height: 10px; background: var(--light-grey); content: ""; }
}
.cb-path__col--new .cb-path__k { color: var(--orange); &::before { background: var(--orange); } }
.cb-path__num {
    display: flex; align-items: flex-end; gap: var(--sp16); margin: var(--sp20) 0 var(--sp45);
    & b { font-size: clamp(60px, calc(var(--cvw) * 6.5), 120px); font-weight: 700; line-height: .8; letter-spacing: -.06em; color: var(--white); }
    & span { max-width: 12ch; font-size: var(--f15); line-height: var(--lhUi); color: var(--light-grey); }
}
.cb-path__col--new .cb-path__num b { color: var(--orange); }

/* the stair */
.cb-path__steps {
    --step: 1.5em;
    margin: 0; padding: 0; list-style: none;
    font-size: var(--f25); font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
}
.cb-path__steps li {
    position: relative; width: fit-content;
    color: var(--white);
    opacity: 0; transform: translateY(6px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1), color .4s ease;
    & + li { margin-top: .55em; }
    & + li::before {                              /* elbow from the step above */
        position: absolute; right: calc(100% + .35em); top: -.5em; width: calc(var(--step) - .65em); height: 1.1em;
        border-left: 1px solid var(--white-40); border-bottom: 1px solid var(--white-40); content: "";
    }
    &:nth-child(2) { margin-left: var(--step); }
    &:nth-child(3) { margin-left: calc(var(--step) * 2); }
    &:nth-child(4) { margin-left: calc(var(--step) * 3); }
    &:nth-child(5) { margin-left: calc(var(--step) * 4); }
}
/* old: Page 1 and Page 2 are crossed off once the next one opens — the detour */
.cb-path__col--old .cb-path__pg:not(.cb-path__end)::after {
    position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: var(--white-40);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s ease; content: "";
}
/* new: the one page lands in orange, with a mark under it */
.cb-path__col--new .cb-path__end { color: var(--orange);
    &::after { position: absolute; left: 0; right: 0; bottom: -.3em; height: 3px; background: var(--orange);
        transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.65, 0, .35, 1) 3s; content: ""; }
}
.cb-path__cap {
    display: flex; gap: var(--sp10); grid-column: 1 / -1;
    margin: 0; padding-top: var(--sp30); border-top: 1px solid var(--white-10);
    font-size: var(--f18); font-weight: 500; line-height: 1.45; color: var(--white);
    &::before { flex: 0 0 auto; width: 8px; height: 8px; margin-top: .55em; background: var(--orange); content: ""; }
}

.cb-path.is-in {
    & li { opacity: 1; transform: none; }
    /* old: slow, one level at a time; the steps already passed go grey */
    & .cb-path__col--old li:nth-child(-n+4) { color: var(--light-grey); }
    & .cb-path__col--old li:nth-child(1) { transition-delay: 0s, 0s, 2.2s; }
    & .cb-path__col--old li:nth-child(2) { transition-delay: .45s, .45s, 2.2s; }
    & .cb-path__col--old li:nth-child(3) { transition-delay: .9s, .9s, 2.2s; }
    & .cb-path__col--old li:nth-child(4) { transition-delay: 1.35s, 1.35s, 2.2s; }
    & .cb-path__col--old li:nth-child(5) { transition-delay: 1.8s; }
    & .cb-path__col--old li:nth-child(3)::after { transform: scaleX(1); transition-delay: 1.5s; }
    & .cb-path__col--old li:nth-child(4)::after { transform: scaleX(1); transition-delay: 1.95s; }
    /* new: straight there */
    & .cb-path__col--new li { transition-delay: 2.5s; }
    & .cb-path__col--new li:nth-child(2) { transition-delay: 2.7s; }
    & .cb-path__col--new .cb-path__end::after { transform: scaleX(1); }
}
@media (max-width: 767.98px) {
    .cb-path { grid-template-columns: minmax(0, 1fr); }
    .cb-path__col, .cb-path__col--new { padding: var(--sp30) 0; border-left: 0; }
    .cb-path__col--new { border-top: 1px solid var(--white-10); }
    .cb-path__num { margin-bottom: var(--sp20); }
    .cb-path__steps { --step: 1.1em; }
}

/* =================================================================== FILE PORTAL — the two kinds of user (client, 2026-12-03, round 2)
   Both roles side by side, no tabs: two open columns split by a 1px rule. Each thing a role can do is one row,
   a big verb with its object under it. Admin is marked orange. Rows rise in once on screen ([data-brief] → .is-in);
   hover a row and its verb turns orange. Previous tab version: _backup/case-brief.pre-who.css */
.cb-roles__cap { margin: 0 0 var(--sp20); font-family: var(--font-mono); font-size: var(--f20); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--light-grey); }
.cb-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--white-20); }
.cb-who__col { min-width: 0; padding: var(--sp25) var(--sp30) 0 0;
    & + .cb-who__col { padding-right: 0; padding-left: var(--sp30); border-left: 1px solid var(--white-10); }
}
.cb-who__h { display: flex; align-items: center; gap: var(--sp10); margin: 0 0 var(--sp15);
    font-size: var(--f20); font-weight: 600; line-height: var(--lhSnug); color: var(--white);
    &::before { flex: 0 0 auto; width: 10px; height: 10px; background: var(--light-grey); content: ""; }
}
.cb-who__col--adm .cb-who__h { color: var(--orange); &::before { background: var(--orange); } }
.cb-who__list { margin: 0; padding: 0; list-style: none; }
.cb-who__list li {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--sp18) 0;
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease calc(var(--i) * 90ms + var(--d, 0ms)), transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 90ms + var(--d, 0ms));
    &::after { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--white-10);
        transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s cubic-bezier(.65, 0, .35, 1) calc(var(--i) * 90ms + var(--d, 0ms) + 150ms); content: ""; }
    & b { font-size: var(--f35); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: var(--white); transition: color .3s ease; }
    & span { font-size: var(--f17); line-height: 1.4; color: var(--light-grey); }
    &:hover b { color: var(--orange); }
}
.cb-who__list li { --i: 0; &:nth-child(2) { --i: 1; } &:nth-child(3) { --i: 2; } &:nth-child(4) { --i: 3; } }
.cb-who__col--adm { --d: 360ms; }
.cb-who.is-in .cb-who__list li { opacity: 1; transform: none; &::after { transform: scaleX(1); } }
@media (max-width: 575.98px) {
    .cb-who { grid-template-columns: minmax(0, 1fr); }
    .cb-who__col, .cb-who__col + .cb-who__col { padding: var(--sp25) 0 0; border-left: 0; }
    .cb-who__col + .cb-who__col { margin-top: var(--sp20); border-top: 1px solid var(--white-20); }
}
@media (prefers-reduced-motion: reduce) {
    .cb-who__list li, .cb-who__list li::after { opacity: 1; transform: none; transition: none !important; }
}
