/* ════════════════════════════════════════════════════════════════════════════
   podlook-anim.css — Podlook landing animations + the "working" loop icon.

   Three pieces, all CSS-only (podlook-anim.js is optional and only pauses the
   feature animations while they are off screen):

   1. .pl-working        The loop from the wordmark with a segment running
                         round it. For uploads and AI work. Its rules are in
                         brand.css; see "Working icon" below.
   2. .pl-anim-comment   Feature animation: a reviewer selects words in the
                         transcript and the comment lands on that moment.
   3. .pl-anim-clips     Feature animation: clips are suggested, then signed
                         off one by one with a name and a time against each.

   Markup for each lives in podlook-anim-preview.html, between the
   "COPY FROM HERE / TO HERE" comments.

   Colours come from the Podlook palette vars (--pl-plum and friends), so a
   Brand Studio palette change carries through. The hex fallbacks are the
   5 Oct 2026 palette, for pages that don't load brand.css (the working icon
   is the exception: it needs brand.css).

   Sizing: each feature animation is drawn on a 40 em wide stage (25 em tall for the comment one, 22.5 for the clips) whose em is
   2.5% of the card's width, so the whole thing scales with its container and
   never reflows. Don't put rem or px inside a stage.

   prefers-reduced-motion: the feature animations hold on their finished
   frame; the working icon swaps the running segment for a slow fade.
   ════════════════════════════════════════════════════════════════════════════ */


/* ── 1. Working icon ──────────────────────────────────────────────────────────
   The rules for .pl-working live in brand.css ("Working icon"), because the
   app pages use the icon too and should not download this file to get it.
   Every page that loads this stylesheet loads brand.css first. The clips
   animation below (part 3) overrides the icon's animation by name, so the
   pl-working-run and pl-working-breathe-ai keyframes there must keep their
   names. */


/* ── Feature animations: shared frame ─────────────────────────────────────── */
.pl-anim {
  --a-paper:  var(--pl-paper, #eef1f2);
  --a-light:  var(--pl-paper-light, #f8fafa);
  --a-edge:   var(--pl-paper-edge, #ccd4d6);
  --a-ink:    var(--pl-ink, #1d2a2e);
  --a-ink-2:  var(--pl-ink-2, #48585d);
  --a-ink-3:  var(--pl-ink-3, #84929a);
  --a-plum:   var(--pl-plum, #b85a45);
  --a-clay:   var(--pl-clay, #b3541e);
  --a-steel:  var(--pl-steel, #0f6d6a);
  --a-card:   var(--pl-card, #10181c);

  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--a-edge);
  background: var(--a-light);
  box-shadow: 0 18px 50px rgba(29, 42, 46, 0.14);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--a-ink);
  text-align: left;
  user-select: none;
}
.pl-anim-stage {
  position: absolute;
  inset: 0;
  font-size: 2.5cqw;          /* 1em = 1/40 of the card's width */
  line-height: 1.3;
  animation: pl-anim-loop var(--d) linear infinite both;
}
.pl-anim-stage * { box-sizing: border-box; margin: 0; }
.pl-anim-stage *, .pl-anim-stage *::before, .pl-anim-stage *::after {
  animation-duration: var(--d);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}
/* Each loop fades up, plays, holds, and fades out; everything resets while
   the stage is invisible. */
@keyframes pl-anim-loop {
  0% { opacity: 0; }  3% { opacity: 1; }  94% { opacity: 1; }  98%, 100% { opacity: 0; }
}

/* Off screen (podlook-anim.js adds .pl-anim-js to <html> and .is-live to the
   ones in view): pause, so nothing runs for nobody. */
.pl-anim-js .pl-anim:not(.is-live) .pl-anim-stage,
.pl-anim-js .pl-anim:not(.is-live) .pl-anim-stage *,
.pl-anim-js .pl-anim:not(.is-live) .pl-anim-stage *::before,
.pl-anim-js .pl-anim:not(.is-live) .pl-anim-stage *::after { animation-play-state: paused; }

/* Reduced motion: hold on the finished frame (85% of the way through). */
@media (prefers-reduced-motion: reduce) {
  .pl-anim .pl-anim-stage,
  .pl-anim .pl-anim-stage *,
  .pl-anim .pl-anim-stage *::before,
  .pl-anim .pl-anim-stage *::after {
    animation-delay: calc(var(--d) * -0.85);
    animation-play-state: paused;
  }
  .pl-anim .pl-anim-cursor { display: none; }
}

/* The reviewer's pointer. */
.pl-anim-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 1.5em; height: 1.5em;
  z-index: 5;
  transform-origin: 20% 10%;
  filter: drop-shadow(0 0.1em 0.2em rgba(0, 0, 0, 0.3));
}
.pl-anim-cursor path { fill: var(--a-ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }


/* ── 2. Comment lands on the moment ───────────────────────────────────────── */
.pl-anim-comment { --d: 11s; }

.pl-ac-tabs {
  position: absolute; left: 2.44em; top: 1.35em;
  display: flex; gap: 1.5em; align-items: center;
  font-size: 0.82em; color: var(--a-ink-3); font-weight: 500;
}
.pl-ac-tabs .is-on { color: var(--a-ink); font-weight: 700; }
.pl-ac-count {
  display: inline-block; min-width: 1.5em; margin-left: 0.35em; padding: 0 0.4em;
  border-radius: 1em; background: var(--a-plum); color: #fff;
  font-size: 0.85em; font-weight: 700; text-align: center;
  animation-name: pl-ac-count;
}
.pl-ac-rule { position: absolute; left: 0; right: 0; top: 3.3em; height: 1px; background: var(--a-edge); opacity: 0.7; }

.pl-ac-transcript {
  position: absolute; left: 2.1em; top: 4.5em; width: 24.6em;
  display: grid; grid-template-columns: 3em 1fr; row-gap: 0.9em;
  font-size: 0.95em; line-height: 1.7;
}
.pl-ac-ts { font-size: 0.78em; color: var(--a-ink-3); line-height: 2.07; font-variant-numeric: tabular-nums; }
.pl-ac-para span { display: block; white-space: nowrap; }
.pl-ac-hl {
  display: inline !important;
  padding: 0.18em 0;
  border-radius: 0.2em;
  background: linear-gradient(color-mix(in srgb, var(--a-plum) 20%, transparent) 0 0) no-repeat left / 0% 100%;
}
.pl-ac-hl1 { animation-name: pl-ac-hl1; }
.pl-ac-hl2 { animation-name: pl-ac-hl2; }
.pl-ac-hl3 { animation-name: pl-ac-hl3; }

.pl-ac-btn {
  position: absolute; left: 18.1em; top: 16.75em; z-index: 3;   /* own ems: the button's font is 0.8 of the stage's */
  display: flex; align-items: center; gap: 0.4em;
  padding: 0.4em 0.8em; border-radius: 0.5em;
  background: var(--a-ink); color: #fff; font-size: 0.8em; font-weight: 600;
  box-shadow: 0 0.3em 0.9em rgba(29, 42, 46, 0.28);
  transform-origin: 30% 0%;
  animation-name: pl-ac-btn;
}
.pl-ac-btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pl-ac-link { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-ac-link path {
  fill: none; stroke: var(--a-plum); stroke-width: 0.9; opacity: 0.55;
  stroke-dasharray: 1; animation-name: pl-ac-link;
}

.pl-ac-card {
  position: absolute; left: 27.6em; top: 7.6em; width: 10.9em;
  padding: 0.8em 0.85em 0.75em;
  background: #fff; border: 1px solid var(--a-edge); border-radius: 0.6em;
  box-shadow: 0 0.4em 1.2em rgba(29, 42, 46, 0.08);
  animation-name: pl-ac-card;
}
.pl-ac-who { font-size: 0.8em; font-weight: 700; }
.pl-ac-role { font-size: 0.68em; color: var(--a-ink-3); margin-bottom: 0.55em; }
.pl-ac-line { display: block; font-size: 0.78em; line-height: 1.5; color: var(--a-ink-2); white-space: nowrap; }
.pl-ac-line1 { animation-name: pl-ac-line1; }
.pl-ac-line2 { animation-name: pl-ac-line2; }
.pl-ac-line3 { animation-name: pl-ac-line3; }
.pl-ac-foot { margin-top: 0.6em; font-size: 0.72em; font-weight: 600; color: var(--a-plum); display: flex; gap: 0.9em; animation-name: pl-ac-foot; }

.pl-ac-bar { position: absolute; left: 2em; right: 2em; top: 21.9em; height: 0.34em; border-radius: 1em; background: var(--a-edge); }
.pl-ac-bar-played { position: absolute; left: 0; top: 0; bottom: 0; width: 28.4%; border-radius: 1em; background: var(--a-plum); }
.pl-ac-time { position: absolute; right: 2.94em; top: 33.4em; font-size: 0.68em; color: var(--a-ink-3); font-variant-numeric: tabular-nums; }
.pl-ac-pin {
  position: absolute; left: 28.4%; top: 50%;
  width: 0.8em; height: 0.8em; margin: -0.4em 0 0 -0.4em;
  background: var(--a-clay); border: 0.12em solid var(--a-light); border-radius: 0.14em;
  rotate: 45deg;
  animation-name: pl-ac-pin;
}
.pl-ac-pin::after {
  content: ''; position: absolute; inset: -0.12em; border-radius: 0.14em;
  border: 0.12em solid var(--a-clay);
  animation-name: pl-ac-ping;
}
.pl-ac-chip {
  position: absolute; left: 28.4%; top: -2.2em; translate: -50% 0;
  padding: 0.12em 0.5em; border-radius: 0.4em;
  background: var(--a-clay); color: #fff; font-size: 0.68em; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  animation-name: pl-ac-chip;
}

.pl-anim-comment .pl-anim-cursor { animation-name: pl-ac-cursor; }

@keyframes pl-ac-cursor {
  0%, 4%  { opacity: 0; translate: 10em 18em; scale: 1; }
  7%      { opacity: 1; }
  11%     { translate: 4.5em 8.9em; }                 /* press at the start of the passage */
  18%     { translate: 4.5em 12.1em; animation-timing-function: linear; }   /* drag down two lines… */
  30%     { translate: 18.6em 12.1em; }               /* …and along the third */
  35%     { translate: 16.6em 13.9em; scale: 1; }     /* over to the Comment button */
  37%     { scale: 0.84; }
  39%     { scale: 1; }
  44%     { opacity: 1; translate: 16.6em 13.9em; }
  48%, 100% { opacity: 0; translate: 21em 18em; }
}
@keyframes pl-ac-hl1 { 0%, 12.5% { background-size: 0% 100%; } 14.5%, 100% { background-size: 100% 100%; } }
@keyframes pl-ac-hl2 { 0%, 15.5% { background-size: 0% 100%; } 18%, 100% { background-size: 100% 100%; } }
@keyframes pl-ac-hl3 { 0%, 18% { background-size: 0% 100%; animation-timing-function: linear; } 30%, 100% { background-size: 100% 100%; } }
@keyframes pl-ac-btn {
  0%, 30.5% { opacity: 0; scale: 0.7; }
  33%       { opacity: 1; scale: 1; }
  37%       { scale: 0.94; }
  39%       { opacity: 1; scale: 1; }
  42%, 100% { opacity: 0; scale: 0.9; }
}
@keyframes pl-ac-link { 0%, 44% { stroke-dashoffset: 1; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-ac-card {
  0%, 41%   { opacity: 0; translate: 1em 0; }
  47%, 100% { opacity: 1; translate: 0 0; }
}
@keyframes pl-ac-line1 { 0%, 49% { clip-path: inset(0 100% 0 0); } 54%, 100% { clip-path: inset(0 -1% 0 0); } }
@keyframes pl-ac-line2 { 0%, 54% { clip-path: inset(0 100% 0 0); } 59.5%, 100% { clip-path: inset(0 -1% 0 0); } }
@keyframes pl-ac-line3 { 0%, 59.5% { clip-path: inset(0 100% 0 0); } 64%, 100% { clip-path: inset(0 -1% 0 0); } }
@keyframes pl-ac-foot  { 0%, 65% { opacity: 0; } 68%, 100% { opacity: 1; } }
@keyframes pl-ac-pin {
  0%, 68%   { opacity: 0; translate: 0 -1.2em; }
  72%       { opacity: 1; translate: 0 0.12em; }
  74%, 100% { opacity: 1; translate: 0 0; }
}
@keyframes pl-ac-ping {
  0%, 72%   { opacity: 0; scale: 1; }
  73%       { opacity: 0.8; scale: 1; }
  80%, 100% { opacity: 0; scale: 2.6; }
}
@keyframes pl-ac-chip {
  0%, 71%   { opacity: 0; translate: -50% 0.4em; }
  75%, 100% { opacity: 1; translate: -50% 0; }
}
@keyframes pl-ac-count {
  0%, 68%   { opacity: 0; scale: 0.4; }
  71%       { opacity: 1; scale: 1.2; }
  73%, 100% { opacity: 1; scale: 1; }
}


/* ── 3. Suggested, then signed off clip by clip ───────────────────────────── */
.pl-anim-clips { --d: 14s; aspect-ratio: 16 / 9; }   /* a 40 x 22.5 em stage */

.pl-cl-head { position: absolute; left: 2.5em; right: 2.5em; top: 1.25em; height: 2em; display: flex; align-items: center; }
.pl-cl-head .pl-working { width: 2.3em; flex: none; }
.pl-cl-head .pl-working-run {
  animation:
    pl-working-run 2.2s linear infinite,
    pl-working-breathe-ai 2.2s ease-in-out infinite,
    pl-cl-run-out var(--d) linear infinite both;
}
.pl-cl-head .pl-working-track { animation-name: pl-cl-track; }
.pl-cl-status { position: relative; flex: 1; height: 100%; margin-left: 0.75em; font-size: 0.95em; font-weight: 600; }
.pl-cl-status span { position: absolute; left: 0; top: 50%; translate: 0 -50%; white-space: nowrap; }
.pl-cl-status-a { color: var(--a-ink-2); animation-name: pl-cl-status-a; }
.pl-cl-status-b { animation-name: pl-cl-status-b; }
.pl-cl-tally {
  position: relative; flex: none; width: 9.6em; height: 1.9em;
  border-radius: 1em; font-size: 0.78em; font-weight: 700;
  animation-name: pl-cl-tally;
}
.pl-cl-tally span { position: absolute; inset: 0; display: grid; place-items: center; }
.pl-cl-t0 { animation-name: pl-cl-t0; }
.pl-cl-t1 { animation-name: pl-cl-t1; }
.pl-cl-t2 { animation-name: pl-cl-t2; }
.pl-cl-t3 { animation-name: pl-cl-t3; }

.pl-cl-row { position: absolute; left: 2.5em; right: 2.5em; top: 4.9em; bottom: 2.2em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.pl-cl-card {
  position: relative;
  border: 0.1em solid var(--a-edge); border-radius: 0.7em; background: #fff;
  padding: 0.6em;
}
.pl-cl-card:nth-child(1) { animation-name: pl-cl-card1; }
.pl-cl-card:nth-child(2) { animation-name: pl-cl-card2; }
.pl-cl-card:nth-child(3) { animation-name: pl-cl-card3; }

/* Placeholder shown while the clips are being found. */
.pl-cl-skel { position: absolute; inset: 0.6em; }
.pl-cl-skel i {
  display: block; border-radius: 0.35em; margin-bottom: 0.7em;
  background: linear-gradient(100deg, var(--a-paper) 30%, #fff 50%, var(--a-paper) 70%) 0 0 / 300% 100%;
  animation: pl-cl-shimmer 1.4s linear infinite !important;
}
.pl-cl-skel i:nth-child(1) { aspect-ratio: 16 / 9; border-radius: 0.45em; }
.pl-cl-skel i:nth-child(2) { height: 0.9em; width: 78%; }
.pl-cl-skel i:nth-child(3) { height: 0.7em; width: 50%; }
.pl-cl-card:nth-child(1) .pl-cl-skel { animation-name: pl-cl-skel1; }
.pl-cl-card:nth-child(2) .pl-cl-skel { animation-name: pl-cl-skel2; }
.pl-cl-card:nth-child(3) .pl-cl-skel { animation-name: pl-cl-skel3; }
@keyframes pl-cl-shimmer { to { background-position: -300% 0; } }

.pl-cl-body { height: 100%; display: flex; flex-direction: column; }
.pl-cl-card:nth-child(1) .pl-cl-body { animation-name: pl-cl-body1; }
.pl-cl-card:nth-child(2) .pl-cl-body { animation-name: pl-cl-body2; }
.pl-cl-card:nth-child(3) .pl-cl-body { animation-name: pl-cl-body3; }

.pl-cl-thumb {
  position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: 0.45em; overflow: hidden;
  background: var(--a-card);
}
.pl-cl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The clip's waveform under its frame, part played. */
.pl-cl-wave { position: relative; flex: none; height: 1.5em; margin-top: 0.5em; }
.pl-cl-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--a-edge); }
.pl-cl-wave svg.pl-cl-wave-on { fill: var(--a-plum); }
.pl-cl-card:nth-child(1) .pl-cl-wave-on { clip-path: inset(0 62% 0 0); }
.pl-cl-card:nth-child(2) .pl-cl-wave-on { clip-path: inset(0 30% 0 0); }
.pl-cl-card:nth-child(3) .pl-cl-wave-on { clip-path: inset(0 78% 0 0); }
.pl-cl-ai {
  position: absolute; left: 0.5em; top: 0.5em;
  padding: 0.05em 0.45em; border-radius: 0.3em;
  background: var(--a-plum); color: #fff; font-size: 0.62em; font-weight: 700; letter-spacing: 0.04em;
}
.pl-cl-len {
  position: absolute; right: 0.5em; bottom: 0.45em;
  padding: 0.05em 0.4em; border-radius: 0.3em;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.62em; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pl-cl-title { margin-top: 0.65em; font-size: 0.84em; font-weight: 700; line-height: 1.25; }
.pl-cl-meta  { margin-top: 0.2em; font-size: 0.7em; color: var(--a-ink-3); font-variant-numeric: tabular-nums; }

.pl-cl-action { position: relative; margin-top: auto; height: 3.3em; }
.pl-cl-approve {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em;
  display: grid; place-items: center; border-radius: 0.45em;
  background: var(--a-plum); color: #fff; font-size: 0.84em; font-weight: 700;
}
.pl-cl-done { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 0.55em; align-items: center; }
.pl-cl-tick { width: 1.9em; height: 1.9em; flex: none; border-radius: 50%; background: var(--a-steel); }
.pl-cl-tick path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.pl-cl-done b    { display: block; font-size: 0.84em; font-weight: 700; color: var(--a-steel); line-height: 1.2; }
.pl-cl-done span { display: block; font-size: 0.66em; color: var(--a-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-cl-card:nth-child(1) .pl-cl-approve { animation-name: pl-cl-approve1; }
.pl-cl-card:nth-child(2) .pl-cl-approve { animation-name: pl-cl-approve2; }
.pl-cl-card:nth-child(3) .pl-cl-approve { animation-name: pl-cl-approve3; }
.pl-cl-card:nth-child(1) .pl-cl-done { animation-name: pl-cl-done1; }
.pl-cl-card:nth-child(2) .pl-cl-done { animation-name: pl-cl-done2; }
.pl-cl-card:nth-child(3) .pl-cl-done { animation-name: pl-cl-done3; }
.pl-cl-card:nth-child(1) .pl-cl-tick path { animation-name: pl-cl-tick1; }
.pl-cl-card:nth-child(2) .pl-cl-tick path { animation-name: pl-cl-tick2; }
.pl-cl-card:nth-child(3) .pl-cl-tick path { animation-name: pl-cl-tick3; }

.pl-anim-clips .pl-anim-cursor { animation-name: pl-cl-cursor; }

/* Finding the clips: 0 to 22%. */
@keyframes pl-cl-run-out  { 0%, 20% { opacity: 1; } 23%, 100% { opacity: 0; } }
@keyframes pl-cl-track    { 0%, 21% { opacity: 0.18; } 25%, 100% { opacity: 1; } }
@keyframes pl-cl-status-a { 0%, 20% { opacity: 1; translate: 0 -50%; } 22.5%, 100% { opacity: 0; translate: 0 -110%; } }
@keyframes pl-cl-status-b { 0%, 22% { opacity: 0; translate: 0 10%; } 25%, 100% { opacity: 1; translate: 0 -50%; } }
@keyframes pl-cl-skel1 { 0%, 21% { opacity: 1; } 23.5%, 100% { opacity: 0; } }
@keyframes pl-cl-skel2 { 0%, 24% { opacity: 1; } 26.5%, 100% { opacity: 0; } }
@keyframes pl-cl-skel3 { 0%, 27% { opacity: 1; } 29.5%, 100% { opacity: 0; } }
@keyframes pl-cl-body1 { 0%, 22% { opacity: 0; translate: 0 0.7em; } 26%, 100% { opacity: 1; translate: 0 0; } }
@keyframes pl-cl-body2 { 0%, 25% { opacity: 0; translate: 0 0.7em; } 29%, 100% { opacity: 1; translate: 0 0; } }
@keyframes pl-cl-body3 { 0%, 28% { opacity: 0; translate: 0 0.7em; } 32%, 100% { opacity: 1; translate: 0 0; } }

/* Signing them off: clicks land at 43%, 54% and 65%. */
@keyframes pl-cl-cursor {
  0%, 33%   { opacity: 0; translate: 21em 22.5em; scale: 1; }
  36%       { opacity: 1; }
  41%       { translate: 8.2em 18.4em; scale: 1; }
  42.5%     { scale: 0.84; }
  44%       { translate: 8.2em 18.4em; scale: 1; }
  52%       { translate: 20em 18.4em; scale: 1; }
  53.5%     { scale: 0.84; }
  55%       { translate: 20em 18.4em; scale: 1; }
  63%       { translate: 31.8em 18.4em; scale: 1; }
  64.5%     { scale: 0.84; }
  66%       { translate: 31.8em 18.4em; scale: 1; }
  69%       { opacity: 1; }
  73%, 100% { opacity: 0; translate: 35em 22em; }
}
@keyframes pl-cl-approve1 { 0%, 42% { opacity: 1; scale: 1; } 43% { opacity: 1; scale: 0.96; } 44.5%, 100% { opacity: 0; scale: 0.96; } }
@keyframes pl-cl-approve2 { 0%, 53% { opacity: 1; scale: 1; } 54% { opacity: 1; scale: 0.96; } 55.5%, 100% { opacity: 0; scale: 0.96; } }
@keyframes pl-cl-approve3 { 0%, 64% { opacity: 1; scale: 1; } 65% { opacity: 1; scale: 0.96; } 66.5%, 100% { opacity: 0; scale: 0.96; } }
@keyframes pl-cl-done1 { 0%, 43.5% { opacity: 0; translate: 0 0.4em; } 46%, 100% { opacity: 1; translate: 0 0; } }
@keyframes pl-cl-done2 { 0%, 54.5% { opacity: 0; translate: 0 0.4em; } 57%, 100% { opacity: 1; translate: 0 0; } }
@keyframes pl-cl-done3 { 0%, 65.5% { opacity: 0; translate: 0 0.4em; } 68%, 100% { opacity: 1; translate: 0 0; } }
@keyframes pl-cl-tick1 { 0%, 45% { stroke-dashoffset: 1; } 48.5%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-cl-tick2 { 0%, 56% { stroke-dashoffset: 1; } 59.5%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-cl-tick3 { 0%, 67% { stroke-dashoffset: 1; } 70.5%, 100% { stroke-dashoffset: 0; } }
@keyframes pl-cl-card1 { 0%, 43.5% { border-color: var(--a-edge); } 46%, 100% { border-color: var(--a-steel); } }
@keyframes pl-cl-card2 { 0%, 54.5% { border-color: var(--a-edge); } 57%, 100% { border-color: var(--a-steel); } }
@keyframes pl-cl-card3 { 0%, 65.5% { border-color: var(--a-edge); } 68%, 100% { border-color: var(--a-steel); } }

@keyframes pl-cl-tally {
  0%, 26%   { opacity: 0; background: var(--a-paper); color: var(--a-ink-2); }
  29%, 66%  { opacity: 1; background: var(--a-paper); color: var(--a-ink-2); }
  69%, 100% { opacity: 1; background: var(--a-steel); color: #fff; }
}
@keyframes pl-cl-t0 { 0%, 43.5% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes pl-cl-t1 { 0%, 43.5% { opacity: 0; } 45%, 54.5% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes pl-cl-t2 { 0%, 54.5% { opacity: 0; } 56%, 65.5% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes pl-cl-t3 { 0%, 65.5% { opacity: 0; } 67%, 100% { opacity: 1; } }


/* ── Hero demo: the whole review in one loop ──────────────────────────────────
   Sits beside the landing headline (Pete's redesign, Nov 2026). The episode
   plays beside its transcript, a reviewer highlights a passage and comments
   on it, the three clips are approved one at a time, and the episode is
   marked as signed off. A 40 x 21.6 em stage; no pointer, it is an overview.
   The finished frame is reached by 85%, which is where reduced motion holds. */
.pl-anim-hero { --d: 13s; aspect-ratio: 40 / 21.6; max-width: 44rem; background: #fff; }

.pl-hd-brand { position: absolute; left: 1.7em; top: 1.35em; width: auto; height: 1.2em; }
.pl-hd-icons { position: absolute; right: 1.7em; top: 1.15em; display: flex; gap: 0.45em; }
.pl-hd-icons i {
  display: grid; place-items: center;
  width: 2.2em; height: 2.2em; border-radius: 50%;
  border: 1px solid var(--a-edge); color: var(--a-ink-2);
  font-style: normal; font-size: 0.7em; font-weight: 600; line-height: 1;
}
.pl-hd-icons svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pl-hd-title { position: absolute; left: 1.7em; top: 3.95em; font-size: 0.95em; font-weight: 700; white-space: nowrap; }
.pl-hd-signed {
  position: absolute; right: 2.3em; top: 5.25em;
  display: flex; align-items: center; gap: 0.3em;
  padding: 0.22em 0.75em 0.22em 0.5em; border-radius: 1em;
  background: var(--a-steel); color: #fff;
  font-size: 0.72em; font-weight: 700; white-space: nowrap;
  animation-name: pl-hd-signed;
}
.pl-hd-signed svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.pl-hd-tabs {
  position: absolute; left: 2.3em; top: 7.6em;   /* own ems: the tabs' font is 0.74 of the stage's */
  display: flex; gap: 0.2em; padding: 0.22em;
  border-radius: 0.6em; background: var(--a-paper);
  font-size: 0.74em; font-weight: 500; color: var(--a-ink-2);
}
.pl-hd-tabs > span { padding: 0.28em 0.8em; border-radius: 0.45em; white-space: nowrap; }
.pl-hd-tabs .is-on { background: #fff; color: var(--a-ink); font-weight: 700; box-shadow: 0 0.05em 0.25em rgba(29, 42, 46, 0.12); }
.pl-hd-count {
  display: inline-block; min-width: 1.5em; margin-left: 0.4em; padding: 0 0.4em;
  border-radius: 1em; background: var(--a-plum); color: #fff;
  font-size: 0.85em; font-weight: 700; text-align: center;
  animation-name: pl-hd-count;
}

.pl-hd-tx {
  position: absolute; left: 2.2em; top: 10.9em; width: 27em;   /* own ems again: font is 0.77 */
  display: grid; grid-template-columns: 3em 1fr; row-gap: 0.95em;
  font-size: 0.77em; line-height: 1.62; color: var(--a-ink-2);
}
.pl-hd-ts { font-size: 0.85em; color: var(--a-ink-3); line-height: 1.9; font-variant-numeric: tabular-nums; }
.pl-hd-para > span { display: block; white-space: nowrap; }
.pl-hd-p1 { animation-name: pl-hd-p1; }
.pl-hd-p2 { animation-name: pl-hd-p2; }
.pl-hd-hl {
  padding: 0.16em 0;
  border-radius: 0.2em;
  background: linear-gradient(color-mix(in srgb, var(--a-plum) 20%, transparent) 0 0) no-repeat left / 0% 100%;
}
.pl-hd-hl1 { animation-name: pl-hd-hl1; }
.pl-hd-hl2 { animation-name: pl-hd-hl2; }
.pl-hd-hl3 { animation-name: pl-hd-hl3; }

.pl-hd-note {
  position: absolute; left: 4.4em; top: 15.75em; width: 16.6em; z-index: 3;
  padding: 0.6em 0.8em 0.65em;
  background: #fff; border: 1px solid var(--a-edge); border-radius: 0.6em;
  box-shadow: 0 0.5em 1.5em rgba(29, 42, 46, 0.16);
  animation-name: pl-hd-note;
}
.pl-hd-note-who { font-size: 0.72em; font-weight: 700; }
.pl-hd-note-who span { font-weight: 500; color: var(--a-ink-3); }
.pl-hd-note-text { margin-top: 0.15em; font-size: 0.74em; line-height: 1.4; color: var(--a-ink-2); white-space: nowrap; }

.pl-hd-side { position: absolute; left: 23.7em; top: 5.6em; width: 14.6em; }
.pl-hd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 0.55em; overflow: hidden; background: var(--a-card); }
.pl-hd-video img, .pl-hd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-hd-video::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); }
.pl-hd-play { position: absolute; left: 0.6em; bottom: 1.05em; z-index: 1; width: 0.95em; height: 0.95em; fill: #fff; }
.pl-hd-vbar { position: absolute; left: 0.7em; right: 0.7em; bottom: 0.6em; z-index: 1; height: 0.22em; border-radius: 1em; background: rgba(255, 255, 255, 0.38); }
.pl-hd-vplayed { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1em; background: var(--a-plum); animation-name: pl-hd-played; animation-timing-function: linear; }
.pl-hd-vpin {
  position: absolute; left: 28.4%; top: 50%;
  width: 0.56em; height: 0.56em; margin: -0.28em 0 0 -0.28em;
  background: var(--a-clay); border: 0.09em solid #fff; border-radius: 0.1em;
  rotate: 45deg;
  animation-name: pl-hd-pin;
}

.pl-hd-clips-head { display: flex; align-items: center; justify-content: space-between; margin-top: 0.95em; }
.pl-hd-clips-label { font-size: 0.78em; font-weight: 700; }
.pl-hd-clips-label b {
  display: inline-block; min-width: 1.6em; margin-left: 0.45em; padding: 0 0.4em;
  border-radius: 1em; background: var(--a-paper); color: var(--a-ink-2);
  font-size: 0.85em; font-weight: 600; text-align: center;
}
.pl-hd-tally { position: relative; width: 9em; height: 1.3em; font-size: 0.66em; font-weight: 600; color: var(--a-ink-3); }
.pl-hd-tally span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.pl-hd-t0 { animation-name: pl-hd-t0; }
.pl-hd-t1 { animation-name: pl-hd-t1; }
.pl-hd-t2 { animation-name: pl-hd-t2; }
.pl-hd-t3 { animation-name: pl-hd-t3; color: var(--a-steel); }

.pl-hd-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55em; margin-top: 0.5em; }
.pl-hd-clip { position: relative; }
.pl-hd-thumb { aspect-ratio: 16 / 9; border-radius: 0.35em; overflow: hidden; outline: 0.12em solid transparent; outline-offset: 0.08em; }
.pl-hd-clip1 .pl-hd-thumb { animation-name: pl-hd-ring1; }
.pl-hd-clip2 .pl-hd-thumb { animation-name: pl-hd-ring2; }
.pl-hd-clip3 .pl-hd-thumb { animation-name: pl-hd-ring3; }
.pl-hd-tick {
  position: absolute; right: -0.3em; top: -0.35em;
  width: 1.25em; height: 1.25em; padding: 0.12em; border-radius: 50%;
  background: var(--a-steel); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 0 0 0.1em #fff;
}
.pl-hd-clip1 .pl-hd-tick { animation-name: pl-hd-tick1; }
.pl-hd-clip2 .pl-hd-tick { animation-name: pl-hd-tick2; }
.pl-hd-clip3 .pl-hd-tick { animation-name: pl-hd-tick3; }
.pl-hd-len { display: block; margin-top: 0.5em; font-size: 0.62em; color: var(--a-ink-3); font-variant-numeric: tabular-nums; }

@keyframes pl-hd-played { 0%, 5% { width: 21.5%; } 27%, 100% { width: 28.4%; } }
@keyframes pl-hd-p1 { 0%, 21% { color: var(--a-ink); } 25%, 100% { color: var(--a-ink-2); } }
@keyframes pl-hd-p2 { 0%, 21% { color: var(--a-ink-2); } 25%, 100% { color: var(--a-ink); } }
@keyframes pl-hd-hl1 { 0%, 30% { background-size: 0% 100%; animation-timing-function: linear; } 35%, 100% { background-size: 100% 100%; } }
@keyframes pl-hd-hl2 { 0%, 35% { background-size: 0% 100%; animation-timing-function: linear; } 40%, 100% { background-size: 100% 100%; } }
@keyframes pl-hd-hl3 { 0%, 40% { background-size: 0% 100%; animation-timing-function: linear; } 44%, 100% { background-size: 100% 100%; } }
@keyframes pl-hd-note {
  0%, 46%   { opacity: 0; translate: 0 0.6em; }
  51%, 100% { opacity: 1; translate: 0 0; }
}
@keyframes pl-hd-count {
  0%, 52%   { opacity: 0; scale: 0.4; }
  55%       { opacity: 1; scale: 1.2; }
  57%, 100% { opacity: 1; scale: 1; }
}
@keyframes pl-hd-pin {
  0%, 53%   { opacity: 0; scale: 0.3; }
  57%       { opacity: 1; scale: 1.3; }
  59%, 100% { opacity: 1; scale: 1; }
}
@keyframes pl-hd-ring1 { 0%, 61% { outline-color: transparent; } 64%, 100% { outline-color: var(--a-steel); } }
@keyframes pl-hd-ring2 { 0%, 67% { outline-color: transparent; } 70%, 100% { outline-color: var(--a-steel); } }
@keyframes pl-hd-ring3 { 0%, 73% { outline-color: transparent; } 76%, 100% { outline-color: var(--a-steel); } }
@keyframes pl-hd-tick1 { 0%, 61% { opacity: 0; scale: 0.3; } 64% { opacity: 1; scale: 1.2; } 66%, 100% { opacity: 1; scale: 1; } }
@keyframes pl-hd-tick2 { 0%, 67% { opacity: 0; scale: 0.3; } 70% { opacity: 1; scale: 1.2; } 72%, 100% { opacity: 1; scale: 1; } }
@keyframes pl-hd-tick3 { 0%, 73% { opacity: 0; scale: 0.3; } 76% { opacity: 1; scale: 1.2; } 78%, 100% { opacity: 1; scale: 1; } }
@keyframes pl-hd-t0 { 0%, 62% { opacity: 1; } 63.5%, 100% { opacity: 0; } }
@keyframes pl-hd-t1 { 0%, 62% { opacity: 0; } 63.5%, 68% { opacity: 1; } 69.5%, 100% { opacity: 0; } }
@keyframes pl-hd-t2 { 0%, 68% { opacity: 0; } 69.5%, 74% { opacity: 1; } 75.5%, 100% { opacity: 0; } }
@keyframes pl-hd-t3 { 0%, 74% { opacity: 0; } 75.5%, 100% { opacity: 1; } }
@keyframes pl-hd-signed {
  0%, 79%   { opacity: 0; scale: 0.7; }
  82%       { opacity: 1; scale: 1.08; }
  84%, 100% { opacity: 1; scale: 1; }
}
