/* r2-art.css: round 2 polish (owned by the art pass). Illustrations from tools/site/svgs_r2.py. */

/* ---- Applications: one line-art scene per process --------------------------------------------------------- */
.r2-proc-fig {
  position: relative; margin: calc(-1 * clamp(8px, 1vw, 14px)) calc(-1 * clamp(8px, 1vw, 14px)) 2px;
  padding: clamp(12px, 1.6vw, 18px) clamp(10px, 1.4vw, 16px);
  border-radius: 6px; background: linear-gradient(180deg, #f3f5fd, #eef1fb); color: var(--blue, #2e3192);
  overflow: hidden; isolation: isolate;
}
.r2-proc-fig::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(46, 49, 146, .16) .8px, transparent .9px); background-size: 12px 12px;
}
.r2-proc-fig svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 120; }
.pd-appcard:has(.r2-proc-fig) .pd-appcard-head .pd-app-icon { width: 40px; height: 40px; border-radius: 8px; }
.pd-appcard:has(.r2-proc-fig) .pd-appcard-head .pd-app-icon svg { width: 20px; height: 20px; }

/* ---- Products hub: a technology glyph on every card -------------------------------------------------------- */
.pd-tech-top { min-height: 64px; }
.r2-glyph-wrap {
  margin-left: auto; flex: none; width: 68px; height: 68px; display: grid; place-items: center;
  border-radius: 8px; background: #f3f5fd; color: var(--blue, #2e3192);
  transition: background-color .4s var(--ease, ease), transform .6s var(--ease, ease);
}
.section--paper .r2-glyph-wrap { background: var(--paper, #f5f6f8); }
.r2-glyph-wrap svg { width: 56px; height: 56px; overflow: visible; }
.pd-tech:hover .r2-glyph-wrap { background: var(--blue-soft, #e9ebfb); transform: translateY(-2px); }
@media (max-width: 760px) { .r2-glyph-wrap { width: 56px; height: 56px; } .r2-glyph-wrap svg { width: 46px; height: 46px; } .pd-tech-top { min-height: 56px; } }

/* ---- Products hub: path strip tree ------------------------------------------------------------------------ */
.pd-path li { align-content: start; }
.pd-path .r2-tree { display: block; width: 76px; height: 30px; margin: 4px 0 2px; color: var(--blue, #2e3192); overflow: visible; }

/* ---- Quiet, continuous motion (only after the figure has drawn) -------------------------------------------- */
@keyframes r2-dash { to { stroke-dashoffset: -26; } }
@keyframes r2-dash-back { to { stroke-dashoffset: 28; } }
@keyframes r2-spin { to { transform: rotate(360deg); } }
@keyframes r2-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes r2-clamp { 0%, 12%, 100% { transform: translateX(0); } 38%, 74% { transform: translateX(-6px); } }
@keyframes r2-part { 0%, 30%, 100% { opacity: .2; } 44%, 70% { opacity: 1; } }
@keyframes r2-heat { to { stroke-dashoffset: -14; } }
@keyframes r2-settle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes r2-breathe { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.r2-art .r2-spin { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .r2-art.is-drawn .r2-flow { animation: r2-dash 2.6s linear infinite; }
  .r2-art.is-drawn .r2-flow--back { animation: r2-dash-back 3.2s linear infinite; }
  .r2-art.is-drawn .r2-spin { animation: r2-spin 14s linear infinite; }
  .r2-art.is-drawn .r2-spin--ccw { animation-name: r2-spin-ccw; }
  .r2-art.is-drawn .r2-clamp { animation: r2-clamp 7s cubic-bezier(.65, 0, .35, 1) 2.4s infinite; }
  .r2-art.is-drawn .r2-part { animation: r2-part 7s cubic-bezier(.65, 0, .35, 1) 2.4s infinite; }
  .r2-art.is-drawn .r2-heat { animation: r2-heat 1.8s linear infinite; }
  .r2-fig.is-drawn .r2-settle { animation: r2-settle 6s ease-in-out 3s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .r2-art *, .r2-glyph-wrap { animation: none !important; transition: none !important; }
}
