@media screen and (forced-colors: none) {
  :root { --tri-scan-mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='mesh' width='28' height='100%25' patternUnits='userSpaceOnUse' viewBox='0 0 28 8' preserveAspectRatio='none'%3E%3Cpath d='M0 6.8 4 1.4 10 6.8 16 1.4 23 6.8 28 1.4M0 1.4H28M0 6.8H28' fill='none' stroke='%234cbb0b' stroke-width='.9' stroke-linejoin='round'/%3E%3Cpath d='m4 1.4 12 0-6 5.4z' fill='%2386d94e' fill-opacity='.19'/%3E%3Cpath d='m16 1.4 7 5.4 5-5.4' fill='none' stroke='%2348a69a' stroke-width='1'/%3E%3Ccircle cx='4' cy='1.4' r='1.05' fill='%2386d94e'/%3E%3Ccircle cx='23' cy='6.8' r='1' fill='%23006cd7'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23mesh)'/%3E%3C/svg%3E"); }

  [data-tri-link-mesh] { text-decoration-line: none !important; }

  tri-link-ink {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    /* Each triangular cell keeps its horizontal pitch as the net draws and settles. */
    background-image:
      var(--tri-scan-mesh),
      linear-gradient(90deg, var(--tricoma-green,#4cbb0b) 0% 65%, #349a76 86%, #006cd7);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 0, 100% 2px;
  }

  @media (prefers-reduced-motion: no-preference) {
    tri-link-ink { animation: tri-link-scan 480ms ease-in-out both; }
    @keyframes tri-link-scan {
      0%   { background-size: 0% 6px, 0% 2px; }
      54%  { background-size: 84% 6px, 36% 2px; }
      74%  { background-size: 100% 5px, 82% 2px; }
      100% { background-size: 100% 0px, 100% 2px; }
    }
  }
}


@media screen and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  [data-tri-mesh-rule="before"]::before,
  [data-tri-mesh-rule="after"]::after,
  [data-tri-mesh-rule="element"] {
    animation: tri-heading-scan 560ms ease-in-out;
  }
  /* Open the existing stroke just enough to read the cells; its layout box stays fixed. */
  @keyframes tri-heading-scan {
    0%, 54%, 74%, 100% {
      background-color: transparent;
      background-image: var(--tri-scan-mesh), linear-gradient(var(--tri-rule-ink), var(--tri-rule-ink));
      background-repeat: no-repeat;
      background-position: left center;
    }
    0%   { background-size: 0% 100%, 0% 35%; scale: 1 2; }
    54%  { background-size: 84% 100%, 36% 35%; scale: 1 2; }
    74%  { background-size: 100% 100%, 82% 55%; scale: 1 1.65; }
    100% { background-size: 100% 0%, 100% 100%; scale: 1 1; }
  }
}
