/* COMPASS page - page-specific styles.
   Reads every colour, size and spacing from tokens.css. */

/* ---------- Hero ---------- */
.cx-hero .wrap.cx-hero-grid {
  max-width: var(--wrap);
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width:980px) {
  .cx-hero .wrap.cx-hero-grid {
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
    gap: var(--s8);
  }
}
.cx-hero .intro-title {
  margin-bottom: var(--s4) !important;
  max-width: 13ch;
}
.cx-hero .intro-sub {
  margin: 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}
.cx-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin: 0 0 var(--s3);
  padding: 6px 14px;
  border: var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  color: var(--ink);
}
.cx-kicker [dir="ltr"] {
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--accent);
}
.cx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.cx-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}
/* Compass visual */
.cx-visual {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
}
.cx-compass {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.cx-rings circle {
  stroke: var(--line);
  stroke-width: 1.2;
}
.cx-rings circle:first-child {
  stroke: rgb(var(--accent-rgb) / .35);
  stroke-dasharray: 2 6;
}
.cx-rings .cx-ring-in {
  stroke: rgb(var(--accent-rgb) / .3);
}
.cx-ticks path {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .35;
}
.cx-ticks .cx-ticks-s {
  opacity: .2;
}
.cx-orbit {
  transform-origin: 260px 260px;
}
.cx-orbit-a { animation: cx-spin 90s linear infinite; }
.cx-orbit-b { animation: cx-spin 60s linear infinite reverse; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-orbit .d1 { fill: var(--c1); }
.cx-orbit .d2 { fill: var(--c2); }
.cx-orbit .d3 { fill: var(--c3); }
.cx-orbit .d4 { fill: var(--c4); }
.cx-orbit circle { opacity: .55; }

.cx-link {
  stroke: url(#cxNeedle);
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
  fill: none;
  opacity: .7;
  animation: cx-dash 3s linear infinite;
}
@keyframes cx-dash { to { stroke-dashoffset: -40; } }
.cx-hot {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 4px 10px rgb(var(--navy-rgb) / .25));
  transform-box: fill-box;
  transform-origin: center;
  animation: cx-beat 3s var(--ease-out) infinite;
}
.cx-hot.h1 { fill: var(--c1); }
.cx-hot.h2 { fill: var(--c2); animation-delay: 1s; }
.cx-hot.h3 { fill: var(--c4); animation-delay: 2s; }
@keyframes cx-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.cx-needle {
  transform-origin: 260px 260px;
  animation: cx-seek 9s var(--ease-out) infinite;
  filter: drop-shadow(0 6px 10px rgb(var(--navy-rgb) / .18));
}
@keyframes cx-seek {
  0%, 100% { transform: rotate(38deg); }
  30% { transform: rotate(-58deg); }
  60% { transform: rotate(160deg); }
}
.cx-core {
  stroke: rgb(var(--accent-rgb) / .25);
  stroke-width: 1.5;
  filter: drop-shadow(0 6px 16px rgb(var(--navy-rgb) / .12));
}

/* Floating glass chips */
.cx-chip {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: var(--glass-border);
  border-radius: var(--s1);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--blur-glass);
  backdrop-filter: var(--blur-glass);
  box-shadow: 0 10px 30px rgb(var(--navy-rgb) / .10);
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--muted);
  max-width: 190px;
  animation: cx-float 6s ease-in-out infinite;
}
.cx-chip b {
  font-size: var(--text-ui);
  font-weight: 700;
  color: var(--ink);
}
.cx-chip::before {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-start: -5px;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--c);
}
.cx-chip.c1 { --c: var(--c1); top: 6%; inset-inline-start: -2%; }
.cx-chip.c2 { --c: var(--c2); top: 44%; inset-inline-end: -6%; animation-delay: -2s; }
.cx-chip.c3 { --c: var(--c4); bottom: 4%; inset-inline-start: 6%; animation-delay: -4s; }
@keyframes cx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width:620px) {
  .cx-chip { position: static; max-width: none; animation: none; }
  .cx-visual { display: grid; gap: var(--s1); }
  .cx-chip::before { display: none; }
}

/* ---------- Statement band ---------- */
.s-vision .vision h2 [dir="ltr"] { letter-spacing: 1px; }

/* ---------- Benefits ---------- */
.cx-why li > div {
  display: grid;
  gap: var(--s1);
}
.cx-ico {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s1);
  border-radius: var(--s1);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
}
.cx-ico svg { width: 26px; height: 26px; }

/* ---------- Roles hub ---------- */
.cx-roles {
  background: var(--bg-3);
  --wave-fill: var(--bg-3);
  --wave-tint: var(--c2);
}
.cx-roles-grid {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width:900px) {
  .cx-roles-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
    gap: var(--s10);
  }
}
.cx-hub svg {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin-inline: auto;
}
.cx-hub-lines path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 3 7;
  opacity: .6;
  animation: cx-dash 2.4s linear infinite;
}
.cx-hub-ring {
  fill: none;
  stroke: rgb(var(--accent-rgb) / .25);
  stroke-width: 1.2;
}
.cx-hub-node circle:first-child {
  fill: #fff;
  stroke: var(--c);
  stroke-width: 2.5;
  filter: drop-shadow(0 8px 18px rgb(var(--navy-rgb) / .10));
}
.cx-hub-node path,
.cx-hub-node circle + circle {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cx-hub-node.n1 { --c: var(--c1); }
.cx-hub-node.n2 { --c: var(--c2); }
.cx-hub-node.n3 { --c: var(--c3); }
.cx-hub-node.n4 { --c: var(--c4); }
.cx-hub-core {
  fill: var(--navy);
  filter: drop-shadow(0 10px 24px rgb(var(--navy-rgb) / .3));
}
.cx-hub-label {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  fill: #fff;
}
.cx-roles .sec-head { margin-bottom: var(--s5); }
.cx-roles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
@media (min-width:640px) {
  .cx-roles-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.cx-roles-list li {
  --c: var(--c1);
  display: grid;
  gap: 4px;
  padding: var(--s2) var(--s3);
  border: var(--glass-border);
  border-inline-start: 3px solid var(--c);
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card);
}
.cx-roles-list li:nth-child(2) { --c: var(--c2); }
.cx-roles-list li:nth-child(3) { --c: var(--c3); }
.cx-roles-list li:nth-child(4) { --c: var(--c4); }
.cx-roles-list b { font-size: var(--text-ui-lg); font-weight: 700; }
.cx-roles-list span { color: var(--muted); font-size: var(--text-ui); line-height: 1.5; }

/* ---------- From idea to value ---------- */
.cx-path {
  background: var(--bg-2);
  --wave-fill: var(--bg-2);
}
.cx-stream {
  position: relative;
  height: 150px;
  margin-bottom: var(--s4);
  overflow: hidden;
}
.cx-stream svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:where(:root[dir="ltr"]) .cx-stream svg { transform: scaleX(-1); }
.cx-stream .p {
  position: absolute;
  top: var(--y);
  inset-inline-start: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
  animation: cx-flow 5s var(--d) cubic-bezier(.45,.05,.35,1) infinite;
}
.cx-stream .p.a { --c: var(--c1); }
.cx-stream .p.b { --c: var(--c2); }
.cx-stream .p.c { --c: var(--c3); }
.cx-stream .p.d { --c: var(--c4); }
@keyframes cx-flow {
  0% { opacity: 0; transform: translateX(0); }
  10% { opacity: .9; }
  55% { top: 50%; }
  90% { opacity: .9; }
  100% { top: 50%; opacity: 0; transform: translateX(calc(var(--dir-x) * min(1100px, 92vw))); }
}
.cx-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: none;
}
@media (min-width:760px) {
  .cx-flow { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.cx-flow li {
  position: relative;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.cx-flow li::before {
  content: "";
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  width: var(--s8);
  height: 3px;
  background: var(--grad-brand);
}
.cx-flow .n {
  display: block;
  margin-bottom: var(--s1);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent);
}
.cx-flow h3 {
  margin: 0 0 var(--s1);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}
.cx-flow p {
  margin: 0;
  color: var(--muted);
}

/* ---------- CTA band (same look as the homepage band) ---------- */
.band {
  background: radial-gradient(60% 90% at 0% 100%, rgb(var(--c2-rgb) / .55),transparent 70%), var(--band);
  color: var(--band-ink);
  padding: var(--s12) 0;
  --wave-fill: var(--band);
}
.band.s-vision {
  background: linear-gradient(to bottom, var(--ink) 0%, rgb(var(--navy-rgb) / .6) 18%, rgb(var(--navy-rgb) / 0) 45%), radial-gradient(60% 75% at 85% 80%, rgb(var(--accent-rgb) / .30) 0%, rgb(var(--accent-rgb) / .10) 50%,transparent 100%), var(--ink);
  --wave-fill: var(--ink);
  padding: var(--s9) 0 calc(var(--s9) + var(--wave-h));
}
.band:not(.s-vision) .wrap {
  display: grid;
  gap: var(--s4);
}
@media (min-width:900px) {
  .band:not(.s-vision) { padding: var(--s15) 0; }
  .band:not(.s-vision) .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: var(--s10);
  }
}
.band:not(.s-vision) h2 {
  font-weight: 700;
  font-size: clamp(32px,4.4vw,56px);
  line-height: 1.08;
  letter-spacing: -.8px;
  text-wrap: balance;
  margin: 0;
}
.band:not(.s-vision) p {
  margin: 0 0 var(--s4);
  color: var(--band-muted);
  font-size: 19px;
  line-height: var(--s4);
  max-width: 40ch;
}
.band .btn {
  background: linear-gradient(to bottom, #fff, var(--surface-tint));
  color: var(--band);
}

@media (prefers-reduced-motion:reduce) {
  .cx-orbit, .cx-needle, .cx-hot, .cx-link, .cx-chip,
  .cx-hub-lines path, .cx-stream .p { animation: none !important; }
  .cx-stream .p { display: none; }
}

/* The COMPASS ghost word is longer than "AI to Z": keep it inside the hero */
.cx-hero {
  overflow: hidden;
}
@supports (overflow: clip) {
  .cx-hero { overflow: clip; }
}@media (max-width:760px) {
  .cx-hero .sec-ghost.wordmark {
    font-size: 15.5vw;
    right: 4vw;
  }
  :where(:root[dir="ltr"]) .cx-hero .sec-ghost.wordmark {
    right: auto;
    left: 4vw;
  }
}
