/* ============================================================
   SVG Animations — すべて CSS で定義
   ============================================================ */

.svg-anim {
  --svg-duration: 0.8s;
  --svg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--accent);
}
.svg-anim__svg {
  width: 80px;
  height: 80px;
  overflow: visible;
}

/* --- path-draw --- */
.svg-anim-path-draw .svg-anim__path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-path-draw var(--svg-duration) var(--svg-ease) both;
}
@keyframes svg-path-draw {
  to { stroke-dashoffset: 0; }
}

/* --- circle-progress --- */
.svg-anim-circle-progress .svg-anim__circle {
  stroke-dasharray: 176; /* 2π*28 ≈ 176 */
  stroke-dashoffset: 176;
  animation: svg-circle-progress 1s var(--svg-ease) both;
}
@keyframes svg-circle-progress {
  to { stroke-dashoffset: 44; } /* 75% progress */
}

/* --- fill-wipe --- */
.svg-anim-fill-wipe .svg-anim__rect {
  transform-origin: left center;
  animation: svg-fill-wipe 0.6s var(--svg-ease) both;
}
@keyframes svg-fill-wipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- stroke-color --- */
.svg-anim-stroke-color .svg-anim__poly {
  animation: svg-stroke-color 3s ease-in-out infinite;
}
@keyframes svg-stroke-color {
  0%, 100% { stroke: var(--accent); }
  33% { stroke: #06b6d4; }
  66% { stroke: #a78bfa; }
}

/* --- logo-reveal --- */
.svg-anim-logo-reveal .svg-anim__path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.svg-anim-logo-reveal .svg-anim__path--1 {
  animation: svg-path-draw 0.6s var(--svg-ease) both;
}
.svg-anim-logo-reveal .svg-anim__path--2 {
  animation: svg-path-draw 0.4s var(--svg-ease) 0.4s both;
}

/* --- morph-shape --- */
/* NOTE: d: path(...) animation requires Chrome 88+ / Edge 88+. Not supported in Firefox/Safari. */
.svg-anim-morph-shape .svg-anim__morph {
  animation: svg-morph 4s ease-in-out infinite alternate;
}
@keyframes svg-morph {
  0%   { d: path("M40 10 L70 40 L40 70 L10 40 Z"); }
  50%  { d: path("M40 12 Q68 12 68 40 Q68 68 40 68 Q12 68 12 40 Q12 12 40 12 Z"); }
  100% { d: path("M40 10 L70 40 L40 70 L10 40 Z"); }
}

/* --- elastic-line --- */
/* NOTE: d: path(...) animation requires Chrome 88+ / Edge 88+. Not supported in Firefox/Safari. */
.svg-anim-elastic-line .svg-anim__elastic {
  animation: svg-elastic 2s ease-in-out infinite;
}
@keyframes svg-elastic {
  0%, 100% { d: path("M10 40 Q40 40 70 40"); }
  25%  { d: path("M10 40 Q40 10 70 40"); }
  75%  { d: path("M10 40 Q40 70 70 40"); }
}

/* --- scale-in-svg --- */
.svg-anim-scale-in-svg .svg-anim__group {
  transform-origin: 40px 40px;
  animation: svg-scale-in var(--svg-duration) var(--svg-ease) both;
}
@keyframes svg-scale-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- rotate-anim --- */
.svg-anim-rotate-anim .svg-anim__spin-group {
  transform-origin: 40px 40px;
  animation: svg-rotate 3s linear infinite;
}
@keyframes svg-rotate {
  to { transform: rotate(360deg); }
}

/* --- dash-flow --- */
.svg-anim-dash-flow .svg-anim__dash-rect {
  stroke-dasharray: 12 8;
  animation: svg-dash-flow 1.5s linear infinite;
}
@keyframes svg-dash-flow {
  to { stroke-dashoffset: -80; }
}

/* --- hamburger-to-x --- */
.svg-anim-hamburger-to-x .svg-anim__hbg-top {
  transform-origin: 40px 28px;
  animation: svg-hbg-top 0.4s var(--svg-ease) both;
}
.svg-anim-hamburger-to-x .svg-anim__hbg-mid {
  animation: svg-hbg-mid 0.3s var(--svg-ease) both;
}
.svg-anim-hamburger-to-x .svg-anim__hbg-bot {
  transform-origin: 40px 52px;
  animation: svg-hbg-bot 0.4s var(--svg-ease) both;
}
@keyframes svg-hbg-top {
  from { transform: rotate(0deg) translateY(0); }
  to   { transform: rotate(45deg) translateY(12px); }
}
@keyframes svg-hbg-mid {
  from { opacity: 1; transform: scaleX(1); }
  to   { opacity: 0; transform: scaleX(0); }
}
@keyframes svg-hbg-bot {
  from { transform: rotate(0deg) translateY(0); }
  to   { transform: rotate(-45deg) translateY(-12px); }
}

/* --- arc-loader --- */
.svg-anim-arc-loader .svg-anim__arc {
  stroke-dasharray: 60 116;
  animation: svg-arc-loader 1.5s linear infinite;
}
@keyframes svg-arc-loader {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -176; }
}

/* --- star-draw --- */
.svg-anim-star-draw .svg-anim__star-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: svg-star-draw 1s var(--svg-ease) both;
}
@keyframes svg-star-draw {
  to { stroke-dashoffset: 0; }
}

/* --- check-to-x --- */
.svg-anim-check-to-x .svg-anim__check-line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: svg-check-draw 0.5s var(--svg-ease) both;
}
@keyframes svg-check-draw {
  to { stroke-dashoffset: 0; }
}

/* --- spiral --- */
.svg-anim-spiral .svg-anim__spiral {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: svg-spiral 1.2s var(--svg-ease) both;
}
@keyframes svg-spiral {
  to { stroke-dashoffset: 0; }
}

/* --- wave-draw --- */
.svg-anim-wave-draw .svg-anim__wave {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-wave-draw 1.2s var(--svg-ease) both;
}
@keyframes svg-wave-draw {
  to { stroke-dashoffset: 0; }
}

/* --- infinity-draw --- */
.svg-anim-infinity-draw .svg-anim__infinity {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: svg-infinity-draw 1.4s var(--svg-ease) both;
}
@keyframes svg-infinity-draw {
  to { stroke-dashoffset: 0; }
}

/* --- grid-reveal --- */
.svg-anim-grid-reveal .svg-anim__cell {
  opacity: 0;
  transform-origin: center center;
  animation: svg-grid-cell 0.4s var(--svg-ease) both;
}
.svg-anim-grid-reveal .svg-anim__cell:nth-child(1) { animation-delay: 0.00s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(2) { animation-delay: 0.08s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(3) { animation-delay: 0.16s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(4) { animation-delay: 0.24s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(5) { animation-delay: 0.32s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(6) { animation-delay: 0.40s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(7) { animation-delay: 0.48s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(8) { animation-delay: 0.56s; }
.svg-anim-grid-reveal .svg-anim__cell:nth-child(9) { animation-delay: 0.64s; }
@keyframes svg-grid-cell {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- burst-lines --- */
.svg-anim-burst-lines .svg-anim__ray {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: svg-burst-ray 0.5s var(--svg-ease) both;
}
.svg-anim-burst-lines .svg-anim__ray:nth-child(1) { animation-delay: 0.00s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(2) { animation-delay: 0.06s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(3) { animation-delay: 0.12s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(4) { animation-delay: 0.18s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(5) { animation-delay: 0.24s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(6) { animation-delay: 0.30s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(7) { animation-delay: 0.36s; }
.svg-anim-burst-lines .svg-anim__ray:nth-child(8) { animation-delay: 0.42s; }
@keyframes svg-burst-ray {
  from { stroke-dashoffset: 28; opacity: 0; }
  to   { stroke-dashoffset: 0;  opacity: 1; }
}

/* --- typewriter-path --- */
.svg-anim-typewriter-path .svg-anim__line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: svg-typewriter-draw 0.8s var(--svg-ease) both;
}
.svg-anim-typewriter-path .svg-anim__cursor {
  animation: svg-typewriter-draw 0.8s var(--svg-ease) both,
             svg-cursor-blink 0.7s step-end 0.8s infinite;
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
}
@keyframes svg-typewriter-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes svg-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- heartbeat --- */
.svg-anim-heartbeat .svg-anim__hb-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: svg-heartbeat-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.svg-anim-heartbeat .svg-anim__hb-pulse {
  transform-origin: 40px 40px;
  animation: svg-heartbeat-pulse 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes svg-heartbeat-draw {
  0%   { stroke-dashoffset: 120; opacity: 0.3; }
  20%  { opacity: 1; }
  60%  { stroke-dashoffset: 0; }
  80%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes svg-heartbeat-pulse {
  0%, 100% { transform: scaleX(1); }
  55%       { transform: scaleX(1.04); }
  70%       { transform: scaleX(0.97); }
  85%       { transform: scaleX(1.02); }
}

/* --- clock-tick --- */
.svg-anim-clock-tick .svg-anim__hour-hand {
  transform-origin: 40px 40px;
  animation: svg-clock-hour 12s linear infinite;
}
.svg-anim-clock-tick .svg-anim__minute-hand {
  transform-origin: 40px 40px;
  animation: svg-clock-minute 1s steps(60, end) infinite;
}
.svg-anim-clock-tick .svg-anim__tick {
  opacity: 0;
  animation: svg-clock-tick-in 0.6s var(--svg-ease) both;
}
.svg-anim-clock-tick .svg-anim__tick:nth-child(1)  { animation-delay: 0.05s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(2)  { animation-delay: 0.10s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(3)  { animation-delay: 0.15s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(4)  { animation-delay: 0.20s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(5)  { animation-delay: 0.25s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(6)  { animation-delay: 0.30s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(7)  { animation-delay: 0.35s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(8)  { animation-delay: 0.40s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(9)  { animation-delay: 0.45s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(10) { animation-delay: 0.50s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(11) { animation-delay: 0.55s; }
.svg-anim-clock-tick .svg-anim__tick:nth-child(12) { animation-delay: 0.60s; }
@keyframes svg-clock-hour {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes svg-clock-minute {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes svg-clock-tick-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- signature --- */
.svg-anim-signature .svg-anim__sig-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: svg-signature-draw 2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.svg-anim-signature .svg-anim__sig-dot {
  opacity: 0;
  animation: svg-signature-dot 0.3s ease 1.9s both;
}
@keyframes svg-signature-draw {
  0%   { stroke-dashoffset: 300; }
  100% { stroke-dashoffset: 0; }
}
@keyframes svg-signature-dot {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- pie-fill --- */
.svg-anim-pie-fill .svg-anim__sector {
  fill: none;
  stroke-width: 28;
  stroke-linecap: butt;
  transform-origin: center;
  transform: rotate(-90deg);
}
.svg-anim-pie-fill .svg-anim__sector-1 {
  stroke-dasharray: 52.5 157;
  stroke-dashoffset: 157;
  animation: svg-pie-sector 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
  stroke: #6366f1;
}
.svg-anim-pie-fill .svg-anim__sector-2 {
  stroke-dasharray: 52.5 157;
  stroke-dashoffset: 157;
  transform: rotate(-90deg) rotate(120deg);
  transform-origin: center;
  animation: svg-pie-sector 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both;
  stroke: #ec4899;
}
.svg-anim-pie-fill .svg-anim__sector-3 {
  stroke-dasharray: 52.5 157;
  stroke-dashoffset: 157;
  transform: rotate(-90deg) rotate(240deg);
  transform-origin: center;
  animation: svg-pie-sector 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
  stroke: #10b981;
}
@keyframes svg-pie-sector {
  from { stroke-dashoffset: 157; }
  to   { stroke-dashoffset: 104.5; }
}

/* --- dna-helix --- */
.svg-anim-dna-helix .svg-anim__strand-a {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-dna-draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0s both;
  stroke: #6366f1;
}
.svg-anim-dna-helix .svg-anim__strand-b {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-dna-draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
  stroke: #ec4899;
}
.svg-anim-dna-helix .svg-anim__rung {
  opacity: 0;
  animation: svg-dna-rung 0.25s ease both;
  stroke: #94a3b8;
}
.svg-anim-dna-helix .svg-anim__rung:nth-child(3)  { animation-delay: 0.3s; }
.svg-anim-dna-helix .svg-anim__rung:nth-child(4)  { animation-delay: 0.5s; }
.svg-anim-dna-helix .svg-anim__rung:nth-child(5)  { animation-delay: 0.7s; }
.svg-anim-dna-helix .svg-anim__rung:nth-child(6)  { animation-delay: 0.9s; }
.svg-anim-dna-helix .svg-anim__rung:nth-child(7)  { animation-delay: 1.1s; }
@keyframes svg-dna-draw {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes svg-dna-rung {
  from { opacity: 0; stroke-dashoffset: 20; }
  to   { opacity: 0.7; stroke-dashoffset: 0; }
}

/* --- progress-bar --- */
.svg-anim-progress-bar .svg-anim__bar {
  clip-path: inset(0 100% 0 0 round 4px);
  animation: svg-progress-bar-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes svg-progress-bar-fill {
  0%   { clip-path: inset(0 100% 0 0 round 4px); }
  60%  { clip-path: inset(0 18% 0 0 round 4px); }
  80%  { clip-path: inset(0 24% 0 0 round 4px); }
  100% { clip-path: inset(0 18% 0 0 round 4px); }
}

/* --- arrow-morph --- */
.svg-anim-arrow-morph .svg-anim__arrow-group {
  transform-origin: 40px 40px;
  animation: svg-arrow-morph-spin 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.svg-anim-arrow-morph .svg-anim__shaft {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: svg-arrow-shaft-draw 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}
.svg-anim-arrow-morph .svg-anim__head {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: svg-arrow-shaft-draw 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes svg-arrow-morph-spin {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(-90deg) scale(1.15); }
  75%  { transform: rotate(-75deg) scale(0.95); }
  100% { transform: rotate(-90deg) scale(1); }
}
@keyframes svg-arrow-shaft-draw {
  to { stroke-dashoffset: 0; }
}

/* --- wifi-bars --- */
.svg-anim-wifi-bars .svg-anim__arc {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.svg-anim-wifi-bars .svg-anim__dot {
  opacity: 0;
  animation: svg-wifi-dot-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
.svg-anim-wifi-bars .svg-anim__arc:nth-child(2) { animation: svg-wifi-arc 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.svg-anim-wifi-bars .svg-anim__arc:nth-child(3) { animation: svg-wifi-arc 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }
.svg-anim-wifi-bars .svg-anim__arc:nth-child(4) { animation: svg-wifi-arc 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both; }
.svg-anim-wifi-bars .svg-anim__arc:nth-child(5) { animation: svg-wifi-arc 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.86s both; }
@keyframes svg-wifi-arc {
  from { stroke-dashoffset: 100; opacity: 0; }
  to   { stroke-dashoffset: 0;   opacity: 1; }
}
@keyframes svg-wifi-dot-pop {
  from { opacity: 0; transform: scale(0); transform-origin: 40px 62px; }
  to   { opacity: 1; transform: scale(1); transform-origin: 40px 62px; }
}

/* --- brackets --- */
.svg-anim-brackets .svg-anim__open {
  animation: svg-bracket-open 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.svg-anim-brackets .svg-anim__close {
  animation: svg-bracket-close 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.svg-anim-brackets .svg-anim__inner {
  opacity: 0;
  animation: svg-bracket-inner-fade 0.5s ease 0.55s both;
}
@keyframes svg-bracket-open {
  0%   { transform: translateX(20px); opacity: 0; }
  60%  { transform: translateX(-3px); opacity: 1; }
  100% { transform: translateX(0px);  opacity: 1; }
}
@keyframes svg-bracket-close {
  0%   { transform: translateX(-20px); opacity: 0; }
  60%  { transform: translateX(3px);   opacity: 1; }
  100% { transform: translateX(0px);   opacity: 1; }
}
@keyframes svg-bracket-inner-fade {
  from { opacity: 0; transform: scaleX(0.5); transform-origin: center; }
  to   { opacity: 0.55; transform: scaleX(1); transform-origin: center; }
}

/* --- loading-ring --- */
.svg-anim-loading-ring .svg-anim__ring-outer {
  stroke-dasharray: 113; /* 2π*18 */
  stroke-dashoffset: 28;
  animation: svg-ring-spin 1.6s linear infinite;
  transform-origin: 40px 40px;
  stroke: #6366f1;
}
.svg-anim-loading-ring .svg-anim__ring-mid {
  stroke-dasharray: 82; /* 2π*13 */
  stroke-dashoffset: 20;
  animation: svg-ring-spin 1.1s linear infinite reverse;
  transform-origin: 40px 40px;
  stroke: #ec4899;
}
.svg-anim-loading-ring .svg-anim__ring-inner {
  stroke-dasharray: 50; /* 2π*8 */
  stroke-dashoffset: 12;
  animation: svg-ring-spin 0.7s linear infinite;
  transform-origin: 40px 40px;
  stroke: #10b981;
}
@keyframes svg-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- liquid-blob --- */
.svg-anim-liquid-blob .svg-anim__blob {
  animation: svg-blob-morph 4s ease-in-out infinite;
  transform-origin: 40px 40px;
}
@keyframes svg-blob-morph {
  0%   { d: path("M50 20 Q70 30 65 50 Q60 70 40 68 Q20 66 18 48 Q16 30 30 20 Q40 14 50 20Z"); }
  33%  { d: path("M55 25 Q72 40 60 58 Q48 76 30 65 Q12 54 15 38 Q18 22 35 17 Q46 12 55 25Z"); }
  66%  { d: path("M42 16 Q64 20 68 42 Q72 64 50 70 Q28 76 18 56 Q8 36 22 22 Q32 12 42 16Z"); }
  100% { d: path("M50 20 Q70 30 65 50 Q60 70 40 68 Q20 66 18 48 Q16 30 30 20 Q40 14 50 20Z"); }
}

/* --- orbit --- */
.svg-anim-orbit .svg-anim__satellite-arm {
  animation: svg-orbit-spin 2.4s linear infinite;
  transform-origin: 40px 40px;
}
@keyframes svg-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- stagger-dots --- */
.svg-anim-stagger-dots .svg-anim__dot {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}
.svg-anim-stagger-dots .svg-anim__dot--1 { animation: svg-dot-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.1s both; }
.svg-anim-stagger-dots .svg-anim__dot--2 { animation: svg-dot-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.22s both; }
.svg-anim-stagger-dots .svg-anim__dot--3 { animation: svg-dot-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.34s both; }
.svg-anim-stagger-dots .svg-anim__dot--4 { animation: svg-dot-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.46s both; }
.svg-anim-stagger-dots .svg-anim__dot--5 { animation: svg-dot-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.58s both; }
@keyframes svg-dot-pop {
  0%   { opacity: 0; transform: scale(0) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.2) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- typing-line --- */
.svg-anim-typing-line .svg-anim__type-line {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: svg-type-draw 0.9s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}
.svg-anim-typing-line .svg-anim__cursor {
  animation: svg-cursor-blink 0.9s step-end 1.1s infinite;
}
@keyframes svg-type-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes svg-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* --- unfurl --- */
.svg-anim-unfurl .svg-anim__coil {
  animation: svg-coil-fade 1.2s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
  transform-origin: 40px 40px;
}
.svg-anim-unfurl .svg-anim__line {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: svg-unfurl-line 0.8s cubic-bezier(0.4,0,0.2,1) 0.8s forwards;
}
@keyframes svg-coil-fade {
  0%   { opacity: 1; transform: scale(1) rotate(0deg); }
  70%  { opacity: 0.4; transform: scale(0.5) rotate(180deg); }
  100% { opacity: 0; transform: scale(0.1) rotate(360deg); }
}
@keyframes svg-unfurl-line {
  0%   { opacity: 1; stroke-dashoffset: 52; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

/* --- gradient-trace --- */
.svg-anim-gradient-trace .svg-anim__trace-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-trace 2s ease-in-out infinite;
}
@keyframes svg-trace {
  0%   { stroke-dashoffset: 200; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

/* --- layered-wave --- */
.svg-anim-layered-wave .svg-anim__wave--1 {
  animation: svg-wave-shift 3s ease-in-out infinite;
}
.svg-anim-layered-wave .svg-anim__wave--2 {
  animation: svg-wave-shift 3s ease-in-out infinite reverse;
  animation-delay: -1s;
}
.svg-anim-layered-wave .svg-anim__wave--3 {
  animation: svg-wave-shift 3s ease-in-out infinite;
  animation-delay: -0.5s;
}
@keyframes svg-wave-shift {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(-10px); }
}

/* --- kaleidoscope --- */
.svg-anim-kaleidoscope .svg-anim__kscope {
  animation: svg-kscope-spin 6s linear infinite;
}
@keyframes svg-kscope-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- morph-icon --- */
.svg-anim-morph-icon .svg-anim__morph-path {
  animation: svg-morph-shape 3s ease-in-out infinite;
}
@keyframes svg-morph-shape {
  0%,100% { d: path("M40 14 L66 66 L14 66 Z"); }
  33%     { d: path("M40 14 A26 26 0 1 1 40 14.001 Z"); }
  66%     { d: path("M14 14 L66 14 L66 66 L14 66 Z"); }
}

/* --- stroke-dash-reveal --- */
.svg-anim-stroke-dash-reveal .svg-anim__dash-rect {
  stroke-dasharray: 208;
  stroke-dashoffset: 208;
  animation: svg-dash-rect 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.svg-anim-stroke-dash-reveal .svg-anim__dash-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: svg-dash-check 0.5s cubic-bezier(0.22,1,0.36,1) 0.7s both;
}
@keyframes svg-dash-rect {
  from { stroke-dashoffset: 208; }
  to   { stroke-dashoffset: 0; }
}
@keyframes svg-dash-check {
  from { stroke-dashoffset: 50; }
  to   { stroke-dashoffset: 0; }
}

/* --- handwriting --- */
.svg-anim-handwriting .svg-anim__hw-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-hw-draw 1.2s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes svg-hw-draw {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

/* --- countdown-arc --- */
.svg-anim-countdown-arc .svg-anim__cd-arc {
  stroke-dasharray: 151;
  stroke-dashoffset: 0;
  animation: svg-cd-arc 3s linear infinite;
}
@keyframes svg-cd-arc {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 151; }
}

/* --- elastic-spring --- */
.svg-anim-elastic-spring .svg-anim__spring {
  animation: svg-spring-bounce 1.2s cubic-bezier(0.34,1.56,0.64,1) both;
  transform-origin: 40px 40px;
}
@keyframes svg-spring-bounce {
  0%   { transform: scaleY(0.2) translateY(20px); opacity: 0; }
  50%  { transform: scaleY(1.2) translateY(-5px); }
  75%  { transform: scaleY(0.9) translateY(2px); }
  100% { transform: scaleY(1) translateY(0); opacity: 1; }
}

/* --- text-pop-svg --- */
.svg-anim-text-pop-svg .svg-anim__text-pop {
  animation: svg-text-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  transform-origin: 40px 44px;
}
@keyframes svg-text-pop {
  from { opacity: 0; transform: scale(0.3); }
  60%  { transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- grid-build --- */
.svg-anim-grid-build .svg-anim__gb {
  animation: svg-gb-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  transform-origin: center;
}
.svg-anim-grid-build .svg-anim__gb--1 { transform-origin: 24px 24px; animation-delay: 0s; }
.svg-anim-grid-build .svg-anim__gb--2 { transform-origin: 56px 24px; animation-delay: 0.08s; }
.svg-anim-grid-build .svg-anim__gb--3 { transform-origin: 24px 56px; animation-delay: 0.16s; }
.svg-anim-grid-build .svg-anim__gb--4 { transform-origin: 56px 56px; animation-delay: 0.24s; }
@keyframes svg-gb-pop {
  from { opacity: 0; transform: scale(0); }
  70%  { transform: scale(1.15); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- blob-morph --- */
.svg-anim-blob-morph .svg-anim__blob-shape {
  animation: svg-blob-morph 4s ease-in-out infinite;
  transform-origin: 40px 40px;
}
@keyframes svg-blob-morph {
  0%   { d: path("M40,14 C54,10 68,22 68,36 C68,52 58,64 40,66 C22,64 12,52 12,36 C12,22 26,10 40,14 Z"); }
  25%  { d: path("M40,10 C58,12 70,28 66,42 C62,56 48,68 36,64 C20,60 10,46 14,32 C18,16 28,8 40,10 Z"); }
  50%  { d: path("M40,16 C56,14 70,30 68,44 C66,60 52,70 38,66 C22,62 10,50 12,36 C14,20 26,18 40,16 Z"); }
  75%  { d: path("M40,12 C52,8 66,20 70,34 C74,50 60,66 44,68 C28,70 14,56 14,40 C14,24 28,16 40,12 Z"); }
  100% { d: path("M40,14 C54,10 68,22 68,36 C68,52 58,64 40,66 C22,64 12,52 12,36 C12,22 26,10 40,14 Z"); }
}

/* --- orbit-system --- */
.svg-anim-orbit-system .svg-anim__orbit-a-group {
  animation: svg-orbit-a 2.4s linear infinite;
  transform-origin: 40px 40px;
}
.svg-anim-orbit-system .svg-anim__orbit-b-group {
  animation: svg-orbit-b 4.8s linear infinite;
  transform-origin: 40px 40px;
}
@keyframes svg-orbit-a {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes svg-orbit-b {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- spring-line --- */
.svg-anim-spring-line .svg-anim__spring-poly {
  animation: svg-spring-ring 1.8s cubic-bezier(0.22,1,0.36,1) infinite;
  transform-origin: 40px 40px;
}
@keyframes svg-spring-ring {
  0%   { transform: translateY(0px) scaleY(1); }
  10%  { transform: translateY(-10px) scaleY(1.1); }
  25%  { transform: translateY(7px) scaleY(0.9); }
  40%  { transform: translateY(-4px) scaleY(1.05); }
  55%  { transform: translateY(2px) scaleY(0.97); }
  70%  { transform: translateY(-1px) scaleY(1.02); }
  85%  { transform: translateY(0.5px) scaleY(0.99); }
  100% { transform: translateY(0px) scaleY(1); }
}

/* --- text-reveal-svg --- */
.svg-anim-text-reveal-svg .svg-anim__tr-text {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  fill: transparent;
  animation: svg-tr-stroke 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s both,
             svg-tr-fill   0.5s ease 0.9s both;
}
@keyframes svg-tr-stroke {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}
@keyframes svg-tr-fill {
  from { fill: transparent; }
  to   { fill: currentColor; }
}

/* --- burst-star --- */
.svg-anim-burst-star .svg-anim__bs-pt {
  animation: svg-bs-shoot 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
  transform-origin: 40px 40px;
}
.svg-anim-burst-star .svg-anim__bs-pt--1 { animation-delay: 0s; }
.svg-anim-burst-star .svg-anim__bs-pt--2 { animation-delay: 0.05s; }
.svg-anim-burst-star .svg-anim__bs-pt--3 { animation-delay: 0.1s; }
.svg-anim-burst-star .svg-anim__bs-pt--4 { animation-delay: 0.15s; }
.svg-anim-burst-star .svg-anim__bs-pt--5 { animation-delay: 0.2s; }
@keyframes svg-bs-shoot {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── sound-bars ─────────────────────────────────────────────────── */
.svg-anim-sound-bars .svg-anim__bar {
  transform-origin: bottom center;
  animation: svg-sound-bar 0.9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.15s);
  fill: currentColor;
}
.svg-anim-sound-bars .svg-anim__bar:nth-child(1) { animation-duration: 0.75s; }
.svg-anim-sound-bars .svg-anim__bar:nth-child(2) { animation-duration: 0.95s; }
.svg-anim-sound-bars .svg-anim__bar:nth-child(3) { animation-duration: 0.65s; }
.svg-anim-sound-bars .svg-anim__bar:nth-child(4) { animation-duration: 1.05s; }
.svg-anim-sound-bars .svg-anim__bar:nth-child(5) { animation-duration: 0.80s; }
.svg-anim-sound-bars .svg-anim__bar:nth-child(6) { animation-duration: 0.70s; }
@keyframes svg-sound-bar {
  0%   { height: 20%; y: 64px; }
  100% { height: 80%; y: 16px; }
}

/* ── radar-sweep ────────────────────────────────────────────────── */
.svg-anim-radar-sweep .svg-anim__sweep {
  transform-origin: 40px 40px;
  animation: svg-radar 3s linear infinite;
}
.svg-anim-radar-sweep .svg-anim__blip {
  animation: svg-radar-blip 3s ease-in-out infinite;
  animation-delay: calc(var(--d) * 1s);
}
@keyframes svg-radar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes svg-radar-blip {
  0%, 80%, 100% { opacity: 0; }
  85%           { opacity: 1; r: 2.5; }
  95%           { opacity: 0.6; r: 1.5; }
}

/* ── figure-eight ───────────────────────────────────────────────── */
.svg-anim-figure-eight .svg-anim__fig8-dot {
  animation: svg-fig8 3s linear infinite;
}
@keyframes svg-fig8 {
  0%   { transform: translate(40px, 40px) translate(0px, 0px); }
  8%   { transform: translate(40px, 40px) translate(12px, -8px); }
  17%  { transform: translate(40px, 40px) translate(18px, 0px); }
  25%  { transform: translate(40px, 40px) translate(12px, 8px); }
  33%  { transform: translate(40px, 40px) translate(0px, 0px); }
  42%  { transform: translate(40px, 40px) translate(-12px, 8px); }
  50%  { transform: translate(40px, 40px) translate(-18px, 0px); }
  58%  { transform: translate(40px, 40px) translate(-12px, -8px); }
  67%  { transform: translate(40px, 40px) translate(0px, 0px); }
  75%  { transform: translate(40px, 40px) translate(12px, -8px); }
  83%  { transform: translate(40px, 40px) translate(18px, 0px); }
  92%  { transform: translate(40px, 40px) translate(12px, 8px); }
  100% { transform: translate(40px, 40px) translate(0px, 0px); }
}

/* ── coin-flip ──────────────────────────────────────────────────── */
.svg-anim-coin-flip .svg-anim__coin {
  transform-origin: 40px 40px;
  animation: svg-coin-flip 2s ease-in-out infinite;
}
.svg-anim-coin-flip .svg-anim__coin-face-h {
  animation: svg-coin-face-h 2s ease-in-out infinite;
}
.svg-anim-coin-flip .svg-anim__coin-face-t {
  animation: svg-coin-face-t 2s ease-in-out infinite;
}
@keyframes svg-coin-flip {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(0); }
  50%  { transform: scaleX(-1); }
  75%  { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes svg-coin-face-h {
  0%, 24%  { opacity: 1; }
  25%, 74% { opacity: 0; }
  75%, 100%{ opacity: 1; }
}
@keyframes svg-coin-face-t {
  0%, 24%  { opacity: 0; }
  25%, 74% { opacity: 1; }
  75%, 100%{ opacity: 0; }
}

/* ── data-line-chart ────────────────────────────────────────────── */
.svg-anim-data-line-chart .svg-anim__chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-chart-draw 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.svg-anim-data-line-chart .svg-anim__chart-dot {
  opacity: 0;
  transform-origin: center;
  animation: svg-chart-dot-pop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-delay: calc(1.4s + var(--i) * 0.12s);
}
@keyframes svg-chart-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes svg-chart-dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   atom-orbital
   ============================================================ */
.svg-anim-atom-orbital .svg-anim__orbit-1 { animation: svg-orbit1 2s linear infinite; transform-origin: 40px 40px; }
.svg-anim-atom-orbital .svg-anim__orbit-2 { animation: svg-orbit2 3s linear infinite; transform-origin: 40px 40px; }
.svg-anim-atom-orbital .svg-anim__orbit-3 { animation: svg-orbit3 4s linear infinite reverse; transform-origin: 40px 40px; }
@keyframes svg-orbit1 { to { transform: rotate(360deg); } }
@keyframes svg-orbit2 { to { transform: rotate(360deg); } }
@keyframes svg-orbit3 { to { transform: rotate(-360deg); } }

/* ============================================================
   signal-rings
   ============================================================ */
.svg-anim-signal-rings .svg-anim__ring {
  animation: svg-signal-ring 2s ease-out infinite;
  transform-origin: 40px 40px;
}
.svg-anim-signal-rings .svg-anim__ring:nth-child(2) { animation-delay: 0.5s; }
.svg-anim-signal-rings .svg-anim__ring:nth-child(3) { animation-delay: 1s; }
.svg-anim-signal-rings .svg-anim__ring:nth-child(4) { animation-delay: 1.5s; }
@keyframes svg-signal-ring {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   bezier-curve
   ============================================================ */
.svg-anim-bezier-curve .svg-anim__ctrl-dot {
  transform-origin: center;
  animation: svg-bezier-dot-in 0.4s ease forwards;
  transform: scale(0);
}
.svg-anim-bezier-curve .svg-anim__ctrl-dot:nth-child(1) { animation-delay: 0.1s; }
.svg-anim-bezier-curve .svg-anim__ctrl-dot:nth-child(2) { animation-delay: 0.3s; }
.svg-anim-bezier-curve .svg-anim__ctrl-guide {
  stroke-dasharray: 4 3;
  opacity: 0;
  animation: svg-bezier-guide-in 0.3s ease forwards;
}
.svg-anim-bezier-curve .svg-anim__ctrl-guide:nth-child(3) { animation-delay: 0.2s; }
.svg-anim-bezier-curve .svg-anim__ctrl-guide:nth-child(4) { animation-delay: 0.4s; }
.svg-anim-bezier-curve .svg-anim__path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: svg-bezier-draw 1.2s ease forwards;
  animation-delay: 0.5s;
}
@keyframes svg-bezier-dot-in { to { transform: scale(1); } }
@keyframes svg-bezier-guide-in { to { opacity: 0.45; } }
@keyframes svg-bezier-draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   doodle-underline
   ============================================================ */
.svg-anim-doodle-underline .svg-anim__underline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: svg-doodle-draw 1s ease forwards;
  animation-delay: 0.1s;
}
@keyframes svg-doodle-draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   morphing-rings
   ============================================================ */
.svg-anim-morphing-rings .svg-anim__ring-a {
  animation: svg-morph-ring-a 3s ease-in-out infinite alternate;
  transform-origin: 40px 40px;
}
.svg-anim-morphing-rings .svg-anim__ring-b {
  animation: svg-morph-ring-b 3s ease-in-out infinite alternate;
  transform-origin: 40px 40px;
}
@keyframes svg-morph-ring-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(10px, -5px) scale(0.9); }
}
@keyframes svg-morph-ring-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-10px, 5px) scale(1.1); }
}

/* ── pendulum-svg ─────────────────────────────────────────── */
.svg-anim-pendulum-svg .svg-anim__rod,
.svg-anim-pendulum-svg .svg-anim__bob {
  animation: svg-pendulum 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
  transform-origin: 40px 5px;
}
@keyframes svg-pendulum {
  0%   { transform: rotate(-30deg); }
  100% { transform: rotate(30deg); }
}

/* ── solar-corona ─────────────────────────────────────────── */
.svg-anim-solar-corona .svg-anim__corona {
  animation: svg-corona-pulse 2s ease-in-out infinite alternate;
  transform-origin: 40px 40px;
}
.svg-anim-solar-corona .svg-anim__ray {
  animation: svg-ray-fade 2s ease-in-out infinite alternate;
  transform-origin: 40px 40px;
}
.svg-anim-solar-corona .svg-anim__ray:nth-child(2)  { animation-delay: 0s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(3)  { animation-delay: 0.25s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(4)  { animation-delay: 0.5s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(5)  { animation-delay: 0.75s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(6)  { animation-delay: 1s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(7)  { animation-delay: 1.25s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(8)  { animation-delay: 1.5s; }
.svg-anim-solar-corona .svg-anim__ray:nth-child(9)  { animation-delay: 1.75s; }
@keyframes svg-corona-pulse {
  0%   { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 1; }
}
@keyframes svg-ray-fade {
  0%   { transform: scaleY(0.6); opacity: 0.3; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

/* ── wave-interference ────────────────────────────────────── */
.svg-anim-wave-interference .svg-anim__wave-a {
  animation: svg-wave-right 2s linear infinite;
}
.svg-anim-wave-interference .svg-anim__wave-b {
  animation: svg-wave-left 2s linear infinite;
}
@keyframes svg-wave-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(20px); }
}
@keyframes svg-wave-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

/* ── arrow-flow ───────────────────────────────────────────── */
.svg-anim-arrow-flow .svg-anim__arrow {
  animation: svg-arrow-flow 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
  opacity: 0;
}
@keyframes svg-arrow-flow {
  0%   { transform: translateX(-8px);  opacity: 0; }
  25%  { transform: translateX(0px);   opacity: 1; }
  75%  { transform: translateX(8px);   opacity: 1; }
  92%  { transform: translateX(20px);  opacity: 0; }
  100% { transform: translateX(20px);  opacity: 0; }
}

/* ── crystal-grow ─────────────────────────────────────────── */
.svg-anim-crystal-grow .svg-anim__facet {
  animation: svg-crystal-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: 40px 65px;
}
.svg-anim-crystal-grow .svg-anim__facet:nth-child(1) { animation-delay: 0s; }
.svg-anim-crystal-grow .svg-anim__facet:nth-child(2) { animation-delay: 0.12s; }
.svg-anim-crystal-grow .svg-anim__facet:nth-child(3) { animation-delay: 0.22s; }
.svg-anim-crystal-grow .svg-anim__facet:nth-child(4) { animation-delay: 0.32s; }
.svg-anim-crystal-grow .svg-anim__facet:nth-child(5) { animation-delay: 0.40s; }
.svg-anim-crystal-grow .svg-anim__facet:nth-child(6) { animation-delay: 0.48s; }
@keyframes svg-crystal-grow {
  0%   { transform: scale(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   21st.dev インスパイア SVG 新着 (2026-06)
   ============================================================ */

/* --- heartbeat-line ---
   ECG/heartbeat line draws across. */
.svg-anim-heartbeat-line .svg-anim__svg { overflow: visible; }
.svg-anim-heartbeat-line .svg-anim__hb-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: svg-hb-draw 1.4s cubic-bezier(0.4,0,0.2,1) var(--anim-delay, 0s) infinite;
}
@keyframes svg-hb-draw {
  0%   { stroke-dashoffset: 200; opacity:1; }
  70%  { stroke-dashoffset: 0; opacity:1; }
  90%  { stroke-dashoffset: 0; opacity:0; }
  100% { stroke-dashoffset: 200; opacity:0; }
}

/* --- morphing-blob ---
   SVG blob shape morphs via scale+skew (cross-browser safe). */
.svg-anim-morphing-blob .svg-anim__blob {
  transform-origin: 40px 40px;
  animation: svg-blob-morph 4s ease-in-out var(--anim-delay, 0s) infinite;
}
@keyframes svg-blob-morph {
  0%,100% { transform: scale(1, 1) skew(0deg, 0deg); opacity: 0.75; }
  25%  { transform: scale(1.12, 0.92) skew(-4deg, 2deg); opacity: 0.85; }
  50%  { transform: scale(0.95, 1.1) skew(3deg, -3deg); opacity: 0.8; }
  75%  { transform: scale(1.08, 0.96) skew(-2deg, 4deg); opacity: 0.9; }
}

/* --- signal-wave ---
   WiFi signal rings pulse in sequence from center outward. */
.svg-anim-signal-wave .svg-anim__ring {
  transform-origin: 40px 58px;
  animation: svg-signal-pulse 2s ease-out var(--anim-delay, 0s) infinite;
}
.svg-anim-signal-wave .svg-anim__ring:nth-child(3) { animation-delay: calc(var(--anim-delay, 0s) + 0s); }
.svg-anim-signal-wave .svg-anim__ring:nth-child(2) { animation-delay: calc(var(--anim-delay, 0s) + 0.35s); }
.svg-anim-signal-wave .svg-anim__ring:nth-child(1) { animation-delay: calc(var(--anim-delay, 0s) + 0.7s); }
@keyframes svg-signal-pulse {
  0%   { opacity: 0; stroke-width: 3; transform: scale(0.6); }
  20%  { opacity: 0.9; }
  70%  { opacity: 0.3; }
  100% { opacity: 0; stroke-width: 1; transform: scale(1.1); }
}

/* --- progress-arc ---
   Circular progress arc fills from 0→75%. */
.svg-anim-progress-arc .svg-anim__track { opacity: 0.15; }
.svg-anim-progress-arc .svg-anim__fill {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 40px 40px;
  animation: svg-arc-fill 1.4s cubic-bezier(0.4,0,0.2,1) var(--anim-delay, 0s) forwards;
}
@keyframes svg-arc-fill {
  from { stroke-dashoffset: 157; }
  to   { stroke-dashoffset: 39; }
}
