
:root { --interaction-time: 280ms; }
body { --interaction-brand: var(--accent, var(--brand)); }

:is(.nav-links > a, .solutions-menu summary, .solutions-menu li > a, footer a:not(.mark, .division-footer-logo),
    .text-link, .detail-link, .service-learn, .about-text-link, .about-index a,
    .service-page-back, .service-page-link, .service-breadcrumb, .hero-foot a,
    .faqs summary, .accordion summary, .service-questions summary) {
  text-decoration: underline 1px transparent;
  text-underline-offset: .32em;
}

:is(.nav-links > a[aria-current], .solutions-menu[data-current] > summary,
    .solutions-menu[open] > summary, .ai-tab[aria-selected="true"],
    .faqs details[open] > summary, .accordion details[open] > summary,
    .service-questions details[open] > summary) {
  text-decoration-color: currentColor;
}

:is(.nav-links > a, .solutions-menu summary, .solutions-menu li > a, footer a:not(.mark, .division-footer-logo),
    .text-link, .detail-link, .service-learn, .about-text-link, .about-index a,
    .service-page-back, .service-page-link, .service-breadcrumb, .hero-foot a,
    .faqs summary, .accordion summary, .service-questions summary):is(:focus-visible, :active) {
  text-decoration-color: currentColor;
}

:is(.nav-toggle, .nav .menu, .family-motion, .hero-signals .motion, .ai-tab):is(:focus-visible, :active) {
  background-color: color-mix(in srgb, var(--interaction-brand) 20%, transparent);
}

:is(.button, .btn, .about-button, .product-learn):is(:hover, :focus-visible) { filter: brightness(1.07); }
:is(.button, .btn, .about-button, .product-learn):active { filter: brightness(.9); }

:is(.family-label, .signal-label):is(:focus-visible, :active) {
  background-color: #ffffff12;
  color: var(--strand, var(--service));
}

:is(.card, .about-card, .service-page-card, .project-card, .service-card, .platform) {
  --panel-accent: var(--about-card-accent, var(--service, var(--interaction-brand)));
}

:is(.card, .about-card, .service-card, .service-page-card):has(a):is(:focus-within, :active) {
  box-shadow: inset 0 0 0 1px var(--panel-accent);
}

@media (hover: hover) {
  :is(.nav-links > a, .solutions-menu summary, .solutions-menu li > a, footer a:not(.mark, .division-footer-logo),
      .text-link, .detail-link, .service-learn, .about-text-link, .about-index a,
      .service-page-back, .service-page-link, .service-breadcrumb, .hero-foot a,
      .faqs summary, .accordion summary, .service-questions summary, .ai-tab):hover {
    text-decoration-color: currentColor;
  }

  :is(.nav-toggle, .nav .menu, .family-motion, .hero-signals .motion, .ai-tab):hover {
    background-color: color-mix(in srgb, var(--interaction-brand) 14%, transparent);
  }

  :is(.family-label, .signal-label):hover {
    background-color: #ffffff12;
    color: var(--strand, var(--service));
  }

  :is(.card, .about-card, .project-card):hover {
    background-color: color-mix(in srgb, var(--panel-accent) 15%, var(--tint, white));
    border-color: var(--panel-accent);
    box-shadow: 0 10px 26px #081d2526;
  }

  :is(.project-flow > article, .law-intro-note):hover {
    background-color: color-mix(in srgb, var(--interaction-brand) 20%, #0d2b35);
    box-shadow: inset 0 2px var(--interaction-brand);
  }

  .division-why-example:hover {
    background-color: color-mix(in srgb, var(--interaction-brand) 18%, var(--light));
    border-color: var(--interaction-brand);
  }

  .why-example:hover {
    background-color: color-mix(in srgb, var(--interaction-brand) 18%, #e8e1f8);
    border-color: var(--interaction-brand);
  }

  :is(.step, .why-item, .business-step, .business-benefit):hover {
    background-color: color-mix(in srgb, var(--interaction-brand) 14%, transparent);
    box-shadow: inset 0 2px var(--interaction-brand);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.about-text-link, .text-link, .service-learn, .detail-link, footer a, .ai-tab,
      .family-label, .signal-label, .family-motion, .hero-signals .motion) {
    transition: color 280ms ease, background-color 280ms ease, text-decoration-color 280ms ease;
  }

  .diagonal-arrow { transition: transform var(--interaction-time) var(--motion-ease, ease); }
  html:not(.site-motion-paused) :is(a, button):focus-visible .diagonal-arrow {
    transform: translate(3px, -3px);
  }

  :is(.card, .about-card, .project-card, .project-flow > article, .law-intro-note,
      .division-why-example, .why-example, .step, .why-item, .business-step, .business-benefit,
      .service-page-card, .mobile-detail) {
    transition-property: opacity, translate, transform, background-color, border-color, box-shadow;
    transition-duration: var(--motion-reveal-duration, 1050ms), var(--motion-reveal-duration, 1050ms),
                         var(--interaction-time), var(--interaction-time),
                         var(--interaction-time), var(--interaction-time);
    transition-timing-function: var(--motion-ease, ease);
  }

  :is(.family-strand .halo, .hero-signals .strand .aura) { transition: opacity var(--interaction-time) ease; }

  @media (hover: hover) {
    html:not(.site-motion-paused) :is(.card, .about-card, .project-card, .service-page-card):hover {
      transform: translateY(-3px);
    }

    html:not(.site-motion-paused) :is(a, button):hover .diagonal-arrow { transform: translate(3px, -3px); }
  }
}

.family-art:has(.family-label.one:is(:hover, :focus-visible, :active)) .family-strand.one .halo,
.family-art:has(.family-label.two:is(:hover, :focus-visible, :active)) .family-strand.two .halo,
.family-art:has(.family-label.three:is(:hover, :focus-visible, :active)) .family-strand.three .halo,
.family-art:has(.family-label.four:is(:hover, :focus-visible, :active)) .family-strand.four .halo,
.family-art:has(.family-label.five:is(:hover, :focus-visible, :active)) .family-strand.five .halo,
.family-art:has(.family-label.six:is(:hover, :focus-visible, :active)) .family-strand.six .halo { opacity: .52; }

@media (hover: hover) {
  .card.hero-key-target:target:hover {
    outline-color: var(--interaction-brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
}
html.site-motion-paused .button:hover { transform: none; }

/* Keep the moving highlight on the border. */
@property --group-glow-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @supports (mask-composite: exclude) {
    :where(.card, .about-card, .about-visual, .enquiry, .form-result, .project-flow > article,
           .division-why-example, .why-example, .platform, .service-card, .service-page-card, .project-card,
           .ai-tab, .mobile-detail, .law-intro-note, .process-grid > article, .business-benefit) {
      position: relative;
      --perimeter-colour: var(--about-card-accent, var(--service, var(--accent, var(--brand))));
    }

    html:not(.site-motion-paused)
    :where(.card, .about-card, .about-visual, .enquiry, .form-result, .project-flow > article,
           .division-why-example, .why-example, .platform, .service-card, .service-page-card, .project-card,
           .ai-tab, .mobile-detail, .law-intro-note, .process-grid > article, .business-benefit):hover::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      padding: 2px;
      border-radius: inherit;
      background: conic-gradient(
        from var(--group-glow-angle),
        transparent 0deg,
        color-mix(in srgb, var(--perimeter-colour) 26%, transparent) 26deg,
        color-mix(in srgb, var(--perimeter-colour) 86%, transparent) 61deg,
        color-mix(in srgb, var(--perimeter-colour) 38%, transparent) 104deg,
        transparent 148deg
      );
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      animation: group-perimeter-glow 12s linear infinite;
      pointer-events: none;
    }
  }
}

@keyframes group-perimeter-glow {
  to { --group-glow-angle: 360deg; }
}
