/* Who we serve: persona switcher, four personas, two tools */

/* the switcher rides under the nav while you read */
.pswitch { position: sticky; top: 82px; z-index: 30; height: 0; transition: top .8s var(--ease); display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.pswitch__in { pointer-events: auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; transform: translateY(10px);
  background: color-mix(in srgb, var(--bg) 66%, transparent); color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .5s, transform .6s var(--ease), --bg .6s, --fg .6s, --muted .6s, --faint .6s, --accent .6s; }
.pswitch.is-on .pswitch__in { opacity: 1; transform: none; }
.pswitch__in a { display: grid; gap: 1px; padding: 7px 16px; border-radius: 999px; text-align: center; transition: background-color .4s var(--ease), color .3s; color: var(--muted); }
.pswitch__in a b { font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: -.01em; color: var(--fg); transition: color .3s; }
.pswitch__in a span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); transition: color .3s; }
.pswitch__in a:hover b { color: var(--accent); }
.pswitch__in a.is-on { background: var(--fg); }
.pswitch__in a.is-on b { color: var(--bg); font-style: italic; }
.pswitch__in a.is-on span { color: var(--accent); }
.persona { scroll-margin-top: 70px; }

/* see / do / next ten years */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcol { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); display: grid; gap: 16px; align-content: start; }
.plist { display: grid; gap: 12px; }
.plist li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.plist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); }
.plist--do li { color: var(--fg); }
.plist--do li::before { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.ptime { display: grid; gap: 0; position: relative; }
.ptime::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.ptime li { position: relative; padding: 0 0 18px 26px; font-size: 15px; line-height: 1.55; }
.ptime li:last-child { padding-bottom: 0; }
.ptime li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.ptime li span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* tools */
.ptool { margin-top: 14px; padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 22px; }
.ptool__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.ptool__head h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; margin-top: 6px; }
.ptool__body { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 52px); align-items: start; }
.ptool__in { display: grid; gap: 22px; }
.ptool__out { display: grid; gap: 18px; min-width: 0; }
.ptool__say { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; }
.ptool__say em { color: var(--accent); }

.lgbar { display: flex; height: 46px; border-radius: 12px; overflow: hidden; background: var(--card-2); gap: 2px; }
.lgbar i { position: relative; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; transition: flex-grow .7s var(--ease); min-width: 0; }
.lgbar i.ex { background: var(--accent); color: #fff; }
.lgbar i.ex:nth-child(2) { background: color-mix(in srgb, var(--accent) 82%, var(--fg)); }
.lgbar i.ex:nth-child(3) { background: color-mix(in srgb, var(--accent) 66%, var(--bg)); }
.lgbar i.ex:nth-child(4) { background: color-mix(in srgb, var(--accent) 50%, var(--bg)); }
.lgbar i.tx { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--down) 40%, transparent) 0 6px, transparent 6px 11px); color: var(--fg); }

.sched { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.sched__k { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sched__bars { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 6px; align-items: end; height: 120px; }
.sched__bars div { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; }
.sched__bars i { align-self: end; display: block; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--down) 70%, var(--accent)); transition: height .6s var(--ease); min-height: 3px; }
.sched__bars div.ok i { background: var(--up); }
.sched__bars span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: center; }
.sched__target { font-size: 13px; color: var(--muted); }

.plinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.plink { position: relative; display: grid; gap: 6px; padding: 22px 54px 22px 24px; transition: border-color .4s, transform .6s var(--ease), background-color .4s; }
.plink:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--card-2); }
.plink b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.015em; line-height: 1.15; }
.plink span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.plink i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-style: normal; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.plink:hover i { background: var(--fg); color: var(--bg); transform: translate(3px, -50%); }

@media (max-width: 1000px) { .pgrid, .plinks { grid-template-columns: 1fr; } .ptool__body { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .pswitch { top: 74px; }
  .pswitch__in { max-width: calc(100vw - 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .pswitch__in::-webkit-scrollbar { display: none; }
  .pswitch__in a { padding: 6px 12px; }
  .pswitch__in a b { font-size: 14px; }
  .pswitch__in a span { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .sched__bars { height: 90px; gap: 3px; }
  .lgbar i { font-size: 0; }
}
