/* Homepage v2 - new sections: the gap, the A-to-Z journey, COMPASS spotlight, learn more. */

/* ---------- Hero: secondary link ---------- */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--text-ui-lg);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid rgb(var(--accent-rgb) / .35);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.hero-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-link svg { width: 18px; height: 18px; }

/* The vectors section no longer follows the hero directly */
@media (min-width:900px) {
  #approach { padding-top: var(--s12); }
  #approach .vectors { margin-top: 0; }
}

/* ---------- The gap ---------- */
.s-gap {
  background: var(--bg-2);
  --wave-fill: var(--bg-2);
}
.s-gap .sec-head h2 { max-width: none; }
.s-gap .sec-head h2 .ln { display: block; }
.gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
@media (min-width:860px) {
  .gap-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.gap-list li {
  --c: var(--c1);
  position: relative;
  display: grid;
  gap: var(--s2);
  padding: var(--s4);
  border: var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.gap-list li:nth-child(2) { --c: var(--c2); }
.gap-list li:nth-child(3) { --c: var(--green); }
.gap-list li::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--c);
}
.gap-list .from {
  margin: 0;
  font-size: var(--text-ui-lg);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgb(var(--c4-rgb) / .7);
  text-decoration-thickness: 2px;
}
.gap-list .arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  transform: rotate(-90deg);
}
.gap-list .arrow svg { width: 18px; height: 18px; }
.gap-list .to {
  margin: 0;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Journey A to Z ---------- */
.s-journey {
  background: var(--bg-3);
  --wave-fill: var(--bg-3);
  --wave-tint: var(--c2);
}
.s-journey .az {
  display: inline-block;
  direction: ltr;
  font-weight: 800;
  color: var(--cyan);
}
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: none;
}
@media (min-width:860px) {
  .journey-steps { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s2); }
}
.journey-steps li {
  position: relative;
  padding: var(--s4) var(--s3) var(--s3);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.journey-steps li::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: .9;
}
@media (min-width:860px) {
  /* chevron between steps */
  .journey-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: -12px;
    width: 14px;
    height: 14px;
    border-top: 2px solid rgb(var(--accent-rgb) / .5);
    border-inline-start: 2px solid rgb(var(--accent-rgb) / .5);
    transform: translateY(-50%) rotate(calc(var(--dir-x) * -45deg));
    z-index: 2;
  }
}
.journey-steps .n {
  display: block;
  margin-bottom: var(--s2);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}
.journey-steps h3 {
  margin: 0 0 var(--s1);
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.25;
}
.journey-steps p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-ui);
  line-height: 1.55;
}
.journey-rail {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: var(--s3);
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgb(var(--navy-rgb) / .6);
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
@media (min-width:860px) {
  .journey-rail { grid-template-columns: auto minmax(0,1fr) auto; }
}
.journey-rail:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgb(var(--navy-rgb) / .7); }
.rail-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
}
.rail-mark svg { width: 24px; height: 24px; }
.rail-text { font-size: var(--text-ui-lg); line-height: 1.5; color: rgba(255,255,255,.85); }
.rail-text b { color: #fff; letter-spacing: 1px; margin-inline-end: 4px; }
.rail-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-weight: 700;
  color: var(--c2-on-dark);
  white-space: nowrap;
}
@media (min-width:860px) { .rail-cta { grid-column: auto; } }
.rail-cta svg { width: 18px; height: 18px; }

/* ---------- COMPASS spotlight (dark band) ---------- */
.band.s-compass {
  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 15% 70%, rgb(var(--accent-rgb) / .38) 0%, rgb(var(--accent-rgb) / .12) 50%, transparent 100%), var(--ink);
  --wave-fill: var(--ink);
  color: #fff;
}
:where(:root[dir="ltr"]) .band.s-compass {
  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% 70%, rgb(var(--accent-rgb) / .38) 0%, rgb(var(--accent-rgb) / .12) 50%, transparent 100%), var(--ink);
}
.s-compass {
  padding: var(--s10) 0 calc(var(--s10) + var(--wave-h));
  overflow: hidden;
}
.cmp {
  display: grid;
  gap: var(--s5);
  align-items: center;
}
@media (min-width:900px) {
  .cmp { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: var(--s10); }
}
.cmp-visual svg { display: block; width: min(100%, 340px); margin-inline: auto; overflow: visible; }
.cmp-visual .r1 { fill: none; stroke: rgba(255,255,255,.22); stroke-dasharray: 2 6; }
.cmp-visual .r2, .cmp-visual .r3 { fill: none; stroke: rgba(255,255,255,.12); }
.cmp-visual .orb { transform-origin: 160px 160px; animation: cx2-spin 70s linear infinite; }
.cmp-visual .orb circle { opacity: .75; }
.cmp-visual .d1 { fill: var(--c1-on-dark); }
.cmp-visual .d2 { fill: var(--c2-on-dark); }
.cmp-visual .d3 { fill: #6ED3B4; }
.cmp-visual .d4 { fill: #F2A27F; }
.cmp-visual .lk { stroke: var(--c2-on-dark); stroke-width: 1.4; stroke-dasharray: 4 6; fill: none; opacity: .8; animation: cx2-dash 3s linear infinite; }
.cmp-visual .hot { stroke: var(--navy); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: cx2-beat 3s ease-in-out infinite; }
.cmp-visual .h1 { fill: var(--c1-on-dark); }
.cmp-visual .h2 { fill: var(--c2-on-dark); animation-delay: 1s; }
.cmp-visual .h3 { fill: #F2A27F; animation-delay: 2s; }
.cmp-visual .needle { transform-origin: 160px 160px; animation: cx2-seek 9s ease-in-out infinite; }
.cmp-visual .n1 { fill: var(--c2-on-dark); }
.cmp-visual .n2 { fill: rgba(255,255,255,.25); }
.cmp-visual .core { fill: #fff; }
.cmp-visual .pin { fill: var(--navy); }
@keyframes cx2-spin { to { transform: rotate(360deg); } }
@keyframes cx2-dash { to { stroke-dashoffset: -40; } }
@keyframes cx2-beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes cx2-seek { 0%,100% { transform: rotate(38deg); } 35% { transform: rotate(-60deg); } 65% { transform: rotate(150deg); } }
.cmp-kicker {
  margin: 0 0 var(--s2);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--c2-on-dark);
  text-align: var(--side-start);
}
.s-compass .nowrap, .s-gap .nowrap, .s-more .nowrap { white-space: nowrap; }
.s-compass .cmp h2 {
  margin: 0 0 var(--s3);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -.5px;
  color: #fff;
  text-wrap: balance;
}
.s-compass .grad { background: var(--grad-brand-on-dark); -webkit-background-clip: text; background-clip: text; }
.s-compass .cmp-copy > p:not(.cmp-kicker) {
  margin: 0 0 var(--s5);
  max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted-on-dark);
}

/* ---------- Learn more ---------- */
.s-more {
  background: var(--bg-3);
  --wave-fill: var(--bg-3);
  --wave-tint: var(--c2);
}
.more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
@media (min-width:640px) { .more-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:1000px) { .more-list { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.more-list a {
  --c: var(--c1);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s4) var(--s3) var(--s3);
  border: var(--glass-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.more-list li:nth-child(2) a { --c: var(--c2); }
.more-list li:nth-child(3) a { --c: var(--cyan); }
.more-list li:nth-child(4) a { --c: var(--green); }
.more-list a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgb(var(--navy-rgb) / .35); }
.more-list .tag {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
}
.more-list h3 { margin: var(--s1) 0 0; font-size: 21px; line-height: 1.3; font-weight: 700; }
.more-list p { margin: 0; color: var(--muted); font-size: var(--text-ui); line-height: 1.55; }
.more-list .go {
  margin-top: auto;
  padding-top: var(--s2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--text-ui);
  color: var(--c);
}
.more-list .go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.more-list a:hover .go svg { transform: translateX(calc(var(--dir-x) * 4px)); }

@media (prefers-reduced-motion:reduce) {
  .cmp-visual .orb, .cmp-visual .lk, .cmp-visual .hot, .cmp-visual .needle { animation: none; }
}

/* ============================================================
   Visual flow: one continuous light canvas, waves only where the
   page really changes tone (light <-> dark / blue).
   ============================================================ */
:root { --flow: var(--paper); }

/* All light sections share one base colour; soft glows give rhythm without seams */
[aria-labelledby="clients-title"],
.s-gap,
.s-journey,
#approach,
[aria-labelledby="why-title"],
.s-more {
  --wave-fill: var(--flow);
  --wave-tint: var(--c2);
  background-color: var(--flow);
}
[aria-labelledby="clients-title"] {
  background: linear-gradient(to bottom, var(--flow), var(--flow));
}
.s-gap {
  background:
    radial-gradient(45% 60% at 92% 30%, rgb(var(--accent-rgb) / .07), transparent 70%),
    var(--flow);
}
:where(:root[dir="ltr"]) .s-gap {
  background: radial-gradient(45% 60% at 8% 30%, rgb(var(--accent-rgb) / .07), transparent 70%), var(--flow);
}
.s-journey {
  background:
    radial-gradient(50% 55% at 10% 60%, rgb(var(--c2-rgb) / .08), transparent 70%),
    var(--flow);
}
:where(:root[dir="ltr"]) .s-journey {
  background: radial-gradient(50% 55% at 90% 60%, rgb(var(--c2-rgb) / .08), transparent 70%), var(--flow);
}
#approach {
  background:
    radial-gradient(40% 50% at 30% 55%, rgb(var(--accent-rgb) / .05), transparent 70%),
    var(--flow);
}
[aria-labelledby="why-title"] {
  background:
    radial-gradient(45% 55% at 85% 70%, rgb(var(--c2-rgb) / .06), transparent 70%),
    var(--flow);
}
.s-more {
  background:
    radial-gradient(50% 60% at 15% 40%, rgb(var(--accent-rgb) / .06), transparent 70%),
    var(--flow);
}

/* No wave between two light sections */
.s-gap > .wave,
.s-journey > .wave,
#approach > .wave,
.s-more > .wave {
  display: none;
}
/* Tighter, even spacing inside the light canvas */
.s-gap, .s-journey, #approach, .s-more { padding-top: var(--s10); }
.s-gap { padding-top: var(--s8); }
@media (min-width:900px) {
  .s-gap { padding-top: var(--s10); }
  .s-journey, #approach, .s-more { padding-top: var(--s12); }
  .s-gap, .s-journey, #approach, [aria-labelledby="why-title"], .s-more { padding-bottom: var(--s12); }
}

/* Softer waves at the real transitions: single tone, no contrasting stripe */
.wave .w1 { opacity: .35; }
.wave .w2 { opacity: .55; }

/* Cards sit on the same canvas: give them a touch more presence */
.journey-steps li,
.more-list a,
.gap-list li { background: var(--surface); }
/* Fix (Nov 2026): journey chevrons follow reading direction (RTL: right-to-left), COMPASS visual sits higher */
@media (min-width:860px) {
  .journey-steps li:not(:last-child)::before {
    border: 0;
    border-top: 2px solid rgb(var(--accent-rgb) / .5);
    border-left: 2px solid rgb(var(--accent-rgb) / .5);
    transform: translateY(-50%) rotate(-45deg);
  }
  :where(:root[dir="ltr"]) .journey-steps li:not(:last-child)::before {
    transform: translateY(-50%) rotate(135deg);
  }
}
@media (min-width:900px) {
  .cmp { align-items: start; }
  .cmp-visual { align-self: start; margin-top: calc(-1 * var(--s3)); }
  .cmp-copy { padding-top: var(--s2); }
}
/* compass: balanced vertical position vs. copy */
@media (min-width:900px) {
  .cmp { align-items: center; }
  .cmp-visual { align-self: center; margin-top: 0; transform: translateY(-14px); }
  .cmp-copy { padding-top: 0; }
}
/* mobile: lighter homepage, hide gap + journey sections */
@media (max-width:759px) {
  .s-gap, .s-journey, .hero-link { display: none; }
}
/* mobile: tighter spacing between homepage sections */
@media (max-width:759px) {
  .sec[aria-labelledby="clients-title"] { padding-bottom: 36px; }
  #approach { padding-top: 40px; }
  .band.s-compass { padding-bottom: 72px; }
  .sec[aria-labelledby="why-title"] { padding-top: 44px; padding-bottom: 36px; }
  .s-more { padding-top: 40px; padding-bottom: 56px; }
  .s-more .sec-head { margin-bottom: 24px; }
  .more-list { gap: 12px; }
}