/* ==========================================================================
   So'rah case study · Step 03 · Who we design for (define.html)
   Personas, empathy maps, quick cards and user journeys from the "So-ra" file
   (819:842 Empathy Maps, 819:843 User Journeys) — the boards are old blue brand,
   so everything is rebuilt as live HTML in the green look. No persona photos:
   initials monograms on lime stand in for them.
   ========================================================================== */

/* local: keep main's single grid column at the window width (the pinned persona track is max-content wide) */
body[data-chapter="define"] main { grid-template-columns: minmax(0, 1fr); }
body[data-chapter="define"] main > * { min-width: 0; }

/* ---------- monogram (stands in for the persona photos) ---------- */
.mono {
  --m: 44px; display: inline-grid; place-items: center; flex: none; width: var(--m); height: var(--m); border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #E4FF9E 0%, var(--s-lime-2) 58%, #A9E23C 100%); color: var(--s-forest);
  font: 700 calc(var(--m) * .36)/1 var(--font); letter-spacing: -.03em; box-shadow: inset 0 0 0 calc(var(--m) * .045) rgba(255,255,255,.6);
}
.mono--lg { --m: clamp(52px, calc(72 * var(--fx)), 72px); }
.mono--xl { --m: clamp(72px, calc(120 * var(--fx)), 120px); }
.mono--ghost { background: #DADDDA; color: #8C928C; box-shadow: inset 0 0 0 calc(var(--m) * .045) rgba(255,255,255,.5); }

/* list items from the boards start lower-case: show a capital first letter (copy unchanged) */
.pp__goals li::first-letter, .pp__pains li::first-letter, .em__q li::first-letter, .qc__col li::first-letter,
.jr__tasks li::first-letter, .jr__name > span::first-letter, .feel > span:first-of-type::first-letter, .opp > span::first-letter,
.am__list li > span::first-letter { text-transform: uppercase; }
.jr__name > span, .am__list li > span { display: block; }

/* ---------- hero: a fanned deck of the four persona cards (Figma persona-card look, monogram instead of photo) ---------- */
.dh .ch-hero__in { align-items: center; }
.dh-deck { position: relative; aspect-ratio: 1 / 1.07; max-width: 600px; margin: 0; }
.dh-card {
  --r: 0deg; position: absolute; width: 48.5%; aspect-ratio: 1 / 1.06; border-radius: var(--r-card); overflow: hidden; isolation: isolate; container-type: inline-size;
  display: grid; justify-items: center; align-content: start; padding-top: 11%; background: #F2F2F2;
  box-shadow: 0 34px 60px -30px rgba(7,30,4,.5), inset 0 0 0 1.5px transparent;
  transform: rotate(var(--r)); transition: transform .7s var(--ease), box-shadow .4s;
}
.dh-card:nth-child(1) { left: 0; top: 4%; --r: -4.5deg; }
.dh-card:nth-child(2) { left: 51%; top: 0; --r: 3.5deg; }
.dh-card:nth-child(3) { left: 2.5%; top: 53%; --r: 2.5deg; }
.dh-card:nth-child(4) { left: 51.5%; top: 49%; --r: -3.5deg; }
.dh-card::after { content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1; background: linear-gradient(180deg, rgba(21,158,23,0) 0%, rgba(21,158,23,.78) 62%, #0E6A0F 100%); }
.dh-card .mono { --m: 40cqw; font-size: 13.5cqw; }
.dh-card__t { position: absolute; left: 9%; right: 9%; bottom: 8%; display: grid; gap: .25em; color: #fff; }
.dh-card__t b { font: 500 max(15px, 9.4cqw)/1.05 var(--font); letter-spacing: -.02em; }
.dh-card__t small { font-size: max(12px, 5.4cqw); opacity: .9; }
.dh-card:hover, .dh-card:focus-visible { z-index: 5; transform: translateY(-10px) rotate(0) scale(1.03); box-shadow: 0 44px 70px -30px rgba(7,30,4,.6), inset 0 0 0 1.5px var(--s-forest); transition: transform .6s var(--ease-back), box-shadow .4s; }
.js .dh-card { animation: dh-float 7s var(--ease-io) infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
.js .dh-card:hover { animation-play-state: paused; }
@keyframes dh-float { to { translate: 0 -10px; } }
.dh-tag { position: absolute; z-index: 6; pointer-events: none; }
.dh-tag--a { left: 30%; top: -5%; }
.dh-tag--b { left: 60%; top: 47%; }
@media (max-width: 900px) {
  .dh.ch-hero { padding-bottom: calc(var(--s-6) + 46px); }
  .dh-deck { max-width: 460px; width: 100%; }
}
@media (max-width: 560px) {
  .dh-card { padding-top: 9%; }
  .dh-card .mono { --m: 36cqw; font-size: 12cqw; }
  .dh-occ { display: none; }
}

/* ---------- 1 · four people ---------- */
.people__lead { max-width: 30ch; font-weight: 300; font-size: clamp(26px, calc(58 * var(--fx)), 58px); line-height: 1.16; letter-spacing: -.022em; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s-6); }
.cast {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-card);
  background: var(--s-paper); box-shadow: inset 0 0 0 1.5px transparent; transition: transform .5s var(--ease), box-shadow .3s, background .3s;
}
.cast:hover, .cast:focus-visible { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--s-ink); background: #fff; }
.cast__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); margin-bottom: var(--s-2); }
.cast__top .chip { font-size: var(--t-micro); padding: .5em .85em; }
.cast__name { font: 600 var(--t-h4)/1.12 var(--font); letter-spacing: -.012em; }
.cast__meta { font-size: var(--t-micro); color: var(--fg-soft); }
.cast__say { display: grid; margin-top: var(--s-2); font-style: italic; font-size: var(--t-small); line-height: 1.42; color: var(--s-ink); }
.rot__q { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.rot__q.is-on { opacity: 1; transform: none; }
.rot__q::before { content: "“"; } .rot__q::after { content: "”"; }
.cast__go { display: inline-flex; align-items: center; gap: .5em; margin-top: var(--s-3); font: 600 var(--t-micro)/1 var(--font); color: var(--s-green); }
.cast__go svg { width: 1.1em; transition: transform .4s var(--ease); }
.cast:hover .cast__go svg { transform: translateX(5px); }
.dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.dstat { display: grid; align-content: space-between; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--s-mint); min-height: clamp(150px, calc(230 * var(--fx)), 230px); }
.dstat__v { font: 700 clamp(48px, calc(110 * var(--fx)), 110px)/.9 var(--font); letter-spacing: -.045em; color: var(--s-green); font-variant-numeric: tabular-nums; }
.dstat__l { font-size: var(--t-small); line-height: 1.38; color: #4f6a4f; max-width: 24ch; }
.dstat__l b { color: var(--s-ink); font-weight: 600; }
.dstats__note { margin-top: var(--s-2); }
@media (max-width: 1100px) { .cast-grid, .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cast-grid { grid-template-columns: 1fr; } }

/* ---------- 2 · personas + empathy maps (pinned horizontal scene; stacked fallback) ---------- */
.pc { --u: var(--fx); padding-block: var(--s-8) var(--s-7); }
.pc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.pc__hl .sec-num { margin-bottom: var(--s-2); }
.pc__title { font: 300 var(--t-h1)/1.04 var(--font); letter-spacing: -.03em; max-width: 17ch; }
.pc__title b { font-weight: 700; }
.pc__nav { display: grid; gap: 10px; justify-items: end; }
.psw { display: flex; flex-wrap: wrap; gap: 8px; }
.psw__b { display: inline-flex; align-items: center; gap: .55em; padding: 4px 14px 4px 4px; border-radius: 999px; font: 600 var(--t-micro)/1 var(--font); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, box-shadow .3s, transform .35s var(--ease); }
.psw__b .mono { --m: 30px; }
.psw__b:hover { box-shadow: inset 0 0 0 1.5px var(--fg); transform: translateY(-1px); }
.psw__b[aria-current="true"] { background: var(--s-night); color: #fff; box-shadow: none; }
.pc__hint { text-align: right; }
.pc__hint-pin, .pc__bar { display: none; }
.pc__bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pc__bar i { display: block; height: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(0); }
.pc__track { display: grid; gap: var(--s-6); padding-inline: var(--gutter); }

.pp { --pad: max(18px, calc(40 * var(--u))); --fs: max(14px, calc(19.5 * var(--u))); --fs-s: max(13px, calc(17 * var(--u))); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: var(--gap); align-items: stretch; }
.pp__card { position: relative; background: #fff; border-radius: var(--r-panel); padding: var(--pad); font-size: var(--fs); line-height: 1.45; }
.pp__eyebrow { font-size: var(--fs-s); line-height: 1; color: var(--fg-soft); letter-spacing: 0; }
.pp__id { display: flex; align-items: center; gap: calc(var(--pad) * .55); }
.pp__id .mono { --m: max(68px, calc(112 * var(--u))); }
.pp__name { font: 600 max(26px, calc(52 * var(--u)))/1.04 var(--font); letter-spacing: -.028em; margin: .22em 0 .32em; }
.pp__seg { font-size: var(--fs-s) !important; padding: .42em .85em !important; }
.pp__profile { display: flex; flex-direction: column; gap: calc(var(--pad) * .62); }
.pp__facts { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 8px; margin: 0; }
.pp__facts div { background: var(--s-paper); border-radius: 12px; padding: .55em .85em; }
.pp__facts dt { font: 600 calc(var(--fs-s) * .74)/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); }
.pp__facts dd { margin: .2em 0 0; font-size: var(--fs-s); font-weight: 600; line-height: 1.25; }
.pp__bio { font-size: var(--fs); line-height: 1.5; color: #5c5c5c; max-width: 62ch; }
/* a rotating "Say" quote fills the space between bio and lists (duplicate of the empathy map, hidden where it does not fit) */
.pp__pull { display: flex; align-items: center; gap: calc(var(--pad) * .4); padding: calc(var(--pad) * .45) calc(var(--pad) * .55); border-radius: var(--r-card); background: var(--s-mint); }
.pp__pull .mono { --m: max(34px, calc(52 * var(--u))); }
.pp__pull p { display: grid; font: italic 500 max(15px, calc(25 * var(--u)))/1.3 var(--font); letter-spacing: -.01em; color: var(--s-forest); }
.pc.is-pinned .pp__pull { flex: 0 1 auto; min-height: 0; }
.pp__pull.is-off { display: none; }
.pp__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--pad) * .8); }
.pp__lists h4 { font: 600 max(17px, calc(26 * var(--u)))/1.15 var(--font); letter-spacing: -.01em; margin-bottom: .55em; }
.pp__goals, .pp__pains { display: grid; gap: .5em; font-size: var(--fs-s); line-height: 1.38; }
.pp__goals li, .pp__pains li { position: relative; padding-left: 1.85em; }
.pp__goals li::before, .pp__pains li::before { content: ""; position: absolute; left: 0; top: .02em; width: 1.3em; height: 1.3em; border-radius: .38em; }
.pp__goals li::before { background: #C7FF73 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.8l4 4.2 8-9.6' fill='none' stroke='%23071E04' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/72% no-repeat; }
.pp__pains li::before { background: #FDE7E3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23C2280F' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* empathy map: Think (top) · Feel (right) · Say (bottom) · Do (left) on the board → clockwise 2 × 2 around the monogram */
.pp__em { display: flex; flex-direction: column; gap: calc(var(--pad) * .5); }
.em { position: relative; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); grid-template-areas: "think feel" "do say"; gap: max(8px, calc(14 * var(--u))); }
.em__q {
  position: relative; display: flex; flex-direction: column; gap: .75em; padding: calc(var(--pad) * .62); border-radius: calc(var(--r-card) * .9);
  transition: transform .55s var(--ease), background .35s, color .35s, opacity .35s, box-shadow .55s;
}
.em__q { --diag: rgba(21,158,23,.22); --dl: transparent calc(50% - .75px), var(--diag) calc(50% - .75px), var(--diag) calc(50% + .75px), transparent calc(50% + .75px); }
.em__q--think { grid-area: think; background: var(--s-mint) linear-gradient(to top right, var(--dl)); transform-origin: 100% 100%; padding-right: calc(var(--pad) * 1.2); }
.em__q--feel { grid-area: feel; background: #EFF8D8 linear-gradient(to top left, var(--dl)); transform-origin: 0 100%; padding-left: calc(var(--pad) * 1.2); }
.em__q--say { grid-area: say; background: var(--s-sage) linear-gradient(to top right, var(--dl)); transform-origin: 0 0; padding-left: calc(var(--pad) * 1.2); }
.em__q--do { grid-area: do; background: #F1F3EE linear-gradient(to top left, var(--dl)); transform-origin: 100% 0; padding-right: calc(var(--pad) * 1.2); }
.em__q header { display: flex; align-items: center; gap: .55em; }
.em__q header svg { width: max(20px, calc(28 * var(--u))); flex: none; fill: none; stroke: var(--s-green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.em__q header p { font-size: var(--fs-s); line-height: 1.1; color: var(--fg-soft); }
.em__q header b { font: 700 italic max(18px, calc(30 * var(--u)))/1 var(--font); letter-spacing: -.02em; color: var(--s-green); transition: color .35s; }
.em__q ul { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .42em; }
/* pills cluster toward the centre monogram, as on the board */
.em__q--think ul, .em__q--feel ul { align-content: flex-end; }
.em__q--think ul, .em__q--do ul { justify-content: flex-end; }
.em__q li { padding: .45em .8em; border-radius: 12px; background: #fff; font-size: var(--fs-s); line-height: 1.34; font-weight: 500; transition: background .35s, color .35s; }
.em__q--say li { font-style: italic; }
.em__q--say li::before { content: "“"; } .em__q--say li::after { content: "”"; }
.em__core { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); padding: max(5px, calc(8 * var(--u))); border-radius: 50%; background: #fff; pointer-events: none; }
.em__core .mono { --m: max(54px, calc(92 * var(--u))); }
@media (hover: hover) and (pointer: fine) {
  .em:hover .em__q { opacity: .45; }
  .em .em__q:hover { opacity: 1; z-index: 2; transform: scale(1.045); background: var(--s-forest); color: #fff; box-shadow: 0 34px 60px -30px rgba(7,30,4,.65); }
  .em__q:hover header p { color: rgba(255,255,255,.75); }
  .em__q:hover header b { color: var(--s-lime-2); }
  .em__q:hover header svg { stroke: var(--s-lime-2); }
  .em__q:hover li { background: rgba(255,255,255,.1); color: #fff; }
}

/* pinned mode (JS adds .is-pinned on wide, tall-enough screens without reduced motion) */
.pc.is-pinned { --u: min(calc(100vw / 1800), calc(100svh / 1080)); height: 100svh; display: flex; flex-direction: column; padding: calc(var(--bar-h) + 4px) 0 max(16px, calc(34 * var(--u))); }
.pc.is-pinned .pc__head { flex: none; flex-wrap: nowrap; margin-bottom: max(12px, calc(22 * var(--u))); }
.pc.is-pinned .pc__title { font-size: max(28px, calc(60 * var(--u))); max-width: none; white-space: nowrap; }
.pc.is-pinned .pc__nav { min-width: min(46vw, 560px); }
.pc.is-pinned .pc__hint-pin, .pc.is-pinned .pc__bar { display: block; }
.pc.is-pinned .pc__hint-stack { display: none; }
.pc.is-pinned .pc__vp { flex: 1; min-height: 0; }
.pc.is-pinned .pc__track { display: flex; width: max-content; height: 100%; gap: max(28px, calc(96 * var(--u))); will-change: transform; }
.pc.is-pinned .pp { display: flex; height: 100%; gap: max(12px, calc(18 * var(--u))); }
.pc.is-pinned .pp__card { height: 100%; overflow: hidden; }
.pc.is-pinned .pp__lists { margin-top: auto; padding-top: calc(var(--pad) * .6); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.pc.is-pinned .pp__profile { width: max(560px, calc(1120 * var(--u))); }
.pc.is-pinned .pp__em { width: max(600px, calc(1420 * var(--u))); }

@media (max-width: 900px) {
  .pc__head { margin-bottom: var(--s-5); }
  .pc__nav { justify-items: start; }
  .pc__hint { text-align: left; }
  .pp, .pp__lists { grid-template-columns: 1fr; }
  .pp__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "think" "feel" "say" "do"; }
  .em__q { padding: calc(var(--pad) * .7) !important; }
  .em__q ul { align-content: flex-start !important; justify-content: flex-start !important; }
  .em__q { background-image: none !important; }
  .em__core { display: none; }
}
@media (max-width: 480px) { .psw__b > span:not(.mono) { display: none; } .psw__b { padding: 4px; } .psw__b .mono { --m: 38px; } }

/* ---------- 3 · quick cards (anonymised) ---------- */
.qk__aside { display: grid; gap: var(--s-3); justify-items: start; }
.qc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.qc { padding: var(--s-4); border-radius: var(--r-card); background: var(--tile); }
.qc__head { display: flex; align-items: center; gap: var(--s-2); }
.qc__head img { width: clamp(44px, calc(60 * var(--fx)), 60px); height: auto; }
.qc__head b { display: block; font: 600 var(--t-h4)/1.1 var(--font); }
.qc__head span { font: 500 var(--t-small)/1.2 var(--font-mono); color: var(--fg-soft); }
.qc__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.qc__col { transition: opacity .45s var(--ease), filter .45s; }
.qc__col h4 { display: flex; align-items: center; gap: .45em; font: 600 var(--t-small)/1.2 var(--font); margin-bottom: .75em; }
.qc__col h4 .face { width: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.qc__col h4 .face .eye { fill: currentColor; stroke: none; }
.qc__col--pain h4 { color: #B3200F; } .qc__col--need h4 { color: var(--s-green); }
.qc__col ul { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.qc__col li { padding: .45em .75em; border-radius: 10px; font-size: var(--t-micro); line-height: 1.3; font-weight: 500; }
.qc__col--pain li { background: #FDE7E3; color: #8F1D0E; }
.qc__col--need li { background: var(--s-mint); color: var(--s-forest); }
.qc-grid[data-show="pain"] .qc__col--need, .qc-grid[data-show="need"] .qc__col--pain { opacity: .22; filter: grayscale(1); }
@media (max-width: 1100px) { .qc-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .qc__cols { grid-template-columns: 1fr; } }

/* ---------- 4 · user journeys ---------- */
.jrs { padding-bottom: var(--s-6); }
.jrs__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.jrs__glow i { position: absolute; border-radius: 50%; filter: blur(clamp(60px, 8vw, 140px)); opacity: .32; }
.jrs__glow i:nth-child(1) { width: 50vw; aspect-ratio: 1; left: -16vw; top: -12vw; background: #1FA637; }
.jrs__glow i:nth-child(2) { width: 36vw; aspect-ratio: 1; right: -10vw; top: 30%; background: #8DDB1D; opacity: .16; }
.jrs__hd .hd__title { max-width: 17ch; }
.jrs__hd .hd__title b { color: #fff; }
.jrs__key { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: rgba(255,255,255,.06); }
.jkey { display: flex; flex-wrap: wrap; gap: 8px; }
.jkey .feel { font-size: var(--t-small); }
.jkey .feel b { font-weight: 700; }
.jrs__keynote { flex: 1 1 420px; max-width: 74ch; font-size: var(--t-small); line-height: 1.5; color: var(--fg-soft); }
.jrs__keynote b { color: #fff; font-weight: 600; }
.jrs__list { display: grid; gap: var(--s-5); }

.jr { --line: rgba(24,24,24,.1); position: relative; padding: var(--s-5); border-radius: var(--r-panel); background: #fff; color: var(--s-ink); scroll-margin-top: calc(var(--bar-h) + 12px); }
.jr__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.jr__eyebrow { font-size: var(--t-micro); color: #747474; }
.jr__eyebrow b { color: var(--s-ink); font-weight: 600; }
.jr__scenario { margin-top: .3em; font-size: var(--t-lead); line-height: 1.3; letter-spacing: -.01em; color: #4d4d4d; max-width: 56ch; }
.jr__goal { margin-top: .4em; font-weight: 600; font-size: var(--t-body); line-height: 1.4; }
.jr__goal span { font-style: italic; font-weight: 700; color: var(--s-green); margin-right: .15em; }

.jr__grid { display: grid; grid-template-columns: minmax(118px, .6fr) repeat(4, minmax(0, 1fr)); }
.jr__stage { display: contents; }
.jr__lane { grid-column: 1; padding: var(--s-2) var(--s-3) var(--s-2) 0; font: 600 var(--t-small)/1.25 var(--font); color: #5c5c5c; }
.jr__lane small { display: block; margin-top: .35em; font: 400 var(--t-micro)/1.35 var(--font); color: #8a8a8a; }
.jr__cell { padding: var(--s-2) var(--s-3); background: linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat; transition: background-color .35s; }
.jr__ml, .jr__senticap { display: none; }
.jr[data-hot="0"] [data-col="0"], .jr[data-hot="1"] [data-col="1"], .jr[data-hot="2"] [data-col="2"], .jr[data-hot="3"] [data-col="3"] { background-color: rgba(141,219,29,.11); }
.jr__name { font: 600 var(--t-h4)/1.18 var(--font); letter-spacing: -.01em; padding-bottom: var(--s-3); border-radius: 0; }
.jr__name small { display: block; margin-bottom: .45em; font-size: var(--t-micro); color: var(--s-green); }
.jr__tasks ol { padding-left: 1.25em; list-style: decimal; font-size: var(--t-small); line-height: 1.42; color: #4d4d4d; }
.jr__tasks li + li { margin-top: .4em; }
.jr__tasks li::marker { color: #9a9a9a; font-variant-numeric: tabular-nums; }
.jr__note { margin-top: .75em; font-size: var(--t-micro); font-style: italic; color: #747474; }
.jr__feels ul { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.jr__opps ol { display: grid; gap: 6px; }

/* feeling pills (board: green = positive, amber = mixed/confused, red = negative) */
.feel { display: inline-flex; align-items: flex-start; gap: .42em; padding: .42em .8em .42em .5em; border-radius: 14px; font: 600 var(--t-micro)/1.32 var(--font); transition: box-shadow .25s, transform .3s var(--ease-back); }
.feel .face { width: 1.3em; flex: none; margin-top: -.02em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.feel .face .eye { fill: currentColor; stroke: none; }
.feel--pos { background: #E3F6DF; color: #0D6B0F; }
.feel--mix { background: #FFF0D6; color: #8A5300; }
.feel--neg { background: #FDE4DF; color: #B01F0E; }
.feel.is-hot { box-shadow: 0 0 0 2px currentColor; transform: translateX(3px); }

/* feeling line (not on the board: drawn from its pill colours) */
.jr__senti { grid-column: 2 / -1; grid-row: 2; margin: 0 0 var(--s-3); }
.senti { position: relative; height: clamp(92px, calc(128 * var(--fx)), 128px); border-radius: 16px; background: #F5F8F4; }
.senti__lv { position: absolute; left: 2%; right: 2%; height: 0; border-top: 1px dashed rgba(24,24,24,.14); }
.senti__lv--pos { top: 16%; } .senti__lv--mix { top: 50%; } .senti__lv--neg { top: 84%; }
.senti__curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: clip-path 1.8s var(--ease-io) .2s; }
.js .jr:not(.is-in) .senti__curve { clip-path: inset(0 100% 0 0); }
.senti__line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.senti__avg { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--s-night); transform: translate(-50%, -50%); pointer-events: none; }
.senti__dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px #F5F8F4; transition: transform .35s var(--ease-back), opacity .5s; }
.js .jr:not(.is-in) .senti__dot { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
.senti__dot--pos { background: var(--s-green); } .senti__dot--mix { background: #E39B17; } .senti__dot--neg { background: var(--s-error); }
.senti__dot.is-hot { transform: translate(-50%, -50%) scale(1.75); z-index: 2; }
.senti__col { display: none; position: absolute; bottom: 4px; transform: translateX(-50%); font: 600 10px/1 var(--font-mono); color: #9a9a9a; }

/* improvement opportunities: buttons that light up (and trace the same opportunity across journeys) */
.opp {
  display: grid; grid-template-columns: auto 1fr; gap: .25em .6em; align-items: start; width: 100%; padding: .55em .7em; border-radius: 12px; text-align: left;
  background: #F3F3F3; box-shadow: inset 0 0 0 1.5px rgba(24,24,24,.08); font-size: var(--t-micro); line-height: 1.38; color: #3d3d3d;
  transition: background .6s var(--ease), color .3s, box-shadow .3s, transform .35s var(--ease);
}
.opp i { display: grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: 50%; background: #E2E2E2; font: 600 .82em/1 var(--font-mono); font-style: normal; transition: background .5s, color .5s; }
.opp em { grid-column: 2; font: 600 .82em/1.2 var(--font-mono); font-style: normal; color: var(--s-green); }
.opp.is-lit { background: var(--s-mint); color: var(--s-ink); }
.opp.is-lit i { background: var(--s-green); color: #fff; }
.opp:hover, .opp:focus-visible { box-shadow: inset 0 0 0 1.5px var(--s-forest); transform: translateY(-1px); }
.opp.is-match, .opp[aria-pressed="true"] { background: var(--s-lime-2); color: var(--s-forest); box-shadow: inset 0 0 0 1.5px var(--s-forest); }
.opp.is-match i, .opp[aria-pressed="true"] i { background: var(--s-forest); color: var(--s-lime-2); }
.opp.is-match em, .opp[aria-pressed="true"] em { color: var(--s-forest); }

/* journey switcher: a dock that sticks to the bottom while the journeys scroll by */
.jdock { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin: var(--s-5) auto 0; padding: 6px; border-radius: 999px; background: rgba(7,30,4,.84); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 24px 44px -20px rgba(0,0,0,.7); }
.jdock__l { padding: 0 .7em 0 .9em; font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.jdock__b { display: inline-flex; align-items: center; gap: .5em; padding: 4px 13px 4px 4px; border-radius: 999px; color: #fff; font: 600 var(--t-micro)/1 var(--font); transition: background .3s, color .3s; }
.jdock__b .mono { --m: 28px; }
.jdock__b:hover { background: rgba(255,255,255,.14); }
.jdock__b[aria-current="true"] { background: var(--s-lime-2); color: var(--s-forest); }

@media (max-width: 900px) {
  .jr { padding: var(--s-4) var(--s-3); }
  .jr__head { align-items: flex-start; }
  .jr__grid { display: block; }
  .jr__lane { display: none; }
  .jr__senti { margin-bottom: var(--s-4); }
  .senti { height: 110px; margin-bottom: 20px; }
  .senti__col { top: calc(100% + 5px); bottom: auto; }
  .senti__col, .jr__senticap { display: block; }
  .jr__senticap { margin-top: .6em; font-size: var(--t-micro); line-height: 1.4; color: #747474; }
  .jr__stage { display: block; padding: var(--s-3); border-radius: var(--r-card); background: #F6F6F6; }
  .jr__stage + .jr__stage { margin-top: 10px; }
  .jr__cell { padding: 0; background: none !important; }
  .jr__cell + .jr__cell { margin-top: var(--s-3); }
  .jr__name { padding-bottom: 0; }
  .jr__ml { display: block; margin-bottom: .6em; font: 600 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #8a8a8a; }
  .jdock__l { display: none; }
}
@media (max-width: 480px) { .jdock__b > span:not(.mono) { display: none; } .jdock__b { padding: 4px; } .jdock__b .mono { --m: 36px; } }

/* ---------- 5 · Amal and her goals (case presentation persona panel, rebuilt without photos) ---------- */
.am__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-inline: calc(var(--gutter) * .45); }
.am__card, .am__goals { position: relative; aspect-ratio: 916 / 878; border-radius: clamp(26px, calc(55 * var(--fx)), 55px); overflow: hidden; isolation: isolate; container-type: inline-size; }
.am__card { background: #F2F2F2; }
.am__card::after { content: ""; position: absolute; inset: 50% 0 0 0; z-index: 1; background: linear-gradient(180deg, rgba(21,158,23,0) 0%, rgba(21,140,22,.55) 50%, rgba(11,73,7,.95) 100%); }
.am__heart { position: absolute; right: 8%; top: 6%; z-index: 2; width: 9.5cqw; fill: none; stroke: var(--s-lime); stroke-width: 3.6; stroke-linejoin: round; }
.am__crowd { position: absolute; inset: 0; z-index: 0; }
.am__m { position: absolute; transform: translate(-50%, -50%); }
.am__m--c { --m: 46cqw; left: 47%; top: 39%; font-size: 15cqw; box-shadow: 0 30px 60px -24px rgba(7,30,4,.45), inset 0 0 0 1.4cqw rgba(255,255,255,.6); }
.am__m--l { --m: 25cqw; left: 17%; top: 44%; font-size: 8cqw; }
.am__m--r { --m: 27cqw; left: 84%; top: 40%; font-size: 8.6cqw; }
.am__id { position: absolute; left: 9%; bottom: 7%; z-index: 2; color: #fff; }
.am__name { font: 400 9.6cqw/1 var(--font); letter-spacing: -.025em; }
.am__age { margin-top: .35em; font-size: max(14px, 4.1cqw); }
.am__goals { padding: 9% 7.5%; background: var(--s-night); color: #fff; }
.am__gt { font: 400 10.5cqw/1 var(--font); letter-spacing: -.02em; margin-bottom: 12%; }
.am__list { gap: 5.4cqw; }
.am__list li { gap: 4.8cqw; font-size: max(14px, 3.75cqw); line-height: 1.35; }
.am__list li::before { width: 9.6cqw; border-radius: 2.75cqw; background-color: #C7FF73; transition: background-size .6s var(--ease-back), transform .6s var(--ease-back); transition-delay: calc(var(--k, 0) * 320ms + 250ms); }
.am__list li:nth-child(2) { --k: 1; } .am__list li:nth-child(3) { --k: 2; }
.js .am__list:not(.is-in) li::before { background-size: 0 0; transform: scale(.86); }
.am__extra { position: absolute; left: 7.5%; right: 7.5%; bottom: 7%; color: rgba(255,255,255,.55); font-size: max(12px, 2.6cqw); }
.am__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); }
.am__next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35em var(--s-4); max-width: 660px; padding: var(--s-3) var(--s-4); border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s, transform .5s var(--ease), background .3s; }
.am__next > span:first-child { grid-column: 1; }
.am__nextt { grid-column: 1; font-size: var(--t-body); line-height: 1.35; }
.am__nextt b { font-weight: 700; color: var(--s-green); }
.am__next svg { grid-column: 2; grid-row: 1 / span 2; width: 1.6em; transition: transform .45s var(--ease); }
.am__next:hover { box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--s-paper); }
.am__next:hover svg { transform: translateX(8px); }
@media (max-width: 900px) {
  .am__duo { grid-template-columns: 1fr; padding-inline: var(--s-2); }
  .am__goals { aspect-ratio: auto; padding-bottom: 22%; }
  .am__list li { font-size: max(15px, 3.9cqw); }
}

/* reduced motion: no float, everything shown */
@media (prefers-reduced-motion: reduce) {
  .js .dh-card { animation: none; }
  .js .jr:not(.is-in) .senti__curve { clip-path: none; }
  .js .jr:not(.is-in) .senti__dot { opacity: 1; transform: translate(-50%, -50%); }
  .js .am__list:not(.is-in) li::before { background-size: 58% auto; transform: none; }
}
