/* Scene 4 — "Went well / Needs attention" (event agencies, 440x440 @60fps, loops at 670f = 11.17s)
   Story: theme cards from many guest calls enter one by one at the bottom centre,
   pause, then sort themselves into two Linear-style columns. Column counters climb
   as cards land; the left column then re-ranks by mention count and a
   "Ranked by mentions" caption closes the loop.

   Colors: background warm gradient #FDE7E1 -> #FBD9D6 -> #F9CFE0 (red/pink accent block),
   cards rgba(255,255,255,.8) with #DFE3EB stroke, ink #2B2A34, muted #6B7280,
   check green #28d07f, amber #F2A63B, count pill #F1F3F6.

   Beats (frames): 0-20 headers in | 30/90/150/210/270 cards enter at bottom centre
   (20f), pause 24f, slide to column 30f, counter climbs 30f on landing (last lands 344)
   | 410-446 left column re-sorts (Networking <-> Venue) | 456-476 caption in
   | 630-650 fade out | hold to 670, loop.

   Frame-0 state lives in this CSS (headers, cards, caption hidden); the timeline's
   t=0 sets mirror it so every loop resets cleanly. */

.wh-scene--4 {
  position: relative;
  width: 440px;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde7e1 0%, #fbd9d6 50%, #f9cfe0 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2b2a34;
}
.wh-scene--4 *,
.wh-scene--4 *::before,
.wh-scene--4 *::after { box-sizing: border-box; margin: 0; padding: 0; }

.wh-scene--4 .wh4-wrap { position: absolute; inset: 0; }

/* ---- column headers ---- */
.wh-scene--4 .wh4-head {
  position: absolute;
  top: 28px;
  width: 196px;
  opacity: 0;
}
.wh-scene--4 .wh4-head--left  { left: 16px; }
.wh-scene--4 .wh4-head--right { left: 228px; }
.wh-scene--4 .wh4-head__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: #2b2a34;
  white-space: nowrap;
}
.wh-scene--4 .wh4-ico { width: 14px; height: 14px; flex: none; display: block; }
.wh-scene--4 .wh4-head__count {
  margin-top: 3px;
  padding-left: 20px;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: #6b7280;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wh-scene--4 .wh4-num { font-weight: 600; color: #2b2a34; }

/* ---- theme cards (positioned entirely via GSAP x/y) ---- */
.wh-scene--4 .wh4-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 196px;
  height: 64px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  opacity: 0;
  will-change: transform, opacity;
}
.wh-scene--4 .wh4-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 18px;
}
.wh-scene--4 .wh4-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: #2b2a34;
  white-space: nowrap;
}
.wh-scene--4 .wh4-card__n {
  flex: none;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f3f6;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  color: #2b2a34;
  font-variant-numeric: tabular-nums;
}
.wh-scene--4 .wh4-card__quote {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- closing caption ---- */
.wh-scene--4 .wh4-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 394px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #6b7280;
  white-space: nowrap;
  opacity: 0;
}
.wh-scene--4 .wh4-caption__ico { width: 12px; height: 12px; flex: none; display: block; }
