/* ==========================================================
   Persona board (Case 03 Artifact 1, Ingredient Swap)
   Condensed: a narrow profile card on the left (square photo, name,
   role) and three horizontal cards on the right (goals, frustrations,
   tech comfort). Each card is a short row: title block on the left,
   bullets across, so the whole board stays compact.
   Same card style as the RCC persona board: white rounded cards,
   soft shadow, icon chip and heading per card.
   Type: homepage stack (Yeseva One headings, Josefin Sans body).
   Colours: planbee palette from getplanbee.app.
   Motion: scroll-in (persona-board.js). Reduced motion: none.
   ========================================================== */
.pb {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  grid-template-areas:
    "profile goals"
    "profile friction"
    "profile tech";
  gap: .6rem;
  font-family: var(--sans);
  color: var(--text);
}
.pb__card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 20px -16px rgba(44, 59, 68, .3);
  overflow: hidden;
}
.pb__card--profile {
  grid-area: profile;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.pb__card--goals { grid-area: goals; }
.pb__card--friction { grid-area: friction; }
.pb__card--tech { grid-area: tech; }

.pb__card--profile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--surface-2);
}
.pb__id { padding: .6rem .75rem .75rem; display: grid; gap: .15rem; }
.pb__eyebrow { margin: 0; font-size: .6rem; color: var(--muted); }
.pb__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--text);
}
.pb__role { margin: 0; font-size: .8rem; color: var(--muted); }

/* Horizontal cards: title block | bullets across */
.pb__card--goals,
.pb__card--friction,
.pb__card--tech {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: stretch;
}
.pb__head {
  display: grid;
  align-content: center;
  gap: .3rem;
  padding: .7rem .8rem;
  background: var(--chip, #17BEBB);
}
.pb__card--friction .pb__head { background: #FBD3C4; }
.pb__card--tech .pb__head { background: #FFC914; }
.pb__chip {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
}
.pb__chip svg { width: .9rem; height: .9rem; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pb__card h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--text);
}
.pb__sub { margin: 0; font-size: .75rem; color: var(--text); }

.pb__card--goals { --chip: #17BEBB; --mk: #17BEBB; }
.pb__card--friction { --mk: #E4572E; }
.pb__card--tech { --mk: #FFC914; }

.pb__list {
  list-style: none;
  margin: 0;
  padding: .65rem .9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem .9rem;
  align-content: center;
}
.pb__list li {
  position: relative;
  padding-left: .85rem;
  font-size: .8125rem;
  line-height: 1.38;
  color: var(--text);
}
.pb__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: var(--mk);
}
.pb__list strong { display: block; font-weight: 600; }

/* Tablet: narrower profile, bullets in two columns */
@media (max-width: 64rem) {
  .pb { grid-template-columns: 9rem minmax(0, 1fr); }
  .pb__card--goals,
  .pb__card--friction,
  .pb__card--tech { grid-template-columns: 1fr; }
  .pb__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone: single column; profile photo as a short banner */
@media (max-width: 40rem) {
  .pb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "profile" "goals" "friction" "tech"; }
  .pb__card--profile img { aspect-ratio: 4 / 3; }
  .pb__list { grid-template-columns: minmax(0, 1fr); }
}

/* Motion: scroll-in (persona-board.js adds .is-anim, then .is-in) */
.pb.is-anim .pb__card { opacity: 0; transform: translateY(12px); }
.pb.is-anim.is-in .pb__card {
  opacity: 1; transform: none;
  transition:
    opacity .7s ease calc(var(--i, 0) * .14s + .1s),
    transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .14s + .1s);
}
.pb.is-anim .pb__list li { opacity: 0; transform: translateY(4px); }
.pb.is-anim.is-in .pb__list li {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * .14s + .35s + var(--j, 0) * .08s);
}
.pb.is-anim.is-in .pb__list li:nth-child(1) { --j: 0; }
.pb.is-anim.is-in .pb__list li:nth-child(2) { --j: 1; }
.pb.is-anim.is-in .pb__list li:nth-child(3) { --j: 2; }

@media (prefers-reduced-motion: reduce) {
  .pb.is-anim .pb__card,
  .pb.is-anim .pb__list li { opacity: 1; transform: none; transition: none; }
}
