/* Cycling colour highlight shared by every section introduction callout. */
@keyframes calloutCycle {
  0%, 100% { color: #b54a2f; border-left-color: #b54a2f; background: rgba(181, 74, 47, .09); }
  20% { color: #0a6b5f; border-left-color: #0a6b5f; background: rgba(10, 107, 95, .09); }
  40% { color: #2b4a9e; border-left-color: #2b4a9e; background: rgba(43, 74, 158, .09); }
  60% { color: #8a5a0a; border-left-color: #8a5a0a; background: rgba(138, 90, 10, .1); }
  80% { color: #7c3a92; border-left-color: #7c3a92; background: rgba(124, 58, 146, .09); }
}

@keyframes calloutCycleDark {
  0%, 100% { color: #e58b6c; border-left-color: #e58b6c; background: rgba(229, 139, 108, .13); }
  20% { color: #6fd8c4; border-left-color: #6fd8c4; background: rgba(111, 216, 196, .13); }
  40% { color: #9db6ff; border-left-color: #9db6ff; background: rgba(157, 182, 255, .13); }
  60% { color: #e4b567; border-left-color: #e4b567; background: rgba(228, 181, 103, .13); }
  80% { color: #d0a4e8; border-left-color: #d0a4e8; background: rgba(208, 164, 232, .13); }
}

.section-intro {
  padding: 13px 18px;
  border-left: 3px solid currentColor;
  border-radius: 0 12px 12px 0;
  animation: calloutCycle 8s linear infinite;
}

html[data-theme="dark"] .section-intro { animation-name: calloutCycleDark; }

#profile .section-intro { animation-delay: -1.4s; }
#approach .section-intro { animation-delay: -2.8s; }
#focus .section-intro { animation-delay: -4.2s; }
#skills .section-intro { animation-delay: -5.6s; }
#tools .section-intro { animation-delay: -.7s; }
#experience .section-intro { animation-delay: -3.5s; }
#insights .section-intro { animation-delay: -6.3s; }
#education .section-intro { animation-delay: -2.1s; }

.proof-savings strong { color: #b54a2f; }
.proof-savings span { max-width: 150px; }
html[data-theme="dark"] .proof-savings strong { color: #e58b6c; }
/* The animated figure is the statistic number itself, so it carries exactly the
   same typography as the other statistics and only adds tabular figures. */
.savings-count { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .proof-savings { grid-column: 1 / -1; }
  .proof-savings span { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-intro {
    animation: none;
    color: #b54a2f;
    border-left-color: #b54a2f;
    background: rgba(181, 74, 47, .09);
  }
}
