/* =================================================================
   Customer journey map (c-journey).
   Phones first: one card per step, a compact curve above them.
   Wide (container >= 880px): steps as columns, lanes as rows, an emotion
   curve across the "feeling" lane. Same markup, laid out on nested subgrids.
   ================================================================= */
.c-journey{
  --cj-ink:var(--ink,#161616);
  --cj-ink2:var(--ink-2,#55575B);
  --cj-rule:var(--rule,#C8CACE);
  --cj-field:var(--field,#EEEFF1);
  --cj-spot:var(--spot,#2852D6);
  --cj-paper:var(--paper,#FFFFFF);
  --cj-pain:#FAD3DC;
  --cj-fix:#D0E4F7;
  --cj-edge:rgba(22,22,22,.13);
  --cj-dim:#6B6E73;    /* de-emphasised text: 5.2:1 on white, 4.8:1 on the ghost paper */
  --cj-ghost:#F6F6F7;  /* a sticky note of a step that is not in focus */
  --cj-ghost-edge:#D9DBDE;
  --cj-dot-dim:#8A8D93;
  --cj-tint:var(--spot-tint,#E8EEFF);
  --cj-pen:#161616;    /* felt-tip on the sticky notes: the same in both themes, the notes are paper */
  --cj-hand:"Caveat","Bradley Hand","Segoe Print","Comic Neue",cursive;
  --cj-eo:var(--ease-out,cubic-bezier(0.23,1,0.32,1));
  --cj-eio:var(--ease-in-out,cubic-bezier(0.77,0,0.175,1));
  --cj-lab:156px;   /* lane names column (wide) */
  --cj-ch:150px;    /* height of the feeling lane (wide) */
  --cj-cp:26px;     /* +2 and -2 levels, from the lane edges */
  --cj-sn:146px;    /* sticky note (wide) */
  container:cjourney / inline-size;
  position:relative;
  font-family:var(--font,"Atkinson Hyperlegible Next",Verdana,sans-serif);
  color:var(--cj-ink);
}
.c-journey *,.c-journey *::before,.c-journey *::after{box-sizing:border-box}
.c-journey__vh,.c-journey__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- toolbar ---------- */
.c-journey__bar{display:none;justify-content:flex-end;margin:0 0 14px}
html.js .c-journey__bar{display:flex}
.c-journey__toggle{display:inline-flex;align-items:center;gap:9px;min-height:42px;margin:0;padding:9px 15px 9px 13px;border:1.5px solid var(--cj-ink);border-radius:0;background:var(--cj-paper);color:var(--cj-ink);font-family:inherit;font-size:15.5px;font-weight:600;line-height:1.2;cursor:pointer;-webkit-tap-highlight-color:transparent}
.c-journey__ico{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.c-journey__toggle[aria-expanded="true"] .c-journey__ico rect{fill:var(--cj-fix)}
.c-journey__toggle:active{transform:scale(.97)}
.c-journey__toggle:focus-visible,.c-journey__hb:focus-visible{outline:2px solid var(--cj-spot);outline-offset:2px}
@media (hover:hover) and (pointer:fine){
  .c-journey__toggle:hover .c-journey__tl,.c-journey button.c-journey__hb:hover .c-journey__name{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
  html.js .c-journey__dot:hover{outline:2px solid var(--cj-spot);outline-offset:2px}
  html.js .c-journey__md:hover .c-journey__mc{stroke:var(--cj-spot)}
}

/* ---------- shared pieces ---------- */
.c-journey__map{position:relative}
.c-journey__steps{list-style:none;margin:0;padding:0}
.c-journey__step{margin:0;min-width:0}
.c-journey__head{margin:0}
.c-journey__hb{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;-webkit-tap-highlight-color:transparent}
.c-journey button.c-journey__hb{cursor:pointer}
.c-journey__num{flex:none;display:grid;place-items:center;width:30px;height:30px;border:1.6px solid var(--cj-ink);border-radius:50%;background:var(--cj-paper);font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.c-journey__name{font-size:18px;font-weight:700;line-height:1.25;letter-spacing:-.005em;overflow-wrap:break-word}
.c-journey__lanes{margin:0}
.c-journey__lane{margin:0;min-width:0}
.c-journey__lane dt{margin:0 0 5px;font-size:13px;font-weight:700;line-height:1.3;color:var(--cj-ink2)}
.c-journey__lane dd{margin:0;font-size:16px;line-height:1.45;overflow-wrap:break-word}
.c-journey q{quotes:"\201C" "\201D";font-style:italic}
.c-journey:lang(fr) q{quotes:"\00AB\202F" "\202F\00BB"}
.c-journey__lane--thinking dd{padding-left:.42em;text-indent:-.42em}

/* sticky notes: same paper, pen and palette as the affinity wall */
.c-journey__lane--pain dd,.c-journey__lane--fix dd{position:relative}
.c-journey__sticky{position:relative;z-index:1;display:block;width:100%;max-width:var(--cj-sn);min-height:var(--cj-sn);transform:rotate(var(--r,0deg))}
.c-journey__paper{display:block;height:auto;min-height:inherit;padding:10px 11px 9px 12px;background:var(--cj-pain);border:1px solid var(--cj-edge);border-radius:1px;color:var(--cj-pen);font-family:var(--cj-hand);font-weight:600;font-size:var(--cj-fs,20.5px);line-height:1.04;overflow:hidden;overflow-wrap:break-word;text-indent:0}
.c-journey__sticky--fix .c-journey__paper{background:var(--cj-fix)}
.c-journey__paper.is-hyph{-webkit-hyphens:auto;hyphens:auto}
.c-journey__slot{position:absolute;left:0;top:0;width:100%;max-width:var(--cj-sn);aspect-ratio:1 / 1;border:1.5px dashed var(--cj-rule);border-radius:2px;opacity:0}
/* with the script, notes are true squares and long text gets a smaller pen; without it they may grow */
html.js .c-journey__sticky{aspect-ratio:1 / 1;min-height:0}
html.js .c-journey__paper{height:100%;min-height:0}

/* feeling: a small scale on phones, a point on the curve when wide */
.c-journey__meter{display:flex;align-items:center;gap:12px;max-width:300px;font-size:13px;font-weight:700;color:var(--cj-ink2)}
.c-journey__track{position:relative;flex:1;height:22px}
.c-journey__track::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1.5px dashed var(--cj-rule)}
.c-journey__dot{position:absolute;z-index:3;left:calc((var(--v,0) + 2) / 4 * 100%);top:50%;width:15px;height:15px;border:2.5px solid var(--cj-paper);border-radius:50%;background:var(--cj-ink);transform:translate(-50%,-50%);box-sizing:content-box}
.c-journey__dot::before{content:"";position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%}
.c-journey__dot::after{content:"";position:absolute;inset:-4px;border:2px solid var(--cj-ink);border-radius:50%;opacity:0;pointer-events:none}
html.js .c-journey__dot{cursor:pointer}

/* ---------- phones: cards, compact curve ---------- */
.c-journey__axis,.c-journey__curve,.c-journey__curve .c-journey__good,.c-journey__curve .c-journey__bad{display:none}
.c-journey__mini{margin:0 0 16px;padding:12px 0 2px;border-top:2px solid var(--cj-ink)}
.c-journey__mh{margin:0;max-width:none;font-size:14px;line-height:1.35}
.c-journey__mh span{margin-left:6px;font-weight:400;font-style:italic;color:var(--cj-ink2)}
.c-journey__msvg{display:block;width:100%;max-width:460px;height:auto;overflow:visible}
.c-journey__mt{font-family:var(--font,"Atkinson Hyperlegible Next",Verdana,sans-serif);font-size:12.5px;font-weight:700;fill:var(--cj-ink2)}
.c-journey__mz{stroke:var(--cj-rule);stroke-width:1.5;stroke-dasharray:4 4}
.c-journey__mpath,.c-journey__path{fill:none;stroke:var(--cj-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.c-journey__mhit{fill:transparent}
.c-journey__mc{fill:var(--cj-paper);stroke:var(--cj-ink);stroke-width:1.8}
.c-journey__mn{font-family:var(--font,"Atkinson Hyperlegible Next",Verdana,sans-serif);font-size:13px;font-weight:700;fill:var(--cj-ink)}
html.js .c-journey__md{cursor:pointer}
.c-journey__md.is-focus .c-journey__mc{fill:var(--cj-spot);stroke:var(--cj-spot)}
.c-journey__md.is-focus .c-journey__mn{fill:var(--cj-paper)}
.c-journey__steps{display:grid;gap:14px}
.c-journey__step{position:relative;padding:15px 16px 18px;border:1.5px solid var(--cj-ink);background:var(--cj-paper)}
.c-journey__lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 14px;margin-top:14px}
.c-journey__lane{grid-column:1 / -1}
.c-journey__lane--pain{grid-column:1}
.c-journey__lane--fix{grid-column:2}
.c-journey__lane--feeling dd{max-width:320px}
.c-journey__mb,.c-journey__mg{flex:none}
@container cjourney (max-width:299px){
  .c-journey__lane--pain,.c-journey__lane--fix{grid-column:1 / -1}
  .c-journey__step{padding:13px 13px 16px}
}

/* ---------- wide: the map ---------- */
@container cjourney (min-width:880px){
  .c-journey__mini{display:none}
  .c-journey__map{display:grid;grid-template-columns:var(--cj-lab) repeat(var(--steps),minmax(0,1fr));grid-template-rows:auto auto auto var(--cj-ch) auto auto;border-top:2px solid var(--cj-ink);border-bottom:1px solid var(--cj-rule)}
  .c-journey__axis{display:grid;grid-column:1;grid-row:1 / -1;grid-template-rows:subgrid}
  .c-journey__ax{position:relative;padding:14px 14px 14px 0;border-top:1px solid var(--cj-rule);font-size:14px;font-weight:700;line-height:1.3;color:var(--cj-ink)}
  .c-journey__ax--head{border-top:0;border-bottom:1px solid var(--cj-ink);display:flex;align-items:flex-end;color:var(--cj-ink2);font-size:13px}
  .c-journey__ax--doing{border-top:0}
  .c-journey__ax--feeling{padding-top:12px}
  .c-journey__axn{display:block}
  .c-journey__note-s{display:block;margin-top:2px;font-size:13px;font-weight:400;font-style:italic;color:var(--cj-ink2)}
  .c-journey__curve .c-journey__good,.c-journey__curve .c-journey__bad{display:block;position:absolute;left:14px;font-size:12.5px;font-weight:700;color:var(--cj-ink2);line-height:1;white-space:nowrap}
  .c-journey__curve .c-journey__good{top:calc(var(--cj-cp) - 6px)}
  .c-journey__curve .c-journey__bad{bottom:calc(var(--cj-cp) - 7px)}
  .c-journey__good::before,.c-journey__bad::before{content:"";position:absolute;left:-14px;top:50%;width:8px;border-top:1.5px solid var(--cj-ink2)}
  .c-journey__curve{display:block;position:relative;z-index:2;grid-column:2 / -1;grid-row:4;margin-top:1px;pointer-events:none}
  .c-journey__zero{position:absolute;left:0;right:0;top:50%;border-top:1.5px dashed var(--cj-rule);transform-origin:left center}
  .c-journey__svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
  .c-journey__steps{display:grid;grid-column:2 / -1;grid-row:1 / -1;grid-template-columns:subgrid;grid-template-rows:subgrid;gap:0}
  .c-journey__step{display:grid;grid-row:1 / -1;grid-template-rows:subgrid;padding:0;border:0;border-left:1px solid var(--cj-rule);background:none}
  .c-journey__head{padding:14px 12px 14px 14px;border-bottom:1px solid var(--cj-ink)}
  .c-journey__hb{flex-direction:column;align-items:flex-start;gap:10px;height:100%}
  .c-journey__name{font-size:16.5px;line-height:1.28}
  .c-journey__lanes{display:grid;grid-row:2 / -1;grid-template-rows:subgrid;grid-template-columns:none;gap:0;margin:0}
  .c-journey__lane,.c-journey__lane--pain,.c-journey__lane--fix{grid-column:auto;padding:14px 12px 16px 14px;border-top:1px solid var(--cj-rule)}
  .c-journey__lane--doing{border-top:0}
  .c-journey__lane dt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .c-journey__lane dd{font-size:15.5px;line-height:1.45}
  .c-journey__lane--feeling{position:relative;padding:0}
  .c-journey__lane--feeling dd{position:absolute;inset:0;max-width:none}
  .c-journey__meter{position:absolute;inset:0;display:block;max-width:none}
  .c-journey__mb,.c-journey__mg{display:none}
  .c-journey__track{position:absolute;inset:0;height:auto}
  .c-journey__track::before{display:none}
  .c-journey__dot{left:50%;top:calc(var(--cj-cp) + (2 - var(--v,0)) / 4 * (100% - 2 * var(--cj-cp)))}
  .c-journey__lane--pain,.c-journey__lane--fix{display:flex;justify-content:center}
  .c-journey__lane--pain dd,.c-journey__lane--fix dd{width:100%;max-width:var(--cj-sn)}
  /* the focused step: a field-grey band down its column */
  .c-journey__step.is-focus{background:var(--cj-field)}
}

/* ---------- states ---------- */
/* focus: the other steps fade to grey ink and plain paper, still legible (AA) */
.c-journey.has-focus .c-journey__step:not(.is-focus) :is(.c-journey__hb,.c-journey__lane dd,.c-journey__mb,.c-journey__mg){color:var(--cj-dim)}
.c-journey.has-focus .c-journey__step:not(.is-focus) .c-journey__num{border-color:var(--cj-rule)}
.c-journey.has-focus .c-journey__step:not(.is-focus) .c-journey__paper{background:var(--cj-ghost);border-color:var(--cj-ghost-edge);color:var(--cj-dim)}
.c-journey.has-focus .c-journey__step:not(.is-focus) .c-journey__dot{background:var(--cj-dot-dim)}
.c-journey__step.is-focus .c-journey__num{border-color:var(--cj-spot);background:var(--cj-tint);color:var(--cj-spot)}
.c-journey__step.is-focus .c-journey__dot{background:var(--cj-spot)}
@container cjourney (max-width:879px){
  .c-journey__step.is-focus{border-color:var(--cj-spot);box-shadow:inset 0 0 0 1px var(--cj-spot)}
}
.c-journey.is-nofix .c-journey__sticky--fix{opacity:0;visibility:hidden;transform:translateY(-10px) rotate(calc(var(--r,0deg) + 5deg)) scale(1.02)}
.c-journey.is-nofix .c-journey__slot{opacity:1}
.c-journey.is-nofix .c-journey__ax--fix,.c-journey.is-nofix .c-journey__lane--fix dt{color:var(--cj-dim)}

/* ---------- motion ---------- */
/* interactions (after the entrance, .is-ready) */
.motion .c-journey :is(.c-journey__hb,.c-journey__lane dd,.c-journey__num,.c-journey__step,.c-journey__paper,.c-journey__dot,.c-journey__mb,.c-journey__mg){transition:opacity 220ms var(--cj-eo),background-color 200ms var(--cj-eo),border-color 200ms var(--cj-eo),color 200ms var(--cj-eo),box-shadow 200ms var(--cj-eo)}
.motion .c-journey .c-journey__sticky--fix{transition:opacity 260ms var(--cj-eo),transform 320ms var(--cj-eo),visibility 0s linear 0s;transition-delay:calc(var(--i,0) * 30ms)}
.motion .c-journey.is-nofix .c-journey__sticky--fix{transition:opacity 200ms var(--cj-eo),transform 260ms var(--cj-eo),visibility 0s linear 260ms;transition-delay:calc(var(--i,0) * 30ms)}
.motion .c-journey :is(.c-journey__slot,.c-journey__ax--fix,.c-journey__lane--fix dt){transition:opacity 200ms var(--cj-eo),color 200ms var(--cj-eo)}

/* entrance: lanes top to bottom, the curve draws, dots pop, pains stick, then the fixes */
.motion .c-journey:not(.in) :is(.c-journey__ax,.c-journey__head,.c-journey__lane--doing dd,.c-journey__lane--thinking dd,.c-journey__mh,.c-journey__lane dt,.c-journey__mb,.c-journey__mg){opacity:0;transform:translateY(8px)}
.motion .c-journey:not(.is-ready) :is(.c-journey__ax,.c-journey__head,.c-journey__lane--doing dd,.c-journey__lane--thinking dd,.c-journey__mh,.c-journey__lane dt,.c-journey__mb,.c-journey__mg){transition:opacity 500ms var(--cj-eo),transform 500ms var(--cj-eo)}
.motion .c-journey:not(.is-ready) .c-journey__head{transition-delay:calc(var(--i,0) * 40ms)}
.motion .c-journey:not(.is-ready) .c-journey__lane--doing dd{transition-delay:calc(110ms + var(--i,0) * 40ms)}
.motion .c-journey:not(.is-ready) .c-journey__lane--thinking dd{transition-delay:calc(200ms + var(--i,0) * 40ms)}
.motion .c-journey:not(.is-ready) .c-journey__ax--doing{transition-delay:110ms}
.motion .c-journey:not(.is-ready) .c-journey__ax--thinking{transition-delay:200ms}
.motion .c-journey:not(.is-ready) .c-journey__ax--feeling{transition-delay:280ms}
.motion .c-journey:not(.is-ready) .c-journey__ax--pain{transition-delay:760ms}
.motion .c-journey:not(.is-ready) .c-journey__ax--fix{transition-delay:940ms}
.motion .c-journey:not(.is-ready) .c-journey__lane dt{transition-delay:calc(var(--i,0) * 40ms)}
.motion .c-journey:not(.is-ready) :is(.c-journey__mb,.c-journey__mg){transition-delay:calc(280ms + var(--i,0) * 40ms)}
.motion .c-journey:not(.in) .c-journey__zero{transform:scaleX(0)}
.motion .c-journey .c-journey__zero{transition:transform 700ms var(--cj-eio) 200ms}
.c-journey__path,.c-journey__mpath{stroke-dasharray:1 1;stroke-dashoffset:0}
.motion .c-journey:not(.in) :is(.c-journey__path,.c-journey__mpath){stroke-dashoffset:1}
.motion .c-journey :is(.c-journey__path,.c-journey__mpath){transition:stroke-dashoffset 800ms cubic-bezier(.37,0,.63,1) 260ms}
.motion .c-journey:not(.in) :is(.c-journey__dot,.c-journey__md,.c-journey__sticky){opacity:0}
.motion .c-journey.in:not(.is-ready) .c-journey__dot{animation:cj-pop 260ms var(--cj-eo) backwards;animation-delay:var(--pop,calc(260ms + var(--i,0) * 200ms))}
.motion .c-journey.in:not(.is-ready) .c-journey__dot::after{animation:cj-ring 620ms var(--cj-eo);animation-delay:var(--pop,calc(260ms + var(--i,0) * 200ms))}
.motion .c-journey.in:not(.is-ready) .c-journey__md{animation:cj-fade 260ms var(--cj-eo) backwards;animation-delay:var(--pop,calc(260ms + var(--i,0) * 200ms))}
.motion .c-journey.in:not(.is-ready) .c-journey__sticky--pain{animation:cj-stick 400ms cubic-bezier(.2,.75,.3,1) backwards;animation-delay:calc(820ms + var(--i,0) * 45ms)}
.motion .c-journey.in:not(.is-ready) .c-journey__sticky--fix{animation:cj-stick 400ms cubic-bezier(.2,.75,.3,1) backwards;animation-delay:calc(1000ms + var(--i,0) * 45ms)}
@keyframes cj-pop{from{opacity:0;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes cj-ring{from{opacity:.55;transform:scale(1)}to{opacity:0;transform:scale(2.3)}}
@keyframes cj-fade{from{opacity:0}to{opacity:1}}
@keyframes cj-stick{
  0%{opacity:0;transform:translateY(-16px) rotate(calc(var(--r,0deg) + 2.4deg)) scale(1.05)}
  45%{opacity:1}
  70%{transform:translateY(1px) rotate(calc(var(--r,0deg) - .4deg)) scale(.996)}
  100%{opacity:1;transform:rotate(var(--r,0deg))}
}
/* phones: the cards rise one after the other */
@container cjourney (max-width:879px){
  .motion .c-journey:not(.in) .c-journey__step{opacity:0;transform:translateY(14px)}
  .motion .c-journey:not(.is-ready) .c-journey__step{transition:opacity 600ms var(--cj-eo),transform 600ms var(--cj-eo);transition-delay:calc(var(--i,0) * 90ms)}
}

@media (prefers-reduced-motion:reduce){
  .c-journey *{animation:none!important}
}
@media print{
  .c-journey__bar{display:none!important}
  .c-journey *{opacity:1!important;visibility:visible!important;animation:none!important;transition:none!important}
  .c-journey .c-journey__dot{transform:translate(-50%,-50%)!important}
  .c-journey .c-journey__sticky{transform:rotate(var(--r,0deg))!important}
  .c-journey .c-journey__zero{transform:none!important}
  .c-journey :is(.c-journey__path,.c-journey__mpath){stroke-dashoffset:0!important}
  .c-journey .c-journey__slot{opacity:0!important}
}

/* ---------- dark theme: the map in light ink; the notes stay paper, written in dark pen.
   Out of focus, a note fades towards the page as it does in light: a dark ghost, dimmer writing (4.9:1). ---------- */
@media screen{
  html[data-theme="dark"] .c-journey{--cj-ghost:#1A2134;--cj-ghost-edge:rgba(150,170,255,.12);--cj-dim:#949BAE;--cj-dot-dim:#6C7590} /* night blue: dim text 5.8:1 on the ghost note */
}
