/* CPro Solutions — corporate pages, v3 (DESIGN.md §12): home + /updates.
   One typeface (Archivo) in three voices: display (condensed, black, caps), label (.mono: caps, tracked), body.
   CPro blue (--blue as fills, --accent for text). Built on rx.css tokens, so light and dark both work. */

.h3-big { font-weight: 900; font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; color: var(--fg); }
.h3-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; margin-bottom: 2rem; }
.h3-head .h3-big { font-size: clamp(3.4rem, 1.4rem + 6.6vw, 8.2rem); }
.h3-head > p, .h3-head > div > p:not(.mono) { max-width: 40ch; color: var(--fg-2); }
.h3-head .arrow-link { display: inline-flex; margin-top: .6rem; }
.h3-head .mono + .h3-big { margin-top: .8rem; }

/* 1 · hero: the money journey */
.h3-hero { background: #d8dadd; color: #0b1626; padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vh, 4.5rem)); }
.h3-hero .h3-big { color: #0b1626; font-size: clamp(3.4rem, 1rem + 7.6vw, 8.8rem); }
.h3-hero .h3-big .hl, .h3-hero .h3-big .hl .ch { color: var(--blue); }
.h3-hero__t { display: grid; gap: 1.4rem 3rem; align-items: end; }
.h3-lead { color: #39465a; font-size: var(--t-lead); max-width: 42ch; }
.h3-hero__btns { margin-top: 1.4rem; }
.h3-hero .b--ghost { color: #0b1626; border-color: rgba(11, 22, 38, .35); }
.h3-stage { position: relative; margin: 1.4rem 0 0; aspect-ratio: 16 / 10; max-height: 76vh; width: 100%; overflow: hidden; }
.h3-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h3-stage__go { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r); background: #0b1626; color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background var(--t-out); }
.h3-stage__go:hover { background: var(--blue); }
.h3-steps { display: grid; border-top: 1px solid rgba(11, 22, 38, .14); }
.h3-steps div { display: grid; gap: .25rem; padding: 1rem 0 1.3rem; }
.h3-steps div + div { border-top: 1px solid rgba(11, 22, 38, .14); }
.h3-steps b { color: #0b1626; font-weight: 800; }
.h3-steps span { color: #39465a; font-size: .875rem; }
@media (min-width: 900px) {
  .h3-hero__t { grid-template-columns: 1.3fr 1fr; }
  .h3-steps { grid-template-columns: 1.35fr 1fr 1.35fr; }
  .h3-steps div { padding: 1.1rem 1.4rem 1.5rem 0; border-top: 0 !important; }
  .h3-steps div + div { padding-left: 1.4rem; border-left: 1px solid rgba(11, 22, 38, .14); }
}

/* 2 · the moving figures */
.h3-kin { padding-block: clamp(4rem, 2rem + 6vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); overflow: hidden; }
.h3-kin__row { display: flex; gap: 3.5vw; white-space: nowrap; align-items: center; will-change: transform; }
.h3-kin__row + .h3-kin__row { margin-top: .6vw; }
.h3-kin__row .h3-big { font-size: clamp(4.6rem, 15vw, 14.5rem); }
.h3-kin__row .h3-big.o { color: transparent; -webkit-text-stroke: 2px var(--fg); }
.h3-kin__row .h3-big.b { color: #fff; background: var(--blue); padding: .02em .1em 0; }
.h3-kin__row small { font-size: clamp(.875rem, .7rem + .5vw, 1.15rem); font-weight: 600; max-width: 15ch; white-space: normal; line-height: 1.25; color: var(--fg-2); }
.h3-kin__src { margin-top: 1.2rem; }

/* 3 · who we are */
.h3-who { display: grid; gap: 2rem 4rem; padding-block: 1rem clamp(4rem, 2rem + 5vw, 6.5rem); }
.h3-who .h3-big { font-size: clamp(3rem, 1.4rem + 4.6vw, 6rem); margin-top: .8rem; }
.h3-who blockquote { margin: 1.6rem 0 0; padding-left: 1.1rem; border-left: 3px solid var(--blue); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.4; font-weight: 500; color: var(--fg); }
.h3-who__body p { max-width: 58ch; }
.h3-who__body p + p { margin-top: 1rem; }
.h3-md { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.4rem !important; padding: .55rem .9rem; border-radius: var(--r); background: var(--plate); color: #0b1626; font-size: .85rem; font-weight: 600; }
.h3-md img { height: 28px; width: auto; }
@media (min-width: 900px) { .h3-who { grid-template-columns: 1fr 1.2fr; } }

/* 4 · the story so far */
.h3-story { padding-block: 1rem clamp(4rem, 2rem + 5vw, 6.5rem); }
.h3-tl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .6rem; }
.h3-tl::-webkit-scrollbar { display: none; }
.h3-tl li { position: relative; flex: 0 0 min(62vw, 15rem); scroll-snap-align: start; display: grid; gap: .6rem; align-content: start; padding: 1.4rem 1rem 0 0; border-top: 2px solid var(--fg); will-change: transform; }
.h3-tl li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--blue); }
.h3-tl b { font-weight: 900; font-stretch: 66%; font-variation-settings: "wdth" 66; font-size: clamp(2.6rem, 1.4rem + 2.6vw, 4rem); line-height: .85; color: var(--fg); }
.h3-tl li:nth-child(odd) b { color: var(--accent-hi); }
.h3-tl span { font-size: .875rem; color: var(--fg-2); line-height: 1.45; }
@media (min-width: 1100px) { .h3-tl { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding: 0; } .h3-tl li { flex: none; } }

/* 5 · what we run */
.h3-run { background: var(--bg-1); border-block: 1px solid var(--line); padding-block: clamp(4rem, 2rem + 5vw, 6.5rem); }
.h3-brands { display: grid; gap: 1px; margin-top: 1.6rem; background: var(--line); border: 1px solid var(--line); }
.h3-brands li { display: grid; gap: .5rem; align-content: start; padding: 1.4rem; background: var(--bg-1); }
.h3-brands b { font-size: 1.1rem; }
.h3-brands span:not(.mono) { font-size: .9rem; color: var(--fg-2); }
.h3-brands a { font-size: .9rem; font-weight: 600; color: var(--accent); }
@media (min-width: 900px) { .h3-brands { grid-template-columns: repeat(3, 1fr); } }

/* the isometric figure: the kit's tones, the lit part in CPro blue, the page's one typeface */
/* dark: the kit's charcoal retinted to CPro navy, so the machine sits in the page */
html:not([data-theme="light"]) #cx-fig { --anatomy-page: #06142a; --anatomy-card: #0b1c36; --anatomy-text: #b4c2d8; --anatomy-strong: #f2f5f9; --anatomy-muted: #8a9bb5;
  --anatomy-paper: #0b1c36; --anatomy-face: #10254a; --anatomy-top: #132a52;
  --anatomy-shade-0: #0a1a33; --anatomy-shade-1: #0c1e3b; --anatomy-shade-2: #0e2243; --anatomy-shade-3: #10264b;
  --anatomy-hi: #d6e2f3; --anatomy-mid: #6d84a8; --anatomy-lo: #3d5478; --anatomy-faint: #22385a; --anatomy-halo: #020814; --anatomy-dot: #d6e2f3;
  --anatomy-lit: #6fa8ff; --anatomy-lit-top: #1d4683; --anatomy-lit-shade: #173868; --anatomy-mono: var(--font); }
html[data-theme="light"] #cx-fig { --anatomy-paper: #f7f8fa; --anatomy-face: #ffffff; --anatomy-top: #ffffff; --anatomy-lit: #1e6fd9; --anatomy-lit-top: #dceafd; --anatomy-lit-shade: #a9c8f4; --anatomy-hi: #0b1626; }
#cx-fig { --anatomy-mono: var(--font); }
#cx-fig, #cx-fig * { font-family: var(--font); }
#cx-fig .iso-plate { border-radius: var(--r); }
#cx-fig .iso-solid[data-lit] > .iso-edge { stroke-width: 1.4; }
#cx-fig .cx-pulse circle { fill: var(--blue); opacity: 1; }
#cx-fig .iso-stage { outline: none; cursor: pointer; }
#cx-fig .iso-stage:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
#cx-fig [data-pick] { cursor: pointer; }
#cx-fig .cx-desc { margin: .3rem 0 0; font-size: 1.05rem; color: var(--fg-2); min-height: 2.8em; }

/* 6 · programmes */
.h3-prog { padding-block: clamp(4rem, 2rem + 5vw, 6.5rem); }
.h3-cards { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: .3rem var(--gutter) .8rem; }
.h3-cards::-webkit-scrollbar { display: none; }
.h3-card { flex: 0 0 min(72vw, 17rem); scroll-snap-align: start; display: grid; gap: .45rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color var(--t-out); }
.h3-card:hover { transform: translateY(-6px); border-color: var(--accent-hi); box-shadow: 0 22px 36px -24px rgba(0, 0, 0, .5); }
.h3-card__logo { display: flex; align-items: center; height: 3.4rem; margin-bottom: .6rem; padding: 0 0 .9rem; border-bottom: 1px solid var(--line); }
.h3-card__logo img { max-height: 2.5rem; max-width: 70%; width: auto; object-fit: contain; background: #fff; padding: 4px 6px; border-radius: 3px; }
.h3-card__word { font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.h3-card .h3-card__v { font-weight: 900; font-stretch: 66%; font-variation-settings: "wdth" 66; font-size: 4rem; line-height: .85; color: var(--accent-hi); }
.h3-card .h3-card__u { font-size: .78rem; font-weight: 600; color: var(--fg-3); }
.h3-card b { font-size: .95rem; line-height: 1.3; margin-top: .5rem; }
.h3-card .h3-card__c { font-size: .78rem; color: var(--fg-3); }
.h3-card--b { background: var(--navy); border-color: var(--navy); }
.h3-card--b b { color: #fff; }
.h3-card--b .h3-card__v { color: #8fbcff; }
.h3-card--b .h3-card__u, .h3-card--b .h3-card__c { color: #a9bedd; }
.h3-card--b .h3-card__logo { border-color: rgba(255, 255, 255, .15); }
@media (min-width: 1100px) { .h3-cards { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } .h3-card { flex: none; } }

/* 7 · institutions */
.h3-inst { background: var(--navy); color: #fff; padding-block: clamp(4rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.h3-inst .mono { color: #9fc0ef; }
.h3-inst .h3-big { color: #fff; font-size: clamp(3.4rem, 1.4rem + 6.6vw, 8.2rem); margin-top: .8rem; }
.h3-inst .h3-big span { color: #8fbcff; }
.h3-marq { display: flex; gap: .75rem; margin-top: 2.2rem; width: max-content; animation: h3-marq 50s linear infinite; }
.h3-marq:hover { animation-play-state: paused; }
.h3-marq div { width: 11rem; aspect-ratio: 5 / 3; display: grid; place-items: center; padding: 1.3rem; border-radius: var(--r); background: #eef1f5; }
.h3-marq img { max-height: 100%; width: auto; object-fit: contain; }
@keyframes h3-marq { to { transform: translateX(-50%); } }
.h3-inst__all { margin-top: 1.6rem; }
.h3-inst .arrow-link { color: #fff; }

/* 8 · credentials */
.h3-creds { padding-block: clamp(4.5rem, 2rem + 6vw, 7rem) clamp(3.5rem, 2rem + 4vw, 5.5rem); }
.h3-creds .h3-big { font-size: clamp(3.4rem, 1.4rem + 6.6vw, 8.2rem); margin-top: .8rem; }
.h3-cgrid { display: grid; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); }
.h3-cgrid li { display: grid; gap: .55rem; align-content: start; padding: 1.4rem 1.3rem 1.5rem; background: var(--bg); }
.h3-cgrid li:first-child { background: var(--blue); }
.h3-cgrid li:first-child * { color: #fff !important; }
.h3-cgrid .mono { color: var(--accent); }
.h3-cgrid b { font-weight: 900; font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; font-size: 1.85rem; line-height: .92; }
.h3-cgrid span:not(.mono) { font-size: .875rem; color: var(--fg-2); }
@media (min-width: 700px) { .h3-cgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .h3-cgrid { grid-template-columns: repeat(4, 1fr); } .h3-cgrid li { min-height: 12rem; } }

/* 9 · updates (home) */
.h3-news { padding-block: 0 clamp(4.5rem, 2rem + 6vw, 7rem); }
.h3-news .cx-news { margin-top: 0; }

/* 10 · work with CPro */
.h3-end { background: var(--blue); color: #fff; padding-block: clamp(4.5rem, 2rem + 6vw, 7rem); overflow: hidden; }
.h3-end .h3-big { color: #fff; font-size: clamp(4.6rem, 1rem + 15vw, 17rem); line-height: .8; }
.h3-end__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.6rem; margin-top: 2.6rem; }
.h3-end dl { display: grid; gap: .5rem 2.4rem; margin: 0; }
.h3-end dt { font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #dceafd; }
.h3-end dd { margin: 0; font-weight: 600; color: #fff; }
.h3-end dd a:hover { text-decoration: underline; }
.h3-end .h3-end__b { --b-bg: #fff; --b-fg: var(--blue-7); --b-bd: #fff; }
.h3-end .h3-end__g { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .6); }
@media (min-width: 700px) { .h3-end dl { grid-template-columns: repeat(3, auto); } }

/* updates (home + /updates): curated cards (resources/content/news.php) */
.cx-news { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: 1.8rem; }
.cx-news__i { display: grid; gap: .55rem; align-content: start; padding-top: 1rem; border-top: 3px solid var(--blue); }
.cx-news__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: .4rem; }
.cx-news__m { color: var(--fg-3); }
.cx-news__li { color: var(--accent); }
.cx-news h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
.cx-news__s { color: var(--fg-2); font-size: .9rem; }
.cx-news__a { font-size: .9rem; margin-top: .2rem; }
@media (min-width: 700px) { .cx-news { grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; } }
@media (min-width: 1100px) { .cx-news { grid-template-columns: repeat(4, 1fr); } }
.cx-upd .cx-news { margin-top: 0; }
@media (min-width: 1100px) { .cx-upd .cx-news { grid-template-columns: repeat(3, 1fr); } }
.cx-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 4rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-1); }
.cx-follow p { color: var(--fg-2); max-width: 44ch; }
.cx-follow b { color: var(--fg); display: block; font-size: 1.15rem; margin-bottom: .3rem; }

@media (prefers-reduced-motion: reduce) { .h3-marq { animation: none; } }

/* phones: the journey is wide, so show it large and let it swipe (channels first, then the core, then the bank) */
@media (max-width: 700px) {
  .h3-stage { aspect-ratio: auto; max-height: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .h3-stage::-webkit-scrollbar { display: none; }
  .h3-stage img { position: relative; inset: auto; width: 175vw; max-width: none; height: auto; }
  .h3-stage__go { position: sticky; left: var(--gutter); translate: none; display: inline-flex; margin: -3.6rem 0 1rem; font-size: .7rem; }
}
