/* Sweep each divider badge's outline clockwise when its text column is hovered. */
@keyframes vision-eye-look-around {
  0%, 100% { transform: translate(0, 0); }
  20%, 35% { transform: translate(-2px, .2px); }
  60%, 75% { transform: translate(2px, -.3px); }
}

@keyframes vision-eye-blink {
  0%, 90%, 100% {
    d: path("M2 12C4.8 8 8.1 5.8 12 5.8C15.9 5.8 19.2 8 22 12C19.2 15.3 15.9 17 12 17C8.1 17 4.8 15.3 2 12Z");
  }
  38%, 46% {
    d: path("M2 12C4.8 12 8.1 13 12 13C15.9 13 19.2 12 22 12C19.2 12 15.9 13 12 13C8.1 13 4.8 12 2 12Z");
  }
}

@keyframes mission-link-wind {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

body[data-route="about-us-draft"] [data-section-key="purpose"] {
  .vision-eye-icon {
    stroke-width: 1.5;
    stroke-linejoin: round;
  }

  .vision-eye-iris {
    fill: rgb(47 111 237 / 9%);
    stroke-width: 1.25;
  }

  .mission-link-icon path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }

  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .split-template-list-item:hover .vision-eye-lids {
      animation: vision-eye-blink .8s 1.5s ease-in-out;
    }

    .split-template-list-item:hover .vision-eye-gaze {
      animation: vision-eye-look-around 1.5s ease-in-out;
    }

    .split-template-list-item:hover .mission-link-icon path {
      animation: mission-link-wind .45s ease-in-out both;
    }
    .split-template-list-item:hover .mission-link-icon path:nth-child(2) {
      animation-duration: .22s;
      animation-delay: .3s;
    }
    .split-template-list-item:hover .mission-link-icon path:nth-child(3) {
      animation-delay: .45s;
    }
  }
}

@property --card-icon-sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes card-icon-clockwise {
  from { --card-icon-sweep: 0deg; }
  to { --card-icon-sweep: 360deg; }
}

:is(
  body[data-route="about-us-draft"] .about-draft.about-draft--refined :is([data-section-key="people"], [data-section-key="story"]),
  body:is([data-route="office-cleaning"], [data-route="support-services"]) .office-cleaning-introduction,
  body[data-route="additional-services-draft"] .additional-introduction
) .split-template-list--trust {
  .split-template-list-icon {
    position: relative;
    box-shadow: inset 0 0 0 3rem rgb(38 99 255 / 0%);
    transition: box-shadow .18s ease-out;
  }

  .split-template-list-icon::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, var(--color-accent) var(--card-icon-sweep), transparent 0deg);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    --card-icon-sweep: 360deg;
    transition: opacity .18s ease-out;
  }

  @media (hover: hover) and (pointer: fine) {
    .split-template-list-item:hover .split-template-list-icon {
      box-shadow: inset 0 0 0 3rem rgb(38 99 255 / 5%);
      transition-duration: .65s;
    }
    .split-template-list-item:hover .split-template-list-icon::before {
      --card-icon-sweep: 360deg;
      opacity: 1;
      animation: card-icon-clockwise .65s ease-in-out both;
      transition: opacity .08s ease-out;
    }
  }

  .split-template-list-item:focus-within .split-template-list-icon {
    box-shadow: inset 0 0 0 3rem rgb(38 99 255 / 5%);
    transition-duration: .65s;
  }

  .split-template-list-item:focus-within .split-template-list-icon::before {
    --card-icon-sweep: 360deg;
    opacity: 1;
    animation: card-icon-clockwise .65s ease-in-out both;
    transition: opacity .08s ease-out;
  }

  @media (prefers-reduced-motion: reduce) {
    .split-template-list-icon,
    .split-template-list-icon::before {
      transition: none !important;
      animation: none !important;
    }
  }
}

/* Responsibility rows: one quiet, illustrative gesture per hover. */
@keyframes people-gather-left {
  0%, 100% { transform: translateX(0); }
  45%, 65% { transform: translateX(1px); }
}
@keyframes people-gather-right {
  0%, 100% { transform: translateX(0); }
  45%, 65% { transform: translateX(-1px); }
}
@keyframes people-gather-centre {
  0%, 100% { transform: translateY(0); }
  45%, 65% { transform: translateY(-.7px); }
}
@keyframes responsibility-leaf-breeze {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  28% { transform: rotate(-9deg) skewX(-5deg); }
  58% { transform: rotate(6deg) skewX(3deg); }
  80% { transform: rotate(-2deg) skewX(-1deg); }
}
@keyframes community-heart-lift {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-1px) scale(1.08); }
  65% { transform: translateY(-.6px) scale(1.02); }
}
body[data-route="about-us-draft"] [data-section-key="responsibility"] {
  .community-heart { transform-origin: 15px 7px; }
  .responsibility-leaf-icon {
    transform-box: view-box;
    transform-origin: 4px 21px;
  }

  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .split-template-list-item:hover {
      .people-group-left {
        animation: people-gather-left 1s ease-in-out;
      }
      .people-group-right {
        animation: people-gather-right 1s ease-in-out;
      }
      .people-group-centre {
        animation: people-gather-centre 1s ease-in-out;
      }
      .responsibility-leaf-icon {
        animation: responsibility-leaf-breeze 1.3s ease-in-out;
      }
      .community-heart {
        animation: community-heart-lift 1s ease-in-out;
      }
    }
  }
}
