/* Digital PR story card (hero of /digital-pr-services/, partial partials/stories/pr.html). Nov 13 2026.
   News clippings land on a stack one after another; the older ones step back (up, smaller, veiled) so their mastheads
   stay readable; the links counter rolls and its bar passes the campaign minimum; the "every link in your report" chip
   lands; the stack is filed away and the loop restarts. One 12 s loop, transform and opacity only.
   Timeline (% of the loop): landings at 1, 19, 37, 55 (each 5.5 % long), finished stack held to 87 %,
   filed away by 92 %. The base rules below ARE the finished state, so reduced motion (and any browser that skips
   the animations) shows Forbes on top, the NYT, Yahoo and Business Insider mastheads behind it and 10+ links.
   Sizes in em: 11px on the desktop hero (card 262px, zoomed), 14px in the phone/tablet copy (.rs-zenith__mcard). */
@layer components {
  .rs-story--pr { --pk: 1.36em; --nh: 8.2em; --pur: #7C3AED; --pur-d: #5B21B6; --ink: #0B1220; --mut: #667085;
    display: grid; gap: .5em; height: auto; padding: .55em; overflow: visible; line-height: 1.2; color: var(--ink); }
  .rs-zenith__mcard .rs-story--pr { font-size: 14px; }
  .rs-story--pr .rs-pr-ico { flex: none; width: 1em; height: 1em; }

  /* the stack: every clipping sits at the bottom of the stage; depth d = up d peeks, a little smaller, veiled */
  .rs-story--pr .rs-pr-stage { position: relative; display: block; height: calc(var(--pk) * 3 + var(--nh)); }
  .rs-story--pr .rs-pr-news { position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--k); display: grid; grid-template-rows: auto auto auto 1fr; align-content: start;
    height: var(--nh); padding: .5em .75em .6em; border-radius: .72em; background: #fff; transform-origin: 50% 0;
    box-shadow: 0 0 0 1px rgb(15 23 42 / .07), 0 .1em .2em rgb(15 23 42 / .05), 0 .7em 1.4em -.7em rgb(36 12 80 / .42); }
  .rs-story--pr .rs-pr-news::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #EEEBF6; opacity: 0; pointer-events: none; }
  .rs-story--pr .rs-pr-news--bi { transform: translateY(calc(var(--pk) * -3)) scale(0.86) rotate(0deg); } .rs-story--pr .rs-pr-news--bi::after { opacity: 0.44; }
  .rs-story--pr .rs-pr-news--yahoo { transform: translateY(calc(var(--pk) * -2)) scale(0.91) rotate(0deg); } .rs-story--pr .rs-pr-news--yahoo::after { opacity: 0.3; }
  .rs-story--pr .rs-pr-news--nyt { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); } .rs-story--pr .rs-pr-news--nyt::after { opacity: 0.16; }

  /* masthead: the outlet's name set in type (each in a face close to its own), a double rule under it, the DR badge */
  .rs-story--pr .rs-pr-mast { display: flex; align-items: center; justify-content: space-between; gap: .6em; height: 1.12em; padding-bottom: .32em; margin-bottom: .38em;
    border-bottom: .28em double #1B2230; }
  .rs-story--pr .rs-pr-logo { display: block; min-width: 0; white-space: nowrap; color: #111; line-height: 1; }
  .rs-story--pr .rs-pr-logo--forbes { font: 700 1.28em/1 Didot, "Bodoni 72", "Bodoni MT", "Libre Bodoni", "Playfair Display", Georgia, serif; letter-spacing: -.012em; }
  .rs-story--pr .rs-pr-logo--nyt { font: 700 1.04em/1 "Old English Text MT", "UnifrakturMaguntia", "Engravers Old English", "Cloister Black", "Times New Roman", Times, serif; letter-spacing: -.005em; }
  .rs-story--pr .rs-pr-logo--yahoo { display: flex; align-items: baseline; font: 900 1.12em/1 "Arial Black", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.055em; }
  .rs-story--pr .rs-pr-logo--yahoo i { font-style: normal; margin-right: .08em; }
  .rs-story--pr .rs-pr-logo--yahoo span { font: 500 .88em/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.02em; }
  .rs-story--pr .rs-pr-logo--bi { display: grid; font: 800 .54em/.98 "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed; letter-spacing: .06em; text-transform: uppercase; }
  .rs-story--pr .rs-pr-dr { flex: none; padding: .2em .45em; border-radius: 99px; background: #F2F4F7; box-shadow: inset 0 0 0 1px rgb(15 23 42 / .08); color: #1D2939; font-size: .6em; font-weight: 700; line-height: 1; letter-spacing: .02em; }
  .rs-story--pr .rs-pr-kick { display: block; margin-bottom: .3em; color: #98A2B3; font-size: .6em; font-weight: 500; white-space: nowrap; }
  .rs-story--pr .rs-pr-kick b { color: var(--mut); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .rs-story--pr .rs-pr-head { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.42em; font: 700 1.05em/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
  .rs-story--pr .rs-pr-head mark { position: relative; z-index: 0; padding: 0 .12em; background: none; color: var(--pur-d); white-space: nowrap; }
  .rs-story--pr .rs-pr-head mark::before { content: ""; position: absolute; z-index: -1; inset: .08em -.02em .02em; border-radius: .22em; background: rgb(124 58 237 / .15); transform-origin: 0 50%; }
  /* the article body: skeleton lines with your link in the text */
  .rs-story--pr .rs-pr-body { display: grid; align-content: end; gap: .36em; padding-top: .3em; }
  .rs-story--pr .rs-pr-row { display: flex; align-items: center; gap: .4em; }
  .rs-story--pr .rs-pr-sk { display: block; flex: 1; height: .42em; border-radius: 99px; background: #E9ECF2; }
  .rs-story--pr .rs-pr-sk--s { flex: 0 0 18%; }
  .rs-story--pr .rs-pr-link { position: relative; display: inline-flex; align-items: center; gap: .3em; padding: .22em .5em; border-radius: 99px; background: rgb(124 58 237 / .1);
    box-shadow: inset 0 0 0 1px rgb(124 58 237 / .28); color: var(--pur-d); font-style: normal; font-size: .66em; font-weight: 700; white-space: nowrap; }
  .rs-story--pr .rs-pr-link::after { content: ""; position: absolute; inset: -.18em; border-radius: inherit; box-shadow: 0 0 0 .14em rgb(124 58 237 / .45); opacity: 0; pointer-events: none; }

  /* the tally: links earned, rolling, and the bar that passes the campaign minimum */
  .rs-story--pr .rs-pr-tally { display: grid; gap: .38em; padding: .42em .7em .52em; border-radius: .72em; background: #fff; box-shadow: 0 0 0 1px rgb(15 23 42 / .07), 0 .5em 1.1em -.7em rgb(36 12 80 / .35); }
  .rs-story--pr .rs-pr-tally__top { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
  .rs-story--pr .rs-pr-tally__lbl { display: flex; align-items: center; gap: .38em; color: #344054; font-size: .74em; font-weight: 600; white-space: nowrap; }
  .rs-story--pr .rs-pr-tally__lbl .rs-pr-ico { color: var(--pur); }
  .rs-story--pr .rs-pr-tally__lbl small { margin-left: .25em; padding: .14em .42em; border-radius: 99px; background: #F2F4F7; color: var(--mut); font-size: .86em; font-weight: 600; }
  .rs-story--pr .rs-pr-count { display: block; height: 1.2em; overflow: hidden; font-size: 1.3em; font-weight: 800; line-height: 1.2em; color: var(--pur); font-variant-numeric: tabular-nums; transform-origin: 100% 50%; }
  .rs-story--pr .rs-pr-count__reel { display: block; transform: translateY(-4.8em); }
  .rs-story--pr .rs-pr-count__reel b { display: block; height: 1.2em; text-align: right; font-weight: inherit; }
  .rs-story--pr .rs-pr-bar { position: relative; display: block; height: .4em; border-radius: 99px; background: #EEF0F5; }
  .rs-story--pr .rs-pr-bar__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #B79CFB, #7C3AED 70%, #6D28D9); transform-origin: 0 50%; }
  .rs-story--pr .rs-pr-bar__min { position: absolute; left: 83.3%; top: -.22em; bottom: -.22em; width: .14em; border-radius: 1px; background: #1D2939; box-shadow: 0 0 0 .1em #fff; }

  /* the chip: a glass pill that lands on the card's top edge once the minimum is passed */
  .rs-story--pr .rs-pr-chip { position: absolute; z-index: 9; top: -1.05em; right: .9em; display: inline-flex; align-items: center; gap: .38em; padding: .42em .7em .42em .5em; border-radius: 99px;
    background: linear-gradient(160deg, rgb(255 255 255 / .96), rgb(244 241 255 / .9)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(124 58 237 / .18), 0 .6em 1.2em -.5em rgb(36 12 80 / .5); color: #1D2939; font-size: .7em; font-weight: 700; white-space: nowrap; }
  .rs-story--pr .rs-pr-chip .rs-pr-ico { width: 1.35em; height: 1.35em; padding: .22em; border-radius: 50%; background: #0F9D6A; color: #fff; }

  @media (prefers-reduced-motion: no-preference) {
    .rs-story--pr .rs-pr-stage { animation: rs-pr-stage 12s cubic-bezier(.4, 0, .6, 1) infinite; }
    .rs-story--pr .rs-pr-news { animation: rs-pr-k0 12s linear infinite; }
    .rs-story--pr .rs-pr-news--yahoo { animation-name: rs-pr-k1; }
    .rs-story--pr .rs-pr-news--nyt { animation-name: rs-pr-k2; }
    .rs-story--pr .rs-pr-news--forbes { animation-name: rs-pr-k3; }
    .rs-story--pr .rs-pr-news--bi::after { animation: rs-pr-v0 12s linear infinite; }
    .rs-story--pr .rs-pr-news--yahoo::after { animation: rs-pr-v1 12s linear infinite; }
    .rs-story--pr .rs-pr-news--nyt::after { animation: rs-pr-v2 12s linear infinite; }
    /* the highlighter sweeps over your brand, then the link pings, right after each clipping lands */
    .rs-story--pr .rs-pr-head mark::before { animation: rs-pr-mark 12s cubic-bezier(.5, 0, .2, 1) calc(var(--k) * 2.16s) infinite backwards; }
    .rs-story--pr .rs-pr-link::after { animation: rs-pr-ping 12s ease-out calc(var(--k) * 2.16s) infinite; }
    .rs-story--pr .rs-pr-count__reel { animation: rs-pr-reel 12s cubic-bezier(.3, .7, .2, 1) infinite; }
    .rs-story--pr .rs-pr-count { animation: rs-pr-pulse 12s ease-in-out infinite; }
    .rs-story--pr .rs-pr-bar__fill { animation: rs-pr-fill 12s cubic-bezier(.3, .7, .2, 1) infinite; }
    .rs-story--pr .rs-pr-chip { animation: rs-pr-chip 12s cubic-bezier(.2, .9, .3, 1.2) infinite; }
  }
  @keyframes rs-pr-k0 {
    0%, 1% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); animation-timing-function: cubic-bezier(.18, .9, .28, 1.12); }
    1.8% { opacity: 1; }
    6.5% { transform: translateY(0) scale(1) rotate(0deg); }
    19% { transform: translateY(0) scale(1) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    24.5% { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); }
    37% { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    42.5% { transform: translateY(calc(var(--pk) * -2)) scale(0.91) rotate(0deg); }
    55% { transform: translateY(calc(var(--pk) * -2)) scale(0.91) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    60.5% { transform: translateY(calc(var(--pk) * -3)) scale(0.86) rotate(0deg); }
    92.6% { opacity: 1; transform: translateY(calc(var(--pk) * -3)) scale(0.86) rotate(0deg); }
    93%, 100% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); }
  }
  @keyframes rs-pr-k1 {
    0%, 19% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); animation-timing-function: cubic-bezier(.18, .9, .28, 1.12); }
    19.8% { opacity: 1; }
    24.5% { transform: translateY(0) scale(1) rotate(0deg); }
    37% { transform: translateY(0) scale(1) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    42.5% { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); }
    55% { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    60.5% { transform: translateY(calc(var(--pk) * -2)) scale(0.91) rotate(0deg); }
    92.6% { opacity: 1; transform: translateY(calc(var(--pk) * -2)) scale(0.91) rotate(0deg); }
    93%, 100% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); }
  }
  @keyframes rs-pr-k2 {
    0%, 37% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); animation-timing-function: cubic-bezier(.18, .9, .28, 1.12); }
    37.8% { opacity: 1; }
    42.5% { transform: translateY(0) scale(1) rotate(0deg); }
    55% { transform: translateY(0) scale(1) rotate(0deg); animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
    60.5% { transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); }
    92.6% { opacity: 1; transform: translateY(calc(var(--pk) * -1)) scale(0.95) rotate(0deg); }
    93%, 100% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); }
  }
  @keyframes rs-pr-k3 {
    0%, 55% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); animation-timing-function: cubic-bezier(.18, .9, .28, 1.12); }
    55.8% { opacity: 1; }
    60.5% { transform: translateY(0) scale(1) rotate(0deg); }
    92.6% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
    93%, 100% { opacity: 0; transform: translateY(-1.5em) scale(1.06) rotate(-1.6deg); }
  }
  @keyframes rs-pr-v0 {
    0%, 19% { opacity: 0; }
    24.5% { opacity: 0.16; }
    37% { opacity: 0.16; }
    42.5% { opacity: 0.3; }
    55% { opacity: 0.3; }
    60.5% { opacity: 0.44; }
    92.6% { opacity: 0.44; }
    93%, 100% { opacity: 0; }
  }
  @keyframes rs-pr-v1 {
    0%, 37% { opacity: 0; }
    42.5% { opacity: 0.16; }
    55% { opacity: 0.16; }
    60.5% { opacity: 0.3; }
    92.6% { opacity: 0.3; }
    93%, 100% { opacity: 0; }
  }
  @keyframes rs-pr-v2 {
    0%, 55% { opacity: 0; }
    60.5% { opacity: 0.16; }
    92.6% { opacity: 0.16; }
    93%, 100% { opacity: 0; }
  }
  @keyframes rs-pr-reel {
    0%, 3.5% { transform: translateY(0); }
    8% { transform: translateY(-1.2em); }
    21.5% { transform: translateY(-1.2em); }
    26% { transform: translateY(-2.4em); }
    39.5% { transform: translateY(-2.4em); }
    44% { transform: translateY(-3.6em); }
    57.5% { transform: translateY(-3.6em); }
    62% { transform: translateY(-4.8em); }
    93% { transform: translateY(-4.8em); }
    95%, 100% { transform: translateY(0); }
  }
  @keyframes rs-pr-fill {
    0%, 3.5% { transform: scaleX(0); }
    8% { transform: scaleX(0.25); }
    21.5% { transform: scaleX(0.25); }
    26% { transform: scaleX(0.42); }
    39.5% { transform: scaleX(0.42); }
    44% { transform: scaleX(0.67); }
    57.5% { transform: scaleX(0.67); }
    62% { transform: scaleX(1); }
    88% { transform: scaleX(1); }
    95%, 100% { transform: scaleX(0); }
  }
  @keyframes rs-pr-pulse {
    0% { opacity: 1; transform: scale(1); }
    7% { transform: scale(1); } 8.5% { transform: scale(1.16); } 11% { transform: scale(1); }
    25% { transform: scale(1); } 26.5% { transform: scale(1.16); } 29% { transform: scale(1); }
    43% { transform: scale(1); } 44.5% { transform: scale(1.16); } 47% { transform: scale(1); }
    61% { transform: scale(1); } 62.5% { transform: scale(1.16); } 65% { transform: scale(1); }
    88% { opacity: 1; } 92%, 96% { opacity: 0; } 100% { opacity: 1; }
  }
  @keyframes rs-pr-stage { 0%, 87% { opacity: 1; transform: translateY(0) scale(1); } 92% { opacity: 0; transform: translateY(-.6em) scale(.985); }
    93.1% { opacity: 0; transform: translateY(0) scale(1); } 93.2%, 100% { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes rs-pr-mark { 0%, 6% { transform: scaleX(0); } 10.5%, 100% { transform: scaleX(1); } }
  @keyframes rs-pr-ping { 0%, 6.5% { opacity: 0; transform: scale(.9); } 8% { opacity: 1; transform: scale(1); } 13.5%, 100% { opacity: 0; transform: scale(1.18, 1.5); } }
  @keyframes rs-pr-chip { 0%, 63% { opacity: 0; transform: translateY(.5em) scale(.8); } 67% { opacity: 1; transform: translateY(0) scale(1); }
    87% { opacity: 1; transform: translateY(0) scale(1); } 91%, 100% { opacity: 0; transform: translateY(-.3em) scale(.96); } }
  /* hero off screen (.rs-zenith.is-still, set by js/gsug.js): every loop pauses, pseudo-elements too (the * in
     site-saucer.css's rule does not reach them) */
  .rs-zenith.is-still .rs-story--pr *, .rs-zenith.is-still .rs-story--pr *::before, .rs-zenith.is-still .rs-story--pr *::after { animation-play-state: paused !important; }
}
