/* Upskill page. See upskill-page.js. The topic strip reuses the Implement strip styles in service-page.css. */
/* What the team learns: five topics, each with a small looping animation */
.sp-stages-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sp-stages-5 .sp-stage { padding: 14px 14px 20px; }
.sp-stages-5 .sp-stage h3 { font-size: 20px; }
.sp-stages-5 .sp-stage > p:last-child { font-size: 14px; }
.sp-stages-5 .sp-stage-art { height: 136px; padding: 0 12px; }
.sp-stages-5 .sp-stage:not(:last-child)::after { right: -12px; top: 76px; width: 7px; height: 7px; }
@keyframes up-loop { 0% { opacity: 0; transform: translateY(5px); } 12%, 84% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes up-pop { 0%, 40% { transform: scale(0); } 52%, 90% { transform: none; } 100% { transform: none; opacity: 0; } }
@keyframes up-strike { 0%, 25% { background-size: 0 1px; color: var(--ink); } 40%, 100% { background-size: 100% 1px; color: #9a9d9b; } }
@keyframes up-type { 0%, 35% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0); } }
@keyframes up-blur { 0%, 30% { filter: none; background: transparent; } 45%, 90% { filter: blur(3px); background: #dcdedb; } 100% { filter: none; } }
@keyframes up-tick { 0% { opacity: .35; } 15%, 90% { opacity: 1; } 100% { opacity: .35; } }
.sp-stages-5 .sp-stage-art > * { font-size: 11px; }
/* AI basics: a question, three things it helps with, and a reminder that it can be wrong */
.sp-art-basics { align-content: center; justify-items: start; gap: 6px; }
.sp-ask { padding: 5px 9px; border-radius: 9px 9px 9px 2px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.sp-answers { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-answers i { padding: 3px 7px; border-radius: 20px; background: var(--ink); color: #fff; font-style: normal; animation: up-pop 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; }
.sp-answers i:nth-child(2) { animation-delay: .15s; }
.sp-answers i:nth-child(3) { animation-delay: .3s; }
.sp-warn { display: inline-flex; gap: 5px; align-items: center; padding: 3px 8px 3px 5px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--ink); transform: scale(0); animation: up-pop 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; animation-delay: .7s; }
.sp-warn::before { content: "!"; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 8px; font-weight: 700; }
/* Prompting: a vague request is crossed out and a clearer one is written */
.sp-art-prompting { align-content: center; justify-items: stretch; gap: 6px; }
.sp-try { padding: 6px 9px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; line-height: 1.35; }
.sp-try-1 { justify-self: start; background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 9px 52%; background-size: 0 1px; animation: up-strike 5s ease infinite both; }
.sp-try-2 { position: relative; box-shadow: 0 0 0 1.5px var(--ink); animation: up-type 5s steps(30) infinite both; }
.sp-try-2::after { content: "Clearer"; position: absolute; right: -4px; top: -9px; padding: 2px 7px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 9.5px; transform: scale(0); animation: up-pop-late 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; }
@keyframes up-pop-late { 0%, 72% { transform: scale(0); } 80%, 94% { transform: none; } 100% { transform: none; opacity: 0; } }
/* Safe use: personal details are blurred out before anything is shared */
.sp-art-safe { align-content: center; justify-items: center; gap: 8px; }
.sp-file { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; width: 100%; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.sp-file small { grid-column: 1 / -1; color: #8b8e8c; font-size: 10px; }
.sp-file b { font-weight: 500; }
.sp-hide { padding: 0 3px; border-radius: 3px; font-style: normal; animation: up-blur 5s ease infinite both; }
.sp-shield { padding: 4px 9px; border-radius: 20px; background: var(--ink); color: #fff; transform: scale(0); animation: up-pop 5s cubic-bezier(.34, 1.5, .64, 1) infinite both; animation-delay: .5s; }
/* Integrations: four tools connected to AI in the middle */
.sp-art-connect { position: relative; grid-template-columns: repeat(2, auto); gap: 22px 66px; align-content: center; justify-content: center; }
.sp-art-connect .sp-app { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 10px; animation: up-tick 3.2s ease infinite both; }
.sp-art-connect .sp-app:nth-of-type(2) { animation-delay: .4s; }
.sp-art-connect .sp-app:nth-of-type(3) { animation-delay: .8s; }
.sp-art-connect .sp-app:nth-of-type(4) { animation-delay: 1.2s; }
.sp-hubmini { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; box-shadow: 0 0 0 6px rgba(25, 26, 27, .08); }
.sp-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-wires line { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; animation: up-flow 1.2s linear infinite; }
.sp-wires line:nth-child(2n) { animation-direction: reverse; }
@keyframes up-flow { to { stroke-dashoffset: -14; } }
.sp-art-connect em { position: absolute; bottom: 8px; left: 50%; padding: 2px 7px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; color: var(--muted); font-size: 10px; font-style: normal; transform: translateX(-50%); }
/* Skills and agents: a saved skill runs its steps on its own */
.sp-art-skills { align-content: center; }
.sp-skill { display: grid; gap: 4px; width: 100%; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.sp-skill small { color: #8b8e8c; font-size: 10px; }
.sp-skill b { margin-bottom: 2px; font-weight: 500; }
.sp-skill i { position: relative; padding-left: 16px; font-style: normal; animation: up-tick 5s ease infinite both; animation-delay: calc(.3s + var(--i) * .5s); }
.sp-skill i::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 7px; }
.motion-paused .sp-stages-5 *, .motion-paused .sp-stages-5 *::before, .motion-paused .sp-stages-5 *::after { animation: none !important; }
.motion-paused .sp-warn, .motion-paused .sp-shield { transform: none; }


@media (max-width: 1200px) {
  .sp-stages-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sp-stages-5 .sp-stage { grid-column: span 2; }
  .sp-stages-5 .sp-stage:nth-child(4) { grid-column: 2 / span 2; }
  .sp-stages-5 .sp-stage:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .sp-stages-5 { grid-template-columns: 1fr; }
  .sp-stages-5 .sp-stage, .sp-stages-5 .sp-stage:nth-child(4) { grid-column: auto; }
  .sp-stages-5 .sp-stage:nth-child(3)::after { display: block; }
  .ex-sv-row { grid-template-columns: 5.2em 1fr 6.4em; gap: .5em; }
}

/* Example section: the team survey, before and after (upskill-page.js) */
.sp-alt[data-example] { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.5, .64, 1); color: var(--ink); font-size: clamp(11px, 1.1vw, 14px); line-height: 1.35; }
.ex-face { flex: none; display: inline-block; width: 2.3em; height: 2.3em; border-radius: 50%; }

.ex-sv { padding: 1.4em; border-radius: 1em; background: #e8e9e6; }
.ex-sv-head { display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; align-items: center; }
.ex-sv-head small { color: var(--muted); font-size: .8em; }
.ex-sv-head strong { grid-column: 1; font-size: 1.1em; font-weight: 500; }
.ex-sv-toggle { grid-column: 2; grid-row: 1 / span 2; display: grid; }
.ex-sv-toggle b { grid-area: 1 / 1; padding: .35em .9em; border-radius: 2em; font-size: .9em; font-weight: 500; transition: opacity .4s, transform .5s var(--spring); }
.ex-sv-toggle b:first-child { background: #fff; }
.ex-sv-toggle b:last-child { background: var(--ink); color: #fff; opacity: 0; transform: scale(.9); }
.ex-sv.is-after .ex-sv-toggle b:first-child { opacity: 0; }
.ex-sv.is-after .ex-sv-toggle b:last-child { opacity: 1; transform: none; }
.ex-sv-bars { display: grid; gap: .55em; margin-top: 1.2em; }
.ex-sv-row { display: grid; grid-template-columns: 6em 1fr 6.8em; gap: .8em; align-items: center; font-size: .9em; }
.ex-sv-track { height: .7em; overflow: hidden; border-radius: 1em; background: #d6d8d4; }
.ex-sv-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); transition: width .9s var(--ease); transition-delay: calc(var(--i) * .06s); }
.ex-sv-faces { display: flex; min-height: 2em; }
.ex-sv-faces .ex-face { width: 2.3em; height: 2.3em; margin-right: -.5em; animation: up-pop-in .45s var(--spring) both; }
@keyframes up-pop-in { from { transform: scale(0); } }
.ex-sv-quote { display: grid; grid-template-columns: auto 1fr; gap: .1em .8em; align-items: center; margin-top: 1.2em; padding: .9em 1em; border-radius: .9em; background: #fbfbfa; box-shadow: 0 1em 2em -1.2em rgba(30, 34, 32, .4); opacity: 0; transform: translateY(.5em); transition: opacity .4s, transform .6s var(--spring); }
.ex-sv-quote.is-on { opacity: 1; transform: none; }
.ex-sv-quote-face { grid-row: 1 / span 2; }
.ex-sv-quote-face .ex-face { width: 3.1em; height: 3.1em; }
.ex-sv-quote p { margin: 0; font-size: 1.02em; }
.ex-sv-quote small { color: var(--muted); font-size: .8em; }

.motion-paused .sp-alt[data-example] *, .motion-paused .sp-alt[data-example] *::before { transition: none !important; animation: none !important; }

.uh-face.has-portrait { width: 2.6em; height: 2.6em; font-size: 1em; }

/* Hero, shared */
.sp-hero-art.has-uh { container-type: inline-size; }
.uh { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.5, .64, 1); position: absolute; inset: 0; color: var(--ink); font-size: clamp(8.5px, 2.25cqw, 13.5px); line-height: 1.3; }
.uh-window { position: absolute; inset: 2% 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.3em; background: #fbfbfa; box-shadow: 0 2.6em 5em -2em rgba(30, 34, 32, .35), 0 0 0 1px rgba(30, 34, 32, .06); }
.uh-bar { display: flex; align-items: center; gap: .9em; padding: .95em 1.2em; border-bottom: 1px solid #e8e9e6; background: #fff; }
.uh-bar strong { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.uh-dots { display: flex; gap: .35em; }
.uh-dots i { width: .62em; height: .62em; border-radius: 50%; background: #dcdedb; }
.uh-week { flex: none; margin-left: auto; padding: .25em .7em; border-radius: 2em; background: var(--ink); color: #fff; font-size: .82em; }
.uh-week b { font-weight: 500; }
.uh-face { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #e4e6e2; font-size: .85em; font-weight: 500; }
.uh-body { flex: 1; padding: 1.1em 1.2em; background: radial-gradient(circle, #e1e3df 1px, transparent 1.3px) 0 0 / 1.35em 1.35em; }
.motion-paused .uh *, .motion-paused .uh *::before, .motion-paused .uh *::after { transition: none !important; animation: none !important; }

/* Hero: confidence growing */
.uh-b .uh-body { display: flex; flex-direction: column; gap: 1em; }
.uh-weeks { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); padding-bottom: .6em; border-bottom: 1px solid #e3e5e1; color: #8b8e8c; font-size: .78em; text-align: center; }
.uh-weeks i { position: absolute; bottom: -.17em; left: 0; width: calc(100% / 6); height: .3em; border-radius: 1em; background: var(--ink); transition: transform .5s var(--ease); }
.uh-rows { display: grid; gap: .55em; }
.uh-row { display: grid; grid-template-columns: auto 9.4em 1fr; gap: .7em; align-items: center; padding: .65em .7em; border-radius: .8em; background: #fff; box-shadow: 0 0 0 1px #e8e9e6; }
.uh-role { overflow: hidden; font-size: .85em; white-space: nowrap; text-overflow: ellipsis; }
.uh-skills { display: flex; flex-wrap: wrap; gap: .3em; justify-content: flex-end; }
.uh-skills i { display: inline-flex; align-items: center; padding: .3em .6em; white-space: nowrap; border-radius: .45em; background: #f3f4f1; color: #a9aca9; font-size: .72em; font-style: normal; transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--spring); }
.uh-skills i.is-on { color: var(--ink); transform: scale(1.04); }
.uh-b.is-still .uh-skills i.is-on { transform: none; }
/* Each learned topic takes that person's colour, from --tint on the row */
.uh-skills i.is-on { background: var(--tint); }
.uh-b .uh-graph { flex: 1; display: flex; flex-direction: column; }
.uh-b .uh-graph svg { flex: 1; min-height: 4.2em; }
.uh-graph { position: relative; padding: .7em .8em .5em; border-radius: .8em; background: #fff; box-shadow: 0 0 0 1px #e8e9e6; }
.uh-graph small { color: var(--muted); font-size: .78em; }
.uh-graph svg { display: block; width: 100%; height: 4.2em; margin-top: .3em; overflow: visible; }
.uh-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease); }
.uh-area { fill: rgba(25, 26, 27, .07); clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease); }
.uh-graph-head { display: flex; justify-content: space-between; align-items: baseline; }
.uh-pct { font-size: 1.3em; font-weight: 500; font-variant-numeric: tabular-nums; }
.uh-toast { position: absolute; top: 3.6em; right: 1em; display: flex; align-items: center; gap: .55em; padding: .45em .8em .45em .45em; border-radius: 2em; background: var(--ink); color: #fff; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .5); font-size: .85em; opacity: 0; pointer-events: none; }
.uh-toast-face { flex: none; width: 1.9em; height: 1.9em; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.uh-toast-face svg { display: block; width: 100%; height: 100%; }
.uh-toast.is-on { animation: up-toast 1.1s var(--ease) both; }
.uh-row.is-new { animation: up-row .7s var(--ease); }
@keyframes up-row { 0% { box-shadow: 0 0 0 1px #e8e9e6; } 25% { box-shadow: 0 0 0 1.5px var(--ink), 0 .6em 1.4em -.8em rgba(30, 34, 32, .35); } 100% { box-shadow: 0 0 0 1px #e8e9e6; } }
.uh-b.is-reset *, .uh-b.is-still * { transition: none !important; }
@keyframes up-toast { 0% { opacity: 0; transform: translateY(-.5em); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

