
/* ==========================================================
   Compass page v2 (Nov 2026): roles hub, funnel, hover cards
   ========================================================== */

/* ---------- Roles hub: compass at the centre, living links ---------- */
.cx-hub svg { width: min(100%, 460px); overflow: visible; }
.cx-hub-spin {
  fill: none;
  stroke: rgb(var(--accent-rgb) / .35);
  stroke-width: 1.4;
  stroke-dasharray: 2 9;
  transform-origin: 220px 220px;
  animation: cx-hub-rot 60s linear infinite;
}
.cx-hub-ring { stroke: rgb(var(--accent-rgb) / .18); }
.cx-hub-lines path { stroke-width: 2; opacity: .45; }
.cx-hub-pulses circle { opacity: .95; }
.cx-hub-pulses .out { opacity: .55; }
.cx-hub-pulses .pl1 { fill: var(--c1); }
.cx-hub-pulses .pl2 { fill: var(--c2); }
.cx-hub-pulses .pl3 { fill: var(--c3); }
.cx-hub-pulses .pl4 { fill: var(--c4); }
.cx-hub-node .halo {
  fill: var(--c) !important;
  stroke: none !important;
  opacity: 0;
  filter: none !important;
  transform-box: fill-box;
  transform-origin: center;
  animation: cx-hub-halo 3.2s ease-out infinite;
}
.cx-hub-node.n2 .halo { animation-delay: .8s; }
.cx-hub-node.n3 .halo { animation-delay: 1.6s; }
.cx-hub-node.n4 .halo { animation-delay: 2.4s; }
.cx-hub-node .ic { fill: none; }
.cx-hub-node circle:not(.halo):not(.ic) { fill: #fff; }
.cx-hub-core { fill: var(--navy); filter: drop-shadow(0 14px 28px rgb(var(--navy-rgb) / .35)); }
.cx-hub-dial { fill: none; stroke: rgba(255,255,255,.18); stroke-dasharray: 2 5; }
.cx-hub-ticks { stroke: rgba(255,255,255,.55); stroke-width: 2; stroke-linecap: round; }
.cx-hub-orbit { transform-origin: 220px 220px; animation: cx-hub-rot 24s linear infinite reverse; }
.cx-hub-orbit .o1 { fill: var(--c1); }
.cx-hub-orbit .o2 { fill: var(--c2); }
.cx-hub-orbit .o3 { fill: var(--c3); }
.cx-hub-orbit .o4 { fill: var(--c4); }
.cx-hub-needle { transform-origin: 220px 220px; animation: cx-hub-seek 8s ease-in-out infinite; }
@keyframes cx-hub-rot { to { transform: rotate(360deg); } }
@keyframes cx-hub-halo {
  0% { opacity: .35; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.55); }
}
@keyframes cx-hub-seek {
  0%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(90deg); }
  27% { transform: rotate(84deg); }
  47% { transform: rotate(180deg); }
  52% { transform: rotate(174deg); }
  72% { transform: rotate(270deg); }
  77% { transform: rotate(264deg); }
  97% { transform: rotate(360deg); }
}

/* ---------- Funnel: chaos at the wide end, order and speed at the narrow end ---------- */
.cx-funnel { height: 170px; overflow: visible; }
.cx-funnel svg { overflow: visible; }
.cx-funnel-core {
  stroke-width: 3;
  stroke-dasharray: 10 14;
  stroke-linecap: round;
  fill: none;
  vector-effect: non-scaling-stroke;
  animation: cx-core-run .7s linear infinite;
}
@keyframes cx-core-run { to { stroke-dashoffset: -24; } }
.cx-funnel-end {
  position: absolute;
  top: 50%;
  inset-inline-end: -6px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 6px rgb(var(--c2-rgb) / .18), 0 0 26px 6px rgb(var(--c2-rgb) / .45);
  animation: cx-end-beat 1.6s ease-in-out infinite;
}
@keyframes cx-end-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.cx-funnel .p {
  top: var(--y0);
  inset-inline-start: auto;
  right: -1%;
  width: var(--s, 9px);
  height: var(--s, 9px);
  margin-top: calc(var(--s, 9px) / -2);
  transform-origin: center;
  animation: cx-fun-rtl var(--t, 8s) var(--d) linear infinite;
}
:where(:root[dir="ltr"]) .cx-funnel .p {
  right: auto;
  left: -1%;
  animation-name: cx-fun-ltr;
}
@keyframes cx-fun-rtl {
  0% { right: -1%; top: var(--y0); opacity: 0; transform: scale(.8); animation-timing-function: ease-in-out; }
  7% { opacity: .55; }
  22% { right: 7%; top: var(--y1); animation-timing-function: ease-in-out; }
  40% { right: 15%; top: var(--y2); animation-timing-function: ease-in-out; }
  54% { right: 25%; top: var(--y3); opacity: .7; transform: scale(.9); animation-timing-function: ease-in; }
  66% { right: 40%; top: 50%; opacity: .95; transform: scale(1); animation-timing-function: linear; }
  80% { right: 63%; top: 50%; transform: scaleX(1.8) scaleY(.85); }
  92% { right: 87%; top: 50%; opacity: 1; transform: scaleX(2.8) scaleY(.75); }
  100% { right: 101%; top: 50%; opacity: 0; transform: scaleX(3.2) scaleY(.7); }
}
@keyframes cx-fun-ltr {
  0% { left: -1%; top: var(--y0); opacity: 0; transform: scale(.8); animation-timing-function: ease-in-out; }
  7% { opacity: .55; }
  22% { left: 7%; top: var(--y1); animation-timing-function: ease-in-out; }
  40% { left: 15%; top: var(--y2); animation-timing-function: ease-in-out; }
  54% { left: 25%; top: var(--y3); opacity: .7; transform: scale(.9); animation-timing-function: ease-in; }
  66% { left: 40%; top: 50%; opacity: .95; transform: scale(1); animation-timing-function: linear; }
  80% { left: 63%; top: 50%; transform: scaleX(1.8) scaleY(.85); }
  92% { left: 87%; top: 50%; opacity: 1; transform: scaleX(2.8) scaleY(.75); }
  100% { left: 101%; top: 50%; opacity: 0; transform: scaleX(3.2) scaleY(.7); }
}

/* ---------- Hover highlight on every text card (same feel as the benefits cards) ---------- */
.cx-roles-list li,
.cx-flow li {
  position: relative;
  overflow: hidden;
}
.cx-roles-list li::before,
.cx-roles-list li::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: var(--s-half);
  transition: width .8s var(--ease-out);
}
.cx-roles-list li::before { width: 0; background: linear-gradient(var(--to-end), var(--c), transparent); }
.cx-roles-list li::after { width: 0; background: var(--c); }
.cx-flow li { overflow: visible; }
.cx-flow li::before { transition: width .8s var(--ease-out); }
.cx-roles-list li > *,
.cx-flow li > * { transition: opacity .25s ease, color .25s ease, transform .25s ease; }
.cx-roles-list b,
.cx-flow h3 { transform-origin: var(--side-start) center; }
.cx-chip { transition: box-shadow .3s ease, border-color .3s ease; }
.cx-chip::before { transition: height .4s var(--ease-out); }
@media (hover:hover) {
  .cx-roles-list li:hover::before,
  .cx-roles-list li:hover::after { width: 100%; }
  .cx-roles-list:has(li:hover) li:not(:hover) > *,
  .cx-flow:has(li:hover) li:not(:hover) > * { opacity: .5; }
  .cx-roles-list li:hover b,
  .cx-flow li:hover h3 { transform: scale(1.06); }
  .cx-roles-list li:hover span,
  .cx-flow li:hover p { color: var(--ink); }
  .cx-flow li:hover::before { width: 100%; }
  .cx-chip:hover { box-shadow: 0 16px 40px rgb(var(--navy-rgb) / .16); }
  .cx-chip:hover::before { height: calc(100% - 24px); }
  .cx-chip:hover span { color: var(--ink); }
}

@media (prefers-reduced-motion:reduce) {
  .cx-hub-spin, .cx-hub-orbit, .cx-hub-needle, .cx-hub-node .halo,
  .cx-funnel-core, .cx-funnel-end { animation: none !important; }
  .cx-hub-pulses { display: none; }
}
/* ---------- Hero: keep the compass clear of the ghost word ---------- */
@media (min-width:900px) {
  .cx-visual { width: min(100%, 470px); margin-top: 80px; }
}

/* ---------- Funnel v3: taller mouth, tighter to the heading ---------- */
.cx-path .sec-head { margin-bottom: var(--s3); }
.cx-funnel { height: 250px; margin-bottom: var(--s5); }
@media (max-width:759px) {
  .cx-funnel { height: 190px; }
}
/* keep moving particles / halos from widening the page on phones */
.cx-path, .cx-roles { overflow-x: hidden; }
@supports (overflow: clip) { .cx-path, .cx-roles { overflow-x: clip; } }
/* ---------- Hero: start the copy below the ghost "Compass" word ---------- */
@media (min-width:980px) {
  .cx-hero .wrap.cx-hero-grid { padding-top: max(0px, calc(1.22 * min(15vw, 250px) - 175px)); }
}@media (min-width:980px) {
  .cx-hero .cx-visual { transform: translateY(-60px); }
}